openapi.json 723 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239
  1. {
  2. "openapi": "3.1.0",
  3. "info": {
  4. "title": "opencode HttpApi",
  5. "version": "0.0.1",
  6. "description": "Experimental HttpApi surface for selected instance routes."
  7. },
  8. "paths": {
  9. "/api/health": {
  10. "get": {
  11. "tags": [
  12. "health"
  13. ],
  14. "operationId": "v2.health.get",
  15. "parameters": [],
  16. "security": [],
  17. "responses": {
  18. "200": {
  19. "description": "ServiceHealth",
  20. "content": {
  21. "application/json": {
  22. "schema": {
  23. "$ref": "#/components/schemas/ServiceHealth"
  24. }
  25. }
  26. }
  27. },
  28. "400": {
  29. "description": "InvalidRequestError",
  30. "content": {
  31. "application/json": {
  32. "schema": {
  33. "$ref": "#/components/schemas/InvalidRequestError"
  34. }
  35. }
  36. }
  37. },
  38. "401": {
  39. "description": "UnauthorizedError",
  40. "content": {
  41. "application/json": {
  42. "schema": {
  43. "$ref": "#/components/schemas/UnauthorizedError"
  44. }
  45. }
  46. }
  47. }
  48. },
  49. "description": "Report the owning server process and its application status.",
  50. "summary": "Check server health"
  51. }
  52. },
  53. "/api/service/stop": {
  54. "post": {
  55. "tags": [
  56. "health"
  57. ],
  58. "operationId": "v2.health.stop",
  59. "parameters": [],
  60. "security": [],
  61. "responses": {
  62. "200": {
  63. "description": "ServiceStopResponse",
  64. "content": {
  65. "application/json": {
  66. "schema": {
  67. "$ref": "#/components/schemas/ServiceStopResponse"
  68. }
  69. }
  70. }
  71. },
  72. "400": {
  73. "description": "InvalidRequestError",
  74. "content": {
  75. "application/json": {
  76. "schema": {
  77. "$ref": "#/components/schemas/InvalidRequestError"
  78. }
  79. }
  80. }
  81. },
  82. "401": {
  83. "description": "UnauthorizedError",
  84. "content": {
  85. "application/json": {
  86. "schema": {
  87. "$ref": "#/components/schemas/UnauthorizedError"
  88. }
  89. }
  90. }
  91. }
  92. },
  93. "description": "Request graceful shutdown of one exact managed server instance.",
  94. "summary": "Stop the managed server",
  95. "requestBody": {
  96. "content": {
  97. "application/json": {
  98. "schema": {
  99. "$ref": "#/components/schemas/ServiceStopRequest"
  100. }
  101. }
  102. },
  103. "required": true
  104. }
  105. }
  106. },
  107. "/api/server": {
  108. "get": {
  109. "tags": [
  110. "server"
  111. ],
  112. "operationId": "v2.server.get",
  113. "parameters": [],
  114. "security": [],
  115. "responses": {
  116. "200": {
  117. "description": "Success",
  118. "content": {
  119. "application/json": {
  120. "schema": {
  121. "type": "object",
  122. "properties": {
  123. "urls": {
  124. "type": "array",
  125. "items": {
  126. "type": "string"
  127. }
  128. }
  129. },
  130. "required": [
  131. "urls"
  132. ],
  133. "additionalProperties": false
  134. }
  135. }
  136. }
  137. },
  138. "400": {
  139. "description": "InvalidRequestError",
  140. "content": {
  141. "application/json": {
  142. "schema": {
  143. "$ref": "#/components/schemas/InvalidRequestError"
  144. }
  145. }
  146. }
  147. },
  148. "401": {
  149. "description": "UnauthorizedError",
  150. "content": {
  151. "application/json": {
  152. "schema": {
  153. "$ref": "#/components/schemas/UnauthorizedError"
  154. }
  155. }
  156. }
  157. }
  158. },
  159. "description": "Return the URLs that can be used to connect to this server.",
  160. "summary": "Get server information"
  161. }
  162. },
  163. "/api/location": {
  164. "get": {
  165. "tags": [
  166. "location"
  167. ],
  168. "operationId": "v2.location.get",
  169. "parameters": [
  170. {
  171. "name": "location",
  172. "in": "query",
  173. "schema": {
  174. "anyOf": [
  175. {
  176. "type": "object",
  177. "properties": {
  178. "directory": {
  179. "anyOf": [
  180. {
  181. "type": "string"
  182. },
  183. {
  184. "type": "null"
  185. }
  186. ]
  187. },
  188. "workspace": {
  189. "anyOf": [
  190. {
  191. "type": "string"
  192. },
  193. {
  194. "type": "null"
  195. }
  196. ]
  197. }
  198. },
  199. "additionalProperties": false
  200. },
  201. {
  202. "type": "null"
  203. }
  204. ]
  205. },
  206. "required": false,
  207. "style": "deepObject",
  208. "explode": true
  209. }
  210. ],
  211. "security": [],
  212. "responses": {
  213. "200": {
  214. "description": "Location.Info",
  215. "content": {
  216. "application/json": {
  217. "schema": {
  218. "$ref": "#/components/schemas/Location.Info"
  219. }
  220. }
  221. }
  222. },
  223. "400": {
  224. "description": "InvalidRequestError",
  225. "content": {
  226. "application/json": {
  227. "schema": {
  228. "$ref": "#/components/schemas/InvalidRequestError"
  229. }
  230. }
  231. }
  232. },
  233. "401": {
  234. "description": "UnauthorizedError",
  235. "content": {
  236. "application/json": {
  237. "schema": {
  238. "$ref": "#/components/schemas/UnauthorizedError"
  239. }
  240. }
  241. }
  242. }
  243. },
  244. "description": "Resolve the requested location or the server default location.",
  245. "summary": "Get location"
  246. }
  247. },
  248. "/api/agent": {
  249. "get": {
  250. "tags": [
  251. "agent"
  252. ],
  253. "operationId": "v2.agent.list",
  254. "parameters": [
  255. {
  256. "name": "location",
  257. "in": "query",
  258. "schema": {
  259. "anyOf": [
  260. {
  261. "type": "object",
  262. "properties": {
  263. "directory": {
  264. "anyOf": [
  265. {
  266. "type": "string"
  267. },
  268. {
  269. "type": "null"
  270. }
  271. ]
  272. },
  273. "workspace": {
  274. "anyOf": [
  275. {
  276. "type": "string"
  277. },
  278. {
  279. "type": "null"
  280. }
  281. ]
  282. }
  283. },
  284. "additionalProperties": false
  285. },
  286. {
  287. "type": "null"
  288. }
  289. ]
  290. },
  291. "required": false,
  292. "style": "deepObject",
  293. "explode": true
  294. }
  295. ],
  296. "security": [],
  297. "responses": {
  298. "200": {
  299. "description": "Success",
  300. "content": {
  301. "application/json": {
  302. "schema": {
  303. "type": "object",
  304. "properties": {
  305. "location": {
  306. "$ref": "#/components/schemas/Location.Info"
  307. },
  308. "data": {
  309. "type": "array",
  310. "items": {
  311. "$ref": "#/components/schemas/Agent.Info"
  312. }
  313. }
  314. },
  315. "required": [
  316. "location",
  317. "data"
  318. ],
  319. "additionalProperties": false
  320. }
  321. }
  322. }
  323. },
  324. "400": {
  325. "description": "InvalidRequestError",
  326. "content": {
  327. "application/json": {
  328. "schema": {
  329. "$ref": "#/components/schemas/InvalidRequestError"
  330. }
  331. }
  332. }
  333. },
  334. "401": {
  335. "description": "UnauthorizedError",
  336. "content": {
  337. "application/json": {
  338. "schema": {
  339. "$ref": "#/components/schemas/UnauthorizedError"
  340. }
  341. }
  342. }
  343. }
  344. },
  345. "description": "Retrieve currently registered agents.",
  346. "summary": "List agents"
  347. }
  348. },
  349. "/api/agent/{agentID}": {
  350. "get": {
  351. "tags": [
  352. "agent"
  353. ],
  354. "operationId": "v2.agent.get",
  355. "parameters": [
  356. {
  357. "name": "agentID",
  358. "in": "path",
  359. "schema": {
  360. "type": "string"
  361. },
  362. "required": true
  363. },
  364. {
  365. "name": "location",
  366. "in": "query",
  367. "schema": {
  368. "anyOf": [
  369. {
  370. "type": "object",
  371. "properties": {
  372. "directory": {
  373. "anyOf": [
  374. {
  375. "type": "string"
  376. },
  377. {
  378. "type": "null"
  379. }
  380. ]
  381. },
  382. "workspace": {
  383. "anyOf": [
  384. {
  385. "type": "string"
  386. },
  387. {
  388. "type": "null"
  389. }
  390. ]
  391. }
  392. },
  393. "additionalProperties": false
  394. },
  395. {
  396. "type": "null"
  397. }
  398. ]
  399. },
  400. "required": false,
  401. "style": "deepObject",
  402. "explode": true
  403. }
  404. ],
  405. "security": [],
  406. "responses": {
  407. "200": {
  408. "description": "Success",
  409. "content": {
  410. "application/json": {
  411. "schema": {
  412. "type": "object",
  413. "properties": {
  414. "location": {
  415. "$ref": "#/components/schemas/Location.Info"
  416. },
  417. "data": {
  418. "$ref": "#/components/schemas/Agent.Info"
  419. }
  420. },
  421. "required": [
  422. "location",
  423. "data"
  424. ],
  425. "additionalProperties": false
  426. }
  427. }
  428. }
  429. },
  430. "400": {
  431. "description": "InvalidRequestError",
  432. "content": {
  433. "application/json": {
  434. "schema": {
  435. "$ref": "#/components/schemas/InvalidRequestError"
  436. }
  437. }
  438. }
  439. },
  440. "401": {
  441. "description": "UnauthorizedError",
  442. "content": {
  443. "application/json": {
  444. "schema": {
  445. "$ref": "#/components/schemas/UnauthorizedError"
  446. }
  447. }
  448. }
  449. },
  450. "404": {
  451. "description": "AgentNotFoundError",
  452. "content": {
  453. "application/json": {
  454. "schema": {
  455. "$ref": "#/components/schemas/AgentNotFoundError"
  456. }
  457. }
  458. }
  459. }
  460. },
  461. "description": "Retrieve a single currently registered agent.",
  462. "summary": "Get agent"
  463. }
  464. },
  465. "/api/plugin": {
  466. "get": {
  467. "tags": [
  468. "plugin"
  469. ],
  470. "operationId": "v2.plugin.list",
  471. "parameters": [
  472. {
  473. "name": "location",
  474. "in": "query",
  475. "schema": {
  476. "anyOf": [
  477. {
  478. "type": "object",
  479. "properties": {
  480. "directory": {
  481. "anyOf": [
  482. {
  483. "type": "string"
  484. },
  485. {
  486. "type": "null"
  487. }
  488. ]
  489. },
  490. "workspace": {
  491. "anyOf": [
  492. {
  493. "type": "string"
  494. },
  495. {
  496. "type": "null"
  497. }
  498. ]
  499. }
  500. },
  501. "additionalProperties": false
  502. },
  503. {
  504. "type": "null"
  505. }
  506. ]
  507. },
  508. "required": false,
  509. "style": "deepObject",
  510. "explode": true
  511. }
  512. ],
  513. "security": [],
  514. "responses": {
  515. "200": {
  516. "description": "Success",
  517. "content": {
  518. "application/json": {
  519. "schema": {
  520. "type": "object",
  521. "properties": {
  522. "location": {
  523. "$ref": "#/components/schemas/Location.Info"
  524. },
  525. "data": {
  526. "type": "array",
  527. "items": {
  528. "$ref": "#/components/schemas/Plugin.Info"
  529. }
  530. }
  531. },
  532. "required": [
  533. "location",
  534. "data"
  535. ],
  536. "additionalProperties": false
  537. }
  538. }
  539. }
  540. },
  541. "400": {
  542. "description": "InvalidRequestError",
  543. "content": {
  544. "application/json": {
  545. "schema": {
  546. "$ref": "#/components/schemas/InvalidRequestError"
  547. }
  548. }
  549. }
  550. },
  551. "401": {
  552. "description": "UnauthorizedError",
  553. "content": {
  554. "application/json": {
  555. "schema": {
  556. "$ref": "#/components/schemas/UnauthorizedError"
  557. }
  558. }
  559. }
  560. }
  561. },
  562. "description": "Retrieve currently loaded plugins.",
  563. "summary": "List plugins"
  564. }
  565. },
  566. "/api/session": {
  567. "get": {
  568. "tags": [
  569. "session"
  570. ],
  571. "operationId": "v2.session.list",
  572. "parameters": [
  573. {
  574. "name": "workspace",
  575. "in": "query",
  576. "schema": {
  577. "anyOf": [
  578. {
  579. "type": "string",
  580. "allOf": [
  581. {
  582. "pattern": "^wrk"
  583. }
  584. ]
  585. },
  586. {
  587. "type": "null"
  588. }
  589. ]
  590. },
  591. "required": false
  592. },
  593. {
  594. "name": "limit",
  595. "in": "query",
  596. "schema": {
  597. "anyOf": [
  598. {
  599. "type": "string"
  600. },
  601. {
  602. "type": "null"
  603. }
  604. ],
  605. "description": "Maximum number of sessions to return. Defaults to the newest 50 sessions."
  606. },
  607. "required": false
  608. },
  609. {
  610. "name": "order",
  611. "in": "query",
  612. "schema": {
  613. "anyOf": [
  614. {
  615. "type": "string",
  616. "enum": [
  617. "asc",
  618. "desc"
  619. ]
  620. },
  621. {
  622. "type": "null"
  623. }
  624. ],
  625. "description": "Session order for the first page. Use desc for newest first or asc for oldest first."
  626. },
  627. "required": false
  628. },
  629. {
  630. "name": "search",
  631. "in": "query",
  632. "schema": {
  633. "anyOf": [
  634. {
  635. "type": "string"
  636. },
  637. {
  638. "type": "null"
  639. }
  640. ]
  641. },
  642. "required": false
  643. },
  644. {
  645. "name": "parentID",
  646. "in": "query",
  647. "schema": {
  648. "anyOf": [
  649. {
  650. "anyOf": [
  651. {
  652. "type": "string",
  653. "allOf": [
  654. {
  655. "pattern": "^ses"
  656. }
  657. ]
  658. },
  659. {
  660. "type": "string",
  661. "enum": [
  662. "null"
  663. ]
  664. }
  665. ],
  666. "description": "Filter by parent session. Use null to return only root sessions."
  667. },
  668. {
  669. "type": "null"
  670. }
  671. ]
  672. },
  673. "required": false
  674. },
  675. {
  676. "name": "directory",
  677. "in": "query",
  678. "schema": {
  679. "anyOf": [
  680. {
  681. "type": "string"
  682. },
  683. {
  684. "type": "null"
  685. }
  686. ]
  687. },
  688. "required": false
  689. },
  690. {
  691. "name": "project",
  692. "in": "query",
  693. "schema": {
  694. "anyOf": [
  695. {
  696. "type": "string"
  697. },
  698. {
  699. "type": "null"
  700. }
  701. ]
  702. },
  703. "required": false
  704. },
  705. {
  706. "name": "subpath",
  707. "in": "query",
  708. "schema": {
  709. "anyOf": [
  710. {
  711. "type": "string"
  712. },
  713. {
  714. "type": "null"
  715. }
  716. ]
  717. },
  718. "required": false
  719. },
  720. {
  721. "name": "cursor",
  722. "in": "query",
  723. "schema": {
  724. "anyOf": [
  725. {
  726. "type": "string",
  727. "description": "Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response."
  728. },
  729. {
  730. "type": "null"
  731. }
  732. ]
  733. },
  734. "required": false
  735. }
  736. ],
  737. "security": [],
  738. "responses": {
  739. "200": {
  740. "description": "SessionsResponse",
  741. "content": {
  742. "application/json": {
  743. "schema": {
  744. "$ref": "#/components/schemas/SessionsResponse"
  745. }
  746. }
  747. }
  748. },
  749. "400": {
  750. "description": "InvalidCursorError | InvalidRequestError",
  751. "content": {
  752. "application/json": {
  753. "schema": {
  754. "anyOf": [
  755. {
  756. "$ref": "#/components/schemas/InvalidCursorError"
  757. },
  758. {
  759. "$ref": "#/components/schemas/InvalidRequestError1"
  760. },
  761. {
  762. "$ref": "#/components/schemas/InvalidRequestError"
  763. }
  764. ]
  765. }
  766. }
  767. }
  768. },
  769. "401": {
  770. "description": "UnauthorizedError",
  771. "content": {
  772. "application/json": {
  773. "schema": {
  774. "$ref": "#/components/schemas/UnauthorizedError"
  775. }
  776. }
  777. }
  778. }
  779. },
  780. "description": "Retrieve sessions in the requested order. Items keep that order across pages; use cursor.next or cursor.previous to move through the ordered list.",
  781. "summary": "List sessions"
  782. },
  783. "post": {
  784. "tags": [
  785. "session"
  786. ],
  787. "operationId": "v2.session.create",
  788. "parameters": [],
  789. "security": [],
  790. "responses": {
  791. "200": {
  792. "description": "Success",
  793. "content": {
  794. "application/json": {
  795. "schema": {
  796. "type": "object",
  797. "properties": {
  798. "data": {
  799. "$ref": "#/components/schemas/Session.Info"
  800. }
  801. },
  802. "required": [
  803. "data"
  804. ],
  805. "additionalProperties": false
  806. }
  807. }
  808. }
  809. },
  810. "400": {
  811. "description": "InvalidRequestError",
  812. "content": {
  813. "application/json": {
  814. "schema": {
  815. "$ref": "#/components/schemas/InvalidRequestError"
  816. }
  817. }
  818. }
  819. },
  820. "401": {
  821. "description": "UnauthorizedError",
  822. "content": {
  823. "application/json": {
  824. "schema": {
  825. "$ref": "#/components/schemas/UnauthorizedError"
  826. }
  827. }
  828. }
  829. }
  830. },
  831. "description": "Create a session at the requested location.",
  832. "summary": "Create session",
  833. "requestBody": {
  834. "content": {
  835. "application/json": {
  836. "schema": {
  837. "type": "object",
  838. "properties": {
  839. "id": {
  840. "anyOf": [
  841. {
  842. "type": "string",
  843. "allOf": [
  844. {
  845. "pattern": "^ses"
  846. }
  847. ]
  848. },
  849. {
  850. "type": "null"
  851. }
  852. ]
  853. },
  854. "agent": {
  855. "anyOf": [
  856. {
  857. "type": "string"
  858. },
  859. {
  860. "type": "null"
  861. }
  862. ]
  863. },
  864. "model": {
  865. "anyOf": [
  866. {
  867. "$ref": "#/components/schemas/Model.Ref"
  868. },
  869. {
  870. "type": "null"
  871. }
  872. ]
  873. },
  874. "location": {
  875. "anyOf": [
  876. {
  877. "$ref": "#/components/schemas/Location.Ref"
  878. },
  879. {
  880. "type": "null"
  881. }
  882. ]
  883. }
  884. },
  885. "additionalProperties": false
  886. }
  887. }
  888. },
  889. "required": true
  890. }
  891. }
  892. },
  893. "/api/session/active": {
  894. "get": {
  895. "tags": [
  896. "session"
  897. ],
  898. "operationId": "v2.session.active",
  899. "parameters": [],
  900. "security": [],
  901. "responses": {
  902. "200": {
  903. "description": "Success",
  904. "content": {
  905. "application/json": {
  906. "schema": {
  907. "type": "object",
  908. "properties": {
  909. "data": {
  910. "type": "object",
  911. "patternProperties": {
  912. "^ses": {
  913. "$ref": "#/components/schemas/SessionActive"
  914. }
  915. }
  916. }
  917. },
  918. "required": [
  919. "data"
  920. ],
  921. "additionalProperties": false
  922. }
  923. }
  924. }
  925. },
  926. "400": {
  927. "description": "InvalidRequestError",
  928. "content": {
  929. "application/json": {
  930. "schema": {
  931. "$ref": "#/components/schemas/InvalidRequestError"
  932. }
  933. }
  934. }
  935. },
  936. "401": {
  937. "description": "UnauthorizedError",
  938. "content": {
  939. "application/json": {
  940. "schema": {
  941. "$ref": "#/components/schemas/UnauthorizedError"
  942. }
  943. }
  944. }
  945. }
  946. },
  947. "description": "Retrieve foreground Session drains currently owned by this OpenCode process. Sessions absent from the result are inactive.",
  948. "summary": "List active sessions"
  949. }
  950. },
  951. "/api/session/{sessionID}": {
  952. "get": {
  953. "tags": [
  954. "session"
  955. ],
  956. "operationId": "v2.session.get",
  957. "parameters": [
  958. {
  959. "name": "sessionID",
  960. "in": "path",
  961. "schema": {
  962. "type": "string",
  963. "allOf": [
  964. {
  965. "pattern": "^ses"
  966. }
  967. ]
  968. },
  969. "required": true
  970. }
  971. ],
  972. "security": [],
  973. "responses": {
  974. "200": {
  975. "description": "Success",
  976. "content": {
  977. "application/json": {
  978. "schema": {
  979. "type": "object",
  980. "properties": {
  981. "data": {
  982. "$ref": "#/components/schemas/Session.Info"
  983. }
  984. },
  985. "required": [
  986. "data"
  987. ],
  988. "additionalProperties": false
  989. }
  990. }
  991. }
  992. },
  993. "400": {
  994. "description": "InvalidRequestError",
  995. "content": {
  996. "application/json": {
  997. "schema": {
  998. "$ref": "#/components/schemas/InvalidRequestError"
  999. }
  1000. }
  1001. }
  1002. },
  1003. "401": {
  1004. "description": "UnauthorizedError",
  1005. "content": {
  1006. "application/json": {
  1007. "schema": {
  1008. "$ref": "#/components/schemas/UnauthorizedError"
  1009. }
  1010. }
  1011. }
  1012. },
  1013. "404": {
  1014. "description": "SessionNotFoundError",
  1015. "content": {
  1016. "application/json": {
  1017. "schema": {
  1018. "anyOf": [
  1019. {
  1020. "$ref": "#/components/schemas/SessionNotFoundError"
  1021. },
  1022. {
  1023. "$ref": "#/components/schemas/SessionNotFoundError"
  1024. }
  1025. ]
  1026. }
  1027. }
  1028. }
  1029. }
  1030. },
  1031. "description": "Retrieve a session by ID.",
  1032. "summary": "Get session"
  1033. },
  1034. "delete": {
  1035. "tags": [
  1036. "session"
  1037. ],
  1038. "operationId": "v2.session.remove",
  1039. "parameters": [
  1040. {
  1041. "name": "sessionID",
  1042. "in": "path",
  1043. "schema": {
  1044. "type": "string",
  1045. "allOf": [
  1046. {
  1047. "pattern": "^ses"
  1048. }
  1049. ]
  1050. },
  1051. "required": true
  1052. }
  1053. ],
  1054. "security": [],
  1055. "responses": {
  1056. "204": {
  1057. "description": "<No Content>"
  1058. },
  1059. "400": {
  1060. "description": "InvalidRequestError",
  1061. "content": {
  1062. "application/json": {
  1063. "schema": {
  1064. "$ref": "#/components/schemas/InvalidRequestError"
  1065. }
  1066. }
  1067. }
  1068. },
  1069. "401": {
  1070. "description": "UnauthorizedError",
  1071. "content": {
  1072. "application/json": {
  1073. "schema": {
  1074. "$ref": "#/components/schemas/UnauthorizedError"
  1075. }
  1076. }
  1077. }
  1078. },
  1079. "404": {
  1080. "description": "SessionNotFoundError",
  1081. "content": {
  1082. "application/json": {
  1083. "schema": {
  1084. "anyOf": [
  1085. {
  1086. "$ref": "#/components/schemas/SessionNotFoundError"
  1087. },
  1088. {
  1089. "$ref": "#/components/schemas/SessionNotFoundError"
  1090. }
  1091. ]
  1092. }
  1093. }
  1094. }
  1095. }
  1096. },
  1097. "description": "Delete a session and its child sessions.",
  1098. "summary": "Delete session"
  1099. }
  1100. },
  1101. "/api/session/{sessionID}/fork": {
  1102. "post": {
  1103. "tags": [
  1104. "session"
  1105. ],
  1106. "operationId": "v2.session.fork",
  1107. "parameters": [
  1108. {
  1109. "name": "sessionID",
  1110. "in": "path",
  1111. "schema": {
  1112. "type": "string",
  1113. "allOf": [
  1114. {
  1115. "pattern": "^ses"
  1116. }
  1117. ]
  1118. },
  1119. "required": true
  1120. }
  1121. ],
  1122. "security": [],
  1123. "responses": {
  1124. "200": {
  1125. "description": "Success",
  1126. "content": {
  1127. "application/json": {
  1128. "schema": {
  1129. "type": "object",
  1130. "properties": {
  1131. "data": {
  1132. "$ref": "#/components/schemas/Session.Info"
  1133. }
  1134. },
  1135. "required": [
  1136. "data"
  1137. ],
  1138. "additionalProperties": false
  1139. }
  1140. }
  1141. }
  1142. },
  1143. "400": {
  1144. "description": "InvalidRequestError",
  1145. "content": {
  1146. "application/json": {
  1147. "schema": {
  1148. "$ref": "#/components/schemas/InvalidRequestError"
  1149. }
  1150. }
  1151. }
  1152. },
  1153. "401": {
  1154. "description": "UnauthorizedError",
  1155. "content": {
  1156. "application/json": {
  1157. "schema": {
  1158. "$ref": "#/components/schemas/UnauthorizedError"
  1159. }
  1160. }
  1161. }
  1162. },
  1163. "404": {
  1164. "description": "SessionNotFoundError | MessageNotFoundError",
  1165. "content": {
  1166. "application/json": {
  1167. "schema": {
  1168. "anyOf": [
  1169. {
  1170. "$ref": "#/components/schemas/MessageNotFoundError"
  1171. },
  1172. {
  1173. "$ref": "#/components/schemas/SessionNotFoundError"
  1174. },
  1175. {
  1176. "$ref": "#/components/schemas/SessionNotFoundError"
  1177. }
  1178. ]
  1179. }
  1180. }
  1181. }
  1182. }
  1183. },
  1184. "description": "Create a child session by copying projected history from the parent. When messageID is supplied, copy messages before that boundary.",
  1185. "summary": "Fork session",
  1186. "requestBody": {
  1187. "content": {
  1188. "application/json": {
  1189. "schema": {
  1190. "type": "object",
  1191. "properties": {
  1192. "messageID": {
  1193. "anyOf": [
  1194. {
  1195. "type": "string",
  1196. "allOf": [
  1197. {
  1198. "pattern": "^msg_"
  1199. }
  1200. ]
  1201. },
  1202. {
  1203. "type": "null"
  1204. }
  1205. ]
  1206. }
  1207. },
  1208. "additionalProperties": false
  1209. }
  1210. }
  1211. },
  1212. "required": true
  1213. }
  1214. }
  1215. },
  1216. "/api/session/{sessionID}/agent": {
  1217. "post": {
  1218. "tags": [
  1219. "session"
  1220. ],
  1221. "operationId": "v2.session.switchAgent",
  1222. "parameters": [
  1223. {
  1224. "name": "sessionID",
  1225. "in": "path",
  1226. "schema": {
  1227. "type": "string",
  1228. "allOf": [
  1229. {
  1230. "pattern": "^ses"
  1231. }
  1232. ]
  1233. },
  1234. "required": true
  1235. }
  1236. ],
  1237. "security": [],
  1238. "responses": {
  1239. "204": {
  1240. "description": "<No Content>"
  1241. },
  1242. "400": {
  1243. "description": "InvalidRequestError",
  1244. "content": {
  1245. "application/json": {
  1246. "schema": {
  1247. "$ref": "#/components/schemas/InvalidRequestError"
  1248. }
  1249. }
  1250. }
  1251. },
  1252. "401": {
  1253. "description": "UnauthorizedError",
  1254. "content": {
  1255. "application/json": {
  1256. "schema": {
  1257. "$ref": "#/components/schemas/UnauthorizedError"
  1258. }
  1259. }
  1260. }
  1261. },
  1262. "404": {
  1263. "description": "SessionNotFoundError",
  1264. "content": {
  1265. "application/json": {
  1266. "schema": {
  1267. "anyOf": [
  1268. {
  1269. "$ref": "#/components/schemas/SessionNotFoundError"
  1270. },
  1271. {
  1272. "$ref": "#/components/schemas/SessionNotFoundError"
  1273. }
  1274. ]
  1275. }
  1276. }
  1277. }
  1278. }
  1279. },
  1280. "description": "Switch the agent used by subsequent provider turns.",
  1281. "summary": "Switch session agent",
  1282. "requestBody": {
  1283. "content": {
  1284. "application/json": {
  1285. "schema": {
  1286. "type": "object",
  1287. "properties": {
  1288. "agent": {
  1289. "type": "string"
  1290. }
  1291. },
  1292. "required": [
  1293. "agent"
  1294. ],
  1295. "additionalProperties": false
  1296. }
  1297. }
  1298. },
  1299. "required": true
  1300. }
  1301. }
  1302. },
  1303. "/api/session/{sessionID}/model": {
  1304. "post": {
  1305. "tags": [
  1306. "session"
  1307. ],
  1308. "operationId": "v2.session.switchModel",
  1309. "parameters": [
  1310. {
  1311. "name": "sessionID",
  1312. "in": "path",
  1313. "schema": {
  1314. "type": "string",
  1315. "allOf": [
  1316. {
  1317. "pattern": "^ses"
  1318. }
  1319. ]
  1320. },
  1321. "required": true
  1322. }
  1323. ],
  1324. "security": [],
  1325. "responses": {
  1326. "204": {
  1327. "description": "<No Content>"
  1328. },
  1329. "400": {
  1330. "description": "InvalidRequestError",
  1331. "content": {
  1332. "application/json": {
  1333. "schema": {
  1334. "$ref": "#/components/schemas/InvalidRequestError"
  1335. }
  1336. }
  1337. }
  1338. },
  1339. "401": {
  1340. "description": "UnauthorizedError",
  1341. "content": {
  1342. "application/json": {
  1343. "schema": {
  1344. "$ref": "#/components/schemas/UnauthorizedError"
  1345. }
  1346. }
  1347. }
  1348. },
  1349. "404": {
  1350. "description": "SessionNotFoundError",
  1351. "content": {
  1352. "application/json": {
  1353. "schema": {
  1354. "anyOf": [
  1355. {
  1356. "$ref": "#/components/schemas/SessionNotFoundError"
  1357. },
  1358. {
  1359. "$ref": "#/components/schemas/SessionNotFoundError"
  1360. }
  1361. ]
  1362. }
  1363. }
  1364. }
  1365. }
  1366. },
  1367. "description": "Switch the model used by subsequent provider turns.",
  1368. "summary": "Switch session model",
  1369. "requestBody": {
  1370. "content": {
  1371. "application/json": {
  1372. "schema": {
  1373. "type": "object",
  1374. "properties": {
  1375. "model": {
  1376. "$ref": "#/components/schemas/Model.Ref"
  1377. }
  1378. },
  1379. "required": [
  1380. "model"
  1381. ],
  1382. "additionalProperties": false
  1383. }
  1384. }
  1385. },
  1386. "required": true
  1387. }
  1388. }
  1389. },
  1390. "/api/session/{sessionID}/rename": {
  1391. "post": {
  1392. "tags": [
  1393. "session"
  1394. ],
  1395. "operationId": "v2.session.rename",
  1396. "parameters": [
  1397. {
  1398. "name": "sessionID",
  1399. "in": "path",
  1400. "schema": {
  1401. "type": "string",
  1402. "allOf": [
  1403. {
  1404. "pattern": "^ses"
  1405. }
  1406. ]
  1407. },
  1408. "required": true
  1409. }
  1410. ],
  1411. "security": [],
  1412. "responses": {
  1413. "204": {
  1414. "description": "<No Content>"
  1415. },
  1416. "400": {
  1417. "description": "InvalidRequestError",
  1418. "content": {
  1419. "application/json": {
  1420. "schema": {
  1421. "$ref": "#/components/schemas/InvalidRequestError"
  1422. }
  1423. }
  1424. }
  1425. },
  1426. "401": {
  1427. "description": "UnauthorizedError",
  1428. "content": {
  1429. "application/json": {
  1430. "schema": {
  1431. "$ref": "#/components/schemas/UnauthorizedError"
  1432. }
  1433. }
  1434. }
  1435. },
  1436. "404": {
  1437. "description": "SessionNotFoundError",
  1438. "content": {
  1439. "application/json": {
  1440. "schema": {
  1441. "anyOf": [
  1442. {
  1443. "$ref": "#/components/schemas/SessionNotFoundError"
  1444. },
  1445. {
  1446. "$ref": "#/components/schemas/SessionNotFoundError"
  1447. }
  1448. ]
  1449. }
  1450. }
  1451. }
  1452. }
  1453. },
  1454. "description": "Update the session title.",
  1455. "summary": "Rename session",
  1456. "requestBody": {
  1457. "content": {
  1458. "application/json": {
  1459. "schema": {
  1460. "type": "object",
  1461. "properties": {
  1462. "title": {
  1463. "type": "string"
  1464. }
  1465. },
  1466. "required": [
  1467. "title"
  1468. ],
  1469. "additionalProperties": false
  1470. }
  1471. }
  1472. },
  1473. "required": true
  1474. }
  1475. }
  1476. },
  1477. "/api/session/{sessionID}/move": {
  1478. "post": {
  1479. "tags": [
  1480. "session"
  1481. ],
  1482. "operationId": "v2.session.move",
  1483. "parameters": [
  1484. {
  1485. "name": "sessionID",
  1486. "in": "path",
  1487. "schema": {
  1488. "type": "string",
  1489. "allOf": [
  1490. {
  1491. "pattern": "^ses"
  1492. }
  1493. ]
  1494. },
  1495. "required": true
  1496. }
  1497. ],
  1498. "security": [],
  1499. "responses": {
  1500. "204": {
  1501. "description": "<No Content>"
  1502. },
  1503. "400": {
  1504. "description": "InvalidRequestError",
  1505. "content": {
  1506. "application/json": {
  1507. "schema": {
  1508. "anyOf": [
  1509. {
  1510. "$ref": "#/components/schemas/InvalidRequestError1"
  1511. },
  1512. {
  1513. "$ref": "#/components/schemas/InvalidRequestError"
  1514. }
  1515. ]
  1516. }
  1517. }
  1518. }
  1519. },
  1520. "401": {
  1521. "description": "UnauthorizedError",
  1522. "content": {
  1523. "application/json": {
  1524. "schema": {
  1525. "$ref": "#/components/schemas/UnauthorizedError"
  1526. }
  1527. }
  1528. }
  1529. },
  1530. "404": {
  1531. "description": "SessionNotFoundError",
  1532. "content": {
  1533. "application/json": {
  1534. "schema": {
  1535. "anyOf": [
  1536. {
  1537. "$ref": "#/components/schemas/SessionNotFoundError"
  1538. },
  1539. {
  1540. "$ref": "#/components/schemas/SessionNotFoundError"
  1541. }
  1542. ]
  1543. }
  1544. }
  1545. }
  1546. }
  1547. },
  1548. "description": "Move a session to another project directory, optionally transferring local changes.",
  1549. "summary": "Move session",
  1550. "requestBody": {
  1551. "content": {
  1552. "application/json": {
  1553. "schema": {
  1554. "$ref": "#/components/schemas/Location.Ref"
  1555. }
  1556. }
  1557. },
  1558. "required": true
  1559. }
  1560. }
  1561. },
  1562. "/api/session/{sessionID}/prompt": {
  1563. "post": {
  1564. "tags": [
  1565. "session"
  1566. ],
  1567. "operationId": "v2.session.prompt",
  1568. "parameters": [
  1569. {
  1570. "name": "sessionID",
  1571. "in": "path",
  1572. "schema": {
  1573. "type": "string",
  1574. "allOf": [
  1575. {
  1576. "pattern": "^ses"
  1577. }
  1578. ]
  1579. },
  1580. "required": true
  1581. }
  1582. ],
  1583. "security": [],
  1584. "responses": {
  1585. "200": {
  1586. "description": "Success",
  1587. "content": {
  1588. "application/json": {
  1589. "schema": {
  1590. "type": "object",
  1591. "properties": {
  1592. "data": {
  1593. "$ref": "#/components/schemas/SessionPending.User"
  1594. }
  1595. },
  1596. "required": [
  1597. "data"
  1598. ],
  1599. "additionalProperties": false
  1600. }
  1601. }
  1602. }
  1603. },
  1604. "400": {
  1605. "description": "InvalidRequestError",
  1606. "content": {
  1607. "application/json": {
  1608. "schema": {
  1609. "anyOf": [
  1610. {
  1611. "$ref": "#/components/schemas/InvalidRequestError1"
  1612. },
  1613. {
  1614. "$ref": "#/components/schemas/InvalidRequestError"
  1615. }
  1616. ]
  1617. }
  1618. }
  1619. }
  1620. },
  1621. "401": {
  1622. "description": "UnauthorizedError",
  1623. "content": {
  1624. "application/json": {
  1625. "schema": {
  1626. "$ref": "#/components/schemas/UnauthorizedError"
  1627. }
  1628. }
  1629. }
  1630. },
  1631. "404": {
  1632. "description": "SessionNotFoundError",
  1633. "content": {
  1634. "application/json": {
  1635. "schema": {
  1636. "anyOf": [
  1637. {
  1638. "$ref": "#/components/schemas/SessionNotFoundError"
  1639. },
  1640. {
  1641. "$ref": "#/components/schemas/SessionNotFoundError"
  1642. }
  1643. ]
  1644. }
  1645. }
  1646. }
  1647. },
  1648. "409": {
  1649. "description": "ConflictError",
  1650. "content": {
  1651. "application/json": {
  1652. "schema": {
  1653. "$ref": "#/components/schemas/ConflictError"
  1654. }
  1655. }
  1656. }
  1657. }
  1658. },
  1659. "description": "Durably admit one session input and schedule agent-loop execution unless resume is false.",
  1660. "summary": "Send message",
  1661. "requestBody": {
  1662. "content": {
  1663. "application/json": {
  1664. "schema": {
  1665. "type": "object",
  1666. "properties": {
  1667. "id": {
  1668. "anyOf": [
  1669. {
  1670. "type": "string",
  1671. "allOf": [
  1672. {
  1673. "pattern": "^msg_"
  1674. }
  1675. ]
  1676. },
  1677. {
  1678. "type": "null"
  1679. }
  1680. ]
  1681. },
  1682. "text": {
  1683. "type": "string"
  1684. },
  1685. "files": {
  1686. "type": "array",
  1687. "items": {
  1688. "$ref": "#/components/schemas/PromptInput.FileAttachment"
  1689. }
  1690. },
  1691. "agents": {
  1692. "type": "array",
  1693. "items": {
  1694. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  1695. }
  1696. },
  1697. "metadata": {
  1698. "type": "object"
  1699. },
  1700. "delivery": {
  1701. "anyOf": [
  1702. {
  1703. "type": "string",
  1704. "enum": [
  1705. "steer",
  1706. "queue"
  1707. ]
  1708. },
  1709. {
  1710. "type": "null"
  1711. }
  1712. ]
  1713. },
  1714. "resume": {
  1715. "anyOf": [
  1716. {
  1717. "type": "boolean"
  1718. },
  1719. {
  1720. "type": "null"
  1721. }
  1722. ]
  1723. }
  1724. },
  1725. "required": [
  1726. "text"
  1727. ],
  1728. "additionalProperties": false
  1729. }
  1730. }
  1731. },
  1732. "required": true
  1733. }
  1734. }
  1735. },
  1736. "/api/session/{sessionID}/command": {
  1737. "post": {
  1738. "tags": [
  1739. "session"
  1740. ],
  1741. "operationId": "v2.session.command",
  1742. "parameters": [
  1743. {
  1744. "name": "sessionID",
  1745. "in": "path",
  1746. "schema": {
  1747. "type": "string",
  1748. "allOf": [
  1749. {
  1750. "pattern": "^ses"
  1751. }
  1752. ]
  1753. },
  1754. "required": true
  1755. }
  1756. ],
  1757. "security": [],
  1758. "responses": {
  1759. "200": {
  1760. "description": "Success",
  1761. "content": {
  1762. "application/json": {
  1763. "schema": {
  1764. "type": "object",
  1765. "properties": {
  1766. "data": {
  1767. "$ref": "#/components/schemas/SessionPending.User"
  1768. }
  1769. },
  1770. "required": [
  1771. "data"
  1772. ],
  1773. "additionalProperties": false
  1774. }
  1775. }
  1776. }
  1777. },
  1778. "400": {
  1779. "description": "InvalidRequestError",
  1780. "content": {
  1781. "application/json": {
  1782. "schema": {
  1783. "anyOf": [
  1784. {
  1785. "$ref": "#/components/schemas/InvalidRequestError1"
  1786. },
  1787. {
  1788. "$ref": "#/components/schemas/InvalidRequestError"
  1789. }
  1790. ]
  1791. }
  1792. }
  1793. }
  1794. },
  1795. "401": {
  1796. "description": "UnauthorizedError",
  1797. "content": {
  1798. "application/json": {
  1799. "schema": {
  1800. "$ref": "#/components/schemas/UnauthorizedError"
  1801. }
  1802. }
  1803. }
  1804. },
  1805. "404": {
  1806. "description": "SessionNotFoundError | CommandNotFoundError",
  1807. "content": {
  1808. "application/json": {
  1809. "schema": {
  1810. "anyOf": [
  1811. {
  1812. "$ref": "#/components/schemas/CommandNotFoundError"
  1813. },
  1814. {
  1815. "$ref": "#/components/schemas/SessionNotFoundError"
  1816. },
  1817. {
  1818. "$ref": "#/components/schemas/SessionNotFoundError"
  1819. }
  1820. ]
  1821. }
  1822. }
  1823. }
  1824. },
  1825. "409": {
  1826. "description": "ConflictError",
  1827. "content": {
  1828. "application/json": {
  1829. "schema": {
  1830. "$ref": "#/components/schemas/ConflictError"
  1831. }
  1832. }
  1833. }
  1834. },
  1835. "500": {
  1836. "description": "CommandEvaluationError",
  1837. "content": {
  1838. "application/json": {
  1839. "schema": {
  1840. "$ref": "#/components/schemas/CommandEvaluationError"
  1841. }
  1842. }
  1843. }
  1844. }
  1845. },
  1846. "description": "Resolve a slash command into prompt input, admit it durably, and schedule execution unless resume is false.",
  1847. "summary": "Run command",
  1848. "requestBody": {
  1849. "content": {
  1850. "application/json": {
  1851. "schema": {
  1852. "type": "object",
  1853. "properties": {
  1854. "id": {
  1855. "anyOf": [
  1856. {
  1857. "type": "string",
  1858. "allOf": [
  1859. {
  1860. "pattern": "^msg_"
  1861. }
  1862. ]
  1863. },
  1864. {
  1865. "type": "null"
  1866. }
  1867. ]
  1868. },
  1869. "command": {
  1870. "type": "string"
  1871. },
  1872. "arguments": {
  1873. "anyOf": [
  1874. {
  1875. "type": "string"
  1876. },
  1877. {
  1878. "type": "null"
  1879. }
  1880. ]
  1881. },
  1882. "agent": {
  1883. "anyOf": [
  1884. {
  1885. "type": "string"
  1886. },
  1887. {
  1888. "type": "null"
  1889. }
  1890. ]
  1891. },
  1892. "model": {
  1893. "anyOf": [
  1894. {
  1895. "$ref": "#/components/schemas/Model.Ref"
  1896. },
  1897. {
  1898. "type": "null"
  1899. }
  1900. ]
  1901. },
  1902. "files": {
  1903. "type": "array",
  1904. "items": {
  1905. "$ref": "#/components/schemas/PromptInput.FileAttachment"
  1906. }
  1907. },
  1908. "agents": {
  1909. "type": "array",
  1910. "items": {
  1911. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  1912. }
  1913. },
  1914. "delivery": {
  1915. "anyOf": [
  1916. {
  1917. "type": "string",
  1918. "enum": [
  1919. "steer",
  1920. "queue"
  1921. ]
  1922. },
  1923. {
  1924. "type": "null"
  1925. }
  1926. ]
  1927. },
  1928. "resume": {
  1929. "anyOf": [
  1930. {
  1931. "type": "boolean"
  1932. },
  1933. {
  1934. "type": "null"
  1935. }
  1936. ]
  1937. }
  1938. },
  1939. "required": [
  1940. "command"
  1941. ],
  1942. "additionalProperties": false
  1943. }
  1944. }
  1945. },
  1946. "required": true
  1947. }
  1948. }
  1949. },
  1950. "/api/session/{sessionID}/skill": {
  1951. "post": {
  1952. "tags": [
  1953. "session"
  1954. ],
  1955. "operationId": "v2.session.skill",
  1956. "parameters": [
  1957. {
  1958. "name": "sessionID",
  1959. "in": "path",
  1960. "schema": {
  1961. "type": "string",
  1962. "allOf": [
  1963. {
  1964. "pattern": "^ses"
  1965. }
  1966. ]
  1967. },
  1968. "required": true
  1969. }
  1970. ],
  1971. "security": [],
  1972. "responses": {
  1973. "204": {
  1974. "description": "<No Content>"
  1975. },
  1976. "400": {
  1977. "description": "InvalidRequestError",
  1978. "content": {
  1979. "application/json": {
  1980. "schema": {
  1981. "$ref": "#/components/schemas/InvalidRequestError"
  1982. }
  1983. }
  1984. }
  1985. },
  1986. "401": {
  1987. "description": "UnauthorizedError",
  1988. "content": {
  1989. "application/json": {
  1990. "schema": {
  1991. "$ref": "#/components/schemas/UnauthorizedError"
  1992. }
  1993. }
  1994. }
  1995. },
  1996. "404": {
  1997. "description": "SessionNotFoundError | SkillNotFoundError",
  1998. "content": {
  1999. "application/json": {
  2000. "schema": {
  2001. "anyOf": [
  2002. {
  2003. "$ref": "#/components/schemas/SkillNotFoundError"
  2004. },
  2005. {
  2006. "$ref": "#/components/schemas/SessionNotFoundError"
  2007. },
  2008. {
  2009. "$ref": "#/components/schemas/SessionNotFoundError"
  2010. }
  2011. ]
  2012. }
  2013. }
  2014. }
  2015. }
  2016. },
  2017. "description": "Activate a skill for a session by appending a skill message and resuming execution.",
  2018. "summary": "Activate skill",
  2019. "requestBody": {
  2020. "content": {
  2021. "application/json": {
  2022. "schema": {
  2023. "type": "object",
  2024. "properties": {
  2025. "id": {
  2026. "anyOf": [
  2027. {
  2028. "type": "string",
  2029. "allOf": [
  2030. {
  2031. "pattern": "^msg_"
  2032. }
  2033. ]
  2034. },
  2035. {
  2036. "type": "null"
  2037. }
  2038. ]
  2039. },
  2040. "skill": {
  2041. "type": "string"
  2042. },
  2043. "resume": {
  2044. "anyOf": [
  2045. {
  2046. "type": "boolean"
  2047. },
  2048. {
  2049. "type": "null"
  2050. }
  2051. ]
  2052. }
  2053. },
  2054. "required": [
  2055. "skill"
  2056. ],
  2057. "additionalProperties": false
  2058. }
  2059. }
  2060. },
  2061. "required": true
  2062. }
  2063. }
  2064. },
  2065. "/api/session/{sessionID}/synthetic": {
  2066. "post": {
  2067. "tags": [
  2068. "session"
  2069. ],
  2070. "operationId": "v2.session.synthetic",
  2071. "parameters": [
  2072. {
  2073. "name": "sessionID",
  2074. "in": "path",
  2075. "schema": {
  2076. "type": "string",
  2077. "allOf": [
  2078. {
  2079. "pattern": "^ses"
  2080. }
  2081. ]
  2082. },
  2083. "required": true
  2084. }
  2085. ],
  2086. "security": [],
  2087. "responses": {
  2088. "200": {
  2089. "description": "Success",
  2090. "content": {
  2091. "application/json": {
  2092. "schema": {
  2093. "type": "object",
  2094. "properties": {
  2095. "data": {
  2096. "$ref": "#/components/schemas/SessionPending.Synthetic"
  2097. }
  2098. },
  2099. "required": [
  2100. "data"
  2101. ],
  2102. "additionalProperties": false
  2103. }
  2104. }
  2105. }
  2106. },
  2107. "400": {
  2108. "description": "InvalidRequestError",
  2109. "content": {
  2110. "application/json": {
  2111. "schema": {
  2112. "$ref": "#/components/schemas/InvalidRequestError"
  2113. }
  2114. }
  2115. }
  2116. },
  2117. "401": {
  2118. "description": "UnauthorizedError",
  2119. "content": {
  2120. "application/json": {
  2121. "schema": {
  2122. "$ref": "#/components/schemas/UnauthorizedError"
  2123. }
  2124. }
  2125. }
  2126. },
  2127. "404": {
  2128. "description": "SessionNotFoundError",
  2129. "content": {
  2130. "application/json": {
  2131. "schema": {
  2132. "anyOf": [
  2133. {
  2134. "$ref": "#/components/schemas/SessionNotFoundError"
  2135. },
  2136. {
  2137. "$ref": "#/components/schemas/SessionNotFoundError"
  2138. }
  2139. ]
  2140. }
  2141. }
  2142. }
  2143. },
  2144. "409": {
  2145. "description": "ConflictError",
  2146. "content": {
  2147. "application/json": {
  2148. "schema": {
  2149. "$ref": "#/components/schemas/ConflictError"
  2150. }
  2151. }
  2152. }
  2153. }
  2154. },
  2155. "description": "Durably admit synthetic session input and schedule execution unless resume is false.",
  2156. "summary": "Add synthetic message",
  2157. "requestBody": {
  2158. "content": {
  2159. "application/json": {
  2160. "schema": {
  2161. "type": "object",
  2162. "properties": {
  2163. "id": {
  2164. "anyOf": [
  2165. {
  2166. "type": "string",
  2167. "allOf": [
  2168. {
  2169. "pattern": "^msg_"
  2170. }
  2171. ]
  2172. },
  2173. {
  2174. "type": "null"
  2175. }
  2176. ]
  2177. },
  2178. "text": {
  2179. "type": "string"
  2180. },
  2181. "description": {
  2182. "anyOf": [
  2183. {
  2184. "type": "string"
  2185. },
  2186. {
  2187. "type": "null"
  2188. }
  2189. ]
  2190. },
  2191. "metadata": {
  2192. "type": "object"
  2193. },
  2194. "delivery": {
  2195. "anyOf": [
  2196. {
  2197. "type": "string",
  2198. "enum": [
  2199. "steer",
  2200. "queue"
  2201. ]
  2202. },
  2203. {
  2204. "type": "null"
  2205. }
  2206. ]
  2207. },
  2208. "resume": {
  2209. "anyOf": [
  2210. {
  2211. "type": "boolean"
  2212. },
  2213. {
  2214. "type": "null"
  2215. }
  2216. ]
  2217. }
  2218. },
  2219. "required": [
  2220. "text"
  2221. ],
  2222. "additionalProperties": false
  2223. }
  2224. }
  2225. },
  2226. "required": true
  2227. }
  2228. }
  2229. },
  2230. "/api/session/{sessionID}/shell": {
  2231. "post": {
  2232. "tags": [
  2233. "session"
  2234. ],
  2235. "operationId": "v2.session.shell",
  2236. "parameters": [
  2237. {
  2238. "name": "sessionID",
  2239. "in": "path",
  2240. "schema": {
  2241. "type": "string",
  2242. "allOf": [
  2243. {
  2244. "pattern": "^ses"
  2245. }
  2246. ]
  2247. },
  2248. "required": true
  2249. }
  2250. ],
  2251. "security": [],
  2252. "responses": {
  2253. "204": {
  2254. "description": "<No Content>"
  2255. },
  2256. "400": {
  2257. "description": "InvalidRequestError",
  2258. "content": {
  2259. "application/json": {
  2260. "schema": {
  2261. "$ref": "#/components/schemas/InvalidRequestError"
  2262. }
  2263. }
  2264. }
  2265. },
  2266. "401": {
  2267. "description": "UnauthorizedError",
  2268. "content": {
  2269. "application/json": {
  2270. "schema": {
  2271. "$ref": "#/components/schemas/UnauthorizedError"
  2272. }
  2273. }
  2274. }
  2275. },
  2276. "404": {
  2277. "description": "SessionNotFoundError",
  2278. "content": {
  2279. "application/json": {
  2280. "schema": {
  2281. "anyOf": [
  2282. {
  2283. "$ref": "#/components/schemas/SessionNotFoundError"
  2284. },
  2285. {
  2286. "$ref": "#/components/schemas/SessionNotFoundError"
  2287. }
  2288. ]
  2289. }
  2290. }
  2291. }
  2292. }
  2293. },
  2294. "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.",
  2295. "summary": "Run shell command",
  2296. "requestBody": {
  2297. "content": {
  2298. "application/json": {
  2299. "schema": {
  2300. "type": "object",
  2301. "properties": {
  2302. "id": {
  2303. "anyOf": [
  2304. {
  2305. "type": "string",
  2306. "allOf": [
  2307. {
  2308. "pattern": "^evt_"
  2309. }
  2310. ]
  2311. },
  2312. {
  2313. "type": "null"
  2314. }
  2315. ]
  2316. },
  2317. "command": {
  2318. "type": "string"
  2319. }
  2320. },
  2321. "required": [
  2322. "command"
  2323. ],
  2324. "additionalProperties": false
  2325. }
  2326. }
  2327. },
  2328. "required": true
  2329. }
  2330. }
  2331. },
  2332. "/api/session/{sessionID}/compact": {
  2333. "post": {
  2334. "tags": [
  2335. "session"
  2336. ],
  2337. "operationId": "v2.session.compact",
  2338. "parameters": [
  2339. {
  2340. "name": "sessionID",
  2341. "in": "path",
  2342. "schema": {
  2343. "type": "string",
  2344. "allOf": [
  2345. {
  2346. "pattern": "^ses"
  2347. }
  2348. ]
  2349. },
  2350. "required": true
  2351. }
  2352. ],
  2353. "security": [],
  2354. "responses": {
  2355. "200": {
  2356. "description": "Success",
  2357. "content": {
  2358. "application/json": {
  2359. "schema": {
  2360. "type": "object",
  2361. "properties": {
  2362. "data": {
  2363. "$ref": "#/components/schemas/SessionPending.Compaction"
  2364. }
  2365. },
  2366. "required": [
  2367. "data"
  2368. ],
  2369. "additionalProperties": false
  2370. }
  2371. }
  2372. }
  2373. },
  2374. "400": {
  2375. "description": "InvalidRequestError",
  2376. "content": {
  2377. "application/json": {
  2378. "schema": {
  2379. "$ref": "#/components/schemas/InvalidRequestError"
  2380. }
  2381. }
  2382. }
  2383. },
  2384. "401": {
  2385. "description": "UnauthorizedError",
  2386. "content": {
  2387. "application/json": {
  2388. "schema": {
  2389. "$ref": "#/components/schemas/UnauthorizedError"
  2390. }
  2391. }
  2392. }
  2393. },
  2394. "404": {
  2395. "description": "SessionNotFoundError",
  2396. "content": {
  2397. "application/json": {
  2398. "schema": {
  2399. "anyOf": [
  2400. {
  2401. "$ref": "#/components/schemas/SessionNotFoundError"
  2402. },
  2403. {
  2404. "$ref": "#/components/schemas/SessionNotFoundError"
  2405. }
  2406. ]
  2407. }
  2408. }
  2409. }
  2410. },
  2411. "409": {
  2412. "description": "ConflictError",
  2413. "content": {
  2414. "application/json": {
  2415. "schema": {
  2416. "$ref": "#/components/schemas/ConflictError"
  2417. }
  2418. }
  2419. }
  2420. }
  2421. },
  2422. "description": "Queue a durable session compaction request.",
  2423. "summary": "Compact session",
  2424. "requestBody": {
  2425. "content": {
  2426. "application/json": {
  2427. "schema": {
  2428. "type": "object",
  2429. "properties": {
  2430. "id": {
  2431. "anyOf": [
  2432. {
  2433. "type": "string",
  2434. "allOf": [
  2435. {
  2436. "pattern": "^msg_"
  2437. }
  2438. ]
  2439. },
  2440. {
  2441. "type": "null"
  2442. }
  2443. ]
  2444. }
  2445. },
  2446. "additionalProperties": false
  2447. }
  2448. }
  2449. },
  2450. "required": true
  2451. }
  2452. }
  2453. },
  2454. "/api/session/{sessionID}/wait": {
  2455. "post": {
  2456. "tags": [
  2457. "session"
  2458. ],
  2459. "operationId": "v2.session.wait",
  2460. "parameters": [
  2461. {
  2462. "name": "sessionID",
  2463. "in": "path",
  2464. "schema": {
  2465. "type": "string",
  2466. "allOf": [
  2467. {
  2468. "pattern": "^ses"
  2469. }
  2470. ]
  2471. },
  2472. "required": true
  2473. }
  2474. ],
  2475. "security": [],
  2476. "responses": {
  2477. "204": {
  2478. "description": "<No Content>"
  2479. },
  2480. "400": {
  2481. "description": "InvalidRequestError",
  2482. "content": {
  2483. "application/json": {
  2484. "schema": {
  2485. "$ref": "#/components/schemas/InvalidRequestError"
  2486. }
  2487. }
  2488. }
  2489. },
  2490. "401": {
  2491. "description": "UnauthorizedError",
  2492. "content": {
  2493. "application/json": {
  2494. "schema": {
  2495. "$ref": "#/components/schemas/UnauthorizedError"
  2496. }
  2497. }
  2498. }
  2499. },
  2500. "404": {
  2501. "description": "SessionNotFoundError",
  2502. "content": {
  2503. "application/json": {
  2504. "schema": {
  2505. "anyOf": [
  2506. {
  2507. "$ref": "#/components/schemas/SessionNotFoundError"
  2508. },
  2509. {
  2510. "$ref": "#/components/schemas/SessionNotFoundError"
  2511. }
  2512. ]
  2513. }
  2514. }
  2515. }
  2516. },
  2517. "503": {
  2518. "description": "ServiceUnavailableError",
  2519. "content": {
  2520. "application/json": {
  2521. "schema": {
  2522. "$ref": "#/components/schemas/ServiceUnavailableError"
  2523. }
  2524. }
  2525. }
  2526. }
  2527. },
  2528. "description": "Wait for a session agent loop to become idle.",
  2529. "summary": "Wait for session"
  2530. }
  2531. },
  2532. "/api/session/{sessionID}/revert/stage": {
  2533. "post": {
  2534. "tags": [
  2535. "session"
  2536. ],
  2537. "operationId": "v2.session.revert.stage",
  2538. "parameters": [
  2539. {
  2540. "name": "sessionID",
  2541. "in": "path",
  2542. "schema": {
  2543. "type": "string",
  2544. "allOf": [
  2545. {
  2546. "pattern": "^ses"
  2547. }
  2548. ]
  2549. },
  2550. "required": true
  2551. }
  2552. ],
  2553. "security": [],
  2554. "responses": {
  2555. "200": {
  2556. "description": "Success",
  2557. "content": {
  2558. "application/json": {
  2559. "schema": {
  2560. "type": "object",
  2561. "properties": {
  2562. "data": {
  2563. "$ref": "#/components/schemas/Session.Revert"
  2564. }
  2565. },
  2566. "required": [
  2567. "data"
  2568. ],
  2569. "additionalProperties": false
  2570. }
  2571. }
  2572. }
  2573. },
  2574. "400": {
  2575. "description": "InvalidRequestError",
  2576. "content": {
  2577. "application/json": {
  2578. "schema": {
  2579. "$ref": "#/components/schemas/InvalidRequestError"
  2580. }
  2581. }
  2582. }
  2583. },
  2584. "401": {
  2585. "description": "UnauthorizedError",
  2586. "content": {
  2587. "application/json": {
  2588. "schema": {
  2589. "$ref": "#/components/schemas/UnauthorizedError"
  2590. }
  2591. }
  2592. }
  2593. },
  2594. "404": {
  2595. "description": "MessageNotFoundError | SessionNotFoundError",
  2596. "content": {
  2597. "application/json": {
  2598. "schema": {
  2599. "anyOf": [
  2600. {
  2601. "$ref": "#/components/schemas/MessageNotFoundError"
  2602. },
  2603. {
  2604. "$ref": "#/components/schemas/SessionNotFoundError"
  2605. },
  2606. {
  2607. "$ref": "#/components/schemas/SessionNotFoundError"
  2608. }
  2609. ]
  2610. }
  2611. }
  2612. }
  2613. },
  2614. "409": {
  2615. "description": "SessionBusyError",
  2616. "content": {
  2617. "application/json": {
  2618. "schema": {
  2619. "$ref": "#/components/schemas/SessionBusyError"
  2620. }
  2621. }
  2622. }
  2623. },
  2624. "500": {
  2625. "description": "UnknownError",
  2626. "content": {
  2627. "application/json": {
  2628. "schema": {
  2629. "$ref": "#/components/schemas/UnknownError"
  2630. }
  2631. }
  2632. }
  2633. }
  2634. },
  2635. "description": "Stage or move a reversible session boundary and optionally apply its file changes.",
  2636. "summary": "Stage session revert",
  2637. "requestBody": {
  2638. "content": {
  2639. "application/json": {
  2640. "schema": {
  2641. "type": "object",
  2642. "properties": {
  2643. "messageID": {
  2644. "type": "string",
  2645. "allOf": [
  2646. {
  2647. "pattern": "^msg_"
  2648. }
  2649. ]
  2650. },
  2651. "files": {
  2652. "anyOf": [
  2653. {
  2654. "type": "boolean"
  2655. },
  2656. {
  2657. "type": "null"
  2658. }
  2659. ]
  2660. }
  2661. },
  2662. "required": [
  2663. "messageID"
  2664. ],
  2665. "additionalProperties": false
  2666. }
  2667. }
  2668. },
  2669. "required": true
  2670. }
  2671. }
  2672. },
  2673. "/api/session/{sessionID}/revert/clear": {
  2674. "post": {
  2675. "tags": [
  2676. "session"
  2677. ],
  2678. "operationId": "v2.session.revert.clear",
  2679. "parameters": [
  2680. {
  2681. "name": "sessionID",
  2682. "in": "path",
  2683. "schema": {
  2684. "type": "string",
  2685. "allOf": [
  2686. {
  2687. "pattern": "^ses"
  2688. }
  2689. ]
  2690. },
  2691. "required": true
  2692. }
  2693. ],
  2694. "security": [],
  2695. "responses": {
  2696. "204": {
  2697. "description": "<No Content>"
  2698. },
  2699. "400": {
  2700. "description": "InvalidRequestError",
  2701. "content": {
  2702. "application/json": {
  2703. "schema": {
  2704. "$ref": "#/components/schemas/InvalidRequestError"
  2705. }
  2706. }
  2707. }
  2708. },
  2709. "401": {
  2710. "description": "UnauthorizedError",
  2711. "content": {
  2712. "application/json": {
  2713. "schema": {
  2714. "$ref": "#/components/schemas/UnauthorizedError"
  2715. }
  2716. }
  2717. }
  2718. },
  2719. "404": {
  2720. "description": "SessionNotFoundError",
  2721. "content": {
  2722. "application/json": {
  2723. "schema": {
  2724. "anyOf": [
  2725. {
  2726. "$ref": "#/components/schemas/SessionNotFoundError"
  2727. },
  2728. {
  2729. "$ref": "#/components/schemas/SessionNotFoundError"
  2730. }
  2731. ]
  2732. }
  2733. }
  2734. }
  2735. },
  2736. "409": {
  2737. "description": "SessionBusyError",
  2738. "content": {
  2739. "application/json": {
  2740. "schema": {
  2741. "$ref": "#/components/schemas/SessionBusyError"
  2742. }
  2743. }
  2744. }
  2745. },
  2746. "500": {
  2747. "description": "UnknownError",
  2748. "content": {
  2749. "application/json": {
  2750. "schema": {
  2751. "$ref": "#/components/schemas/UnknownError"
  2752. }
  2753. }
  2754. }
  2755. }
  2756. },
  2757. "summary": "Clear staged revert"
  2758. }
  2759. },
  2760. "/api/session/{sessionID}/revert/commit": {
  2761. "post": {
  2762. "tags": [
  2763. "session"
  2764. ],
  2765. "operationId": "v2.session.revert.commit",
  2766. "parameters": [
  2767. {
  2768. "name": "sessionID",
  2769. "in": "path",
  2770. "schema": {
  2771. "type": "string",
  2772. "allOf": [
  2773. {
  2774. "pattern": "^ses"
  2775. }
  2776. ]
  2777. },
  2778. "required": true
  2779. }
  2780. ],
  2781. "security": [],
  2782. "responses": {
  2783. "204": {
  2784. "description": "<No Content>"
  2785. },
  2786. "400": {
  2787. "description": "InvalidRequestError",
  2788. "content": {
  2789. "application/json": {
  2790. "schema": {
  2791. "$ref": "#/components/schemas/InvalidRequestError"
  2792. }
  2793. }
  2794. }
  2795. },
  2796. "401": {
  2797. "description": "UnauthorizedError",
  2798. "content": {
  2799. "application/json": {
  2800. "schema": {
  2801. "$ref": "#/components/schemas/UnauthorizedError"
  2802. }
  2803. }
  2804. }
  2805. },
  2806. "404": {
  2807. "description": "SessionNotFoundError",
  2808. "content": {
  2809. "application/json": {
  2810. "schema": {
  2811. "anyOf": [
  2812. {
  2813. "$ref": "#/components/schemas/SessionNotFoundError"
  2814. },
  2815. {
  2816. "$ref": "#/components/schemas/SessionNotFoundError"
  2817. }
  2818. ]
  2819. }
  2820. }
  2821. }
  2822. },
  2823. "409": {
  2824. "description": "SessionBusyError",
  2825. "content": {
  2826. "application/json": {
  2827. "schema": {
  2828. "$ref": "#/components/schemas/SessionBusyError"
  2829. }
  2830. }
  2831. }
  2832. }
  2833. },
  2834. "summary": "Commit staged revert"
  2835. }
  2836. },
  2837. "/api/session/{sessionID}/context": {
  2838. "get": {
  2839. "tags": [
  2840. "session"
  2841. ],
  2842. "operationId": "v2.session.context",
  2843. "parameters": [
  2844. {
  2845. "name": "sessionID",
  2846. "in": "path",
  2847. "schema": {
  2848. "type": "string",
  2849. "allOf": [
  2850. {
  2851. "pattern": "^ses"
  2852. }
  2853. ]
  2854. },
  2855. "required": true
  2856. }
  2857. ],
  2858. "security": [],
  2859. "responses": {
  2860. "200": {
  2861. "description": "Success",
  2862. "content": {
  2863. "application/json": {
  2864. "schema": {
  2865. "type": "object",
  2866. "properties": {
  2867. "data": {
  2868. "type": "array",
  2869. "items": {
  2870. "$ref": "#/components/schemas/Session.Message.Info"
  2871. }
  2872. }
  2873. },
  2874. "required": [
  2875. "data"
  2876. ],
  2877. "additionalProperties": false
  2878. }
  2879. }
  2880. }
  2881. },
  2882. "400": {
  2883. "description": "InvalidRequestError",
  2884. "content": {
  2885. "application/json": {
  2886. "schema": {
  2887. "$ref": "#/components/schemas/InvalidRequestError"
  2888. }
  2889. }
  2890. }
  2891. },
  2892. "401": {
  2893. "description": "UnauthorizedError",
  2894. "content": {
  2895. "application/json": {
  2896. "schema": {
  2897. "$ref": "#/components/schemas/UnauthorizedError"
  2898. }
  2899. }
  2900. }
  2901. },
  2902. "404": {
  2903. "description": "SessionNotFoundError",
  2904. "content": {
  2905. "application/json": {
  2906. "schema": {
  2907. "anyOf": [
  2908. {
  2909. "$ref": "#/components/schemas/SessionNotFoundError"
  2910. },
  2911. {
  2912. "$ref": "#/components/schemas/SessionNotFoundError"
  2913. }
  2914. ]
  2915. }
  2916. }
  2917. }
  2918. },
  2919. "500": {
  2920. "description": "UnknownError",
  2921. "content": {
  2922. "application/json": {
  2923. "schema": {
  2924. "$ref": "#/components/schemas/UnknownError"
  2925. }
  2926. }
  2927. }
  2928. }
  2929. },
  2930. "description": "Retrieve the active context messages for a session (all messages after the last compaction).",
  2931. "summary": "Get session context"
  2932. }
  2933. },
  2934. "/api/session/{sessionID}/pending": {
  2935. "get": {
  2936. "tags": [
  2937. "session"
  2938. ],
  2939. "operationId": "v2.session.pending.list",
  2940. "parameters": [
  2941. {
  2942. "name": "sessionID",
  2943. "in": "path",
  2944. "schema": {
  2945. "type": "string",
  2946. "allOf": [
  2947. {
  2948. "pattern": "^ses"
  2949. }
  2950. ]
  2951. },
  2952. "required": true
  2953. }
  2954. ],
  2955. "security": [],
  2956. "responses": {
  2957. "200": {
  2958. "description": "Success",
  2959. "content": {
  2960. "application/json": {
  2961. "schema": {
  2962. "type": "object",
  2963. "properties": {
  2964. "data": {
  2965. "type": "array",
  2966. "items": {
  2967. "$ref": "#/components/schemas/SessionPending.Info"
  2968. }
  2969. }
  2970. },
  2971. "required": [
  2972. "data"
  2973. ],
  2974. "additionalProperties": false
  2975. }
  2976. }
  2977. }
  2978. },
  2979. "400": {
  2980. "description": "InvalidRequestError",
  2981. "content": {
  2982. "application/json": {
  2983. "schema": {
  2984. "$ref": "#/components/schemas/InvalidRequestError"
  2985. }
  2986. }
  2987. }
  2988. },
  2989. "401": {
  2990. "description": "UnauthorizedError",
  2991. "content": {
  2992. "application/json": {
  2993. "schema": {
  2994. "$ref": "#/components/schemas/UnauthorizedError"
  2995. }
  2996. }
  2997. }
  2998. },
  2999. "404": {
  3000. "description": "SessionNotFoundError",
  3001. "content": {
  3002. "application/json": {
  3003. "schema": {
  3004. "anyOf": [
  3005. {
  3006. "$ref": "#/components/schemas/SessionNotFoundError"
  3007. },
  3008. {
  3009. "$ref": "#/components/schemas/SessionNotFoundError"
  3010. }
  3011. ]
  3012. }
  3013. }
  3014. }
  3015. }
  3016. },
  3017. "description": "List durable admitted session work not yet visible in projected history, ordered by admission. Includes unpromoted user and synthetic inputs and unhandled compaction barriers. The runner owns consumption; items disappear once promoted or handled.",
  3018. "summary": "List pending session work"
  3019. }
  3020. },
  3021. "/api/session/{sessionID}/instructions/entries": {
  3022. "get": {
  3023. "tags": [
  3024. "session"
  3025. ],
  3026. "operationId": "v2.session.instructions.entry.list",
  3027. "parameters": [
  3028. {
  3029. "name": "sessionID",
  3030. "in": "path",
  3031. "schema": {
  3032. "type": "string",
  3033. "allOf": [
  3034. {
  3035. "pattern": "^ses"
  3036. }
  3037. ]
  3038. },
  3039. "required": true
  3040. }
  3041. ],
  3042. "security": [],
  3043. "responses": {
  3044. "200": {
  3045. "description": "Success",
  3046. "content": {
  3047. "application/json": {
  3048. "schema": {
  3049. "type": "object",
  3050. "properties": {
  3051. "data": {
  3052. "type": "array",
  3053. "items": {
  3054. "$ref": "#/components/schemas/InstructionEntry.Info"
  3055. }
  3056. }
  3057. },
  3058. "required": [
  3059. "data"
  3060. ],
  3061. "additionalProperties": false
  3062. }
  3063. }
  3064. }
  3065. },
  3066. "400": {
  3067. "description": "InvalidRequestError",
  3068. "content": {
  3069. "application/json": {
  3070. "schema": {
  3071. "$ref": "#/components/schemas/InvalidRequestError"
  3072. }
  3073. }
  3074. }
  3075. },
  3076. "401": {
  3077. "description": "UnauthorizedError",
  3078. "content": {
  3079. "application/json": {
  3080. "schema": {
  3081. "$ref": "#/components/schemas/UnauthorizedError"
  3082. }
  3083. }
  3084. }
  3085. },
  3086. "404": {
  3087. "description": "SessionNotFoundError",
  3088. "content": {
  3089. "application/json": {
  3090. "schema": {
  3091. "anyOf": [
  3092. {
  3093. "$ref": "#/components/schemas/SessionNotFoundError"
  3094. },
  3095. {
  3096. "$ref": "#/components/schemas/SessionNotFoundError"
  3097. }
  3098. ]
  3099. }
  3100. }
  3101. }
  3102. }
  3103. },
  3104. "description": "List API-managed instruction entries attached to the session.",
  3105. "summary": "List instruction entries"
  3106. }
  3107. },
  3108. "/api/session/{sessionID}/instructions/entries/{key}": {
  3109. "put": {
  3110. "tags": [
  3111. "session"
  3112. ],
  3113. "operationId": "v2.session.instructions.entry.put",
  3114. "parameters": [
  3115. {
  3116. "name": "sessionID",
  3117. "in": "path",
  3118. "schema": {
  3119. "type": "string",
  3120. "allOf": [
  3121. {
  3122. "pattern": "^ses"
  3123. }
  3124. ]
  3125. },
  3126. "required": true
  3127. },
  3128. {
  3129. "name": "key",
  3130. "in": "path",
  3131. "schema": {
  3132. "$ref": "#/components/schemas/InstructionEntry.Key"
  3133. },
  3134. "required": true
  3135. }
  3136. ],
  3137. "security": [],
  3138. "responses": {
  3139. "204": {
  3140. "description": "<No Content>"
  3141. },
  3142. "400": {
  3143. "description": "InvalidRequestError",
  3144. "content": {
  3145. "application/json": {
  3146. "schema": {
  3147. "$ref": "#/components/schemas/InvalidRequestError"
  3148. }
  3149. }
  3150. }
  3151. },
  3152. "401": {
  3153. "description": "UnauthorizedError",
  3154. "content": {
  3155. "application/json": {
  3156. "schema": {
  3157. "$ref": "#/components/schemas/UnauthorizedError"
  3158. }
  3159. }
  3160. }
  3161. },
  3162. "404": {
  3163. "description": "SessionNotFoundError",
  3164. "content": {
  3165. "application/json": {
  3166. "schema": {
  3167. "anyOf": [
  3168. {
  3169. "$ref": "#/components/schemas/SessionNotFoundError"
  3170. },
  3171. {
  3172. "$ref": "#/components/schemas/SessionNotFoundError"
  3173. }
  3174. ]
  3175. }
  3176. }
  3177. }
  3178. },
  3179. "413": {
  3180. "description": "InstructionEntryValueTooLargeError",
  3181. "content": {
  3182. "application/json": {
  3183. "schema": {
  3184. "$ref": "#/components/schemas/InstructionEntryValueTooLargeError"
  3185. }
  3186. }
  3187. }
  3188. }
  3189. },
  3190. "description": "Attach or replace one durable instruction entry. Changes announce as updates at the next step boundary.",
  3191. "summary": "Put instruction entry",
  3192. "requestBody": {
  3193. "content": {
  3194. "application/json": {
  3195. "schema": {
  3196. "type": "object",
  3197. "properties": {
  3198. "value": {}
  3199. },
  3200. "required": [
  3201. "value"
  3202. ],
  3203. "additionalProperties": false
  3204. }
  3205. }
  3206. },
  3207. "required": true
  3208. }
  3209. },
  3210. "delete": {
  3211. "tags": [
  3212. "session"
  3213. ],
  3214. "operationId": "v2.session.instructions.entry.remove",
  3215. "parameters": [
  3216. {
  3217. "name": "sessionID",
  3218. "in": "path",
  3219. "schema": {
  3220. "type": "string",
  3221. "allOf": [
  3222. {
  3223. "pattern": "^ses"
  3224. }
  3225. ]
  3226. },
  3227. "required": true
  3228. },
  3229. {
  3230. "name": "key",
  3231. "in": "path",
  3232. "schema": {
  3233. "$ref": "#/components/schemas/InstructionEntry.Key"
  3234. },
  3235. "required": true
  3236. }
  3237. ],
  3238. "security": [],
  3239. "responses": {
  3240. "204": {
  3241. "description": "<No Content>"
  3242. },
  3243. "400": {
  3244. "description": "InvalidRequestError",
  3245. "content": {
  3246. "application/json": {
  3247. "schema": {
  3248. "$ref": "#/components/schemas/InvalidRequestError"
  3249. }
  3250. }
  3251. }
  3252. },
  3253. "401": {
  3254. "description": "UnauthorizedError",
  3255. "content": {
  3256. "application/json": {
  3257. "schema": {
  3258. "$ref": "#/components/schemas/UnauthorizedError"
  3259. }
  3260. }
  3261. }
  3262. },
  3263. "404": {
  3264. "description": "SessionNotFoundError",
  3265. "content": {
  3266. "application/json": {
  3267. "schema": {
  3268. "anyOf": [
  3269. {
  3270. "$ref": "#/components/schemas/SessionNotFoundError"
  3271. },
  3272. {
  3273. "$ref": "#/components/schemas/SessionNotFoundError"
  3274. }
  3275. ]
  3276. }
  3277. }
  3278. }
  3279. }
  3280. },
  3281. "description": "Remove one instruction entry; the removal is announced to the model at the next step boundary.",
  3282. "summary": "Remove instruction entry"
  3283. }
  3284. },
  3285. "/api/session/{sessionID}/generate": {
  3286. "post": {
  3287. "tags": [
  3288. "session"
  3289. ],
  3290. "operationId": "v2.session.generate",
  3291. "parameters": [
  3292. {
  3293. "name": "sessionID",
  3294. "in": "path",
  3295. "schema": {
  3296. "type": "string",
  3297. "allOf": [
  3298. {
  3299. "pattern": "^ses"
  3300. }
  3301. ]
  3302. },
  3303. "required": true
  3304. }
  3305. ],
  3306. "security": [],
  3307. "responses": {
  3308. "200": {
  3309. "description": "SessionGenerateResponse",
  3310. "content": {
  3311. "application/json": {
  3312. "schema": {
  3313. "$ref": "#/components/schemas/SessionGenerateResponse"
  3314. }
  3315. }
  3316. }
  3317. },
  3318. "400": {
  3319. "description": "InvalidRequestError",
  3320. "content": {
  3321. "application/json": {
  3322. "schema": {
  3323. "$ref": "#/components/schemas/InvalidRequestError"
  3324. }
  3325. }
  3326. }
  3327. },
  3328. "401": {
  3329. "description": "UnauthorizedError",
  3330. "content": {
  3331. "application/json": {
  3332. "schema": {
  3333. "$ref": "#/components/schemas/UnauthorizedError"
  3334. }
  3335. }
  3336. }
  3337. },
  3338. "404": {
  3339. "description": "SessionNotFoundError",
  3340. "content": {
  3341. "application/json": {
  3342. "schema": {
  3343. "anyOf": [
  3344. {
  3345. "$ref": "#/components/schemas/SessionNotFoundError"
  3346. },
  3347. {
  3348. "$ref": "#/components/schemas/SessionNotFoundError"
  3349. }
  3350. ]
  3351. }
  3352. }
  3353. }
  3354. },
  3355. "503": {
  3356. "description": "ServiceUnavailableError",
  3357. "content": {
  3358. "application/json": {
  3359. "schema": {
  3360. "$ref": "#/components/schemas/ServiceUnavailableError"
  3361. }
  3362. }
  3363. }
  3364. }
  3365. },
  3366. "description": "Generate transient text from the current session context without mutating session history.",
  3367. "summary": "Generate text from session context",
  3368. "requestBody": {
  3369. "content": {
  3370. "application/json": {
  3371. "schema": {
  3372. "type": "object",
  3373. "properties": {
  3374. "prompt": {
  3375. "type": "string"
  3376. }
  3377. },
  3378. "required": [
  3379. "prompt"
  3380. ],
  3381. "additionalProperties": false
  3382. }
  3383. }
  3384. },
  3385. "required": true
  3386. }
  3387. }
  3388. },
  3389. "/api/experimental/session/{sessionID}/log": {
  3390. "get": {
  3391. "tags": [
  3392. "session"
  3393. ],
  3394. "operationId": "v2.session.log",
  3395. "parameters": [
  3396. {
  3397. "name": "sessionID",
  3398. "in": "path",
  3399. "schema": {
  3400. "type": "string",
  3401. "allOf": [
  3402. {
  3403. "pattern": "^ses"
  3404. }
  3405. ]
  3406. },
  3407. "required": true
  3408. },
  3409. {
  3410. "name": "after",
  3411. "in": "query",
  3412. "schema": {
  3413. "anyOf": [
  3414. {
  3415. "type": "string"
  3416. },
  3417. {
  3418. "type": "null"
  3419. }
  3420. ]
  3421. },
  3422. "required": false
  3423. },
  3424. {
  3425. "name": "follow",
  3426. "in": "query",
  3427. "schema": {
  3428. "anyOf": [
  3429. {
  3430. "type": "string",
  3431. "enum": [
  3432. "true",
  3433. "false"
  3434. ]
  3435. },
  3436. {
  3437. "type": "null"
  3438. }
  3439. ]
  3440. },
  3441. "required": false
  3442. }
  3443. ],
  3444. "security": [],
  3445. "responses": {
  3446. "200": {
  3447. "description": "Success",
  3448. "content": {
  3449. "text/event-stream": {
  3450. "schema": {
  3451. "type": "object",
  3452. "properties": {
  3453. "id": {
  3454. "anyOf": [
  3455. {
  3456. "type": "string"
  3457. },
  3458. {
  3459. "type": "null"
  3460. }
  3461. ]
  3462. },
  3463. "event": {
  3464. "type": "string"
  3465. },
  3466. "data": {
  3467. "$ref": "#/components/schemas/SessionLogItemJsonString"
  3468. }
  3469. },
  3470. "required": [
  3471. "id",
  3472. "event",
  3473. "data"
  3474. ],
  3475. "additionalProperties": false
  3476. },
  3477. "x-effect-stream": {
  3478. "encoding": "sse",
  3479. "causeSchema": {
  3480. "type": "array",
  3481. "items": {
  3482. "anyOf": [
  3483. {
  3484. "type": "object",
  3485. "properties": {
  3486. "_tag": {
  3487. "type": "string",
  3488. "enum": [
  3489. "Fail"
  3490. ]
  3491. },
  3492. "error": {
  3493. "not": {}
  3494. }
  3495. },
  3496. "required": [
  3497. "_tag",
  3498. "error"
  3499. ],
  3500. "additionalProperties": false
  3501. },
  3502. {
  3503. "type": "object",
  3504. "properties": {
  3505. "_tag": {
  3506. "type": "string",
  3507. "enum": [
  3508. "Die"
  3509. ]
  3510. },
  3511. "defect": {}
  3512. },
  3513. "required": [
  3514. "_tag",
  3515. "defect"
  3516. ],
  3517. "additionalProperties": false
  3518. },
  3519. {
  3520. "type": "object",
  3521. "properties": {
  3522. "_tag": {
  3523. "type": "string",
  3524. "enum": [
  3525. "Interrupt"
  3526. ]
  3527. },
  3528. "fiberId": {
  3529. "anyOf": [
  3530. {
  3531. "type": "number"
  3532. },
  3533. {
  3534. "type": "null"
  3535. }
  3536. ]
  3537. }
  3538. },
  3539. "required": [
  3540. "_tag",
  3541. "fiberId"
  3542. ],
  3543. "additionalProperties": false
  3544. }
  3545. ]
  3546. }
  3547. },
  3548. "errorSchema": {
  3549. "not": {}
  3550. },
  3551. "failureEvent": "effect/httpapi/stream/failure"
  3552. }
  3553. }
  3554. }
  3555. },
  3556. "400": {
  3557. "description": "InvalidRequestError",
  3558. "content": {
  3559. "application/json": {
  3560. "schema": {
  3561. "$ref": "#/components/schemas/InvalidRequestError"
  3562. }
  3563. }
  3564. }
  3565. },
  3566. "401": {
  3567. "description": "UnauthorizedError",
  3568. "content": {
  3569. "application/json": {
  3570. "schema": {
  3571. "$ref": "#/components/schemas/UnauthorizedError"
  3572. }
  3573. }
  3574. }
  3575. },
  3576. "404": {
  3577. "description": "SessionNotFoundError",
  3578. "content": {
  3579. "application/json": {
  3580. "schema": {
  3581. "anyOf": [
  3582. {
  3583. "$ref": "#/components/schemas/SessionNotFoundError"
  3584. },
  3585. {
  3586. "$ref": "#/components/schemas/SessionNotFoundError"
  3587. }
  3588. ]
  3589. }
  3590. }
  3591. }
  3592. }
  3593. },
  3594. "description": "Experimental durable session event log. Reads events after an exclusive aggregate sequence and continues with live events when follow=true.",
  3595. "summary": "Read the session log"
  3596. }
  3597. },
  3598. "/api/session/{sessionID}/interrupt": {
  3599. "post": {
  3600. "tags": [
  3601. "session"
  3602. ],
  3603. "operationId": "v2.session.interrupt",
  3604. "parameters": [
  3605. {
  3606. "name": "sessionID",
  3607. "in": "path",
  3608. "schema": {
  3609. "type": "string",
  3610. "allOf": [
  3611. {
  3612. "pattern": "^ses"
  3613. }
  3614. ]
  3615. },
  3616. "required": true
  3617. }
  3618. ],
  3619. "security": [],
  3620. "responses": {
  3621. "204": {
  3622. "description": "<No Content>"
  3623. },
  3624. "400": {
  3625. "description": "InvalidRequestError",
  3626. "content": {
  3627. "application/json": {
  3628. "schema": {
  3629. "$ref": "#/components/schemas/InvalidRequestError"
  3630. }
  3631. }
  3632. }
  3633. },
  3634. "401": {
  3635. "description": "UnauthorizedError",
  3636. "content": {
  3637. "application/json": {
  3638. "schema": {
  3639. "$ref": "#/components/schemas/UnauthorizedError"
  3640. }
  3641. }
  3642. }
  3643. },
  3644. "404": {
  3645. "description": "SessionNotFoundError",
  3646. "content": {
  3647. "application/json": {
  3648. "schema": {
  3649. "anyOf": [
  3650. {
  3651. "$ref": "#/components/schemas/SessionNotFoundError"
  3652. },
  3653. {
  3654. "$ref": "#/components/schemas/SessionNotFoundError"
  3655. }
  3656. ]
  3657. }
  3658. }
  3659. }
  3660. }
  3661. },
  3662. "description": "Interrupt active execution owned by this OpenCode process. Idle interruption is a no-op.",
  3663. "summary": "Interrupt session execution"
  3664. }
  3665. },
  3666. "/api/session/{sessionID}/background": {
  3667. "post": {
  3668. "tags": [
  3669. "session"
  3670. ],
  3671. "operationId": "v2.session.background",
  3672. "parameters": [
  3673. {
  3674. "name": "sessionID",
  3675. "in": "path",
  3676. "schema": {
  3677. "type": "string",
  3678. "allOf": [
  3679. {
  3680. "pattern": "^ses"
  3681. }
  3682. ]
  3683. },
  3684. "required": true
  3685. }
  3686. ],
  3687. "security": [],
  3688. "responses": {
  3689. "204": {
  3690. "description": "<No Content>"
  3691. },
  3692. "400": {
  3693. "description": "InvalidRequestError",
  3694. "content": {
  3695. "application/json": {
  3696. "schema": {
  3697. "$ref": "#/components/schemas/InvalidRequestError"
  3698. }
  3699. }
  3700. }
  3701. },
  3702. "401": {
  3703. "description": "UnauthorizedError",
  3704. "content": {
  3705. "application/json": {
  3706. "schema": {
  3707. "$ref": "#/components/schemas/UnauthorizedError"
  3708. }
  3709. }
  3710. }
  3711. },
  3712. "404": {
  3713. "description": "SessionNotFoundError",
  3714. "content": {
  3715. "application/json": {
  3716. "schema": {
  3717. "anyOf": [
  3718. {
  3719. "$ref": "#/components/schemas/SessionNotFoundError"
  3720. },
  3721. {
  3722. "$ref": "#/components/schemas/SessionNotFoundError"
  3723. }
  3724. ]
  3725. }
  3726. }
  3727. }
  3728. }
  3729. },
  3730. "description": "Move active foreground backgroundable tools for this session into background observation. Idle requests are a no-op.",
  3731. "summary": "Background blocking session tools"
  3732. }
  3733. },
  3734. "/api/session/{sessionID}/message/{messageID}": {
  3735. "get": {
  3736. "tags": [
  3737. "session"
  3738. ],
  3739. "operationId": "v2.session.message",
  3740. "parameters": [
  3741. {
  3742. "name": "sessionID",
  3743. "in": "path",
  3744. "schema": {
  3745. "type": "string",
  3746. "allOf": [
  3747. {
  3748. "pattern": "^ses"
  3749. }
  3750. ]
  3751. },
  3752. "required": true
  3753. },
  3754. {
  3755. "name": "messageID",
  3756. "in": "path",
  3757. "schema": {
  3758. "type": "string",
  3759. "allOf": [
  3760. {
  3761. "pattern": "^msg_"
  3762. }
  3763. ]
  3764. },
  3765. "required": true
  3766. }
  3767. ],
  3768. "security": [],
  3769. "responses": {
  3770. "200": {
  3771. "description": "Success",
  3772. "content": {
  3773. "application/json": {
  3774. "schema": {
  3775. "type": "object",
  3776. "properties": {
  3777. "data": {
  3778. "$ref": "#/components/schemas/Session.Message.Info"
  3779. }
  3780. },
  3781. "required": [
  3782. "data"
  3783. ],
  3784. "additionalProperties": false
  3785. }
  3786. }
  3787. }
  3788. },
  3789. "400": {
  3790. "description": "InvalidRequestError",
  3791. "content": {
  3792. "application/json": {
  3793. "schema": {
  3794. "$ref": "#/components/schemas/InvalidRequestError"
  3795. }
  3796. }
  3797. }
  3798. },
  3799. "401": {
  3800. "description": "UnauthorizedError",
  3801. "content": {
  3802. "application/json": {
  3803. "schema": {
  3804. "$ref": "#/components/schemas/UnauthorizedError"
  3805. }
  3806. }
  3807. }
  3808. },
  3809. "404": {
  3810. "description": "SessionNotFoundError | MessageNotFoundError",
  3811. "content": {
  3812. "application/json": {
  3813. "schema": {
  3814. "anyOf": [
  3815. {
  3816. "$ref": "#/components/schemas/MessageNotFoundError"
  3817. },
  3818. {
  3819. "$ref": "#/components/schemas/SessionNotFoundError"
  3820. },
  3821. {
  3822. "$ref": "#/components/schemas/SessionNotFoundError"
  3823. }
  3824. ]
  3825. }
  3826. }
  3827. }
  3828. }
  3829. },
  3830. "description": "Retrieve one projected message owned by the Session.",
  3831. "summary": "Get session message"
  3832. }
  3833. },
  3834. "/api/session/{sessionID}/message": {
  3835. "get": {
  3836. "tags": [
  3837. "session"
  3838. ],
  3839. "operationId": "v2.message.list",
  3840. "parameters": [
  3841. {
  3842. "name": "sessionID",
  3843. "in": "path",
  3844. "schema": {
  3845. "type": "string",
  3846. "allOf": [
  3847. {
  3848. "pattern": "^ses"
  3849. }
  3850. ]
  3851. },
  3852. "required": true
  3853. },
  3854. {
  3855. "name": "limit",
  3856. "in": "query",
  3857. "schema": {
  3858. "anyOf": [
  3859. {
  3860. "type": "string"
  3861. },
  3862. {
  3863. "type": "null"
  3864. }
  3865. ],
  3866. "description": "Maximum number of messages to return. When omitted, the endpoint returns its default page size."
  3867. },
  3868. "required": false
  3869. },
  3870. {
  3871. "name": "order",
  3872. "in": "query",
  3873. "schema": {
  3874. "anyOf": [
  3875. {
  3876. "type": "string",
  3877. "enum": [
  3878. "asc",
  3879. "desc"
  3880. ]
  3881. },
  3882. {
  3883. "type": "null"
  3884. }
  3885. ],
  3886. "description": "Message order for the first page. Use desc for newest first or asc for oldest first."
  3887. },
  3888. "required": false
  3889. },
  3890. {
  3891. "name": "cursor",
  3892. "in": "query",
  3893. "schema": {
  3894. "anyOf": [
  3895. {
  3896. "type": "string",
  3897. "description": "Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response. Do not combine with order."
  3898. },
  3899. {
  3900. "type": "null"
  3901. }
  3902. ]
  3903. },
  3904. "required": false
  3905. }
  3906. ],
  3907. "security": [],
  3908. "responses": {
  3909. "200": {
  3910. "description": "SessionMessagesResponse",
  3911. "content": {
  3912. "application/json": {
  3913. "schema": {
  3914. "$ref": "#/components/schemas/SessionMessagesResponse"
  3915. }
  3916. }
  3917. }
  3918. },
  3919. "400": {
  3920. "description": "InvalidCursorError | InvalidRequestError",
  3921. "content": {
  3922. "application/json": {
  3923. "schema": {
  3924. "anyOf": [
  3925. {
  3926. "$ref": "#/components/schemas/InvalidCursorError"
  3927. },
  3928. {
  3929. "$ref": "#/components/schemas/InvalidRequestError"
  3930. }
  3931. ]
  3932. }
  3933. }
  3934. }
  3935. },
  3936. "401": {
  3937. "description": "UnauthorizedError",
  3938. "content": {
  3939. "application/json": {
  3940. "schema": {
  3941. "$ref": "#/components/schemas/UnauthorizedError"
  3942. }
  3943. }
  3944. }
  3945. },
  3946. "404": {
  3947. "description": "SessionNotFoundError",
  3948. "content": {
  3949. "application/json": {
  3950. "schema": {
  3951. "anyOf": [
  3952. {
  3953. "$ref": "#/components/schemas/SessionNotFoundError"
  3954. },
  3955. {
  3956. "$ref": "#/components/schemas/SessionNotFoundError"
  3957. }
  3958. ]
  3959. }
  3960. }
  3961. }
  3962. },
  3963. "500": {
  3964. "description": "UnknownError",
  3965. "content": {
  3966. "application/json": {
  3967. "schema": {
  3968. "$ref": "#/components/schemas/UnknownError"
  3969. }
  3970. }
  3971. }
  3972. }
  3973. },
  3974. "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.",
  3975. "summary": "Get session messages"
  3976. }
  3977. },
  3978. "/api/model": {
  3979. "get": {
  3980. "tags": [
  3981. "model"
  3982. ],
  3983. "operationId": "v2.model.list",
  3984. "parameters": [
  3985. {
  3986. "name": "location",
  3987. "in": "query",
  3988. "schema": {
  3989. "anyOf": [
  3990. {
  3991. "type": "object",
  3992. "properties": {
  3993. "directory": {
  3994. "anyOf": [
  3995. {
  3996. "type": "string"
  3997. },
  3998. {
  3999. "type": "null"
  4000. }
  4001. ]
  4002. },
  4003. "workspace": {
  4004. "anyOf": [
  4005. {
  4006. "type": "string"
  4007. },
  4008. {
  4009. "type": "null"
  4010. }
  4011. ]
  4012. }
  4013. },
  4014. "additionalProperties": false
  4015. },
  4016. {
  4017. "type": "null"
  4018. }
  4019. ]
  4020. },
  4021. "required": false,
  4022. "style": "deepObject",
  4023. "explode": true
  4024. }
  4025. ],
  4026. "security": [],
  4027. "responses": {
  4028. "200": {
  4029. "description": "Success",
  4030. "content": {
  4031. "application/json": {
  4032. "schema": {
  4033. "type": "object",
  4034. "properties": {
  4035. "location": {
  4036. "$ref": "#/components/schemas/Location.Info"
  4037. },
  4038. "data": {
  4039. "type": "array",
  4040. "items": {
  4041. "$ref": "#/components/schemas/Model.Info"
  4042. }
  4043. }
  4044. },
  4045. "required": [
  4046. "location",
  4047. "data"
  4048. ],
  4049. "additionalProperties": false
  4050. }
  4051. }
  4052. }
  4053. },
  4054. "400": {
  4055. "description": "InvalidRequestError",
  4056. "content": {
  4057. "application/json": {
  4058. "schema": {
  4059. "$ref": "#/components/schemas/InvalidRequestError"
  4060. }
  4061. }
  4062. }
  4063. },
  4064. "401": {
  4065. "description": "UnauthorizedError",
  4066. "content": {
  4067. "application/json": {
  4068. "schema": {
  4069. "$ref": "#/components/schemas/UnauthorizedError"
  4070. }
  4071. }
  4072. }
  4073. },
  4074. "503": {
  4075. "description": "ServiceUnavailableError",
  4076. "content": {
  4077. "application/json": {
  4078. "schema": {
  4079. "$ref": "#/components/schemas/ServiceUnavailableError"
  4080. }
  4081. }
  4082. }
  4083. }
  4084. },
  4085. "description": "Retrieve the current snapshot of available models ordered by release date. The snapshot may precede initial plugin settlement.",
  4086. "summary": "List models"
  4087. }
  4088. },
  4089. "/api/model/default": {
  4090. "get": {
  4091. "tags": [
  4092. "model"
  4093. ],
  4094. "operationId": "v2.model.default",
  4095. "parameters": [
  4096. {
  4097. "name": "location",
  4098. "in": "query",
  4099. "schema": {
  4100. "anyOf": [
  4101. {
  4102. "type": "object",
  4103. "properties": {
  4104. "directory": {
  4105. "anyOf": [
  4106. {
  4107. "type": "string"
  4108. },
  4109. {
  4110. "type": "null"
  4111. }
  4112. ]
  4113. },
  4114. "workspace": {
  4115. "anyOf": [
  4116. {
  4117. "type": "string"
  4118. },
  4119. {
  4120. "type": "null"
  4121. }
  4122. ]
  4123. }
  4124. },
  4125. "additionalProperties": false
  4126. },
  4127. {
  4128. "type": "null"
  4129. }
  4130. ]
  4131. },
  4132. "required": false,
  4133. "style": "deepObject",
  4134. "explode": true
  4135. }
  4136. ],
  4137. "security": [],
  4138. "responses": {
  4139. "200": {
  4140. "description": "Success",
  4141. "content": {
  4142. "application/json": {
  4143. "schema": {
  4144. "type": "object",
  4145. "properties": {
  4146. "location": {
  4147. "$ref": "#/components/schemas/Location.Info"
  4148. },
  4149. "data": {
  4150. "anyOf": [
  4151. {
  4152. "$ref": "#/components/schemas/Model.Info"
  4153. },
  4154. {
  4155. "type": "null"
  4156. }
  4157. ]
  4158. }
  4159. },
  4160. "required": [
  4161. "location",
  4162. "data"
  4163. ],
  4164. "additionalProperties": false
  4165. }
  4166. }
  4167. }
  4168. },
  4169. "400": {
  4170. "description": "InvalidRequestError",
  4171. "content": {
  4172. "application/json": {
  4173. "schema": {
  4174. "$ref": "#/components/schemas/InvalidRequestError"
  4175. }
  4176. }
  4177. }
  4178. },
  4179. "401": {
  4180. "description": "UnauthorizedError",
  4181. "content": {
  4182. "application/json": {
  4183. "schema": {
  4184. "$ref": "#/components/schemas/UnauthorizedError"
  4185. }
  4186. }
  4187. }
  4188. },
  4189. "503": {
  4190. "description": "ServiceUnavailableError",
  4191. "content": {
  4192. "application/json": {
  4193. "schema": {
  4194. "$ref": "#/components/schemas/ServiceUnavailableError"
  4195. }
  4196. }
  4197. }
  4198. }
  4199. },
  4200. "description": "Retrieve the model used when a session has no explicit model selection.",
  4201. "summary": "Get default model"
  4202. }
  4203. },
  4204. "/api/generate": {
  4205. "post": {
  4206. "tags": [
  4207. "generate"
  4208. ],
  4209. "operationId": "v2.generate.text",
  4210. "parameters": [
  4211. {
  4212. "name": "location",
  4213. "in": "query",
  4214. "schema": {
  4215. "anyOf": [
  4216. {
  4217. "type": "object",
  4218. "properties": {
  4219. "directory": {
  4220. "anyOf": [
  4221. {
  4222. "type": "string"
  4223. },
  4224. {
  4225. "type": "null"
  4226. }
  4227. ]
  4228. },
  4229. "workspace": {
  4230. "anyOf": [
  4231. {
  4232. "type": "string"
  4233. },
  4234. {
  4235. "type": "null"
  4236. }
  4237. ]
  4238. }
  4239. },
  4240. "additionalProperties": false
  4241. },
  4242. {
  4243. "type": "null"
  4244. }
  4245. ]
  4246. },
  4247. "required": false,
  4248. "style": "deepObject",
  4249. "explode": true
  4250. }
  4251. ],
  4252. "security": [],
  4253. "responses": {
  4254. "200": {
  4255. "description": "GenerateTextResponse",
  4256. "content": {
  4257. "application/json": {
  4258. "schema": {
  4259. "$ref": "#/components/schemas/GenerateTextResponse"
  4260. }
  4261. }
  4262. }
  4263. },
  4264. "400": {
  4265. "description": "InvalidRequestError",
  4266. "content": {
  4267. "application/json": {
  4268. "schema": {
  4269. "anyOf": [
  4270. {
  4271. "$ref": "#/components/schemas/InvalidRequestError1"
  4272. },
  4273. {
  4274. "$ref": "#/components/schemas/InvalidRequestError"
  4275. }
  4276. ]
  4277. }
  4278. }
  4279. }
  4280. },
  4281. "401": {
  4282. "description": "UnauthorizedError",
  4283. "content": {
  4284. "application/json": {
  4285. "schema": {
  4286. "$ref": "#/components/schemas/UnauthorizedError"
  4287. }
  4288. }
  4289. }
  4290. },
  4291. "503": {
  4292. "description": "ServiceUnavailableError",
  4293. "content": {
  4294. "application/json": {
  4295. "schema": {
  4296. "$ref": "#/components/schemas/ServiceUnavailableError"
  4297. }
  4298. }
  4299. }
  4300. }
  4301. },
  4302. "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.",
  4303. "summary": "Generate text",
  4304. "requestBody": {
  4305. "content": {
  4306. "application/json": {
  4307. "schema": {
  4308. "type": "object",
  4309. "properties": {
  4310. "prompt": {
  4311. "type": "string"
  4312. },
  4313. "model": {
  4314. "anyOf": [
  4315. {
  4316. "$ref": "#/components/schemas/Model.Ref"
  4317. },
  4318. {
  4319. "type": "null"
  4320. }
  4321. ]
  4322. }
  4323. },
  4324. "required": [
  4325. "prompt"
  4326. ],
  4327. "additionalProperties": false
  4328. }
  4329. }
  4330. },
  4331. "required": true
  4332. }
  4333. }
  4334. },
  4335. "/api/provider": {
  4336. "get": {
  4337. "tags": [
  4338. "provider"
  4339. ],
  4340. "operationId": "v2.provider.list",
  4341. "parameters": [
  4342. {
  4343. "name": "location",
  4344. "in": "query",
  4345. "schema": {
  4346. "anyOf": [
  4347. {
  4348. "type": "object",
  4349. "properties": {
  4350. "directory": {
  4351. "anyOf": [
  4352. {
  4353. "type": "string"
  4354. },
  4355. {
  4356. "type": "null"
  4357. }
  4358. ]
  4359. },
  4360. "workspace": {
  4361. "anyOf": [
  4362. {
  4363. "type": "string"
  4364. },
  4365. {
  4366. "type": "null"
  4367. }
  4368. ]
  4369. }
  4370. },
  4371. "additionalProperties": false
  4372. },
  4373. {
  4374. "type": "null"
  4375. }
  4376. ]
  4377. },
  4378. "required": false,
  4379. "style": "deepObject",
  4380. "explode": true
  4381. }
  4382. ],
  4383. "security": [],
  4384. "responses": {
  4385. "200": {
  4386. "description": "Success",
  4387. "content": {
  4388. "application/json": {
  4389. "schema": {
  4390. "type": "object",
  4391. "properties": {
  4392. "location": {
  4393. "$ref": "#/components/schemas/Location.Info"
  4394. },
  4395. "data": {
  4396. "type": "array",
  4397. "items": {
  4398. "$ref": "#/components/schemas/Provider.Info"
  4399. }
  4400. }
  4401. },
  4402. "required": [
  4403. "location",
  4404. "data"
  4405. ],
  4406. "additionalProperties": false
  4407. }
  4408. }
  4409. }
  4410. },
  4411. "400": {
  4412. "description": "InvalidRequestError",
  4413. "content": {
  4414. "application/json": {
  4415. "schema": {
  4416. "$ref": "#/components/schemas/InvalidRequestError"
  4417. }
  4418. }
  4419. }
  4420. },
  4421. "401": {
  4422. "description": "UnauthorizedError",
  4423. "content": {
  4424. "application/json": {
  4425. "schema": {
  4426. "$ref": "#/components/schemas/UnauthorizedError"
  4427. }
  4428. }
  4429. }
  4430. },
  4431. "503": {
  4432. "description": "ServiceUnavailableError",
  4433. "content": {
  4434. "application/json": {
  4435. "schema": {
  4436. "$ref": "#/components/schemas/ServiceUnavailableError"
  4437. }
  4438. }
  4439. }
  4440. }
  4441. },
  4442. "description": "Retrieve active AI providers so clients can show provider availability and configuration.",
  4443. "summary": "List providers"
  4444. }
  4445. },
  4446. "/api/provider/{providerID}": {
  4447. "get": {
  4448. "tags": [
  4449. "provider"
  4450. ],
  4451. "operationId": "v2.provider.get",
  4452. "parameters": [
  4453. {
  4454. "name": "providerID",
  4455. "in": "path",
  4456. "schema": {
  4457. "type": "string"
  4458. },
  4459. "required": true
  4460. },
  4461. {
  4462. "name": "location",
  4463. "in": "query",
  4464. "schema": {
  4465. "anyOf": [
  4466. {
  4467. "type": "object",
  4468. "properties": {
  4469. "directory": {
  4470. "anyOf": [
  4471. {
  4472. "type": "string"
  4473. },
  4474. {
  4475. "type": "null"
  4476. }
  4477. ]
  4478. },
  4479. "workspace": {
  4480. "anyOf": [
  4481. {
  4482. "type": "string"
  4483. },
  4484. {
  4485. "type": "null"
  4486. }
  4487. ]
  4488. }
  4489. },
  4490. "additionalProperties": false
  4491. },
  4492. {
  4493. "type": "null"
  4494. }
  4495. ]
  4496. },
  4497. "required": false,
  4498. "style": "deepObject",
  4499. "explode": true
  4500. }
  4501. ],
  4502. "security": [],
  4503. "responses": {
  4504. "200": {
  4505. "description": "Success",
  4506. "content": {
  4507. "application/json": {
  4508. "schema": {
  4509. "type": "object",
  4510. "properties": {
  4511. "location": {
  4512. "$ref": "#/components/schemas/Location.Info"
  4513. },
  4514. "data": {
  4515. "$ref": "#/components/schemas/Provider.Info"
  4516. }
  4517. },
  4518. "required": [
  4519. "location",
  4520. "data"
  4521. ],
  4522. "additionalProperties": false
  4523. }
  4524. }
  4525. }
  4526. },
  4527. "400": {
  4528. "description": "InvalidRequestError",
  4529. "content": {
  4530. "application/json": {
  4531. "schema": {
  4532. "$ref": "#/components/schemas/InvalidRequestError"
  4533. }
  4534. }
  4535. }
  4536. },
  4537. "401": {
  4538. "description": "UnauthorizedError",
  4539. "content": {
  4540. "application/json": {
  4541. "schema": {
  4542. "$ref": "#/components/schemas/UnauthorizedError"
  4543. }
  4544. }
  4545. }
  4546. },
  4547. "404": {
  4548. "description": "ProviderNotFoundError",
  4549. "content": {
  4550. "application/json": {
  4551. "schema": {
  4552. "$ref": "#/components/schemas/ProviderNotFoundError"
  4553. }
  4554. }
  4555. }
  4556. },
  4557. "503": {
  4558. "description": "ServiceUnavailableError",
  4559. "content": {
  4560. "application/json": {
  4561. "schema": {
  4562. "$ref": "#/components/schemas/ServiceUnavailableError"
  4563. }
  4564. }
  4565. }
  4566. }
  4567. },
  4568. "description": "Retrieve a single AI provider so clients can inspect its availability and endpoint settings.",
  4569. "summary": "Get provider"
  4570. }
  4571. },
  4572. "/api/integration": {
  4573. "get": {
  4574. "tags": [
  4575. "integration"
  4576. ],
  4577. "operationId": "v2.integration.list",
  4578. "parameters": [
  4579. {
  4580. "name": "location",
  4581. "in": "query",
  4582. "schema": {
  4583. "anyOf": [
  4584. {
  4585. "type": "object",
  4586. "properties": {
  4587. "directory": {
  4588. "anyOf": [
  4589. {
  4590. "type": "string"
  4591. },
  4592. {
  4593. "type": "null"
  4594. }
  4595. ]
  4596. },
  4597. "workspace": {
  4598. "anyOf": [
  4599. {
  4600. "type": "string"
  4601. },
  4602. {
  4603. "type": "null"
  4604. }
  4605. ]
  4606. }
  4607. },
  4608. "additionalProperties": false
  4609. },
  4610. {
  4611. "type": "null"
  4612. }
  4613. ]
  4614. },
  4615. "required": false,
  4616. "style": "deepObject",
  4617. "explode": true
  4618. }
  4619. ],
  4620. "security": [],
  4621. "responses": {
  4622. "200": {
  4623. "description": "Success",
  4624. "content": {
  4625. "application/json": {
  4626. "schema": {
  4627. "type": "object",
  4628. "properties": {
  4629. "location": {
  4630. "$ref": "#/components/schemas/Location.Info"
  4631. },
  4632. "data": {
  4633. "type": "array",
  4634. "items": {
  4635. "$ref": "#/components/schemas/Integration.Info"
  4636. }
  4637. }
  4638. },
  4639. "required": [
  4640. "location",
  4641. "data"
  4642. ],
  4643. "additionalProperties": false
  4644. }
  4645. }
  4646. }
  4647. },
  4648. "400": {
  4649. "description": "InvalidRequestError",
  4650. "content": {
  4651. "application/json": {
  4652. "schema": {
  4653. "$ref": "#/components/schemas/InvalidRequestError"
  4654. }
  4655. }
  4656. }
  4657. },
  4658. "401": {
  4659. "description": "UnauthorizedError",
  4660. "content": {
  4661. "application/json": {
  4662. "schema": {
  4663. "$ref": "#/components/schemas/UnauthorizedError"
  4664. }
  4665. }
  4666. }
  4667. }
  4668. },
  4669. "description": "Retrieve available integrations and their authentication methods.",
  4670. "summary": "List integrations"
  4671. }
  4672. },
  4673. "/api/integration/{integrationID}": {
  4674. "get": {
  4675. "tags": [
  4676. "integration"
  4677. ],
  4678. "operationId": "v2.integration.get",
  4679. "parameters": [
  4680. {
  4681. "name": "integrationID",
  4682. "in": "path",
  4683. "schema": {
  4684. "type": "string"
  4685. },
  4686. "required": true
  4687. },
  4688. {
  4689. "name": "location",
  4690. "in": "query",
  4691. "schema": {
  4692. "anyOf": [
  4693. {
  4694. "type": "object",
  4695. "properties": {
  4696. "directory": {
  4697. "anyOf": [
  4698. {
  4699. "type": "string"
  4700. },
  4701. {
  4702. "type": "null"
  4703. }
  4704. ]
  4705. },
  4706. "workspace": {
  4707. "anyOf": [
  4708. {
  4709. "type": "string"
  4710. },
  4711. {
  4712. "type": "null"
  4713. }
  4714. ]
  4715. }
  4716. },
  4717. "additionalProperties": false
  4718. },
  4719. {
  4720. "type": "null"
  4721. }
  4722. ]
  4723. },
  4724. "required": false,
  4725. "style": "deepObject",
  4726. "explode": true
  4727. }
  4728. ],
  4729. "security": [],
  4730. "responses": {
  4731. "200": {
  4732. "description": "Success",
  4733. "content": {
  4734. "application/json": {
  4735. "schema": {
  4736. "type": "object",
  4737. "properties": {
  4738. "location": {
  4739. "$ref": "#/components/schemas/Location.Info"
  4740. },
  4741. "data": {
  4742. "anyOf": [
  4743. {
  4744. "$ref": "#/components/schemas/Integration.Info"
  4745. },
  4746. {
  4747. "type": "null"
  4748. }
  4749. ]
  4750. }
  4751. },
  4752. "required": [
  4753. "location",
  4754. "data"
  4755. ],
  4756. "additionalProperties": false
  4757. }
  4758. }
  4759. }
  4760. },
  4761. "400": {
  4762. "description": "InvalidRequestError",
  4763. "content": {
  4764. "application/json": {
  4765. "schema": {
  4766. "$ref": "#/components/schemas/InvalidRequestError"
  4767. }
  4768. }
  4769. }
  4770. },
  4771. "401": {
  4772. "description": "UnauthorizedError",
  4773. "content": {
  4774. "application/json": {
  4775. "schema": {
  4776. "$ref": "#/components/schemas/UnauthorizedError"
  4777. }
  4778. }
  4779. }
  4780. }
  4781. },
  4782. "description": "Retrieve one integration and its authentication methods.",
  4783. "summary": "Get integration"
  4784. }
  4785. },
  4786. "/api/experimental/integration/wellknown": {
  4787. "post": {
  4788. "tags": [
  4789. "integration"
  4790. ],
  4791. "operationId": "v2.experimental.integration.wellknown.add",
  4792. "parameters": [
  4793. {
  4794. "name": "location",
  4795. "in": "query",
  4796. "schema": {
  4797. "anyOf": [
  4798. {
  4799. "type": "object",
  4800. "properties": {
  4801. "directory": {
  4802. "anyOf": [
  4803. {
  4804. "type": "string"
  4805. },
  4806. {
  4807. "type": "null"
  4808. }
  4809. ]
  4810. },
  4811. "workspace": {
  4812. "anyOf": [
  4813. {
  4814. "type": "string"
  4815. },
  4816. {
  4817. "type": "null"
  4818. }
  4819. ]
  4820. }
  4821. },
  4822. "additionalProperties": false
  4823. },
  4824. {
  4825. "type": "null"
  4826. }
  4827. ]
  4828. },
  4829. "required": false,
  4830. "style": "deepObject",
  4831. "explode": true
  4832. }
  4833. ],
  4834. "security": [],
  4835. "responses": {
  4836. "204": {
  4837. "description": "<No Content>"
  4838. },
  4839. "400": {
  4840. "description": "InvalidRequestError",
  4841. "content": {
  4842. "application/json": {
  4843. "schema": {
  4844. "anyOf": [
  4845. {
  4846. "$ref": "#/components/schemas/InvalidRequestError1"
  4847. },
  4848. {
  4849. "$ref": "#/components/schemas/InvalidRequestError"
  4850. }
  4851. ]
  4852. }
  4853. }
  4854. }
  4855. },
  4856. "401": {
  4857. "description": "UnauthorizedError",
  4858. "content": {
  4859. "application/json": {
  4860. "schema": {
  4861. "$ref": "#/components/schemas/UnauthorizedError"
  4862. }
  4863. }
  4864. }
  4865. }
  4866. },
  4867. "description": "Discover and persist an experimental wellknown integration source.",
  4868. "summary": "Add wellknown integration",
  4869. "requestBody": {
  4870. "content": {
  4871. "application/json": {
  4872. "schema": {
  4873. "type": "object",
  4874. "properties": {
  4875. "url": {
  4876. "type": "string"
  4877. }
  4878. },
  4879. "required": [
  4880. "url"
  4881. ],
  4882. "additionalProperties": false
  4883. }
  4884. }
  4885. },
  4886. "required": true
  4887. }
  4888. }
  4889. },
  4890. "/api/integration/{integrationID}/connect/key": {
  4891. "post": {
  4892. "tags": [
  4893. "integration"
  4894. ],
  4895. "operationId": "v2.integration.connect.key",
  4896. "parameters": [
  4897. {
  4898. "name": "integrationID",
  4899. "in": "path",
  4900. "schema": {
  4901. "type": "string"
  4902. },
  4903. "required": true
  4904. },
  4905. {
  4906. "name": "location",
  4907. "in": "query",
  4908. "schema": {
  4909. "anyOf": [
  4910. {
  4911. "type": "object",
  4912. "properties": {
  4913. "directory": {
  4914. "anyOf": [
  4915. {
  4916. "type": "string"
  4917. },
  4918. {
  4919. "type": "null"
  4920. }
  4921. ]
  4922. },
  4923. "workspace": {
  4924. "anyOf": [
  4925. {
  4926. "type": "string"
  4927. },
  4928. {
  4929. "type": "null"
  4930. }
  4931. ]
  4932. }
  4933. },
  4934. "additionalProperties": false
  4935. },
  4936. {
  4937. "type": "null"
  4938. }
  4939. ]
  4940. },
  4941. "required": false,
  4942. "style": "deepObject",
  4943. "explode": true
  4944. }
  4945. ],
  4946. "security": [],
  4947. "responses": {
  4948. "204": {
  4949. "description": "<No Content>"
  4950. },
  4951. "400": {
  4952. "description": "InvalidRequestError",
  4953. "content": {
  4954. "application/json": {
  4955. "schema": {
  4956. "anyOf": [
  4957. {
  4958. "$ref": "#/components/schemas/InvalidRequestError1"
  4959. },
  4960. {
  4961. "$ref": "#/components/schemas/InvalidRequestError"
  4962. }
  4963. ]
  4964. }
  4965. }
  4966. }
  4967. },
  4968. "401": {
  4969. "description": "UnauthorizedError",
  4970. "content": {
  4971. "application/json": {
  4972. "schema": {
  4973. "$ref": "#/components/schemas/UnauthorizedError"
  4974. }
  4975. }
  4976. }
  4977. }
  4978. },
  4979. "description": "Run a key authentication method and store the resulting credential.",
  4980. "summary": "Connect with key",
  4981. "requestBody": {
  4982. "content": {
  4983. "application/json": {
  4984. "schema": {
  4985. "type": "object",
  4986. "properties": {
  4987. "key": {
  4988. "type": "string"
  4989. },
  4990. "label": {
  4991. "anyOf": [
  4992. {
  4993. "type": "string"
  4994. },
  4995. {
  4996. "type": "null"
  4997. }
  4998. ]
  4999. }
  5000. },
  5001. "required": [
  5002. "key"
  5003. ],
  5004. "additionalProperties": false
  5005. }
  5006. }
  5007. },
  5008. "required": true
  5009. }
  5010. }
  5011. },
  5012. "/api/integration/{integrationID}/connect/oauth": {
  5013. "post": {
  5014. "tags": [
  5015. "integration"
  5016. ],
  5017. "operationId": "v2.integration.oauth.connect",
  5018. "parameters": [
  5019. {
  5020. "name": "integrationID",
  5021. "in": "path",
  5022. "schema": {
  5023. "type": "string"
  5024. },
  5025. "required": true
  5026. },
  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/Integration.Attempt"
  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. "anyOf": [
  5099. {
  5100. "$ref": "#/components/schemas/InvalidRequestError1"
  5101. },
  5102. {
  5103. "$ref": "#/components/schemas/InvalidRequestError"
  5104. }
  5105. ]
  5106. }
  5107. }
  5108. }
  5109. },
  5110. "401": {
  5111. "description": "UnauthorizedError",
  5112. "content": {
  5113. "application/json": {
  5114. "schema": {
  5115. "$ref": "#/components/schemas/UnauthorizedError"
  5116. }
  5117. }
  5118. }
  5119. }
  5120. },
  5121. "description": "Start an OAuth attempt and return the authorization details.",
  5122. "summary": "Begin OAuth connection",
  5123. "requestBody": {
  5124. "content": {
  5125. "application/json": {
  5126. "schema": {
  5127. "type": "object",
  5128. "properties": {
  5129. "methodID": {
  5130. "type": "string"
  5131. },
  5132. "inputs": {
  5133. "type": "object",
  5134. "additionalProperties": {
  5135. "type": "string"
  5136. }
  5137. },
  5138. "label": {
  5139. "anyOf": [
  5140. {
  5141. "type": "string"
  5142. },
  5143. {
  5144. "type": "null"
  5145. }
  5146. ]
  5147. }
  5148. },
  5149. "required": [
  5150. "methodID",
  5151. "inputs"
  5152. ],
  5153. "additionalProperties": false
  5154. }
  5155. }
  5156. },
  5157. "required": true
  5158. }
  5159. }
  5160. },
  5161. "/api/integration/{integrationID}/connect/oauth/{attemptID}": {
  5162. "get": {
  5163. "tags": [
  5164. "integration"
  5165. ],
  5166. "operationId": "v2.integration.oauth.status",
  5167. "parameters": [
  5168. {
  5169. "name": "integrationID",
  5170. "in": "path",
  5171. "schema": {
  5172. "type": "string"
  5173. },
  5174. "required": true
  5175. },
  5176. {
  5177. "name": "attemptID",
  5178. "in": "path",
  5179. "schema": {
  5180. "type": "string"
  5181. },
  5182. "required": true
  5183. },
  5184. {
  5185. "name": "location",
  5186. "in": "query",
  5187. "schema": {
  5188. "anyOf": [
  5189. {
  5190. "type": "object",
  5191. "properties": {
  5192. "directory": {
  5193. "anyOf": [
  5194. {
  5195. "type": "string"
  5196. },
  5197. {
  5198. "type": "null"
  5199. }
  5200. ]
  5201. },
  5202. "workspace": {
  5203. "anyOf": [
  5204. {
  5205. "type": "string"
  5206. },
  5207. {
  5208. "type": "null"
  5209. }
  5210. ]
  5211. }
  5212. },
  5213. "additionalProperties": false
  5214. },
  5215. {
  5216. "type": "null"
  5217. }
  5218. ]
  5219. },
  5220. "required": false,
  5221. "style": "deepObject",
  5222. "explode": true
  5223. }
  5224. ],
  5225. "security": [],
  5226. "responses": {
  5227. "200": {
  5228. "description": "Success",
  5229. "content": {
  5230. "application/json": {
  5231. "schema": {
  5232. "type": "object",
  5233. "properties": {
  5234. "location": {
  5235. "$ref": "#/components/schemas/Location.Info"
  5236. },
  5237. "data": {
  5238. "$ref": "#/components/schemas/Integration.AttemptStatus"
  5239. }
  5240. },
  5241. "required": [
  5242. "location",
  5243. "data"
  5244. ],
  5245. "additionalProperties": false
  5246. }
  5247. }
  5248. }
  5249. },
  5250. "400": {
  5251. "description": "InvalidRequestError",
  5252. "content": {
  5253. "application/json": {
  5254. "schema": {
  5255. "$ref": "#/components/schemas/InvalidRequestError"
  5256. }
  5257. }
  5258. }
  5259. },
  5260. "401": {
  5261. "description": "UnauthorizedError",
  5262. "content": {
  5263. "application/json": {
  5264. "schema": {
  5265. "$ref": "#/components/schemas/UnauthorizedError"
  5266. }
  5267. }
  5268. }
  5269. }
  5270. },
  5271. "description": "Poll the current status of an OAuth attempt.",
  5272. "summary": "Get OAuth attempt status"
  5273. },
  5274. "delete": {
  5275. "tags": [
  5276. "integration"
  5277. ],
  5278. "operationId": "v2.integration.oauth.cancel",
  5279. "parameters": [
  5280. {
  5281. "name": "integrationID",
  5282. "in": "path",
  5283. "schema": {
  5284. "type": "string"
  5285. },
  5286. "required": true
  5287. },
  5288. {
  5289. "name": "attemptID",
  5290. "in": "path",
  5291. "schema": {
  5292. "type": "string"
  5293. },
  5294. "required": true
  5295. },
  5296. {
  5297. "name": "location",
  5298. "in": "query",
  5299. "schema": {
  5300. "anyOf": [
  5301. {
  5302. "type": "object",
  5303. "properties": {
  5304. "directory": {
  5305. "anyOf": [
  5306. {
  5307. "type": "string"
  5308. },
  5309. {
  5310. "type": "null"
  5311. }
  5312. ]
  5313. },
  5314. "workspace": {
  5315. "anyOf": [
  5316. {
  5317. "type": "string"
  5318. },
  5319. {
  5320. "type": "null"
  5321. }
  5322. ]
  5323. }
  5324. },
  5325. "additionalProperties": false
  5326. },
  5327. {
  5328. "type": "null"
  5329. }
  5330. ]
  5331. },
  5332. "required": false,
  5333. "style": "deepObject",
  5334. "explode": true
  5335. }
  5336. ],
  5337. "security": [],
  5338. "responses": {
  5339. "204": {
  5340. "description": "<No Content>"
  5341. },
  5342. "400": {
  5343. "description": "InvalidRequestError",
  5344. "content": {
  5345. "application/json": {
  5346. "schema": {
  5347. "$ref": "#/components/schemas/InvalidRequestError"
  5348. }
  5349. }
  5350. }
  5351. },
  5352. "401": {
  5353. "description": "UnauthorizedError",
  5354. "content": {
  5355. "application/json": {
  5356. "schema": {
  5357. "$ref": "#/components/schemas/UnauthorizedError"
  5358. }
  5359. }
  5360. }
  5361. }
  5362. },
  5363. "description": "Cancel an OAuth attempt and release its resources.",
  5364. "summary": "Cancel OAuth connection"
  5365. }
  5366. },
  5367. "/api/integration/{integrationID}/connect/oauth/{attemptID}/complete": {
  5368. "post": {
  5369. "tags": [
  5370. "integration"
  5371. ],
  5372. "operationId": "v2.integration.oauth.complete",
  5373. "parameters": [
  5374. {
  5375. "name": "integrationID",
  5376. "in": "path",
  5377. "schema": {
  5378. "type": "string"
  5379. },
  5380. "required": true
  5381. },
  5382. {
  5383. "name": "attemptID",
  5384. "in": "path",
  5385. "schema": {
  5386. "type": "string"
  5387. },
  5388. "required": true
  5389. },
  5390. {
  5391. "name": "location",
  5392. "in": "query",
  5393. "schema": {
  5394. "anyOf": [
  5395. {
  5396. "type": "object",
  5397. "properties": {
  5398. "directory": {
  5399. "anyOf": [
  5400. {
  5401. "type": "string"
  5402. },
  5403. {
  5404. "type": "null"
  5405. }
  5406. ]
  5407. },
  5408. "workspace": {
  5409. "anyOf": [
  5410. {
  5411. "type": "string"
  5412. },
  5413. {
  5414. "type": "null"
  5415. }
  5416. ]
  5417. }
  5418. },
  5419. "additionalProperties": false
  5420. },
  5421. {
  5422. "type": "null"
  5423. }
  5424. ]
  5425. },
  5426. "required": false,
  5427. "style": "deepObject",
  5428. "explode": true
  5429. }
  5430. ],
  5431. "security": [],
  5432. "responses": {
  5433. "204": {
  5434. "description": "<No Content>"
  5435. },
  5436. "400": {
  5437. "description": "InvalidRequestError",
  5438. "content": {
  5439. "application/json": {
  5440. "schema": {
  5441. "anyOf": [
  5442. {
  5443. "$ref": "#/components/schemas/InvalidRequestError1"
  5444. },
  5445. {
  5446. "$ref": "#/components/schemas/InvalidRequestError"
  5447. }
  5448. ]
  5449. }
  5450. }
  5451. }
  5452. },
  5453. "401": {
  5454. "description": "UnauthorizedError",
  5455. "content": {
  5456. "application/json": {
  5457. "schema": {
  5458. "$ref": "#/components/schemas/UnauthorizedError"
  5459. }
  5460. }
  5461. }
  5462. }
  5463. },
  5464. "description": "Complete a code-based OAuth attempt and store the resulting credential.",
  5465. "summary": "Complete OAuth connection",
  5466. "requestBody": {
  5467. "content": {
  5468. "application/json": {
  5469. "schema": {
  5470. "type": "object",
  5471. "properties": {
  5472. "code": {
  5473. "anyOf": [
  5474. {
  5475. "type": "string"
  5476. },
  5477. {
  5478. "type": "null"
  5479. }
  5480. ]
  5481. }
  5482. },
  5483. "additionalProperties": false
  5484. }
  5485. }
  5486. },
  5487. "required": true
  5488. }
  5489. }
  5490. },
  5491. "/api/integration/{integrationID}/connect/command": {
  5492. "post": {
  5493. "tags": [
  5494. "integration"
  5495. ],
  5496. "operationId": "v2.integration.command.connect",
  5497. "parameters": [
  5498. {
  5499. "name": "integrationID",
  5500. "in": "path",
  5501. "schema": {
  5502. "type": "string"
  5503. },
  5504. "required": true
  5505. },
  5506. {
  5507. "name": "location",
  5508. "in": "query",
  5509. "schema": {
  5510. "anyOf": [
  5511. {
  5512. "type": "object",
  5513. "properties": {
  5514. "directory": {
  5515. "anyOf": [
  5516. {
  5517. "type": "string"
  5518. },
  5519. {
  5520. "type": "null"
  5521. }
  5522. ]
  5523. },
  5524. "workspace": {
  5525. "anyOf": [
  5526. {
  5527. "type": "string"
  5528. },
  5529. {
  5530. "type": "null"
  5531. }
  5532. ]
  5533. }
  5534. },
  5535. "additionalProperties": false
  5536. },
  5537. {
  5538. "type": "null"
  5539. }
  5540. ]
  5541. },
  5542. "required": false,
  5543. "style": "deepObject",
  5544. "explode": true
  5545. }
  5546. ],
  5547. "security": [],
  5548. "responses": {
  5549. "200": {
  5550. "description": "Success",
  5551. "content": {
  5552. "application/json": {
  5553. "schema": {
  5554. "type": "object",
  5555. "properties": {
  5556. "location": {
  5557. "$ref": "#/components/schemas/Location.Info"
  5558. },
  5559. "data": {
  5560. "$ref": "#/components/schemas/Integration.CommandAttempt"
  5561. }
  5562. },
  5563. "required": [
  5564. "location",
  5565. "data"
  5566. ],
  5567. "additionalProperties": false
  5568. }
  5569. }
  5570. }
  5571. },
  5572. "400": {
  5573. "description": "InvalidRequestError",
  5574. "content": {
  5575. "application/json": {
  5576. "schema": {
  5577. "anyOf": [
  5578. {
  5579. "$ref": "#/components/schemas/InvalidRequestError1"
  5580. },
  5581. {
  5582. "$ref": "#/components/schemas/InvalidRequestError"
  5583. }
  5584. ]
  5585. }
  5586. }
  5587. }
  5588. },
  5589. "401": {
  5590. "description": "UnauthorizedError",
  5591. "content": {
  5592. "application/json": {
  5593. "schema": {
  5594. "$ref": "#/components/schemas/UnauthorizedError"
  5595. }
  5596. }
  5597. }
  5598. }
  5599. },
  5600. "description": "Start a command authentication attempt.",
  5601. "summary": "Begin command connection",
  5602. "requestBody": {
  5603. "content": {
  5604. "application/json": {
  5605. "schema": {
  5606. "type": "object",
  5607. "properties": {
  5608. "methodID": {
  5609. "type": "string"
  5610. },
  5611. "label": {
  5612. "anyOf": [
  5613. {
  5614. "type": "string"
  5615. },
  5616. {
  5617. "type": "null"
  5618. }
  5619. ]
  5620. }
  5621. },
  5622. "required": [
  5623. "methodID"
  5624. ],
  5625. "additionalProperties": false
  5626. }
  5627. }
  5628. },
  5629. "required": true
  5630. }
  5631. }
  5632. },
  5633. "/api/integration/{integrationID}/connect/command/{attemptID}": {
  5634. "get": {
  5635. "tags": [
  5636. "integration"
  5637. ],
  5638. "operationId": "v2.integration.command.status",
  5639. "parameters": [
  5640. {
  5641. "name": "integrationID",
  5642. "in": "path",
  5643. "schema": {
  5644. "type": "string"
  5645. },
  5646. "required": true
  5647. },
  5648. {
  5649. "name": "attemptID",
  5650. "in": "path",
  5651. "schema": {
  5652. "type": "string"
  5653. },
  5654. "required": true
  5655. },
  5656. {
  5657. "name": "location",
  5658. "in": "query",
  5659. "schema": {
  5660. "anyOf": [
  5661. {
  5662. "type": "object",
  5663. "properties": {
  5664. "directory": {
  5665. "anyOf": [
  5666. {
  5667. "type": "string"
  5668. },
  5669. {
  5670. "type": "null"
  5671. }
  5672. ]
  5673. },
  5674. "workspace": {
  5675. "anyOf": [
  5676. {
  5677. "type": "string"
  5678. },
  5679. {
  5680. "type": "null"
  5681. }
  5682. ]
  5683. }
  5684. },
  5685. "additionalProperties": false
  5686. },
  5687. {
  5688. "type": "null"
  5689. }
  5690. ]
  5691. },
  5692. "required": false,
  5693. "style": "deepObject",
  5694. "explode": true
  5695. }
  5696. ],
  5697. "security": [],
  5698. "responses": {
  5699. "200": {
  5700. "description": "Success",
  5701. "content": {
  5702. "application/json": {
  5703. "schema": {
  5704. "type": "object",
  5705. "properties": {
  5706. "location": {
  5707. "$ref": "#/components/schemas/Location.Info"
  5708. },
  5709. "data": {
  5710. "$ref": "#/components/schemas/Integration.CommandAttemptStatus"
  5711. }
  5712. },
  5713. "required": [
  5714. "location",
  5715. "data"
  5716. ],
  5717. "additionalProperties": false
  5718. }
  5719. }
  5720. }
  5721. },
  5722. "400": {
  5723. "description": "InvalidRequestError",
  5724. "content": {
  5725. "application/json": {
  5726. "schema": {
  5727. "$ref": "#/components/schemas/InvalidRequestError"
  5728. }
  5729. }
  5730. }
  5731. },
  5732. "401": {
  5733. "description": "UnauthorizedError",
  5734. "content": {
  5735. "application/json": {
  5736. "schema": {
  5737. "$ref": "#/components/schemas/UnauthorizedError"
  5738. }
  5739. }
  5740. }
  5741. }
  5742. },
  5743. "description": "Poll the current status and output of a command authentication attempt.",
  5744. "summary": "Get command attempt status"
  5745. },
  5746. "delete": {
  5747. "tags": [
  5748. "integration"
  5749. ],
  5750. "operationId": "v2.integration.command.cancel",
  5751. "parameters": [
  5752. {
  5753. "name": "integrationID",
  5754. "in": "path",
  5755. "schema": {
  5756. "type": "string"
  5757. },
  5758. "required": true
  5759. },
  5760. {
  5761. "name": "attemptID",
  5762. "in": "path",
  5763. "schema": {
  5764. "type": "string"
  5765. },
  5766. "required": true
  5767. },
  5768. {
  5769. "name": "location",
  5770. "in": "query",
  5771. "schema": {
  5772. "anyOf": [
  5773. {
  5774. "type": "object",
  5775. "properties": {
  5776. "directory": {
  5777. "anyOf": [
  5778. {
  5779. "type": "string"
  5780. },
  5781. {
  5782. "type": "null"
  5783. }
  5784. ]
  5785. },
  5786. "workspace": {
  5787. "anyOf": [
  5788. {
  5789. "type": "string"
  5790. },
  5791. {
  5792. "type": "null"
  5793. }
  5794. ]
  5795. }
  5796. },
  5797. "additionalProperties": false
  5798. },
  5799. {
  5800. "type": "null"
  5801. }
  5802. ]
  5803. },
  5804. "required": false,
  5805. "style": "deepObject",
  5806. "explode": true
  5807. }
  5808. ],
  5809. "security": [],
  5810. "responses": {
  5811. "204": {
  5812. "description": "<No Content>"
  5813. },
  5814. "400": {
  5815. "description": "InvalidRequestError",
  5816. "content": {
  5817. "application/json": {
  5818. "schema": {
  5819. "$ref": "#/components/schemas/InvalidRequestError"
  5820. }
  5821. }
  5822. }
  5823. },
  5824. "401": {
  5825. "description": "UnauthorizedError",
  5826. "content": {
  5827. "application/json": {
  5828. "schema": {
  5829. "$ref": "#/components/schemas/UnauthorizedError"
  5830. }
  5831. }
  5832. }
  5833. }
  5834. },
  5835. "description": "Cancel a command authentication attempt and terminate its process.",
  5836. "summary": "Cancel command connection"
  5837. }
  5838. },
  5839. "/api/mcp": {
  5840. "get": {
  5841. "tags": [
  5842. "mcp"
  5843. ],
  5844. "operationId": "v2.mcp.list",
  5845. "parameters": [
  5846. {
  5847. "name": "location",
  5848. "in": "query",
  5849. "schema": {
  5850. "anyOf": [
  5851. {
  5852. "type": "object",
  5853. "properties": {
  5854. "directory": {
  5855. "anyOf": [
  5856. {
  5857. "type": "string"
  5858. },
  5859. {
  5860. "type": "null"
  5861. }
  5862. ]
  5863. },
  5864. "workspace": {
  5865. "anyOf": [
  5866. {
  5867. "type": "string"
  5868. },
  5869. {
  5870. "type": "null"
  5871. }
  5872. ]
  5873. }
  5874. },
  5875. "additionalProperties": false
  5876. },
  5877. {
  5878. "type": "null"
  5879. }
  5880. ]
  5881. },
  5882. "required": false,
  5883. "style": "deepObject",
  5884. "explode": true
  5885. }
  5886. ],
  5887. "security": [],
  5888. "responses": {
  5889. "200": {
  5890. "description": "Success",
  5891. "content": {
  5892. "application/json": {
  5893. "schema": {
  5894. "type": "object",
  5895. "properties": {
  5896. "location": {
  5897. "$ref": "#/components/schemas/Location.Info"
  5898. },
  5899. "data": {
  5900. "type": "array",
  5901. "items": {
  5902. "$ref": "#/components/schemas/Mcp.Server"
  5903. }
  5904. }
  5905. },
  5906. "required": [
  5907. "location",
  5908. "data"
  5909. ],
  5910. "additionalProperties": false
  5911. }
  5912. }
  5913. }
  5914. },
  5915. "400": {
  5916. "description": "InvalidRequestError",
  5917. "content": {
  5918. "application/json": {
  5919. "schema": {
  5920. "$ref": "#/components/schemas/InvalidRequestError"
  5921. }
  5922. }
  5923. }
  5924. },
  5925. "401": {
  5926. "description": "UnauthorizedError",
  5927. "content": {
  5928. "application/json": {
  5929. "schema": {
  5930. "$ref": "#/components/schemas/UnauthorizedError"
  5931. }
  5932. }
  5933. }
  5934. }
  5935. },
  5936. "description": "Retrieve configured MCP servers and their connection status.",
  5937. "summary": "List MCP servers"
  5938. }
  5939. },
  5940. "/api/mcp/{server}": {
  5941. "put": {
  5942. "tags": [
  5943. "mcp"
  5944. ],
  5945. "operationId": "v2.mcp.add",
  5946. "parameters": [
  5947. {
  5948. "name": "server",
  5949. "in": "path",
  5950. "schema": {
  5951. "type": "string"
  5952. },
  5953. "required": true
  5954. },
  5955. {
  5956. "name": "location",
  5957. "in": "query",
  5958. "schema": {
  5959. "anyOf": [
  5960. {
  5961. "type": "object",
  5962. "properties": {
  5963. "directory": {
  5964. "anyOf": [
  5965. {
  5966. "type": "string"
  5967. },
  5968. {
  5969. "type": "null"
  5970. }
  5971. ]
  5972. },
  5973. "workspace": {
  5974. "anyOf": [
  5975. {
  5976. "type": "string"
  5977. },
  5978. {
  5979. "type": "null"
  5980. }
  5981. ]
  5982. }
  5983. },
  5984. "additionalProperties": false
  5985. },
  5986. {
  5987. "type": "null"
  5988. }
  5989. ]
  5990. },
  5991. "required": false,
  5992. "style": "deepObject",
  5993. "explode": true
  5994. }
  5995. ],
  5996. "security": [],
  5997. "responses": {
  5998. "204": {
  5999. "description": "<No Content>"
  6000. },
  6001. "400": {
  6002. "description": "InvalidRequestError",
  6003. "content": {
  6004. "application/json": {
  6005. "schema": {
  6006. "$ref": "#/components/schemas/InvalidRequestError"
  6007. }
  6008. }
  6009. }
  6010. },
  6011. "401": {
  6012. "description": "UnauthorizedError",
  6013. "content": {
  6014. "application/json": {
  6015. "schema": {
  6016. "$ref": "#/components/schemas/UnauthorizedError"
  6017. }
  6018. }
  6019. }
  6020. }
  6021. },
  6022. "description": "Add an MCP server at runtime or replace an existing one, connecting it immediately.",
  6023. "summary": "Add MCP server",
  6024. "requestBody": {
  6025. "content": {
  6026. "application/json": {
  6027. "schema": {
  6028. "type": "object",
  6029. "properties": {
  6030. "config": {
  6031. "anyOf": [
  6032. {
  6033. "$ref": "#/components/schemas/Mcp.LocalConfig"
  6034. },
  6035. {
  6036. "$ref": "#/components/schemas/Mcp.RemoteConfig"
  6037. }
  6038. ]
  6039. }
  6040. },
  6041. "required": [
  6042. "config"
  6043. ],
  6044. "additionalProperties": false
  6045. }
  6046. }
  6047. },
  6048. "required": true
  6049. }
  6050. },
  6051. "delete": {
  6052. "tags": [
  6053. "mcp"
  6054. ],
  6055. "operationId": "v2.mcp.remove",
  6056. "parameters": [
  6057. {
  6058. "name": "server",
  6059. "in": "path",
  6060. "schema": {
  6061. "type": "string"
  6062. },
  6063. "required": true
  6064. },
  6065. {
  6066. "name": "location",
  6067. "in": "query",
  6068. "schema": {
  6069. "anyOf": [
  6070. {
  6071. "type": "object",
  6072. "properties": {
  6073. "directory": {
  6074. "anyOf": [
  6075. {
  6076. "type": "string"
  6077. },
  6078. {
  6079. "type": "null"
  6080. }
  6081. ]
  6082. },
  6083. "workspace": {
  6084. "anyOf": [
  6085. {
  6086. "type": "string"
  6087. },
  6088. {
  6089. "type": "null"
  6090. }
  6091. ]
  6092. }
  6093. },
  6094. "additionalProperties": false
  6095. },
  6096. {
  6097. "type": "null"
  6098. }
  6099. ]
  6100. },
  6101. "required": false,
  6102. "style": "deepObject",
  6103. "explode": true
  6104. }
  6105. ],
  6106. "security": [],
  6107. "responses": {
  6108. "204": {
  6109. "description": "<No Content>"
  6110. },
  6111. "400": {
  6112. "description": "InvalidRequestError",
  6113. "content": {
  6114. "application/json": {
  6115. "schema": {
  6116. "$ref": "#/components/schemas/InvalidRequestError"
  6117. }
  6118. }
  6119. }
  6120. },
  6121. "401": {
  6122. "description": "UnauthorizedError",
  6123. "content": {
  6124. "application/json": {
  6125. "schema": {
  6126. "$ref": "#/components/schemas/UnauthorizedError"
  6127. }
  6128. }
  6129. }
  6130. },
  6131. "404": {
  6132. "description": "McpServerNotFoundError",
  6133. "content": {
  6134. "application/json": {
  6135. "schema": {
  6136. "$ref": "#/components/schemas/McpServerNotFoundError"
  6137. }
  6138. }
  6139. }
  6140. }
  6141. },
  6142. "description": "Stop an MCP server and remove it from the runtime set until restart.",
  6143. "summary": "Remove MCP server"
  6144. }
  6145. },
  6146. "/api/mcp/{server}/connect": {
  6147. "post": {
  6148. "tags": [
  6149. "mcp"
  6150. ],
  6151. "operationId": "v2.mcp.connect",
  6152. "parameters": [
  6153. {
  6154. "name": "server",
  6155. "in": "path",
  6156. "schema": {
  6157. "type": "string"
  6158. },
  6159. "required": true
  6160. },
  6161. {
  6162. "name": "location",
  6163. "in": "query",
  6164. "schema": {
  6165. "anyOf": [
  6166. {
  6167. "type": "object",
  6168. "properties": {
  6169. "directory": {
  6170. "anyOf": [
  6171. {
  6172. "type": "string"
  6173. },
  6174. {
  6175. "type": "null"
  6176. }
  6177. ]
  6178. },
  6179. "workspace": {
  6180. "anyOf": [
  6181. {
  6182. "type": "string"
  6183. },
  6184. {
  6185. "type": "null"
  6186. }
  6187. ]
  6188. }
  6189. },
  6190. "additionalProperties": false
  6191. },
  6192. {
  6193. "type": "null"
  6194. }
  6195. ]
  6196. },
  6197. "required": false,
  6198. "style": "deepObject",
  6199. "explode": true
  6200. }
  6201. ],
  6202. "security": [],
  6203. "responses": {
  6204. "204": {
  6205. "description": "<No Content>"
  6206. },
  6207. "400": {
  6208. "description": "InvalidRequestError",
  6209. "content": {
  6210. "application/json": {
  6211. "schema": {
  6212. "$ref": "#/components/schemas/InvalidRequestError"
  6213. }
  6214. }
  6215. }
  6216. },
  6217. "401": {
  6218. "description": "UnauthorizedError",
  6219. "content": {
  6220. "application/json": {
  6221. "schema": {
  6222. "$ref": "#/components/schemas/UnauthorizedError"
  6223. }
  6224. }
  6225. }
  6226. },
  6227. "404": {
  6228. "description": "McpServerNotFoundError",
  6229. "content": {
  6230. "application/json": {
  6231. "schema": {
  6232. "$ref": "#/components/schemas/McpServerNotFoundError"
  6233. }
  6234. }
  6235. }
  6236. }
  6237. },
  6238. "description": "Connect an MCP server at runtime, overriding a disabled configuration until restart.",
  6239. "summary": "Connect MCP server"
  6240. }
  6241. },
  6242. "/api/mcp/{server}/disconnect": {
  6243. "post": {
  6244. "tags": [
  6245. "mcp"
  6246. ],
  6247. "operationId": "v2.mcp.disconnect",
  6248. "parameters": [
  6249. {
  6250. "name": "server",
  6251. "in": "path",
  6252. "schema": {
  6253. "type": "string"
  6254. },
  6255. "required": true
  6256. },
  6257. {
  6258. "name": "location",
  6259. "in": "query",
  6260. "schema": {
  6261. "anyOf": [
  6262. {
  6263. "type": "object",
  6264. "properties": {
  6265. "directory": {
  6266. "anyOf": [
  6267. {
  6268. "type": "string"
  6269. },
  6270. {
  6271. "type": "null"
  6272. }
  6273. ]
  6274. },
  6275. "workspace": {
  6276. "anyOf": [
  6277. {
  6278. "type": "string"
  6279. },
  6280. {
  6281. "type": "null"
  6282. }
  6283. ]
  6284. }
  6285. },
  6286. "additionalProperties": false
  6287. },
  6288. {
  6289. "type": "null"
  6290. }
  6291. ]
  6292. },
  6293. "required": false,
  6294. "style": "deepObject",
  6295. "explode": true
  6296. }
  6297. ],
  6298. "security": [],
  6299. "responses": {
  6300. "204": {
  6301. "description": "<No Content>"
  6302. },
  6303. "400": {
  6304. "description": "InvalidRequestError",
  6305. "content": {
  6306. "application/json": {
  6307. "schema": {
  6308. "$ref": "#/components/schemas/InvalidRequestError"
  6309. }
  6310. }
  6311. }
  6312. },
  6313. "401": {
  6314. "description": "UnauthorizedError",
  6315. "content": {
  6316. "application/json": {
  6317. "schema": {
  6318. "$ref": "#/components/schemas/UnauthorizedError"
  6319. }
  6320. }
  6321. }
  6322. },
  6323. "404": {
  6324. "description": "McpServerNotFoundError",
  6325. "content": {
  6326. "application/json": {
  6327. "schema": {
  6328. "$ref": "#/components/schemas/McpServerNotFoundError"
  6329. }
  6330. }
  6331. }
  6332. }
  6333. },
  6334. "description": "Disconnect an MCP server at runtime, removing its tools until reconnected.",
  6335. "summary": "Disconnect MCP server"
  6336. }
  6337. },
  6338. "/api/mcp/resource": {
  6339. "get": {
  6340. "tags": [
  6341. "mcp"
  6342. ],
  6343. "operationId": "v2.mcp.resource.catalog",
  6344. "parameters": [
  6345. {
  6346. "name": "location",
  6347. "in": "query",
  6348. "schema": {
  6349. "anyOf": [
  6350. {
  6351. "type": "object",
  6352. "properties": {
  6353. "directory": {
  6354. "anyOf": [
  6355. {
  6356. "type": "string"
  6357. },
  6358. {
  6359. "type": "null"
  6360. }
  6361. ]
  6362. },
  6363. "workspace": {
  6364. "anyOf": [
  6365. {
  6366. "type": "string"
  6367. },
  6368. {
  6369. "type": "null"
  6370. }
  6371. ]
  6372. }
  6373. },
  6374. "additionalProperties": false
  6375. },
  6376. {
  6377. "type": "null"
  6378. }
  6379. ]
  6380. },
  6381. "required": false,
  6382. "style": "deepObject",
  6383. "explode": true
  6384. }
  6385. ],
  6386. "security": [],
  6387. "responses": {
  6388. "200": {
  6389. "description": "Success",
  6390. "content": {
  6391. "application/json": {
  6392. "schema": {
  6393. "type": "object",
  6394. "properties": {
  6395. "location": {
  6396. "$ref": "#/components/schemas/Location.Info"
  6397. },
  6398. "data": {
  6399. "$ref": "#/components/schemas/Mcp.ResourceCatalog"
  6400. }
  6401. },
  6402. "required": [
  6403. "location",
  6404. "data"
  6405. ],
  6406. "additionalProperties": false
  6407. }
  6408. }
  6409. }
  6410. },
  6411. "400": {
  6412. "description": "InvalidRequestError",
  6413. "content": {
  6414. "application/json": {
  6415. "schema": {
  6416. "$ref": "#/components/schemas/InvalidRequestError"
  6417. }
  6418. }
  6419. }
  6420. },
  6421. "401": {
  6422. "description": "UnauthorizedError",
  6423. "content": {
  6424. "application/json": {
  6425. "schema": {
  6426. "$ref": "#/components/schemas/UnauthorizedError"
  6427. }
  6428. }
  6429. }
  6430. }
  6431. },
  6432. "description": "Retrieve resources and resource templates from connected MCP servers.",
  6433. "summary": "List MCP resources"
  6434. }
  6435. },
  6436. "/api/credential/{credentialID}": {
  6437. "patch": {
  6438. "tags": [
  6439. "credential"
  6440. ],
  6441. "operationId": "v2.credential.update",
  6442. "parameters": [
  6443. {
  6444. "name": "credentialID",
  6445. "in": "path",
  6446. "schema": {
  6447. "type": "string"
  6448. },
  6449. "required": true
  6450. },
  6451. {
  6452. "name": "location",
  6453. "in": "query",
  6454. "schema": {
  6455. "anyOf": [
  6456. {
  6457. "type": "object",
  6458. "properties": {
  6459. "directory": {
  6460. "anyOf": [
  6461. {
  6462. "type": "string"
  6463. },
  6464. {
  6465. "type": "null"
  6466. }
  6467. ]
  6468. },
  6469. "workspace": {
  6470. "anyOf": [
  6471. {
  6472. "type": "string"
  6473. },
  6474. {
  6475. "type": "null"
  6476. }
  6477. ]
  6478. }
  6479. },
  6480. "additionalProperties": false
  6481. },
  6482. {
  6483. "type": "null"
  6484. }
  6485. ]
  6486. },
  6487. "required": false,
  6488. "style": "deepObject",
  6489. "explode": true
  6490. }
  6491. ],
  6492. "security": [],
  6493. "responses": {
  6494. "204": {
  6495. "description": "<No Content>"
  6496. },
  6497. "400": {
  6498. "description": "InvalidRequestError",
  6499. "content": {
  6500. "application/json": {
  6501. "schema": {
  6502. "$ref": "#/components/schemas/InvalidRequestError"
  6503. }
  6504. }
  6505. }
  6506. },
  6507. "401": {
  6508. "description": "UnauthorizedError",
  6509. "content": {
  6510. "application/json": {
  6511. "schema": {
  6512. "$ref": "#/components/schemas/UnauthorizedError"
  6513. }
  6514. }
  6515. }
  6516. }
  6517. },
  6518. "description": "Update a stored credential label.",
  6519. "summary": "Update credential",
  6520. "requestBody": {
  6521. "content": {
  6522. "application/json": {
  6523. "schema": {
  6524. "type": "object",
  6525. "properties": {
  6526. "label": {
  6527. "type": "string"
  6528. }
  6529. },
  6530. "required": [
  6531. "label"
  6532. ],
  6533. "additionalProperties": false
  6534. }
  6535. }
  6536. },
  6537. "required": true
  6538. }
  6539. },
  6540. "delete": {
  6541. "tags": [
  6542. "credential"
  6543. ],
  6544. "operationId": "v2.credential.remove",
  6545. "parameters": [
  6546. {
  6547. "name": "credentialID",
  6548. "in": "path",
  6549. "schema": {
  6550. "type": "string"
  6551. },
  6552. "required": true
  6553. },
  6554. {
  6555. "name": "location",
  6556. "in": "query",
  6557. "schema": {
  6558. "anyOf": [
  6559. {
  6560. "type": "object",
  6561. "properties": {
  6562. "directory": {
  6563. "anyOf": [
  6564. {
  6565. "type": "string"
  6566. },
  6567. {
  6568. "type": "null"
  6569. }
  6570. ]
  6571. },
  6572. "workspace": {
  6573. "anyOf": [
  6574. {
  6575. "type": "string"
  6576. },
  6577. {
  6578. "type": "null"
  6579. }
  6580. ]
  6581. }
  6582. },
  6583. "additionalProperties": false
  6584. },
  6585. {
  6586. "type": "null"
  6587. }
  6588. ]
  6589. },
  6590. "required": false,
  6591. "style": "deepObject",
  6592. "explode": true
  6593. }
  6594. ],
  6595. "security": [],
  6596. "responses": {
  6597. "204": {
  6598. "description": "<No Content>"
  6599. },
  6600. "400": {
  6601. "description": "InvalidRequestError",
  6602. "content": {
  6603. "application/json": {
  6604. "schema": {
  6605. "$ref": "#/components/schemas/InvalidRequestError"
  6606. }
  6607. }
  6608. }
  6609. },
  6610. "401": {
  6611. "description": "UnauthorizedError",
  6612. "content": {
  6613. "application/json": {
  6614. "schema": {
  6615. "$ref": "#/components/schemas/UnauthorizedError"
  6616. }
  6617. }
  6618. }
  6619. }
  6620. },
  6621. "description": "Remove a stored integration credential.",
  6622. "summary": "Remove credential"
  6623. }
  6624. },
  6625. "/api/project": {
  6626. "get": {
  6627. "tags": [
  6628. "project"
  6629. ],
  6630. "operationId": "v2.project.list",
  6631. "parameters": [],
  6632. "security": [],
  6633. "responses": {
  6634. "200": {
  6635. "description": "Success",
  6636. "content": {
  6637. "application/json": {
  6638. "schema": {
  6639. "type": "array",
  6640. "items": {
  6641. "$ref": "#/components/schemas/Project"
  6642. }
  6643. }
  6644. }
  6645. }
  6646. },
  6647. "400": {
  6648. "description": "InvalidRequestError",
  6649. "content": {
  6650. "application/json": {
  6651. "schema": {
  6652. "$ref": "#/components/schemas/InvalidRequestError"
  6653. }
  6654. }
  6655. }
  6656. },
  6657. "401": {
  6658. "description": "UnauthorizedError",
  6659. "content": {
  6660. "application/json": {
  6661. "schema": {
  6662. "$ref": "#/components/schemas/UnauthorizedError"
  6663. }
  6664. }
  6665. }
  6666. }
  6667. },
  6668. "description": "List known projects.",
  6669. "summary": "List projects"
  6670. }
  6671. },
  6672. "/api/project/current": {
  6673. "get": {
  6674. "tags": [
  6675. "project"
  6676. ],
  6677. "operationId": "v2.project.current",
  6678. "parameters": [
  6679. {
  6680. "name": "location",
  6681. "in": "query",
  6682. "schema": {
  6683. "anyOf": [
  6684. {
  6685. "type": "object",
  6686. "properties": {
  6687. "directory": {
  6688. "anyOf": [
  6689. {
  6690. "type": "string"
  6691. },
  6692. {
  6693. "type": "null"
  6694. }
  6695. ]
  6696. },
  6697. "workspace": {
  6698. "anyOf": [
  6699. {
  6700. "type": "string"
  6701. },
  6702. {
  6703. "type": "null"
  6704. }
  6705. ]
  6706. }
  6707. },
  6708. "additionalProperties": false
  6709. },
  6710. {
  6711. "type": "null"
  6712. }
  6713. ]
  6714. },
  6715. "required": false,
  6716. "style": "deepObject",
  6717. "explode": true
  6718. }
  6719. ],
  6720. "security": [],
  6721. "responses": {
  6722. "200": {
  6723. "description": "Project.Current",
  6724. "content": {
  6725. "application/json": {
  6726. "schema": {
  6727. "$ref": "#/components/schemas/Project.Current"
  6728. }
  6729. }
  6730. }
  6731. },
  6732. "400": {
  6733. "description": "InvalidRequestError",
  6734. "content": {
  6735. "application/json": {
  6736. "schema": {
  6737. "$ref": "#/components/schemas/InvalidRequestError"
  6738. }
  6739. }
  6740. }
  6741. },
  6742. "401": {
  6743. "description": "UnauthorizedError",
  6744. "content": {
  6745. "application/json": {
  6746. "schema": {
  6747. "$ref": "#/components/schemas/UnauthorizedError"
  6748. }
  6749. }
  6750. }
  6751. }
  6752. },
  6753. "description": "Resolve the project for the requested location.",
  6754. "summary": "Get current project"
  6755. }
  6756. },
  6757. "/api/project/{projectID}/directories": {
  6758. "get": {
  6759. "tags": [
  6760. "project"
  6761. ],
  6762. "operationId": "v2.project.directories",
  6763. "parameters": [
  6764. {
  6765. "name": "projectID",
  6766. "in": "path",
  6767. "schema": {
  6768. "type": "string"
  6769. },
  6770. "required": true
  6771. },
  6772. {
  6773. "name": "location",
  6774. "in": "query",
  6775. "schema": {
  6776. "anyOf": [
  6777. {
  6778. "type": "object",
  6779. "properties": {
  6780. "directory": {
  6781. "anyOf": [
  6782. {
  6783. "type": "string"
  6784. },
  6785. {
  6786. "type": "null"
  6787. }
  6788. ]
  6789. },
  6790. "workspace": {
  6791. "anyOf": [
  6792. {
  6793. "type": "string"
  6794. },
  6795. {
  6796. "type": "null"
  6797. }
  6798. ]
  6799. }
  6800. },
  6801. "additionalProperties": false
  6802. },
  6803. {
  6804. "type": "null"
  6805. }
  6806. ]
  6807. },
  6808. "required": false,
  6809. "style": "deepObject",
  6810. "explode": true
  6811. }
  6812. ],
  6813. "security": [],
  6814. "responses": {
  6815. "200": {
  6816. "description": "Project.Directories",
  6817. "content": {
  6818. "application/json": {
  6819. "schema": {
  6820. "$ref": "#/components/schemas/Project.Directories"
  6821. }
  6822. }
  6823. }
  6824. },
  6825. "400": {
  6826. "description": "InvalidRequestError",
  6827. "content": {
  6828. "application/json": {
  6829. "schema": {
  6830. "$ref": "#/components/schemas/InvalidRequestError"
  6831. }
  6832. }
  6833. }
  6834. },
  6835. "401": {
  6836. "description": "UnauthorizedError",
  6837. "content": {
  6838. "application/json": {
  6839. "schema": {
  6840. "$ref": "#/components/schemas/UnauthorizedError"
  6841. }
  6842. }
  6843. }
  6844. }
  6845. },
  6846. "description": "List known local absolute directories for a project.",
  6847. "summary": "List project directories"
  6848. }
  6849. },
  6850. "/api/form/request": {
  6851. "get": {
  6852. "tags": [
  6853. "form"
  6854. ],
  6855. "operationId": "v2.form.request.list",
  6856. "parameters": [
  6857. {
  6858. "name": "location",
  6859. "in": "query",
  6860. "schema": {
  6861. "anyOf": [
  6862. {
  6863. "type": "object",
  6864. "properties": {
  6865. "directory": {
  6866. "anyOf": [
  6867. {
  6868. "type": "string"
  6869. },
  6870. {
  6871. "type": "null"
  6872. }
  6873. ]
  6874. },
  6875. "workspace": {
  6876. "anyOf": [
  6877. {
  6878. "type": "string"
  6879. },
  6880. {
  6881. "type": "null"
  6882. }
  6883. ]
  6884. }
  6885. },
  6886. "additionalProperties": false
  6887. },
  6888. {
  6889. "type": "null"
  6890. }
  6891. ]
  6892. },
  6893. "required": false,
  6894. "style": "deepObject",
  6895. "explode": true
  6896. }
  6897. ],
  6898. "security": [],
  6899. "responses": {
  6900. "200": {
  6901. "description": "Success",
  6902. "content": {
  6903. "application/json": {
  6904. "schema": {
  6905. "type": "object",
  6906. "properties": {
  6907. "location": {
  6908. "$ref": "#/components/schemas/Location.Info"
  6909. },
  6910. "data": {
  6911. "type": "array",
  6912. "items": {
  6913. "$ref": "#/components/schemas/Form.Info"
  6914. }
  6915. }
  6916. },
  6917. "required": [
  6918. "location",
  6919. "data"
  6920. ],
  6921. "additionalProperties": false
  6922. }
  6923. }
  6924. }
  6925. },
  6926. "400": {
  6927. "description": "InvalidRequestError",
  6928. "content": {
  6929. "application/json": {
  6930. "schema": {
  6931. "$ref": "#/components/schemas/InvalidRequestError"
  6932. }
  6933. }
  6934. }
  6935. },
  6936. "401": {
  6937. "description": "UnauthorizedError",
  6938. "content": {
  6939. "application/json": {
  6940. "schema": {
  6941. "$ref": "#/components/schemas/UnauthorizedError"
  6942. }
  6943. }
  6944. }
  6945. }
  6946. },
  6947. "description": "Retrieve pending forms for a location.",
  6948. "summary": "List pending form requests"
  6949. }
  6950. },
  6951. "/api/session/{sessionID}/form": {
  6952. "get": {
  6953. "tags": [
  6954. "form"
  6955. ],
  6956. "operationId": "v2.session.form.list",
  6957. "parameters": [
  6958. {
  6959. "name": "sessionID",
  6960. "in": "path",
  6961. "schema": {
  6962. "type": "string"
  6963. },
  6964. "required": true
  6965. }
  6966. ],
  6967. "security": [],
  6968. "responses": {
  6969. "200": {
  6970. "description": "Success",
  6971. "content": {
  6972. "application/json": {
  6973. "schema": {
  6974. "type": "object",
  6975. "properties": {
  6976. "data": {
  6977. "type": "array",
  6978. "items": {
  6979. "$ref": "#/components/schemas/Form.Info"
  6980. }
  6981. }
  6982. },
  6983. "required": [
  6984. "data"
  6985. ],
  6986. "additionalProperties": false
  6987. }
  6988. }
  6989. }
  6990. },
  6991. "400": {
  6992. "description": "InvalidRequestError",
  6993. "content": {
  6994. "application/json": {
  6995. "schema": {
  6996. "$ref": "#/components/schemas/InvalidRequestError"
  6997. }
  6998. }
  6999. }
  7000. },
  7001. "401": {
  7002. "description": "UnauthorizedError",
  7003. "content": {
  7004. "application/json": {
  7005. "schema": {
  7006. "$ref": "#/components/schemas/UnauthorizedError"
  7007. }
  7008. }
  7009. }
  7010. },
  7011. "404": {
  7012. "description": "SessionNotFoundError",
  7013. "content": {
  7014. "application/json": {
  7015. "schema": {
  7016. "anyOf": [
  7017. {
  7018. "$ref": "#/components/schemas/SessionNotFoundError"
  7019. },
  7020. {
  7021. "$ref": "#/components/schemas/SessionNotFoundError"
  7022. }
  7023. ]
  7024. }
  7025. }
  7026. }
  7027. }
  7028. },
  7029. "description": "Retrieve pending forms for a session.",
  7030. "summary": "List session forms"
  7031. },
  7032. "post": {
  7033. "tags": [
  7034. "form"
  7035. ],
  7036. "operationId": "v2.session.form.create",
  7037. "parameters": [
  7038. {
  7039. "name": "sessionID",
  7040. "in": "path",
  7041. "schema": {
  7042. "type": "string"
  7043. },
  7044. "required": true
  7045. }
  7046. ],
  7047. "security": [],
  7048. "responses": {
  7049. "200": {
  7050. "description": "Success",
  7051. "content": {
  7052. "application/json": {
  7053. "schema": {
  7054. "type": "object",
  7055. "properties": {
  7056. "data": {
  7057. "$ref": "#/components/schemas/Form.Info"
  7058. }
  7059. },
  7060. "required": [
  7061. "data"
  7062. ],
  7063. "additionalProperties": false
  7064. }
  7065. }
  7066. }
  7067. },
  7068. "400": {
  7069. "description": "InvalidRequestError",
  7070. "content": {
  7071. "application/json": {
  7072. "schema": {
  7073. "anyOf": [
  7074. {
  7075. "$ref": "#/components/schemas/InvalidRequestError1"
  7076. },
  7077. {
  7078. "$ref": "#/components/schemas/InvalidRequestError"
  7079. }
  7080. ]
  7081. }
  7082. }
  7083. }
  7084. },
  7085. "401": {
  7086. "description": "UnauthorizedError",
  7087. "content": {
  7088. "application/json": {
  7089. "schema": {
  7090. "$ref": "#/components/schemas/UnauthorizedError"
  7091. }
  7092. }
  7093. }
  7094. },
  7095. "404": {
  7096. "description": "SessionNotFoundError",
  7097. "content": {
  7098. "application/json": {
  7099. "schema": {
  7100. "anyOf": [
  7101. {
  7102. "$ref": "#/components/schemas/SessionNotFoundError"
  7103. },
  7104. {
  7105. "$ref": "#/components/schemas/SessionNotFoundError"
  7106. }
  7107. ]
  7108. }
  7109. }
  7110. }
  7111. },
  7112. "409": {
  7113. "description": "ConflictError",
  7114. "content": {
  7115. "application/json": {
  7116. "schema": {
  7117. "$ref": "#/components/schemas/ConflictError"
  7118. }
  7119. }
  7120. }
  7121. }
  7122. },
  7123. "description": "Create a form for a session.",
  7124. "summary": "Create session form",
  7125. "requestBody": {
  7126. "content": {
  7127. "application/json": {
  7128. "schema": {
  7129. "$ref": "#/components/schemas/Form.CreatePayload"
  7130. }
  7131. }
  7132. },
  7133. "required": true
  7134. }
  7135. }
  7136. },
  7137. "/api/session/{sessionID}/form/{formID}": {
  7138. "get": {
  7139. "tags": [
  7140. "form"
  7141. ],
  7142. "operationId": "v2.session.form.get",
  7143. "parameters": [
  7144. {
  7145. "name": "sessionID",
  7146. "in": "path",
  7147. "schema": {
  7148. "type": "string"
  7149. },
  7150. "required": true
  7151. },
  7152. {
  7153. "name": "formID",
  7154. "in": "path",
  7155. "schema": {
  7156. "type": "string",
  7157. "allOf": [
  7158. {
  7159. "pattern": "^frm_"
  7160. }
  7161. ]
  7162. },
  7163. "required": true
  7164. }
  7165. ],
  7166. "security": [],
  7167. "responses": {
  7168. "200": {
  7169. "description": "Success",
  7170. "content": {
  7171. "application/json": {
  7172. "schema": {
  7173. "type": "object",
  7174. "properties": {
  7175. "data": {
  7176. "$ref": "#/components/schemas/Form.Info"
  7177. }
  7178. },
  7179. "required": [
  7180. "data"
  7181. ],
  7182. "additionalProperties": false
  7183. }
  7184. }
  7185. }
  7186. },
  7187. "400": {
  7188. "description": "InvalidRequestError",
  7189. "content": {
  7190. "application/json": {
  7191. "schema": {
  7192. "$ref": "#/components/schemas/InvalidRequestError"
  7193. }
  7194. }
  7195. }
  7196. },
  7197. "401": {
  7198. "description": "UnauthorizedError",
  7199. "content": {
  7200. "application/json": {
  7201. "schema": {
  7202. "$ref": "#/components/schemas/UnauthorizedError"
  7203. }
  7204. }
  7205. }
  7206. },
  7207. "404": {
  7208. "description": "SessionNotFoundError | FormNotFoundError",
  7209. "content": {
  7210. "application/json": {
  7211. "schema": {
  7212. "anyOf": [
  7213. {
  7214. "$ref": "#/components/schemas/FormNotFoundError"
  7215. },
  7216. {
  7217. "$ref": "#/components/schemas/SessionNotFoundError"
  7218. },
  7219. {
  7220. "$ref": "#/components/schemas/SessionNotFoundError"
  7221. }
  7222. ]
  7223. }
  7224. }
  7225. }
  7226. }
  7227. },
  7228. "description": "Retrieve a form for a session.",
  7229. "summary": "Get session form"
  7230. }
  7231. },
  7232. "/api/session/{sessionID}/form/{formID}/state": {
  7233. "get": {
  7234. "tags": [
  7235. "form"
  7236. ],
  7237. "operationId": "v2.session.form.state",
  7238. "parameters": [
  7239. {
  7240. "name": "sessionID",
  7241. "in": "path",
  7242. "schema": {
  7243. "type": "string"
  7244. },
  7245. "required": true
  7246. },
  7247. {
  7248. "name": "formID",
  7249. "in": "path",
  7250. "schema": {
  7251. "type": "string",
  7252. "allOf": [
  7253. {
  7254. "pattern": "^frm_"
  7255. }
  7256. ]
  7257. },
  7258. "required": true
  7259. }
  7260. ],
  7261. "security": [],
  7262. "responses": {
  7263. "200": {
  7264. "description": "Success",
  7265. "content": {
  7266. "application/json": {
  7267. "schema": {
  7268. "type": "object",
  7269. "properties": {
  7270. "data": {
  7271. "$ref": "#/components/schemas/Form.State"
  7272. }
  7273. },
  7274. "required": [
  7275. "data"
  7276. ],
  7277. "additionalProperties": false
  7278. }
  7279. }
  7280. }
  7281. },
  7282. "400": {
  7283. "description": "InvalidRequestError",
  7284. "content": {
  7285. "application/json": {
  7286. "schema": {
  7287. "$ref": "#/components/schemas/InvalidRequestError"
  7288. }
  7289. }
  7290. }
  7291. },
  7292. "401": {
  7293. "description": "UnauthorizedError",
  7294. "content": {
  7295. "application/json": {
  7296. "schema": {
  7297. "$ref": "#/components/schemas/UnauthorizedError"
  7298. }
  7299. }
  7300. }
  7301. },
  7302. "404": {
  7303. "description": "SessionNotFoundError | FormNotFoundError",
  7304. "content": {
  7305. "application/json": {
  7306. "schema": {
  7307. "anyOf": [
  7308. {
  7309. "$ref": "#/components/schemas/FormNotFoundError"
  7310. },
  7311. {
  7312. "$ref": "#/components/schemas/SessionNotFoundError"
  7313. },
  7314. {
  7315. "$ref": "#/components/schemas/SessionNotFoundError"
  7316. }
  7317. ]
  7318. }
  7319. }
  7320. }
  7321. }
  7322. },
  7323. "description": "Retrieve the current state for a form.",
  7324. "summary": "Get form state"
  7325. }
  7326. },
  7327. "/api/session/{sessionID}/form/{formID}/reply": {
  7328. "post": {
  7329. "tags": [
  7330. "form"
  7331. ],
  7332. "operationId": "v2.session.form.reply",
  7333. "parameters": [
  7334. {
  7335. "name": "sessionID",
  7336. "in": "path",
  7337. "schema": {
  7338. "type": "string"
  7339. },
  7340. "required": true
  7341. },
  7342. {
  7343. "name": "formID",
  7344. "in": "path",
  7345. "schema": {
  7346. "type": "string",
  7347. "allOf": [
  7348. {
  7349. "pattern": "^frm_"
  7350. }
  7351. ]
  7352. },
  7353. "required": true
  7354. }
  7355. ],
  7356. "security": [],
  7357. "responses": {
  7358. "204": {
  7359. "description": "<No Content>"
  7360. },
  7361. "400": {
  7362. "description": "FormInvalidAnswerError | InvalidRequestError",
  7363. "content": {
  7364. "application/json": {
  7365. "schema": {
  7366. "anyOf": [
  7367. {
  7368. "$ref": "#/components/schemas/FormInvalidAnswerError"
  7369. },
  7370. {
  7371. "$ref": "#/components/schemas/InvalidRequestError"
  7372. }
  7373. ]
  7374. }
  7375. }
  7376. }
  7377. },
  7378. "401": {
  7379. "description": "UnauthorizedError",
  7380. "content": {
  7381. "application/json": {
  7382. "schema": {
  7383. "$ref": "#/components/schemas/UnauthorizedError"
  7384. }
  7385. }
  7386. }
  7387. },
  7388. "404": {
  7389. "description": "SessionNotFoundError | FormNotFoundError",
  7390. "content": {
  7391. "application/json": {
  7392. "schema": {
  7393. "anyOf": [
  7394. {
  7395. "$ref": "#/components/schemas/FormNotFoundError"
  7396. },
  7397. {
  7398. "$ref": "#/components/schemas/SessionNotFoundError"
  7399. },
  7400. {
  7401. "$ref": "#/components/schemas/SessionNotFoundError"
  7402. }
  7403. ]
  7404. }
  7405. }
  7406. }
  7407. },
  7408. "409": {
  7409. "description": "FormAlreadySettledError",
  7410. "content": {
  7411. "application/json": {
  7412. "schema": {
  7413. "$ref": "#/components/schemas/FormAlreadySettledError"
  7414. }
  7415. }
  7416. }
  7417. }
  7418. },
  7419. "description": "Submit an answer to a pending form.",
  7420. "summary": "Reply to form",
  7421. "requestBody": {
  7422. "content": {
  7423. "application/json": {
  7424. "schema": {
  7425. "$ref": "#/components/schemas/Form.Reply"
  7426. }
  7427. }
  7428. },
  7429. "required": true
  7430. }
  7431. }
  7432. },
  7433. "/api/session/{sessionID}/form/{formID}/cancel": {
  7434. "post": {
  7435. "tags": [
  7436. "form"
  7437. ],
  7438. "operationId": "v2.session.form.cancel",
  7439. "parameters": [
  7440. {
  7441. "name": "sessionID",
  7442. "in": "path",
  7443. "schema": {
  7444. "type": "string"
  7445. },
  7446. "required": true
  7447. },
  7448. {
  7449. "name": "formID",
  7450. "in": "path",
  7451. "schema": {
  7452. "type": "string",
  7453. "allOf": [
  7454. {
  7455. "pattern": "^frm_"
  7456. }
  7457. ]
  7458. },
  7459. "required": true
  7460. }
  7461. ],
  7462. "security": [],
  7463. "responses": {
  7464. "204": {
  7465. "description": "<No Content>"
  7466. },
  7467. "400": {
  7468. "description": "InvalidRequestError",
  7469. "content": {
  7470. "application/json": {
  7471. "schema": {
  7472. "$ref": "#/components/schemas/InvalidRequestError"
  7473. }
  7474. }
  7475. }
  7476. },
  7477. "401": {
  7478. "description": "UnauthorizedError",
  7479. "content": {
  7480. "application/json": {
  7481. "schema": {
  7482. "$ref": "#/components/schemas/UnauthorizedError"
  7483. }
  7484. }
  7485. }
  7486. },
  7487. "404": {
  7488. "description": "SessionNotFoundError | FormNotFoundError",
  7489. "content": {
  7490. "application/json": {
  7491. "schema": {
  7492. "anyOf": [
  7493. {
  7494. "$ref": "#/components/schemas/FormNotFoundError"
  7495. },
  7496. {
  7497. "$ref": "#/components/schemas/SessionNotFoundError"
  7498. },
  7499. {
  7500. "$ref": "#/components/schemas/SessionNotFoundError"
  7501. }
  7502. ]
  7503. }
  7504. }
  7505. }
  7506. },
  7507. "409": {
  7508. "description": "FormAlreadySettledError",
  7509. "content": {
  7510. "application/json": {
  7511. "schema": {
  7512. "$ref": "#/components/schemas/FormAlreadySettledError"
  7513. }
  7514. }
  7515. }
  7516. }
  7517. },
  7518. "description": "Cancel a pending form.",
  7519. "summary": "Cancel form"
  7520. }
  7521. },
  7522. "/api/permission/request": {
  7523. "get": {
  7524. "tags": [
  7525. "permission"
  7526. ],
  7527. "operationId": "v2.permission.request.list",
  7528. "parameters": [
  7529. {
  7530. "name": "location",
  7531. "in": "query",
  7532. "schema": {
  7533. "anyOf": [
  7534. {
  7535. "type": "object",
  7536. "properties": {
  7537. "directory": {
  7538. "anyOf": [
  7539. {
  7540. "type": "string"
  7541. },
  7542. {
  7543. "type": "null"
  7544. }
  7545. ]
  7546. },
  7547. "workspace": {
  7548. "anyOf": [
  7549. {
  7550. "type": "string"
  7551. },
  7552. {
  7553. "type": "null"
  7554. }
  7555. ]
  7556. }
  7557. },
  7558. "additionalProperties": false
  7559. },
  7560. {
  7561. "type": "null"
  7562. }
  7563. ]
  7564. },
  7565. "required": false,
  7566. "style": "deepObject",
  7567. "explode": true
  7568. }
  7569. ],
  7570. "security": [],
  7571. "responses": {
  7572. "200": {
  7573. "description": "Success",
  7574. "content": {
  7575. "application/json": {
  7576. "schema": {
  7577. "type": "object",
  7578. "properties": {
  7579. "location": {
  7580. "$ref": "#/components/schemas/Location.Info"
  7581. },
  7582. "data": {
  7583. "type": "array",
  7584. "items": {
  7585. "$ref": "#/components/schemas/Permission.Request"
  7586. }
  7587. }
  7588. },
  7589. "required": [
  7590. "location",
  7591. "data"
  7592. ],
  7593. "additionalProperties": false
  7594. }
  7595. }
  7596. }
  7597. },
  7598. "400": {
  7599. "description": "InvalidRequestError",
  7600. "content": {
  7601. "application/json": {
  7602. "schema": {
  7603. "$ref": "#/components/schemas/InvalidRequestError"
  7604. }
  7605. }
  7606. }
  7607. },
  7608. "401": {
  7609. "description": "UnauthorizedError",
  7610. "content": {
  7611. "application/json": {
  7612. "schema": {
  7613. "$ref": "#/components/schemas/UnauthorizedError"
  7614. }
  7615. }
  7616. }
  7617. }
  7618. },
  7619. "description": "Retrieve pending permission requests for a location.",
  7620. "summary": "List pending permission requests"
  7621. }
  7622. },
  7623. "/api/permission/saved": {
  7624. "get": {
  7625. "tags": [
  7626. "permission"
  7627. ],
  7628. "operationId": "v2.permission.saved.list",
  7629. "parameters": [
  7630. {
  7631. "name": "projectID",
  7632. "in": "query",
  7633. "schema": {
  7634. "anyOf": [
  7635. {
  7636. "type": "string"
  7637. },
  7638. {
  7639. "type": "null"
  7640. }
  7641. ]
  7642. },
  7643. "required": false
  7644. }
  7645. ],
  7646. "security": [],
  7647. "responses": {
  7648. "200": {
  7649. "description": "Success",
  7650. "content": {
  7651. "application/json": {
  7652. "schema": {
  7653. "type": "object",
  7654. "properties": {
  7655. "data": {
  7656. "type": "array",
  7657. "items": {
  7658. "$ref": "#/components/schemas/PermissionSaved.Info"
  7659. }
  7660. }
  7661. },
  7662. "required": [
  7663. "data"
  7664. ],
  7665. "additionalProperties": false
  7666. }
  7667. }
  7668. }
  7669. },
  7670. "400": {
  7671. "description": "InvalidRequestError",
  7672. "content": {
  7673. "application/json": {
  7674. "schema": {
  7675. "$ref": "#/components/schemas/InvalidRequestError"
  7676. }
  7677. }
  7678. }
  7679. },
  7680. "401": {
  7681. "description": "UnauthorizedError",
  7682. "content": {
  7683. "application/json": {
  7684. "schema": {
  7685. "$ref": "#/components/schemas/UnauthorizedError"
  7686. }
  7687. }
  7688. }
  7689. }
  7690. },
  7691. "description": "Retrieve saved permissions, optionally filtered by project.",
  7692. "summary": "List saved permissions"
  7693. }
  7694. },
  7695. "/api/permission/saved/{id}": {
  7696. "delete": {
  7697. "tags": [
  7698. "permission"
  7699. ],
  7700. "operationId": "v2.permission.saved.remove",
  7701. "parameters": [
  7702. {
  7703. "name": "id",
  7704. "in": "path",
  7705. "schema": {
  7706. "type": "string"
  7707. },
  7708. "required": true
  7709. }
  7710. ],
  7711. "security": [],
  7712. "responses": {
  7713. "204": {
  7714. "description": "<No Content>"
  7715. },
  7716. "400": {
  7717. "description": "InvalidRequestError",
  7718. "content": {
  7719. "application/json": {
  7720. "schema": {
  7721. "$ref": "#/components/schemas/InvalidRequestError"
  7722. }
  7723. }
  7724. }
  7725. },
  7726. "401": {
  7727. "description": "UnauthorizedError",
  7728. "content": {
  7729. "application/json": {
  7730. "schema": {
  7731. "$ref": "#/components/schemas/UnauthorizedError"
  7732. }
  7733. }
  7734. }
  7735. }
  7736. },
  7737. "description": "Remove a saved permission by ID.",
  7738. "summary": "Remove saved permission"
  7739. }
  7740. },
  7741. "/api/session/{sessionID}/permission": {
  7742. "post": {
  7743. "tags": [
  7744. "permission"
  7745. ],
  7746. "operationId": "v2.session.permission.create",
  7747. "parameters": [
  7748. {
  7749. "name": "sessionID",
  7750. "in": "path",
  7751. "schema": {
  7752. "type": "string",
  7753. "allOf": [
  7754. {
  7755. "pattern": "^ses"
  7756. }
  7757. ]
  7758. },
  7759. "required": true
  7760. }
  7761. ],
  7762. "security": [],
  7763. "responses": {
  7764. "200": {
  7765. "description": "Success",
  7766. "content": {
  7767. "application/json": {
  7768. "schema": {
  7769. "type": "object",
  7770. "properties": {
  7771. "data": {
  7772. "type": "object",
  7773. "properties": {
  7774. "id": {
  7775. "type": "string",
  7776. "allOf": [
  7777. {
  7778. "pattern": "^per"
  7779. }
  7780. ]
  7781. },
  7782. "effect": {
  7783. "$ref": "#/components/schemas/Permission.Effect"
  7784. }
  7785. },
  7786. "required": [
  7787. "id",
  7788. "effect"
  7789. ],
  7790. "additionalProperties": false
  7791. }
  7792. },
  7793. "required": [
  7794. "data"
  7795. ],
  7796. "additionalProperties": false
  7797. }
  7798. }
  7799. }
  7800. },
  7801. "400": {
  7802. "description": "InvalidRequestError",
  7803. "content": {
  7804. "application/json": {
  7805. "schema": {
  7806. "$ref": "#/components/schemas/InvalidRequestError"
  7807. }
  7808. }
  7809. }
  7810. },
  7811. "401": {
  7812. "description": "UnauthorizedError",
  7813. "content": {
  7814. "application/json": {
  7815. "schema": {
  7816. "$ref": "#/components/schemas/UnauthorizedError"
  7817. }
  7818. }
  7819. }
  7820. },
  7821. "404": {
  7822. "description": "SessionNotFoundError",
  7823. "content": {
  7824. "application/json": {
  7825. "schema": {
  7826. "anyOf": [
  7827. {
  7828. "$ref": "#/components/schemas/SessionNotFoundError"
  7829. },
  7830. {
  7831. "$ref": "#/components/schemas/SessionNotFoundError"
  7832. }
  7833. ]
  7834. }
  7835. }
  7836. }
  7837. }
  7838. },
  7839. "description": "Evaluate and, when approval is required, create a permission request for a session.",
  7840. "summary": "Create permission request",
  7841. "requestBody": {
  7842. "content": {
  7843. "application/json": {
  7844. "schema": {
  7845. "type": "object",
  7846. "properties": {
  7847. "id": {
  7848. "anyOf": [
  7849. {
  7850. "type": "string",
  7851. "allOf": [
  7852. {
  7853. "pattern": "^per"
  7854. }
  7855. ]
  7856. },
  7857. {
  7858. "type": "null"
  7859. }
  7860. ]
  7861. },
  7862. "action": {
  7863. "type": "string"
  7864. },
  7865. "resources": {
  7866. "type": "array",
  7867. "items": {
  7868. "type": "string"
  7869. }
  7870. },
  7871. "save": {
  7872. "type": "array",
  7873. "items": {
  7874. "type": "string"
  7875. }
  7876. },
  7877. "metadata": {
  7878. "type": "object"
  7879. },
  7880. "source": {
  7881. "$ref": "#/components/schemas/Permission.Source"
  7882. },
  7883. "agent": {
  7884. "anyOf": [
  7885. {
  7886. "type": "string"
  7887. },
  7888. {
  7889. "type": "null"
  7890. }
  7891. ]
  7892. }
  7893. },
  7894. "required": [
  7895. "action",
  7896. "resources"
  7897. ],
  7898. "additionalProperties": false
  7899. }
  7900. }
  7901. },
  7902. "required": true
  7903. }
  7904. },
  7905. "get": {
  7906. "tags": [
  7907. "permission"
  7908. ],
  7909. "operationId": "v2.session.permission.list",
  7910. "parameters": [
  7911. {
  7912. "name": "sessionID",
  7913. "in": "path",
  7914. "schema": {
  7915. "type": "string",
  7916. "allOf": [
  7917. {
  7918. "pattern": "^ses"
  7919. }
  7920. ]
  7921. },
  7922. "required": true
  7923. }
  7924. ],
  7925. "security": [],
  7926. "responses": {
  7927. "200": {
  7928. "description": "Success",
  7929. "content": {
  7930. "application/json": {
  7931. "schema": {
  7932. "type": "object",
  7933. "properties": {
  7934. "data": {
  7935. "type": "array",
  7936. "items": {
  7937. "$ref": "#/components/schemas/Permission.Request"
  7938. }
  7939. }
  7940. },
  7941. "required": [
  7942. "data"
  7943. ],
  7944. "additionalProperties": false
  7945. }
  7946. }
  7947. }
  7948. },
  7949. "400": {
  7950. "description": "InvalidRequestError",
  7951. "content": {
  7952. "application/json": {
  7953. "schema": {
  7954. "$ref": "#/components/schemas/InvalidRequestError"
  7955. }
  7956. }
  7957. }
  7958. },
  7959. "401": {
  7960. "description": "UnauthorizedError",
  7961. "content": {
  7962. "application/json": {
  7963. "schema": {
  7964. "$ref": "#/components/schemas/UnauthorizedError"
  7965. }
  7966. }
  7967. }
  7968. },
  7969. "404": {
  7970. "description": "SessionNotFoundError",
  7971. "content": {
  7972. "application/json": {
  7973. "schema": {
  7974. "anyOf": [
  7975. {
  7976. "$ref": "#/components/schemas/SessionNotFoundError"
  7977. },
  7978. {
  7979. "$ref": "#/components/schemas/SessionNotFoundError"
  7980. }
  7981. ]
  7982. }
  7983. }
  7984. }
  7985. }
  7986. },
  7987. "description": "Retrieve pending permission requests owned by a session.",
  7988. "summary": "List session permission requests"
  7989. }
  7990. },
  7991. "/api/session/{sessionID}/permission/{requestID}": {
  7992. "get": {
  7993. "tags": [
  7994. "permission"
  7995. ],
  7996. "operationId": "v2.session.permission.get",
  7997. "parameters": [
  7998. {
  7999. "name": "sessionID",
  8000. "in": "path",
  8001. "schema": {
  8002. "type": "string",
  8003. "allOf": [
  8004. {
  8005. "pattern": "^ses"
  8006. }
  8007. ]
  8008. },
  8009. "required": true
  8010. },
  8011. {
  8012. "name": "requestID",
  8013. "in": "path",
  8014. "schema": {
  8015. "type": "string",
  8016. "allOf": [
  8017. {
  8018. "pattern": "^per"
  8019. }
  8020. ]
  8021. },
  8022. "required": true
  8023. }
  8024. ],
  8025. "security": [],
  8026. "responses": {
  8027. "200": {
  8028. "description": "Success",
  8029. "content": {
  8030. "application/json": {
  8031. "schema": {
  8032. "type": "object",
  8033. "properties": {
  8034. "data": {
  8035. "$ref": "#/components/schemas/Permission.Request"
  8036. }
  8037. },
  8038. "required": [
  8039. "data"
  8040. ],
  8041. "additionalProperties": false
  8042. }
  8043. }
  8044. }
  8045. },
  8046. "400": {
  8047. "description": "InvalidRequestError",
  8048. "content": {
  8049. "application/json": {
  8050. "schema": {
  8051. "$ref": "#/components/schemas/InvalidRequestError"
  8052. }
  8053. }
  8054. }
  8055. },
  8056. "401": {
  8057. "description": "UnauthorizedError",
  8058. "content": {
  8059. "application/json": {
  8060. "schema": {
  8061. "$ref": "#/components/schemas/UnauthorizedError"
  8062. }
  8063. }
  8064. }
  8065. },
  8066. "404": {
  8067. "description": "SessionNotFoundError | PermissionNotFoundError",
  8068. "content": {
  8069. "application/json": {
  8070. "schema": {
  8071. "anyOf": [
  8072. {
  8073. "$ref": "#/components/schemas/PermissionNotFoundError"
  8074. },
  8075. {
  8076. "$ref": "#/components/schemas/SessionNotFoundError"
  8077. },
  8078. {
  8079. "$ref": "#/components/schemas/SessionNotFoundError"
  8080. }
  8081. ]
  8082. }
  8083. }
  8084. }
  8085. }
  8086. },
  8087. "description": "Retrieve a pending permission request owned by a session.",
  8088. "summary": "Get permission request"
  8089. }
  8090. },
  8091. "/api/session/{sessionID}/permission/{requestID}/reply": {
  8092. "post": {
  8093. "tags": [
  8094. "permission"
  8095. ],
  8096. "operationId": "v2.session.permission.reply",
  8097. "parameters": [
  8098. {
  8099. "name": "sessionID",
  8100. "in": "path",
  8101. "schema": {
  8102. "type": "string",
  8103. "allOf": [
  8104. {
  8105. "pattern": "^ses"
  8106. }
  8107. ]
  8108. },
  8109. "required": true
  8110. },
  8111. {
  8112. "name": "requestID",
  8113. "in": "path",
  8114. "schema": {
  8115. "type": "string",
  8116. "allOf": [
  8117. {
  8118. "pattern": "^per"
  8119. }
  8120. ]
  8121. },
  8122. "required": true
  8123. }
  8124. ],
  8125. "security": [],
  8126. "responses": {
  8127. "204": {
  8128. "description": "<No Content>"
  8129. },
  8130. "400": {
  8131. "description": "InvalidRequestError",
  8132. "content": {
  8133. "application/json": {
  8134. "schema": {
  8135. "$ref": "#/components/schemas/InvalidRequestError"
  8136. }
  8137. }
  8138. }
  8139. },
  8140. "401": {
  8141. "description": "UnauthorizedError",
  8142. "content": {
  8143. "application/json": {
  8144. "schema": {
  8145. "$ref": "#/components/schemas/UnauthorizedError"
  8146. }
  8147. }
  8148. }
  8149. },
  8150. "404": {
  8151. "description": "SessionNotFoundError | PermissionNotFoundError",
  8152. "content": {
  8153. "application/json": {
  8154. "schema": {
  8155. "anyOf": [
  8156. {
  8157. "$ref": "#/components/schemas/PermissionNotFoundError"
  8158. },
  8159. {
  8160. "$ref": "#/components/schemas/SessionNotFoundError"
  8161. },
  8162. {
  8163. "$ref": "#/components/schemas/SessionNotFoundError"
  8164. }
  8165. ]
  8166. }
  8167. }
  8168. }
  8169. }
  8170. },
  8171. "description": "Respond to a pending permission request owned by a session.",
  8172. "summary": "Reply to pending permission request",
  8173. "requestBody": {
  8174. "content": {
  8175. "application/json": {
  8176. "schema": {
  8177. "type": "object",
  8178. "properties": {
  8179. "reply": {
  8180. "$ref": "#/components/schemas/Permission.Reply"
  8181. },
  8182. "message": {
  8183. "anyOf": [
  8184. {
  8185. "type": "string"
  8186. },
  8187. {
  8188. "type": "null"
  8189. }
  8190. ]
  8191. }
  8192. },
  8193. "required": [
  8194. "reply"
  8195. ],
  8196. "additionalProperties": false
  8197. }
  8198. }
  8199. },
  8200. "required": true
  8201. }
  8202. }
  8203. },
  8204. "/api/fs/read/*": {
  8205. "get": {
  8206. "tags": [
  8207. "filesystem"
  8208. ],
  8209. "operationId": "v2.fs.read",
  8210. "parameters": [
  8211. {
  8212. "name": "location",
  8213. "in": "query",
  8214. "schema": {
  8215. "anyOf": [
  8216. {
  8217. "type": "object",
  8218. "properties": {
  8219. "directory": {
  8220. "anyOf": [
  8221. {
  8222. "type": "string"
  8223. },
  8224. {
  8225. "type": "null"
  8226. }
  8227. ]
  8228. },
  8229. "workspace": {
  8230. "anyOf": [
  8231. {
  8232. "type": "string"
  8233. },
  8234. {
  8235. "type": "null"
  8236. }
  8237. ]
  8238. }
  8239. },
  8240. "additionalProperties": false
  8241. },
  8242. {
  8243. "type": "null"
  8244. }
  8245. ]
  8246. },
  8247. "required": false,
  8248. "style": "deepObject",
  8249. "explode": true
  8250. }
  8251. ],
  8252. "security": [],
  8253. "responses": {
  8254. "200": {
  8255. "description": "Success",
  8256. "content": {
  8257. "application/octet-stream": {
  8258. "schema": {
  8259. "type": "string",
  8260. "format": "binary"
  8261. }
  8262. }
  8263. }
  8264. },
  8265. "400": {
  8266. "description": "InvalidRequestError",
  8267. "content": {
  8268. "application/json": {
  8269. "schema": {
  8270. "$ref": "#/components/schemas/InvalidRequestError"
  8271. }
  8272. }
  8273. }
  8274. },
  8275. "401": {
  8276. "description": "UnauthorizedError",
  8277. "content": {
  8278. "application/json": {
  8279. "schema": {
  8280. "$ref": "#/components/schemas/UnauthorizedError"
  8281. }
  8282. }
  8283. }
  8284. }
  8285. },
  8286. "description": "Serve one file relative to the requested location.",
  8287. "summary": "Read file"
  8288. }
  8289. },
  8290. "/api/fs/list": {
  8291. "get": {
  8292. "tags": [
  8293. "filesystem"
  8294. ],
  8295. "operationId": "v2.fs.list",
  8296. "parameters": [
  8297. {
  8298. "name": "location",
  8299. "in": "query",
  8300. "schema": {
  8301. "anyOf": [
  8302. {
  8303. "type": "object",
  8304. "properties": {
  8305. "directory": {
  8306. "anyOf": [
  8307. {
  8308. "type": "string"
  8309. },
  8310. {
  8311. "type": "null"
  8312. }
  8313. ]
  8314. },
  8315. "workspace": {
  8316. "anyOf": [
  8317. {
  8318. "type": "string"
  8319. },
  8320. {
  8321. "type": "null"
  8322. }
  8323. ]
  8324. }
  8325. },
  8326. "additionalProperties": false
  8327. },
  8328. {
  8329. "type": "null"
  8330. }
  8331. ]
  8332. },
  8333. "required": false,
  8334. "style": "deepObject",
  8335. "explode": true
  8336. },
  8337. {
  8338. "name": "path",
  8339. "in": "query",
  8340. "schema": {
  8341. "anyOf": [
  8342. {
  8343. "type": "string"
  8344. },
  8345. {
  8346. "type": "null"
  8347. }
  8348. ]
  8349. },
  8350. "required": false
  8351. }
  8352. ],
  8353. "security": [],
  8354. "responses": {
  8355. "200": {
  8356. "description": "Success",
  8357. "content": {
  8358. "application/json": {
  8359. "schema": {
  8360. "type": "object",
  8361. "properties": {
  8362. "location": {
  8363. "$ref": "#/components/schemas/Location.Info"
  8364. },
  8365. "data": {
  8366. "type": "array",
  8367. "items": {
  8368. "$ref": "#/components/schemas/FileSystem.Entry"
  8369. }
  8370. }
  8371. },
  8372. "required": [
  8373. "location",
  8374. "data"
  8375. ],
  8376. "additionalProperties": false
  8377. }
  8378. }
  8379. }
  8380. },
  8381. "400": {
  8382. "description": "InvalidRequestError",
  8383. "content": {
  8384. "application/json": {
  8385. "schema": {
  8386. "$ref": "#/components/schemas/InvalidRequestError"
  8387. }
  8388. }
  8389. }
  8390. },
  8391. "401": {
  8392. "description": "UnauthorizedError",
  8393. "content": {
  8394. "application/json": {
  8395. "schema": {
  8396. "$ref": "#/components/schemas/UnauthorizedError"
  8397. }
  8398. }
  8399. }
  8400. }
  8401. },
  8402. "description": "List direct children of one directory relative to the requested location.",
  8403. "summary": "List directory"
  8404. }
  8405. },
  8406. "/api/fs/find": {
  8407. "get": {
  8408. "tags": [
  8409. "filesystem"
  8410. ],
  8411. "operationId": "v2.fs.find",
  8412. "parameters": [
  8413. {
  8414. "name": "location",
  8415. "in": "query",
  8416. "schema": {
  8417. "anyOf": [
  8418. {
  8419. "type": "object",
  8420. "properties": {
  8421. "directory": {
  8422. "anyOf": [
  8423. {
  8424. "type": "string"
  8425. },
  8426. {
  8427. "type": "null"
  8428. }
  8429. ]
  8430. },
  8431. "workspace": {
  8432. "anyOf": [
  8433. {
  8434. "type": "string"
  8435. },
  8436. {
  8437. "type": "null"
  8438. }
  8439. ]
  8440. }
  8441. },
  8442. "additionalProperties": false
  8443. },
  8444. {
  8445. "type": "null"
  8446. }
  8447. ]
  8448. },
  8449. "required": false,
  8450. "style": "deepObject",
  8451. "explode": true
  8452. },
  8453. {
  8454. "name": "query",
  8455. "in": "query",
  8456. "schema": {
  8457. "type": "string"
  8458. },
  8459. "required": true
  8460. },
  8461. {
  8462. "name": "type",
  8463. "in": "query",
  8464. "schema": {
  8465. "type": "string",
  8466. "enum": [
  8467. "file",
  8468. "directory"
  8469. ]
  8470. },
  8471. "required": false
  8472. },
  8473. {
  8474. "name": "limit",
  8475. "in": "query",
  8476. "schema": {
  8477. "anyOf": [
  8478. {
  8479. "type": "string"
  8480. },
  8481. {
  8482. "type": "null"
  8483. }
  8484. ]
  8485. },
  8486. "required": false
  8487. }
  8488. ],
  8489. "security": [],
  8490. "responses": {
  8491. "200": {
  8492. "description": "Success",
  8493. "content": {
  8494. "application/json": {
  8495. "schema": {
  8496. "type": "object",
  8497. "properties": {
  8498. "location": {
  8499. "$ref": "#/components/schemas/Location.Info"
  8500. },
  8501. "data": {
  8502. "type": "array",
  8503. "items": {
  8504. "$ref": "#/components/schemas/FileSystem.Entry"
  8505. }
  8506. }
  8507. },
  8508. "required": [
  8509. "location",
  8510. "data"
  8511. ],
  8512. "additionalProperties": false
  8513. }
  8514. }
  8515. }
  8516. },
  8517. "400": {
  8518. "description": "InvalidRequestError",
  8519. "content": {
  8520. "application/json": {
  8521. "schema": {
  8522. "$ref": "#/components/schemas/InvalidRequestError"
  8523. }
  8524. }
  8525. }
  8526. },
  8527. "401": {
  8528. "description": "UnauthorizedError",
  8529. "content": {
  8530. "application/json": {
  8531. "schema": {
  8532. "$ref": "#/components/schemas/UnauthorizedError"
  8533. }
  8534. }
  8535. }
  8536. }
  8537. },
  8538. "description": "Find recursively ranked filesystem entries relative to the requested location.",
  8539. "summary": "Find files"
  8540. }
  8541. },
  8542. "/api/command": {
  8543. "get": {
  8544. "tags": [
  8545. "command"
  8546. ],
  8547. "operationId": "v2.command.list",
  8548. "parameters": [
  8549. {
  8550. "name": "location",
  8551. "in": "query",
  8552. "schema": {
  8553. "anyOf": [
  8554. {
  8555. "type": "object",
  8556. "properties": {
  8557. "directory": {
  8558. "anyOf": [
  8559. {
  8560. "type": "string"
  8561. },
  8562. {
  8563. "type": "null"
  8564. }
  8565. ]
  8566. },
  8567. "workspace": {
  8568. "anyOf": [
  8569. {
  8570. "type": "string"
  8571. },
  8572. {
  8573. "type": "null"
  8574. }
  8575. ]
  8576. }
  8577. },
  8578. "additionalProperties": false
  8579. },
  8580. {
  8581. "type": "null"
  8582. }
  8583. ]
  8584. },
  8585. "required": false,
  8586. "style": "deepObject",
  8587. "explode": true
  8588. }
  8589. ],
  8590. "security": [],
  8591. "responses": {
  8592. "200": {
  8593. "description": "Success",
  8594. "content": {
  8595. "application/json": {
  8596. "schema": {
  8597. "type": "object",
  8598. "properties": {
  8599. "location": {
  8600. "$ref": "#/components/schemas/Location.Info"
  8601. },
  8602. "data": {
  8603. "type": "array",
  8604. "items": {
  8605. "$ref": "#/components/schemas/Command.Info"
  8606. }
  8607. }
  8608. },
  8609. "required": [
  8610. "location",
  8611. "data"
  8612. ],
  8613. "additionalProperties": false
  8614. }
  8615. }
  8616. }
  8617. },
  8618. "400": {
  8619. "description": "InvalidRequestError",
  8620. "content": {
  8621. "application/json": {
  8622. "schema": {
  8623. "$ref": "#/components/schemas/InvalidRequestError"
  8624. }
  8625. }
  8626. }
  8627. },
  8628. "401": {
  8629. "description": "UnauthorizedError",
  8630. "content": {
  8631. "application/json": {
  8632. "schema": {
  8633. "$ref": "#/components/schemas/UnauthorizedError"
  8634. }
  8635. }
  8636. }
  8637. }
  8638. },
  8639. "description": "Retrieve currently registered commands.",
  8640. "summary": "List commands"
  8641. }
  8642. },
  8643. "/api/skill": {
  8644. "get": {
  8645. "tags": [
  8646. "skill"
  8647. ],
  8648. "operationId": "v2.skill.list",
  8649. "parameters": [
  8650. {
  8651. "name": "location",
  8652. "in": "query",
  8653. "schema": {
  8654. "anyOf": [
  8655. {
  8656. "type": "object",
  8657. "properties": {
  8658. "directory": {
  8659. "anyOf": [
  8660. {
  8661. "type": "string"
  8662. },
  8663. {
  8664. "type": "null"
  8665. }
  8666. ]
  8667. },
  8668. "workspace": {
  8669. "anyOf": [
  8670. {
  8671. "type": "string"
  8672. },
  8673. {
  8674. "type": "null"
  8675. }
  8676. ]
  8677. }
  8678. },
  8679. "additionalProperties": false
  8680. },
  8681. {
  8682. "type": "null"
  8683. }
  8684. ]
  8685. },
  8686. "required": false,
  8687. "style": "deepObject",
  8688. "explode": true
  8689. }
  8690. ],
  8691. "security": [],
  8692. "responses": {
  8693. "200": {
  8694. "description": "Success",
  8695. "content": {
  8696. "application/json": {
  8697. "schema": {
  8698. "type": "object",
  8699. "properties": {
  8700. "location": {
  8701. "$ref": "#/components/schemas/Location.Info"
  8702. },
  8703. "data": {
  8704. "type": "array",
  8705. "items": {
  8706. "$ref": "#/components/schemas/Skill.Info"
  8707. }
  8708. }
  8709. },
  8710. "required": [
  8711. "location",
  8712. "data"
  8713. ],
  8714. "additionalProperties": false
  8715. }
  8716. }
  8717. }
  8718. },
  8719. "400": {
  8720. "description": "InvalidRequestError",
  8721. "content": {
  8722. "application/json": {
  8723. "schema": {
  8724. "$ref": "#/components/schemas/InvalidRequestError"
  8725. }
  8726. }
  8727. }
  8728. },
  8729. "401": {
  8730. "description": "UnauthorizedError",
  8731. "content": {
  8732. "application/json": {
  8733. "schema": {
  8734. "$ref": "#/components/schemas/UnauthorizedError"
  8735. }
  8736. }
  8737. }
  8738. }
  8739. },
  8740. "description": "Retrieve currently registered skills.",
  8741. "summary": "List skills"
  8742. }
  8743. },
  8744. "/api/event": {
  8745. "get": {
  8746. "tags": [
  8747. "event"
  8748. ],
  8749. "operationId": "v2.event.subscribe",
  8750. "parameters": [],
  8751. "security": [],
  8752. "responses": {
  8753. "200": {
  8754. "description": "Success",
  8755. "content": {
  8756. "text/event-stream": {
  8757. "schema": {
  8758. "type": "object",
  8759. "properties": {
  8760. "id": {
  8761. "anyOf": [
  8762. {
  8763. "type": "string"
  8764. },
  8765. {
  8766. "type": "null"
  8767. }
  8768. ]
  8769. },
  8770. "event": {
  8771. "type": "string"
  8772. },
  8773. "data": {
  8774. "$ref": "#/components/schemas/V2EventJsonString"
  8775. }
  8776. },
  8777. "required": [
  8778. "id",
  8779. "event",
  8780. "data"
  8781. ],
  8782. "additionalProperties": false
  8783. },
  8784. "x-effect-stream": {
  8785. "encoding": "sse",
  8786. "causeSchema": {
  8787. "type": "array",
  8788. "items": {
  8789. "anyOf": [
  8790. {
  8791. "type": "object",
  8792. "properties": {
  8793. "_tag": {
  8794. "type": "string",
  8795. "enum": [
  8796. "Fail"
  8797. ]
  8798. },
  8799. "error": {
  8800. "not": {}
  8801. }
  8802. },
  8803. "required": [
  8804. "_tag",
  8805. "error"
  8806. ],
  8807. "additionalProperties": false
  8808. },
  8809. {
  8810. "type": "object",
  8811. "properties": {
  8812. "_tag": {
  8813. "type": "string",
  8814. "enum": [
  8815. "Die"
  8816. ]
  8817. },
  8818. "defect": {}
  8819. },
  8820. "required": [
  8821. "_tag",
  8822. "defect"
  8823. ],
  8824. "additionalProperties": false
  8825. },
  8826. {
  8827. "type": "object",
  8828. "properties": {
  8829. "_tag": {
  8830. "type": "string",
  8831. "enum": [
  8832. "Interrupt"
  8833. ]
  8834. },
  8835. "fiberId": {
  8836. "anyOf": [
  8837. {
  8838. "type": "number"
  8839. },
  8840. {
  8841. "type": "null"
  8842. }
  8843. ]
  8844. }
  8845. },
  8846. "required": [
  8847. "_tag",
  8848. "fiberId"
  8849. ],
  8850. "additionalProperties": false
  8851. }
  8852. ]
  8853. }
  8854. },
  8855. "errorSchema": {
  8856. "not": {}
  8857. },
  8858. "failureEvent": "effect/httpapi/stream/failure"
  8859. }
  8860. }
  8861. }
  8862. },
  8863. "400": {
  8864. "description": "InvalidRequestError",
  8865. "content": {
  8866. "application/json": {
  8867. "schema": {
  8868. "$ref": "#/components/schemas/InvalidRequestError"
  8869. }
  8870. }
  8871. }
  8872. },
  8873. "401": {
  8874. "description": "UnauthorizedError",
  8875. "content": {
  8876. "application/json": {
  8877. "schema": {
  8878. "$ref": "#/components/schemas/UnauthorizedError"
  8879. }
  8880. }
  8881. }
  8882. }
  8883. },
  8884. "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.",
  8885. "summary": "Subscribe to events"
  8886. }
  8887. },
  8888. "/api/pty": {
  8889. "get": {
  8890. "tags": [
  8891. "pty"
  8892. ],
  8893. "operationId": "v2.pty.list",
  8894. "parameters": [
  8895. {
  8896. "name": "location",
  8897. "in": "query",
  8898. "schema": {
  8899. "anyOf": [
  8900. {
  8901. "type": "object",
  8902. "properties": {
  8903. "directory": {
  8904. "anyOf": [
  8905. {
  8906. "type": "string"
  8907. },
  8908. {
  8909. "type": "null"
  8910. }
  8911. ]
  8912. },
  8913. "workspace": {
  8914. "anyOf": [
  8915. {
  8916. "type": "string"
  8917. },
  8918. {
  8919. "type": "null"
  8920. }
  8921. ]
  8922. }
  8923. },
  8924. "additionalProperties": false
  8925. },
  8926. {
  8927. "type": "null"
  8928. }
  8929. ]
  8930. },
  8931. "required": false,
  8932. "style": "deepObject",
  8933. "explode": true
  8934. }
  8935. ],
  8936. "security": [],
  8937. "responses": {
  8938. "200": {
  8939. "description": "Success",
  8940. "content": {
  8941. "application/json": {
  8942. "schema": {
  8943. "type": "object",
  8944. "properties": {
  8945. "location": {
  8946. "$ref": "#/components/schemas/Location.Info"
  8947. },
  8948. "data": {
  8949. "type": "array",
  8950. "items": {
  8951. "$ref": "#/components/schemas/Pty"
  8952. }
  8953. }
  8954. },
  8955. "required": [
  8956. "location",
  8957. "data"
  8958. ],
  8959. "additionalProperties": false
  8960. }
  8961. }
  8962. }
  8963. },
  8964. "400": {
  8965. "description": "InvalidRequestError",
  8966. "content": {
  8967. "application/json": {
  8968. "schema": {
  8969. "$ref": "#/components/schemas/InvalidRequestError"
  8970. }
  8971. }
  8972. }
  8973. },
  8974. "401": {
  8975. "description": "UnauthorizedError",
  8976. "content": {
  8977. "application/json": {
  8978. "schema": {
  8979. "$ref": "#/components/schemas/UnauthorizedError"
  8980. }
  8981. }
  8982. }
  8983. }
  8984. },
  8985. "description": "List PTY sessions for a location, including exited sessions retained until removal.",
  8986. "summary": "List PTY sessions"
  8987. },
  8988. "post": {
  8989. "tags": [
  8990. "pty"
  8991. ],
  8992. "operationId": "v2.pty.create",
  8993. "parameters": [
  8994. {
  8995. "name": "location",
  8996. "in": "query",
  8997. "schema": {
  8998. "anyOf": [
  8999. {
  9000. "type": "object",
  9001. "properties": {
  9002. "directory": {
  9003. "anyOf": [
  9004. {
  9005. "type": "string"
  9006. },
  9007. {
  9008. "type": "null"
  9009. }
  9010. ]
  9011. },
  9012. "workspace": {
  9013. "anyOf": [
  9014. {
  9015. "type": "string"
  9016. },
  9017. {
  9018. "type": "null"
  9019. }
  9020. ]
  9021. }
  9022. },
  9023. "additionalProperties": false
  9024. },
  9025. {
  9026. "type": "null"
  9027. }
  9028. ]
  9029. },
  9030. "required": false,
  9031. "style": "deepObject",
  9032. "explode": true
  9033. }
  9034. ],
  9035. "security": [],
  9036. "responses": {
  9037. "200": {
  9038. "description": "Success",
  9039. "content": {
  9040. "application/json": {
  9041. "schema": {
  9042. "type": "object",
  9043. "properties": {
  9044. "location": {
  9045. "$ref": "#/components/schemas/Location.Info"
  9046. },
  9047. "data": {
  9048. "$ref": "#/components/schemas/Pty"
  9049. }
  9050. },
  9051. "required": [
  9052. "location",
  9053. "data"
  9054. ],
  9055. "additionalProperties": false
  9056. }
  9057. }
  9058. }
  9059. },
  9060. "400": {
  9061. "description": "InvalidRequestError",
  9062. "content": {
  9063. "application/json": {
  9064. "schema": {
  9065. "$ref": "#/components/schemas/InvalidRequestError"
  9066. }
  9067. }
  9068. }
  9069. },
  9070. "401": {
  9071. "description": "UnauthorizedError",
  9072. "content": {
  9073. "application/json": {
  9074. "schema": {
  9075. "$ref": "#/components/schemas/UnauthorizedError"
  9076. }
  9077. }
  9078. }
  9079. }
  9080. },
  9081. "description": "Create a pseudo-terminal session for a location.",
  9082. "summary": "Create PTY session",
  9083. "requestBody": {
  9084. "content": {
  9085. "application/json": {
  9086. "schema": {
  9087. "type": "object",
  9088. "properties": {
  9089. "command": {
  9090. "type": "string"
  9091. },
  9092. "args": {
  9093. "type": "array",
  9094. "items": {
  9095. "type": "string"
  9096. }
  9097. },
  9098. "cwd": {
  9099. "type": "string"
  9100. },
  9101. "title": {
  9102. "type": "string"
  9103. },
  9104. "env": {
  9105. "type": "object",
  9106. "additionalProperties": {
  9107. "type": "string"
  9108. }
  9109. }
  9110. },
  9111. "additionalProperties": false
  9112. }
  9113. }
  9114. },
  9115. "required": true
  9116. }
  9117. }
  9118. },
  9119. "/api/pty/{ptyID}": {
  9120. "get": {
  9121. "tags": [
  9122. "pty"
  9123. ],
  9124. "operationId": "v2.pty.get",
  9125. "parameters": [
  9126. {
  9127. "name": "ptyID",
  9128. "in": "path",
  9129. "schema": {
  9130. "type": "string",
  9131. "allOf": [
  9132. {
  9133. "pattern": "^pty"
  9134. }
  9135. ]
  9136. },
  9137. "required": true
  9138. },
  9139. {
  9140. "name": "location",
  9141. "in": "query",
  9142. "schema": {
  9143. "anyOf": [
  9144. {
  9145. "type": "object",
  9146. "properties": {
  9147. "directory": {
  9148. "anyOf": [
  9149. {
  9150. "type": "string"
  9151. },
  9152. {
  9153. "type": "null"
  9154. }
  9155. ]
  9156. },
  9157. "workspace": {
  9158. "anyOf": [
  9159. {
  9160. "type": "string"
  9161. },
  9162. {
  9163. "type": "null"
  9164. }
  9165. ]
  9166. }
  9167. },
  9168. "additionalProperties": false
  9169. },
  9170. {
  9171. "type": "null"
  9172. }
  9173. ]
  9174. },
  9175. "required": false,
  9176. "style": "deepObject",
  9177. "explode": true
  9178. }
  9179. ],
  9180. "security": [],
  9181. "responses": {
  9182. "200": {
  9183. "description": "Success",
  9184. "content": {
  9185. "application/json": {
  9186. "schema": {
  9187. "type": "object",
  9188. "properties": {
  9189. "location": {
  9190. "$ref": "#/components/schemas/Location.Info"
  9191. },
  9192. "data": {
  9193. "$ref": "#/components/schemas/Pty"
  9194. }
  9195. },
  9196. "required": [
  9197. "location",
  9198. "data"
  9199. ],
  9200. "additionalProperties": false
  9201. }
  9202. }
  9203. }
  9204. },
  9205. "400": {
  9206. "description": "InvalidRequestError",
  9207. "content": {
  9208. "application/json": {
  9209. "schema": {
  9210. "$ref": "#/components/schemas/InvalidRequestError"
  9211. }
  9212. }
  9213. }
  9214. },
  9215. "401": {
  9216. "description": "UnauthorizedError",
  9217. "content": {
  9218. "application/json": {
  9219. "schema": {
  9220. "$ref": "#/components/schemas/UnauthorizedError"
  9221. }
  9222. }
  9223. }
  9224. },
  9225. "404": {
  9226. "description": "PtyNotFoundError",
  9227. "content": {
  9228. "application/json": {
  9229. "schema": {
  9230. "$ref": "#/components/schemas/PtyNotFoundError"
  9231. }
  9232. }
  9233. }
  9234. }
  9235. },
  9236. "description": "Get one PTY session, including its exit code once exited.",
  9237. "summary": "Get PTY session"
  9238. },
  9239. "put": {
  9240. "tags": [
  9241. "pty"
  9242. ],
  9243. "operationId": "v2.pty.update",
  9244. "parameters": [
  9245. {
  9246. "name": "ptyID",
  9247. "in": "path",
  9248. "schema": {
  9249. "type": "string",
  9250. "allOf": [
  9251. {
  9252. "pattern": "^pty"
  9253. }
  9254. ]
  9255. },
  9256. "required": true
  9257. },
  9258. {
  9259. "name": "location",
  9260. "in": "query",
  9261. "schema": {
  9262. "anyOf": [
  9263. {
  9264. "type": "object",
  9265. "properties": {
  9266. "directory": {
  9267. "anyOf": [
  9268. {
  9269. "type": "string"
  9270. },
  9271. {
  9272. "type": "null"
  9273. }
  9274. ]
  9275. },
  9276. "workspace": {
  9277. "anyOf": [
  9278. {
  9279. "type": "string"
  9280. },
  9281. {
  9282. "type": "null"
  9283. }
  9284. ]
  9285. }
  9286. },
  9287. "additionalProperties": false
  9288. },
  9289. {
  9290. "type": "null"
  9291. }
  9292. ]
  9293. },
  9294. "required": false,
  9295. "style": "deepObject",
  9296. "explode": true
  9297. }
  9298. ],
  9299. "security": [],
  9300. "responses": {
  9301. "200": {
  9302. "description": "Success",
  9303. "content": {
  9304. "application/json": {
  9305. "schema": {
  9306. "type": "object",
  9307. "properties": {
  9308. "location": {
  9309. "$ref": "#/components/schemas/Location.Info"
  9310. },
  9311. "data": {
  9312. "$ref": "#/components/schemas/Pty"
  9313. }
  9314. },
  9315. "required": [
  9316. "location",
  9317. "data"
  9318. ],
  9319. "additionalProperties": false
  9320. }
  9321. }
  9322. }
  9323. },
  9324. "400": {
  9325. "description": "InvalidRequestError",
  9326. "content": {
  9327. "application/json": {
  9328. "schema": {
  9329. "$ref": "#/components/schemas/InvalidRequestError"
  9330. }
  9331. }
  9332. }
  9333. },
  9334. "401": {
  9335. "description": "UnauthorizedError",
  9336. "content": {
  9337. "application/json": {
  9338. "schema": {
  9339. "$ref": "#/components/schemas/UnauthorizedError"
  9340. }
  9341. }
  9342. }
  9343. },
  9344. "404": {
  9345. "description": "PtyNotFoundError",
  9346. "content": {
  9347. "application/json": {
  9348. "schema": {
  9349. "$ref": "#/components/schemas/PtyNotFoundError"
  9350. }
  9351. }
  9352. }
  9353. }
  9354. },
  9355. "description": "Update the title or viewport size of one PTY session.",
  9356. "summary": "Update PTY session",
  9357. "requestBody": {
  9358. "content": {
  9359. "application/json": {
  9360. "schema": {
  9361. "type": "object",
  9362. "properties": {
  9363. "title": {
  9364. "type": "string"
  9365. },
  9366. "size": {
  9367. "type": "object",
  9368. "properties": {
  9369. "rows": {
  9370. "type": "integer",
  9371. "allOf": [
  9372. {
  9373. "exclusiveMinimum": 0
  9374. }
  9375. ]
  9376. },
  9377. "cols": {
  9378. "type": "integer",
  9379. "allOf": [
  9380. {
  9381. "exclusiveMinimum": 0
  9382. }
  9383. ]
  9384. }
  9385. },
  9386. "required": [
  9387. "rows",
  9388. "cols"
  9389. ],
  9390. "additionalProperties": false
  9391. }
  9392. },
  9393. "additionalProperties": false
  9394. }
  9395. }
  9396. },
  9397. "required": true
  9398. }
  9399. },
  9400. "delete": {
  9401. "tags": [
  9402. "pty"
  9403. ],
  9404. "operationId": "v2.pty.remove",
  9405. "parameters": [
  9406. {
  9407. "name": "ptyID",
  9408. "in": "path",
  9409. "schema": {
  9410. "type": "string",
  9411. "allOf": [
  9412. {
  9413. "pattern": "^pty"
  9414. }
  9415. ]
  9416. },
  9417. "required": true
  9418. },
  9419. {
  9420. "name": "location",
  9421. "in": "query",
  9422. "schema": {
  9423. "anyOf": [
  9424. {
  9425. "type": "object",
  9426. "properties": {
  9427. "directory": {
  9428. "anyOf": [
  9429. {
  9430. "type": "string"
  9431. },
  9432. {
  9433. "type": "null"
  9434. }
  9435. ]
  9436. },
  9437. "workspace": {
  9438. "anyOf": [
  9439. {
  9440. "type": "string"
  9441. },
  9442. {
  9443. "type": "null"
  9444. }
  9445. ]
  9446. }
  9447. },
  9448. "additionalProperties": false
  9449. },
  9450. {
  9451. "type": "null"
  9452. }
  9453. ]
  9454. },
  9455. "required": false,
  9456. "style": "deepObject",
  9457. "explode": true
  9458. }
  9459. ],
  9460. "security": [],
  9461. "responses": {
  9462. "204": {
  9463. "description": "<No Content>"
  9464. },
  9465. "400": {
  9466. "description": "InvalidRequestError",
  9467. "content": {
  9468. "application/json": {
  9469. "schema": {
  9470. "$ref": "#/components/schemas/InvalidRequestError"
  9471. }
  9472. }
  9473. }
  9474. },
  9475. "401": {
  9476. "description": "UnauthorizedError",
  9477. "content": {
  9478. "application/json": {
  9479. "schema": {
  9480. "$ref": "#/components/schemas/UnauthorizedError"
  9481. }
  9482. }
  9483. }
  9484. },
  9485. "404": {
  9486. "description": "PtyNotFoundError",
  9487. "content": {
  9488. "application/json": {
  9489. "schema": {
  9490. "$ref": "#/components/schemas/PtyNotFoundError"
  9491. }
  9492. }
  9493. }
  9494. }
  9495. },
  9496. "description": "Terminate and remove one PTY session.",
  9497. "summary": "Remove PTY session"
  9498. }
  9499. },
  9500. "/api/pty/{ptyID}/connect-token": {
  9501. "post": {
  9502. "tags": [
  9503. "pty"
  9504. ],
  9505. "operationId": "v2.pty.connect.token",
  9506. "parameters": [
  9507. {
  9508. "name": "ptyID",
  9509. "in": "path",
  9510. "schema": {
  9511. "type": "string",
  9512. "allOf": [
  9513. {
  9514. "pattern": "^pty"
  9515. }
  9516. ]
  9517. },
  9518. "required": true
  9519. },
  9520. {
  9521. "name": "location",
  9522. "in": "query",
  9523. "schema": {
  9524. "anyOf": [
  9525. {
  9526. "type": "object",
  9527. "properties": {
  9528. "directory": {
  9529. "anyOf": [
  9530. {
  9531. "type": "string"
  9532. },
  9533. {
  9534. "type": "null"
  9535. }
  9536. ]
  9537. },
  9538. "workspace": {
  9539. "anyOf": [
  9540. {
  9541. "type": "string"
  9542. },
  9543. {
  9544. "type": "null"
  9545. }
  9546. ]
  9547. }
  9548. },
  9549. "additionalProperties": false
  9550. },
  9551. {
  9552. "type": "null"
  9553. }
  9554. ]
  9555. },
  9556. "required": false,
  9557. "style": "deepObject",
  9558. "explode": true
  9559. }
  9560. ],
  9561. "security": [],
  9562. "responses": {
  9563. "200": {
  9564. "description": "Success",
  9565. "content": {
  9566. "application/json": {
  9567. "schema": {
  9568. "type": "object",
  9569. "properties": {
  9570. "location": {
  9571. "$ref": "#/components/schemas/Location.Info"
  9572. },
  9573. "data": {
  9574. "$ref": "#/components/schemas/PtyTicket.ConnectToken"
  9575. }
  9576. },
  9577. "required": [
  9578. "location",
  9579. "data"
  9580. ],
  9581. "additionalProperties": false
  9582. }
  9583. }
  9584. }
  9585. },
  9586. "400": {
  9587. "description": "InvalidRequestError",
  9588. "content": {
  9589. "application/json": {
  9590. "schema": {
  9591. "$ref": "#/components/schemas/InvalidRequestError"
  9592. }
  9593. }
  9594. }
  9595. },
  9596. "401": {
  9597. "description": "UnauthorizedError",
  9598. "content": {
  9599. "application/json": {
  9600. "schema": {
  9601. "$ref": "#/components/schemas/UnauthorizedError"
  9602. }
  9603. }
  9604. }
  9605. },
  9606. "403": {
  9607. "description": "ForbiddenError",
  9608. "content": {
  9609. "application/json": {
  9610. "schema": {
  9611. "$ref": "#/components/schemas/ForbiddenError"
  9612. }
  9613. }
  9614. }
  9615. },
  9616. "404": {
  9617. "description": "PtyNotFoundError",
  9618. "content": {
  9619. "application/json": {
  9620. "schema": {
  9621. "$ref": "#/components/schemas/PtyNotFoundError"
  9622. }
  9623. }
  9624. }
  9625. }
  9626. },
  9627. "description": "Create a short-lived single-use ticket for opening a PTY WebSocket connection.",
  9628. "summary": "Create PTY WebSocket token"
  9629. }
  9630. },
  9631. "/api/pty/{ptyID}/connect": {
  9632. "get": {
  9633. "tags": [
  9634. "pty"
  9635. ],
  9636. "operationId": "v2.pty.connect",
  9637. "parameters": [
  9638. {
  9639. "name": "ptyID",
  9640. "in": "path",
  9641. "schema": {
  9642. "type": "string",
  9643. "allOf": [
  9644. {
  9645. "pattern": "^pty"
  9646. }
  9647. ]
  9648. },
  9649. "required": true
  9650. },
  9651. {
  9652. "in": "query",
  9653. "name": "location[directory]",
  9654. "schema": {
  9655. "type": "string"
  9656. }
  9657. },
  9658. {
  9659. "in": "query",
  9660. "name": "location[workspace]",
  9661. "schema": {
  9662. "type": "string"
  9663. }
  9664. },
  9665. {
  9666. "in": "query",
  9667. "name": "cursor",
  9668. "schema": {
  9669. "type": "string"
  9670. }
  9671. },
  9672. {
  9673. "in": "query",
  9674. "name": "ticket",
  9675. "schema": {
  9676. "type": "string"
  9677. }
  9678. }
  9679. ],
  9680. "security": [],
  9681. "responses": {
  9682. "200": {
  9683. "description": "Success",
  9684. "content": {
  9685. "application/json": {
  9686. "schema": {
  9687. "type": "boolean"
  9688. }
  9689. }
  9690. }
  9691. },
  9692. "400": {
  9693. "description": "InvalidRequestError",
  9694. "content": {
  9695. "application/json": {
  9696. "schema": {
  9697. "$ref": "#/components/schemas/InvalidRequestError"
  9698. }
  9699. }
  9700. }
  9701. },
  9702. "401": {
  9703. "description": "UnauthorizedError",
  9704. "content": {
  9705. "application/json": {
  9706. "schema": {
  9707. "$ref": "#/components/schemas/UnauthorizedError"
  9708. }
  9709. }
  9710. }
  9711. },
  9712. "403": {
  9713. "description": "ForbiddenError",
  9714. "content": {
  9715. "application/json": {
  9716. "schema": {
  9717. "$ref": "#/components/schemas/ForbiddenError"
  9718. }
  9719. }
  9720. }
  9721. },
  9722. "404": {
  9723. "description": "PtyNotFoundError",
  9724. "content": {
  9725. "application/json": {
  9726. "schema": {
  9727. "$ref": "#/components/schemas/PtyNotFoundError"
  9728. }
  9729. }
  9730. }
  9731. }
  9732. },
  9733. "description": "Establish a WebSocket connection streaming PTY output and accepting terminal input.",
  9734. "summary": "Connect to PTY session",
  9735. "x-websocket": true
  9736. }
  9737. },
  9738. "/api/shell": {
  9739. "get": {
  9740. "tags": [
  9741. "shell"
  9742. ],
  9743. "operationId": "v2.shell.list",
  9744. "parameters": [
  9745. {
  9746. "name": "location",
  9747. "in": "query",
  9748. "schema": {
  9749. "anyOf": [
  9750. {
  9751. "type": "object",
  9752. "properties": {
  9753. "directory": {
  9754. "anyOf": [
  9755. {
  9756. "type": "string"
  9757. },
  9758. {
  9759. "type": "null"
  9760. }
  9761. ]
  9762. },
  9763. "workspace": {
  9764. "anyOf": [
  9765. {
  9766. "type": "string"
  9767. },
  9768. {
  9769. "type": "null"
  9770. }
  9771. ]
  9772. }
  9773. },
  9774. "additionalProperties": false
  9775. },
  9776. {
  9777. "type": "null"
  9778. }
  9779. ]
  9780. },
  9781. "required": false,
  9782. "style": "deepObject",
  9783. "explode": true
  9784. }
  9785. ],
  9786. "security": [],
  9787. "responses": {
  9788. "200": {
  9789. "description": "Success",
  9790. "content": {
  9791. "application/json": {
  9792. "schema": {
  9793. "type": "object",
  9794. "properties": {
  9795. "location": {
  9796. "$ref": "#/components/schemas/Location.Info"
  9797. },
  9798. "data": {
  9799. "type": "array",
  9800. "items": {
  9801. "$ref": "#/components/schemas/Shell.Info1"
  9802. }
  9803. }
  9804. },
  9805. "required": [
  9806. "location",
  9807. "data"
  9808. ],
  9809. "additionalProperties": false
  9810. }
  9811. }
  9812. }
  9813. },
  9814. "400": {
  9815. "description": "InvalidRequestError",
  9816. "content": {
  9817. "application/json": {
  9818. "schema": {
  9819. "$ref": "#/components/schemas/InvalidRequestError"
  9820. }
  9821. }
  9822. }
  9823. },
  9824. "401": {
  9825. "description": "UnauthorizedError",
  9826. "content": {
  9827. "application/json": {
  9828. "schema": {
  9829. "$ref": "#/components/schemas/UnauthorizedError"
  9830. }
  9831. }
  9832. }
  9833. }
  9834. },
  9835. "description": "List currently running shell commands for a location. Exited commands are not included.",
  9836. "summary": "List running shell commands"
  9837. },
  9838. "post": {
  9839. "tags": [
  9840. "shell"
  9841. ],
  9842. "operationId": "v2.shell.create",
  9843. "parameters": [
  9844. {
  9845. "name": "location",
  9846. "in": "query",
  9847. "schema": {
  9848. "anyOf": [
  9849. {
  9850. "type": "object",
  9851. "properties": {
  9852. "directory": {
  9853. "anyOf": [
  9854. {
  9855. "type": "string"
  9856. },
  9857. {
  9858. "type": "null"
  9859. }
  9860. ]
  9861. },
  9862. "workspace": {
  9863. "anyOf": [
  9864. {
  9865. "type": "string"
  9866. },
  9867. {
  9868. "type": "null"
  9869. }
  9870. ]
  9871. }
  9872. },
  9873. "additionalProperties": false
  9874. },
  9875. {
  9876. "type": "null"
  9877. }
  9878. ]
  9879. },
  9880. "required": false,
  9881. "style": "deepObject",
  9882. "explode": true
  9883. }
  9884. ],
  9885. "security": [],
  9886. "responses": {
  9887. "200": {
  9888. "description": "Success",
  9889. "content": {
  9890. "application/json": {
  9891. "schema": {
  9892. "type": "object",
  9893. "properties": {
  9894. "location": {
  9895. "$ref": "#/components/schemas/Location.Info"
  9896. },
  9897. "data": {
  9898. "$ref": "#/components/schemas/Shell.Info1"
  9899. }
  9900. },
  9901. "required": [
  9902. "location",
  9903. "data"
  9904. ],
  9905. "additionalProperties": false
  9906. }
  9907. }
  9908. }
  9909. },
  9910. "400": {
  9911. "description": "InvalidRequestError",
  9912. "content": {
  9913. "application/json": {
  9914. "schema": {
  9915. "$ref": "#/components/schemas/InvalidRequestError"
  9916. }
  9917. }
  9918. }
  9919. },
  9920. "401": {
  9921. "description": "UnauthorizedError",
  9922. "content": {
  9923. "application/json": {
  9924. "schema": {
  9925. "$ref": "#/components/schemas/UnauthorizedError"
  9926. }
  9927. }
  9928. }
  9929. }
  9930. },
  9931. "description": "Spawn one non-interactive shell command for a location. Combined stdout/stderr is captured to a file pageable via output.",
  9932. "summary": "Run shell command",
  9933. "requestBody": {
  9934. "content": {
  9935. "application/json": {
  9936. "schema": {
  9937. "type": "object",
  9938. "properties": {
  9939. "command": {
  9940. "type": "string"
  9941. },
  9942. "cwd": {
  9943. "type": "string"
  9944. },
  9945. "timeout": {
  9946. "type": "integer",
  9947. "allOf": [
  9948. {
  9949. "minimum": 0
  9950. }
  9951. ]
  9952. },
  9953. "metadata": {
  9954. "type": "object"
  9955. }
  9956. },
  9957. "required": [
  9958. "command",
  9959. "timeout"
  9960. ],
  9961. "additionalProperties": false
  9962. }
  9963. }
  9964. },
  9965. "required": true
  9966. }
  9967. }
  9968. },
  9969. "/api/shell/{id}": {
  9970. "get": {
  9971. "tags": [
  9972. "shell"
  9973. ],
  9974. "operationId": "v2.shell.get",
  9975. "parameters": [
  9976. {
  9977. "name": "id",
  9978. "in": "path",
  9979. "schema": {
  9980. "type": "string",
  9981. "allOf": [
  9982. {
  9983. "pattern": "^sh_"
  9984. }
  9985. ]
  9986. },
  9987. "required": true
  9988. },
  9989. {
  9990. "name": "location",
  9991. "in": "query",
  9992. "schema": {
  9993. "anyOf": [
  9994. {
  9995. "type": "object",
  9996. "properties": {
  9997. "directory": {
  9998. "anyOf": [
  9999. {
  10000. "type": "string"
  10001. },
  10002. {
  10003. "type": "null"
  10004. }
  10005. ]
  10006. },
  10007. "workspace": {
  10008. "anyOf": [
  10009. {
  10010. "type": "string"
  10011. },
  10012. {
  10013. "type": "null"
  10014. }
  10015. ]
  10016. }
  10017. },
  10018. "additionalProperties": false
  10019. },
  10020. {
  10021. "type": "null"
  10022. }
  10023. ]
  10024. },
  10025. "required": false,
  10026. "style": "deepObject",
  10027. "explode": true
  10028. }
  10029. ],
  10030. "security": [],
  10031. "responses": {
  10032. "200": {
  10033. "description": "Success",
  10034. "content": {
  10035. "application/json": {
  10036. "schema": {
  10037. "type": "object",
  10038. "properties": {
  10039. "location": {
  10040. "$ref": "#/components/schemas/Location.Info"
  10041. },
  10042. "data": {
  10043. "$ref": "#/components/schemas/Shell.Info1"
  10044. }
  10045. },
  10046. "required": [
  10047. "location",
  10048. "data"
  10049. ],
  10050. "additionalProperties": false
  10051. }
  10052. }
  10053. }
  10054. },
  10055. "400": {
  10056. "description": "InvalidRequestError",
  10057. "content": {
  10058. "application/json": {
  10059. "schema": {
  10060. "$ref": "#/components/schemas/InvalidRequestError"
  10061. }
  10062. }
  10063. }
  10064. },
  10065. "401": {
  10066. "description": "UnauthorizedError",
  10067. "content": {
  10068. "application/json": {
  10069. "schema": {
  10070. "$ref": "#/components/schemas/UnauthorizedError"
  10071. }
  10072. }
  10073. }
  10074. },
  10075. "404": {
  10076. "description": "ShellNotFoundError",
  10077. "content": {
  10078. "application/json": {
  10079. "schema": {
  10080. "$ref": "#/components/schemas/ShellNotFoundError"
  10081. }
  10082. }
  10083. }
  10084. }
  10085. },
  10086. "description": "Get one shell command, including its status and exit code once exited.",
  10087. "summary": "Get shell command"
  10088. },
  10089. "delete": {
  10090. "tags": [
  10091. "shell"
  10092. ],
  10093. "operationId": "v2.shell.remove",
  10094. "parameters": [
  10095. {
  10096. "name": "id",
  10097. "in": "path",
  10098. "schema": {
  10099. "type": "string",
  10100. "allOf": [
  10101. {
  10102. "pattern": "^sh_"
  10103. }
  10104. ]
  10105. },
  10106. "required": true
  10107. },
  10108. {
  10109. "name": "location",
  10110. "in": "query",
  10111. "schema": {
  10112. "anyOf": [
  10113. {
  10114. "type": "object",
  10115. "properties": {
  10116. "directory": {
  10117. "anyOf": [
  10118. {
  10119. "type": "string"
  10120. },
  10121. {
  10122. "type": "null"
  10123. }
  10124. ]
  10125. },
  10126. "workspace": {
  10127. "anyOf": [
  10128. {
  10129. "type": "string"
  10130. },
  10131. {
  10132. "type": "null"
  10133. }
  10134. ]
  10135. }
  10136. },
  10137. "additionalProperties": false
  10138. },
  10139. {
  10140. "type": "null"
  10141. }
  10142. ]
  10143. },
  10144. "required": false,
  10145. "style": "deepObject",
  10146. "explode": true
  10147. }
  10148. ],
  10149. "security": [],
  10150. "responses": {
  10151. "204": {
  10152. "description": "<No Content>"
  10153. },
  10154. "400": {
  10155. "description": "InvalidRequestError",
  10156. "content": {
  10157. "application/json": {
  10158. "schema": {
  10159. "$ref": "#/components/schemas/InvalidRequestError"
  10160. }
  10161. }
  10162. }
  10163. },
  10164. "401": {
  10165. "description": "UnauthorizedError",
  10166. "content": {
  10167. "application/json": {
  10168. "schema": {
  10169. "$ref": "#/components/schemas/UnauthorizedError"
  10170. }
  10171. }
  10172. }
  10173. },
  10174. "404": {
  10175. "description": "ShellNotFoundError",
  10176. "content": {
  10177. "application/json": {
  10178. "schema": {
  10179. "$ref": "#/components/schemas/ShellNotFoundError"
  10180. }
  10181. }
  10182. }
  10183. }
  10184. },
  10185. "description": "Terminate and remove one shell command and its retained output.",
  10186. "summary": "Remove shell command"
  10187. }
  10188. },
  10189. "/api/shell/{id}/timeout": {
  10190. "patch": {
  10191. "tags": [
  10192. "shell"
  10193. ],
  10194. "operationId": "v2.shell.timeout",
  10195. "parameters": [
  10196. {
  10197. "name": "id",
  10198. "in": "path",
  10199. "schema": {
  10200. "type": "string",
  10201. "allOf": [
  10202. {
  10203. "pattern": "^sh_"
  10204. }
  10205. ]
  10206. },
  10207. "required": true
  10208. },
  10209. {
  10210. "name": "location",
  10211. "in": "query",
  10212. "schema": {
  10213. "anyOf": [
  10214. {
  10215. "type": "object",
  10216. "properties": {
  10217. "directory": {
  10218. "anyOf": [
  10219. {
  10220. "type": "string"
  10221. },
  10222. {
  10223. "type": "null"
  10224. }
  10225. ]
  10226. },
  10227. "workspace": {
  10228. "anyOf": [
  10229. {
  10230. "type": "string"
  10231. },
  10232. {
  10233. "type": "null"
  10234. }
  10235. ]
  10236. }
  10237. },
  10238. "additionalProperties": false
  10239. },
  10240. {
  10241. "type": "null"
  10242. }
  10243. ]
  10244. },
  10245. "required": false,
  10246. "style": "deepObject",
  10247. "explode": true
  10248. }
  10249. ],
  10250. "security": [],
  10251. "responses": {
  10252. "200": {
  10253. "description": "Success",
  10254. "content": {
  10255. "application/json": {
  10256. "schema": {
  10257. "type": "object",
  10258. "properties": {
  10259. "location": {
  10260. "$ref": "#/components/schemas/Location.Info"
  10261. },
  10262. "data": {
  10263. "$ref": "#/components/schemas/Shell.Info1"
  10264. }
  10265. },
  10266. "required": [
  10267. "location",
  10268. "data"
  10269. ],
  10270. "additionalProperties": false
  10271. }
  10272. }
  10273. }
  10274. },
  10275. "400": {
  10276. "description": "InvalidRequestError",
  10277. "content": {
  10278. "application/json": {
  10279. "schema": {
  10280. "$ref": "#/components/schemas/InvalidRequestError"
  10281. }
  10282. }
  10283. }
  10284. },
  10285. "401": {
  10286. "description": "UnauthorizedError",
  10287. "content": {
  10288. "application/json": {
  10289. "schema": {
  10290. "$ref": "#/components/schemas/UnauthorizedError"
  10291. }
  10292. }
  10293. }
  10294. },
  10295. "404": {
  10296. "description": "ShellNotFoundError",
  10297. "content": {
  10298. "application/json": {
  10299. "schema": {
  10300. "$ref": "#/components/schemas/ShellNotFoundError"
  10301. }
  10302. }
  10303. }
  10304. }
  10305. },
  10306. "description": "Replace a running shell command's timeout from now, or clear it with zero.",
  10307. "summary": "Update shell timeout",
  10308. "requestBody": {
  10309. "content": {
  10310. "application/json": {
  10311. "schema": {
  10312. "type": "object",
  10313. "properties": {
  10314. "timeout": {
  10315. "type": "integer",
  10316. "allOf": [
  10317. {
  10318. "minimum": 0
  10319. }
  10320. ]
  10321. }
  10322. },
  10323. "required": [
  10324. "timeout"
  10325. ],
  10326. "additionalProperties": false
  10327. }
  10328. }
  10329. },
  10330. "required": true
  10331. }
  10332. }
  10333. },
  10334. "/api/shell/{id}/output": {
  10335. "get": {
  10336. "tags": [
  10337. "shell"
  10338. ],
  10339. "operationId": "v2.shell.output",
  10340. "parameters": [
  10341. {
  10342. "name": "id",
  10343. "in": "path",
  10344. "schema": {
  10345. "type": "string",
  10346. "allOf": [
  10347. {
  10348. "pattern": "^sh_"
  10349. }
  10350. ]
  10351. },
  10352. "required": true
  10353. },
  10354. {
  10355. "name": "location",
  10356. "in": "query",
  10357. "schema": {
  10358. "anyOf": [
  10359. {
  10360. "type": "object",
  10361. "properties": {
  10362. "directory": {
  10363. "anyOf": [
  10364. {
  10365. "type": "string"
  10366. },
  10367. {
  10368. "type": "null"
  10369. }
  10370. ]
  10371. },
  10372. "workspace": {
  10373. "anyOf": [
  10374. {
  10375. "type": "string"
  10376. },
  10377. {
  10378. "type": "null"
  10379. }
  10380. ]
  10381. }
  10382. },
  10383. "additionalProperties": false
  10384. },
  10385. {
  10386. "type": "null"
  10387. }
  10388. ]
  10389. },
  10390. "required": false,
  10391. "style": "deepObject",
  10392. "explode": true
  10393. },
  10394. {
  10395. "name": "cursor",
  10396. "in": "query",
  10397. "schema": {
  10398. "type": "string",
  10399. "allOf": [
  10400. {
  10401. "pattern": "^[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?$"
  10402. }
  10403. ]
  10404. },
  10405. "required": false
  10406. },
  10407. {
  10408. "name": "limit",
  10409. "in": "query",
  10410. "schema": {
  10411. "type": "string",
  10412. "allOf": [
  10413. {
  10414. "pattern": "^[+-]?\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?$"
  10415. }
  10416. ]
  10417. },
  10418. "required": false
  10419. }
  10420. ],
  10421. "security": [],
  10422. "responses": {
  10423. "200": {
  10424. "description": "Success",
  10425. "content": {
  10426. "application/json": {
  10427. "schema": {
  10428. "type": "object",
  10429. "properties": {
  10430. "location": {
  10431. "$ref": "#/components/schemas/Location.Info"
  10432. },
  10433. "data": {
  10434. "type": "object",
  10435. "properties": {
  10436. "output": {
  10437. "type": "string"
  10438. },
  10439. "cursor": {
  10440. "type": "integer",
  10441. "allOf": [
  10442. {
  10443. "minimum": 0
  10444. }
  10445. ]
  10446. },
  10447. "size": {
  10448. "type": "integer",
  10449. "allOf": [
  10450. {
  10451. "minimum": 0
  10452. }
  10453. ]
  10454. },
  10455. "truncated": {
  10456. "type": "boolean"
  10457. }
  10458. },
  10459. "required": [
  10460. "output",
  10461. "cursor",
  10462. "size",
  10463. "truncated"
  10464. ],
  10465. "additionalProperties": false
  10466. }
  10467. },
  10468. "required": [
  10469. "location",
  10470. "data"
  10471. ],
  10472. "additionalProperties": false
  10473. }
  10474. }
  10475. }
  10476. },
  10477. "400": {
  10478. "description": "InvalidRequestError",
  10479. "content": {
  10480. "application/json": {
  10481. "schema": {
  10482. "$ref": "#/components/schemas/InvalidRequestError"
  10483. }
  10484. }
  10485. }
  10486. },
  10487. "401": {
  10488. "description": "UnauthorizedError",
  10489. "content": {
  10490. "application/json": {
  10491. "schema": {
  10492. "$ref": "#/components/schemas/UnauthorizedError"
  10493. }
  10494. }
  10495. }
  10496. },
  10497. "404": {
  10498. "description": "ShellNotFoundError",
  10499. "content": {
  10500. "application/json": {
  10501. "schema": {
  10502. "$ref": "#/components/schemas/ShellNotFoundError"
  10503. }
  10504. }
  10505. }
  10506. }
  10507. },
  10508. "description": "Page through captured combined output by absolute byte cursor.",
  10509. "summary": "Read shell output"
  10510. }
  10511. },
  10512. "/api/question/request": {
  10513. "get": {
  10514. "tags": [
  10515. "question"
  10516. ],
  10517. "operationId": "v2.question.request.list",
  10518. "parameters": [
  10519. {
  10520. "name": "location",
  10521. "in": "query",
  10522. "schema": {
  10523. "anyOf": [
  10524. {
  10525. "type": "object",
  10526. "properties": {
  10527. "directory": {
  10528. "anyOf": [
  10529. {
  10530. "type": "string"
  10531. },
  10532. {
  10533. "type": "null"
  10534. }
  10535. ]
  10536. },
  10537. "workspace": {
  10538. "anyOf": [
  10539. {
  10540. "type": "string"
  10541. },
  10542. {
  10543. "type": "null"
  10544. }
  10545. ]
  10546. }
  10547. },
  10548. "additionalProperties": false
  10549. },
  10550. {
  10551. "type": "null"
  10552. }
  10553. ]
  10554. },
  10555. "required": false,
  10556. "style": "deepObject",
  10557. "explode": true
  10558. }
  10559. ],
  10560. "security": [],
  10561. "responses": {
  10562. "200": {
  10563. "description": "Success",
  10564. "content": {
  10565. "application/json": {
  10566. "schema": {
  10567. "type": "object",
  10568. "properties": {
  10569. "location": {
  10570. "$ref": "#/components/schemas/Location.Info"
  10571. },
  10572. "data": {
  10573. "type": "array",
  10574. "items": {
  10575. "$ref": "#/components/schemas/Question.Request"
  10576. }
  10577. }
  10578. },
  10579. "required": [
  10580. "location",
  10581. "data"
  10582. ],
  10583. "additionalProperties": false
  10584. }
  10585. }
  10586. }
  10587. },
  10588. "400": {
  10589. "description": "InvalidRequestError",
  10590. "content": {
  10591. "application/json": {
  10592. "schema": {
  10593. "$ref": "#/components/schemas/InvalidRequestError"
  10594. }
  10595. }
  10596. }
  10597. },
  10598. "401": {
  10599. "description": "UnauthorizedError",
  10600. "content": {
  10601. "application/json": {
  10602. "schema": {
  10603. "$ref": "#/components/schemas/UnauthorizedError"
  10604. }
  10605. }
  10606. }
  10607. }
  10608. },
  10609. "description": "Retrieve pending question requests for a location.",
  10610. "summary": "List pending question requests"
  10611. }
  10612. },
  10613. "/api/session/{sessionID}/question": {
  10614. "get": {
  10615. "tags": [
  10616. "question"
  10617. ],
  10618. "operationId": "v2.session.question.list",
  10619. "parameters": [
  10620. {
  10621. "name": "sessionID",
  10622. "in": "path",
  10623. "schema": {
  10624. "type": "string",
  10625. "allOf": [
  10626. {
  10627. "pattern": "^ses"
  10628. }
  10629. ]
  10630. },
  10631. "required": true
  10632. }
  10633. ],
  10634. "security": [],
  10635. "responses": {
  10636. "200": {
  10637. "description": "Success",
  10638. "content": {
  10639. "application/json": {
  10640. "schema": {
  10641. "type": "object",
  10642. "properties": {
  10643. "data": {
  10644. "type": "array",
  10645. "items": {
  10646. "$ref": "#/components/schemas/Question.Request"
  10647. }
  10648. }
  10649. },
  10650. "required": [
  10651. "data"
  10652. ],
  10653. "additionalProperties": false
  10654. }
  10655. }
  10656. }
  10657. },
  10658. "400": {
  10659. "description": "InvalidRequestError",
  10660. "content": {
  10661. "application/json": {
  10662. "schema": {
  10663. "$ref": "#/components/schemas/InvalidRequestError"
  10664. }
  10665. }
  10666. }
  10667. },
  10668. "401": {
  10669. "description": "UnauthorizedError",
  10670. "content": {
  10671. "application/json": {
  10672. "schema": {
  10673. "$ref": "#/components/schemas/UnauthorizedError"
  10674. }
  10675. }
  10676. }
  10677. },
  10678. "404": {
  10679. "description": "SessionNotFoundError",
  10680. "content": {
  10681. "application/json": {
  10682. "schema": {
  10683. "anyOf": [
  10684. {
  10685. "$ref": "#/components/schemas/SessionNotFoundError"
  10686. },
  10687. {
  10688. "$ref": "#/components/schemas/SessionNotFoundError"
  10689. }
  10690. ]
  10691. }
  10692. }
  10693. }
  10694. }
  10695. },
  10696. "description": "Retrieve pending question requests owned by a session.",
  10697. "summary": "List session question requests"
  10698. }
  10699. },
  10700. "/api/session/{sessionID}/question/{requestID}/reply": {
  10701. "post": {
  10702. "tags": [
  10703. "question"
  10704. ],
  10705. "operationId": "v2.session.question.reply",
  10706. "parameters": [
  10707. {
  10708. "name": "sessionID",
  10709. "in": "path",
  10710. "schema": {
  10711. "type": "string",
  10712. "allOf": [
  10713. {
  10714. "pattern": "^ses"
  10715. }
  10716. ]
  10717. },
  10718. "required": true
  10719. },
  10720. {
  10721. "name": "requestID",
  10722. "in": "path",
  10723. "schema": {
  10724. "type": "string",
  10725. "allOf": [
  10726. {
  10727. "pattern": "^que"
  10728. }
  10729. ]
  10730. },
  10731. "required": true
  10732. }
  10733. ],
  10734. "security": [],
  10735. "responses": {
  10736. "204": {
  10737. "description": "<No Content>"
  10738. },
  10739. "400": {
  10740. "description": "InvalidRequestError",
  10741. "content": {
  10742. "application/json": {
  10743. "schema": {
  10744. "$ref": "#/components/schemas/InvalidRequestError"
  10745. }
  10746. }
  10747. }
  10748. },
  10749. "401": {
  10750. "description": "UnauthorizedError",
  10751. "content": {
  10752. "application/json": {
  10753. "schema": {
  10754. "$ref": "#/components/schemas/UnauthorizedError"
  10755. }
  10756. }
  10757. }
  10758. },
  10759. "404": {
  10760. "description": "SessionNotFoundError | QuestionNotFoundError",
  10761. "content": {
  10762. "application/json": {
  10763. "schema": {
  10764. "anyOf": [
  10765. {
  10766. "$ref": "#/components/schemas/QuestionNotFoundError"
  10767. },
  10768. {
  10769. "$ref": "#/components/schemas/SessionNotFoundError"
  10770. },
  10771. {
  10772. "$ref": "#/components/schemas/SessionNotFoundError"
  10773. }
  10774. ]
  10775. }
  10776. }
  10777. }
  10778. }
  10779. },
  10780. "description": "Answer a pending question request owned by a session.",
  10781. "summary": "Reply to pending question request",
  10782. "requestBody": {
  10783. "content": {
  10784. "application/json": {
  10785. "schema": {
  10786. "$ref": "#/components/schemas/Question.Reply"
  10787. }
  10788. }
  10789. },
  10790. "required": true
  10791. }
  10792. }
  10793. },
  10794. "/api/session/{sessionID}/question/{requestID}/reject": {
  10795. "post": {
  10796. "tags": [
  10797. "question"
  10798. ],
  10799. "operationId": "v2.session.question.reject",
  10800. "parameters": [
  10801. {
  10802. "name": "sessionID",
  10803. "in": "path",
  10804. "schema": {
  10805. "type": "string",
  10806. "allOf": [
  10807. {
  10808. "pattern": "^ses"
  10809. }
  10810. ]
  10811. },
  10812. "required": true
  10813. },
  10814. {
  10815. "name": "requestID",
  10816. "in": "path",
  10817. "schema": {
  10818. "type": "string",
  10819. "allOf": [
  10820. {
  10821. "pattern": "^que"
  10822. }
  10823. ]
  10824. },
  10825. "required": true
  10826. }
  10827. ],
  10828. "security": [],
  10829. "responses": {
  10830. "204": {
  10831. "description": "<No Content>"
  10832. },
  10833. "400": {
  10834. "description": "InvalidRequestError",
  10835. "content": {
  10836. "application/json": {
  10837. "schema": {
  10838. "$ref": "#/components/schemas/InvalidRequestError"
  10839. }
  10840. }
  10841. }
  10842. },
  10843. "401": {
  10844. "description": "UnauthorizedError",
  10845. "content": {
  10846. "application/json": {
  10847. "schema": {
  10848. "$ref": "#/components/schemas/UnauthorizedError"
  10849. }
  10850. }
  10851. }
  10852. },
  10853. "404": {
  10854. "description": "SessionNotFoundError | QuestionNotFoundError",
  10855. "content": {
  10856. "application/json": {
  10857. "schema": {
  10858. "anyOf": [
  10859. {
  10860. "$ref": "#/components/schemas/QuestionNotFoundError"
  10861. },
  10862. {
  10863. "$ref": "#/components/schemas/SessionNotFoundError"
  10864. },
  10865. {
  10866. "$ref": "#/components/schemas/SessionNotFoundError"
  10867. }
  10868. ]
  10869. }
  10870. }
  10871. }
  10872. }
  10873. },
  10874. "description": "Reject a pending question request owned by a session.",
  10875. "summary": "Reject pending question request"
  10876. }
  10877. },
  10878. "/api/reference": {
  10879. "get": {
  10880. "tags": [
  10881. "reference"
  10882. ],
  10883. "operationId": "v2.reference.list",
  10884. "parameters": [
  10885. {
  10886. "name": "location",
  10887. "in": "query",
  10888. "schema": {
  10889. "anyOf": [
  10890. {
  10891. "type": "object",
  10892. "properties": {
  10893. "directory": {
  10894. "anyOf": [
  10895. {
  10896. "type": "string"
  10897. },
  10898. {
  10899. "type": "null"
  10900. }
  10901. ]
  10902. },
  10903. "workspace": {
  10904. "anyOf": [
  10905. {
  10906. "type": "string"
  10907. },
  10908. {
  10909. "type": "null"
  10910. }
  10911. ]
  10912. }
  10913. },
  10914. "additionalProperties": false
  10915. },
  10916. {
  10917. "type": "null"
  10918. }
  10919. ]
  10920. },
  10921. "required": false,
  10922. "style": "deepObject",
  10923. "explode": true
  10924. }
  10925. ],
  10926. "security": [],
  10927. "responses": {
  10928. "200": {
  10929. "description": "Success",
  10930. "content": {
  10931. "application/json": {
  10932. "schema": {
  10933. "type": "object",
  10934. "properties": {
  10935. "location": {
  10936. "$ref": "#/components/schemas/Location.Info"
  10937. },
  10938. "data": {
  10939. "type": "array",
  10940. "items": {
  10941. "$ref": "#/components/schemas/Reference.Info"
  10942. }
  10943. }
  10944. },
  10945. "required": [
  10946. "location",
  10947. "data"
  10948. ],
  10949. "additionalProperties": false
  10950. }
  10951. }
  10952. }
  10953. },
  10954. "400": {
  10955. "description": "InvalidRequestError",
  10956. "content": {
  10957. "application/json": {
  10958. "schema": {
  10959. "$ref": "#/components/schemas/InvalidRequestError"
  10960. }
  10961. }
  10962. }
  10963. },
  10964. "401": {
  10965. "description": "UnauthorizedError",
  10966. "content": {
  10967. "application/json": {
  10968. "schema": {
  10969. "$ref": "#/components/schemas/UnauthorizedError"
  10970. }
  10971. }
  10972. }
  10973. }
  10974. },
  10975. "description": "List references available in the requested location.",
  10976. "summary": "List references"
  10977. }
  10978. },
  10979. "/experimental/project/{projectID}/copy": {
  10980. "post": {
  10981. "tags": [
  10982. "projectCopy"
  10983. ],
  10984. "operationId": "v2.projectCopy.create",
  10985. "parameters": [
  10986. {
  10987. "name": "projectID",
  10988. "in": "path",
  10989. "schema": {
  10990. "type": "string"
  10991. },
  10992. "required": true
  10993. },
  10994. {
  10995. "name": "location",
  10996. "in": "query",
  10997. "schema": {
  10998. "anyOf": [
  10999. {
  11000. "type": "object",
  11001. "properties": {
  11002. "directory": {
  11003. "anyOf": [
  11004. {
  11005. "type": "string"
  11006. },
  11007. {
  11008. "type": "null"
  11009. }
  11010. ]
  11011. },
  11012. "workspace": {
  11013. "anyOf": [
  11014. {
  11015. "type": "string"
  11016. },
  11017. {
  11018. "type": "null"
  11019. }
  11020. ]
  11021. }
  11022. },
  11023. "additionalProperties": false
  11024. },
  11025. {
  11026. "type": "null"
  11027. }
  11028. ]
  11029. },
  11030. "required": false,
  11031. "style": "deepObject",
  11032. "explode": true
  11033. }
  11034. ],
  11035. "security": [],
  11036. "responses": {
  11037. "200": {
  11038. "description": "ProjectCopy.Copy",
  11039. "content": {
  11040. "application/json": {
  11041. "schema": {
  11042. "$ref": "#/components/schemas/ProjectCopy.Copy"
  11043. }
  11044. }
  11045. }
  11046. },
  11047. "400": {
  11048. "description": "ProjectCopyError | InvalidRequestError",
  11049. "content": {
  11050. "application/json": {
  11051. "schema": {
  11052. "anyOf": [
  11053. {
  11054. "$ref": "#/components/schemas/ProjectCopyError"
  11055. },
  11056. {
  11057. "$ref": "#/components/schemas/InvalidRequestError"
  11058. }
  11059. ]
  11060. }
  11061. }
  11062. }
  11063. },
  11064. "401": {
  11065. "description": "UnauthorizedError",
  11066. "content": {
  11067. "application/json": {
  11068. "schema": {
  11069. "$ref": "#/components/schemas/UnauthorizedError"
  11070. }
  11071. }
  11072. }
  11073. }
  11074. },
  11075. "requestBody": {
  11076. "content": {
  11077. "application/json": {
  11078. "schema": {
  11079. "type": "object",
  11080. "properties": {
  11081. "strategy": {
  11082. "type": "string"
  11083. },
  11084. "directory": {
  11085. "type": "string"
  11086. },
  11087. "name": {
  11088. "type": "string"
  11089. }
  11090. },
  11091. "required": [
  11092. "strategy",
  11093. "directory"
  11094. ],
  11095. "additionalProperties": false
  11096. }
  11097. }
  11098. },
  11099. "required": true
  11100. }
  11101. },
  11102. "delete": {
  11103. "tags": [
  11104. "projectCopy"
  11105. ],
  11106. "operationId": "v2.projectCopy.remove",
  11107. "parameters": [
  11108. {
  11109. "name": "projectID",
  11110. "in": "path",
  11111. "schema": {
  11112. "type": "string"
  11113. },
  11114. "required": true
  11115. },
  11116. {
  11117. "name": "location",
  11118. "in": "query",
  11119. "schema": {
  11120. "anyOf": [
  11121. {
  11122. "type": "object",
  11123. "properties": {
  11124. "directory": {
  11125. "anyOf": [
  11126. {
  11127. "type": "string"
  11128. },
  11129. {
  11130. "type": "null"
  11131. }
  11132. ]
  11133. },
  11134. "workspace": {
  11135. "anyOf": [
  11136. {
  11137. "type": "string"
  11138. },
  11139. {
  11140. "type": "null"
  11141. }
  11142. ]
  11143. }
  11144. },
  11145. "additionalProperties": false
  11146. },
  11147. {
  11148. "type": "null"
  11149. }
  11150. ]
  11151. },
  11152. "required": false,
  11153. "style": "deepObject",
  11154. "explode": true
  11155. }
  11156. ],
  11157. "security": [],
  11158. "responses": {
  11159. "204": {
  11160. "description": "<No Content>"
  11161. },
  11162. "400": {
  11163. "description": "ProjectCopyError | InvalidRequestError",
  11164. "content": {
  11165. "application/json": {
  11166. "schema": {
  11167. "anyOf": [
  11168. {
  11169. "$ref": "#/components/schemas/ProjectCopyError"
  11170. },
  11171. {
  11172. "$ref": "#/components/schemas/InvalidRequestError"
  11173. }
  11174. ]
  11175. }
  11176. }
  11177. }
  11178. },
  11179. "401": {
  11180. "description": "UnauthorizedError",
  11181. "content": {
  11182. "application/json": {
  11183. "schema": {
  11184. "$ref": "#/components/schemas/UnauthorizedError"
  11185. }
  11186. }
  11187. }
  11188. }
  11189. },
  11190. "requestBody": {
  11191. "content": {
  11192. "application/json": {
  11193. "schema": {
  11194. "type": "object",
  11195. "properties": {
  11196. "directory": {
  11197. "type": "string"
  11198. },
  11199. "force": {
  11200. "type": "boolean"
  11201. }
  11202. },
  11203. "required": [
  11204. "directory",
  11205. "force"
  11206. ],
  11207. "additionalProperties": false
  11208. }
  11209. }
  11210. },
  11211. "required": true
  11212. }
  11213. }
  11214. },
  11215. "/experimental/project/{projectID}/copy/refresh": {
  11216. "post": {
  11217. "tags": [
  11218. "projectCopy"
  11219. ],
  11220. "operationId": "v2.projectCopy.refresh",
  11221. "parameters": [
  11222. {
  11223. "name": "projectID",
  11224. "in": "path",
  11225. "schema": {
  11226. "type": "string"
  11227. },
  11228. "required": true
  11229. },
  11230. {
  11231. "name": "location",
  11232. "in": "query",
  11233. "schema": {
  11234. "anyOf": [
  11235. {
  11236. "type": "object",
  11237. "properties": {
  11238. "directory": {
  11239. "anyOf": [
  11240. {
  11241. "type": "string"
  11242. },
  11243. {
  11244. "type": "null"
  11245. }
  11246. ]
  11247. },
  11248. "workspace": {
  11249. "anyOf": [
  11250. {
  11251. "type": "string"
  11252. },
  11253. {
  11254. "type": "null"
  11255. }
  11256. ]
  11257. }
  11258. },
  11259. "additionalProperties": false
  11260. },
  11261. {
  11262. "type": "null"
  11263. }
  11264. ]
  11265. },
  11266. "required": false,
  11267. "style": "deepObject",
  11268. "explode": true
  11269. }
  11270. ],
  11271. "security": [],
  11272. "responses": {
  11273. "204": {
  11274. "description": "<No Content>"
  11275. },
  11276. "400": {
  11277. "description": "ProjectCopyError | InvalidRequestError",
  11278. "content": {
  11279. "application/json": {
  11280. "schema": {
  11281. "anyOf": [
  11282. {
  11283. "$ref": "#/components/schemas/ProjectCopyError"
  11284. },
  11285. {
  11286. "$ref": "#/components/schemas/InvalidRequestError"
  11287. }
  11288. ]
  11289. }
  11290. }
  11291. }
  11292. },
  11293. "401": {
  11294. "description": "UnauthorizedError",
  11295. "content": {
  11296. "application/json": {
  11297. "schema": {
  11298. "$ref": "#/components/schemas/UnauthorizedError"
  11299. }
  11300. }
  11301. }
  11302. }
  11303. }
  11304. }
  11305. },
  11306. "/api/vcs/status": {
  11307. "get": {
  11308. "tags": [
  11309. "vcs"
  11310. ],
  11311. "operationId": "v2.vcs.status",
  11312. "parameters": [
  11313. {
  11314. "name": "location",
  11315. "in": "query",
  11316. "schema": {
  11317. "anyOf": [
  11318. {
  11319. "type": "object",
  11320. "properties": {
  11321. "directory": {
  11322. "anyOf": [
  11323. {
  11324. "type": "string"
  11325. },
  11326. {
  11327. "type": "null"
  11328. }
  11329. ]
  11330. },
  11331. "workspace": {
  11332. "anyOf": [
  11333. {
  11334. "type": "string"
  11335. },
  11336. {
  11337. "type": "null"
  11338. }
  11339. ]
  11340. }
  11341. },
  11342. "additionalProperties": false
  11343. },
  11344. {
  11345. "type": "null"
  11346. }
  11347. ]
  11348. },
  11349. "required": false,
  11350. "style": "deepObject",
  11351. "explode": true
  11352. }
  11353. ],
  11354. "security": [],
  11355. "responses": {
  11356. "200": {
  11357. "description": "Success",
  11358. "content": {
  11359. "application/json": {
  11360. "schema": {
  11361. "type": "object",
  11362. "properties": {
  11363. "location": {
  11364. "$ref": "#/components/schemas/Location.Info"
  11365. },
  11366. "data": {
  11367. "type": "array",
  11368. "items": {
  11369. "$ref": "#/components/schemas/Vcs.FileStatus"
  11370. }
  11371. }
  11372. },
  11373. "required": [
  11374. "location",
  11375. "data"
  11376. ],
  11377. "additionalProperties": false
  11378. }
  11379. }
  11380. }
  11381. },
  11382. "400": {
  11383. "description": "InvalidRequestError",
  11384. "content": {
  11385. "application/json": {
  11386. "schema": {
  11387. "$ref": "#/components/schemas/InvalidRequestError"
  11388. }
  11389. }
  11390. }
  11391. },
  11392. "401": {
  11393. "description": "UnauthorizedError",
  11394. "content": {
  11395. "application/json": {
  11396. "schema": {
  11397. "$ref": "#/components/schemas/UnauthorizedError"
  11398. }
  11399. }
  11400. }
  11401. }
  11402. },
  11403. "description": "List uncommitted working-copy changes relative to the requested location.",
  11404. "summary": "VCS status"
  11405. }
  11406. },
  11407. "/api/vcs/diff": {
  11408. "get": {
  11409. "tags": [
  11410. "vcs"
  11411. ],
  11412. "operationId": "v2.vcs.diff",
  11413. "parameters": [
  11414. {
  11415. "name": "location",
  11416. "in": "query",
  11417. "schema": {
  11418. "anyOf": [
  11419. {
  11420. "type": "object",
  11421. "properties": {
  11422. "directory": {
  11423. "anyOf": [
  11424. {
  11425. "type": "string"
  11426. },
  11427. {
  11428. "type": "null"
  11429. }
  11430. ]
  11431. },
  11432. "workspace": {
  11433. "anyOf": [
  11434. {
  11435. "type": "string"
  11436. },
  11437. {
  11438. "type": "null"
  11439. }
  11440. ]
  11441. }
  11442. },
  11443. "additionalProperties": false
  11444. },
  11445. {
  11446. "type": "null"
  11447. }
  11448. ]
  11449. },
  11450. "required": false,
  11451. "style": "deepObject",
  11452. "explode": true
  11453. },
  11454. {
  11455. "name": "mode",
  11456. "in": "query",
  11457. "schema": {
  11458. "$ref": "#/components/schemas/Vcs.Mode"
  11459. },
  11460. "required": true
  11461. },
  11462. {
  11463. "name": "context",
  11464. "in": "query",
  11465. "schema": {
  11466. "anyOf": [
  11467. {
  11468. "type": "string"
  11469. },
  11470. {
  11471. "type": "null"
  11472. }
  11473. ]
  11474. },
  11475. "required": false
  11476. }
  11477. ],
  11478. "security": [],
  11479. "responses": {
  11480. "200": {
  11481. "description": "Success",
  11482. "content": {
  11483. "application/json": {
  11484. "schema": {
  11485. "type": "object",
  11486. "properties": {
  11487. "location": {
  11488. "$ref": "#/components/schemas/Location.Info"
  11489. },
  11490. "data": {
  11491. "type": "array",
  11492. "items": {
  11493. "$ref": "#/components/schemas/FileDiff.Info"
  11494. }
  11495. }
  11496. },
  11497. "required": [
  11498. "location",
  11499. "data"
  11500. ],
  11501. "additionalProperties": false
  11502. }
  11503. }
  11504. }
  11505. },
  11506. "400": {
  11507. "description": "InvalidRequestError",
  11508. "content": {
  11509. "application/json": {
  11510. "schema": {
  11511. "$ref": "#/components/schemas/InvalidRequestError"
  11512. }
  11513. }
  11514. }
  11515. },
  11516. "401": {
  11517. "description": "UnauthorizedError",
  11518. "content": {
  11519. "application/json": {
  11520. "schema": {
  11521. "$ref": "#/components/schemas/UnauthorizedError"
  11522. }
  11523. }
  11524. }
  11525. }
  11526. },
  11527. "description": "Diff the working copy against HEAD (mode git) or the default-branch merge base (mode branch) for the requested location.",
  11528. "summary": "VCS diff"
  11529. }
  11530. },
  11531. "/api/debug/location": {
  11532. "get": {
  11533. "tags": [
  11534. "debug"
  11535. ],
  11536. "operationId": "v2.debug.location.list",
  11537. "parameters": [],
  11538. "security": [],
  11539. "responses": {
  11540. "200": {
  11541. "description": "Success",
  11542. "content": {
  11543. "application/json": {
  11544. "schema": {
  11545. "type": "array",
  11546. "items": {
  11547. "$ref": "#/components/schemas/Location.Ref"
  11548. }
  11549. }
  11550. }
  11551. }
  11552. },
  11553. "400": {
  11554. "description": "InvalidRequestError",
  11555. "content": {
  11556. "application/json": {
  11557. "schema": {
  11558. "$ref": "#/components/schemas/InvalidRequestError"
  11559. }
  11560. }
  11561. }
  11562. },
  11563. "401": {
  11564. "description": "UnauthorizedError",
  11565. "content": {
  11566. "application/json": {
  11567. "schema": {
  11568. "$ref": "#/components/schemas/UnauthorizedError"
  11569. }
  11570. }
  11571. }
  11572. }
  11573. },
  11574. "description": "List locations currently loaded by the server.",
  11575. "summary": "List loaded locations"
  11576. },
  11577. "delete": {
  11578. "tags": [
  11579. "debug"
  11580. ],
  11581. "operationId": "v2.debug.location.evict",
  11582. "parameters": [
  11583. {
  11584. "name": "location",
  11585. "in": "query",
  11586. "schema": {
  11587. "anyOf": [
  11588. {
  11589. "type": "object",
  11590. "properties": {
  11591. "directory": {
  11592. "anyOf": [
  11593. {
  11594. "type": "string"
  11595. },
  11596. {
  11597. "type": "null"
  11598. }
  11599. ]
  11600. },
  11601. "workspace": {
  11602. "anyOf": [
  11603. {
  11604. "type": "string"
  11605. },
  11606. {
  11607. "type": "null"
  11608. }
  11609. ]
  11610. }
  11611. },
  11612. "additionalProperties": false
  11613. },
  11614. {
  11615. "type": "null"
  11616. }
  11617. ]
  11618. },
  11619. "required": false,
  11620. "style": "deepObject",
  11621. "explode": true
  11622. }
  11623. ],
  11624. "security": [],
  11625. "responses": {
  11626. "204": {
  11627. "description": "<No Content>"
  11628. },
  11629. "400": {
  11630. "description": "InvalidRequestError",
  11631. "content": {
  11632. "application/json": {
  11633. "schema": {
  11634. "$ref": "#/components/schemas/InvalidRequestError"
  11635. }
  11636. }
  11637. }
  11638. },
  11639. "401": {
  11640. "description": "UnauthorizedError",
  11641. "content": {
  11642. "application/json": {
  11643. "schema": {
  11644. "$ref": "#/components/schemas/UnauthorizedError"
  11645. }
  11646. }
  11647. }
  11648. }
  11649. },
  11650. "description": "Dispose the requested location's cached services so its next use boots them fresh.",
  11651. "summary": "Evict a loaded location"
  11652. }
  11653. },
  11654. "/api/websearch/provider": {
  11655. "get": {
  11656. "tags": [
  11657. "websearch"
  11658. ],
  11659. "operationId": "v2.websearch.providers",
  11660. "parameters": [
  11661. {
  11662. "name": "location",
  11663. "in": "query",
  11664. "schema": {
  11665. "anyOf": [
  11666. {
  11667. "type": "object",
  11668. "properties": {
  11669. "directory": {
  11670. "anyOf": [
  11671. {
  11672. "type": "string"
  11673. },
  11674. {
  11675. "type": "null"
  11676. }
  11677. ]
  11678. },
  11679. "workspace": {
  11680. "anyOf": [
  11681. {
  11682. "type": "string"
  11683. },
  11684. {
  11685. "type": "null"
  11686. }
  11687. ]
  11688. }
  11689. },
  11690. "additionalProperties": false
  11691. },
  11692. {
  11693. "type": "null"
  11694. }
  11695. ]
  11696. },
  11697. "required": false,
  11698. "style": "deepObject",
  11699. "explode": true
  11700. }
  11701. ],
  11702. "security": [],
  11703. "responses": {
  11704. "200": {
  11705. "description": "Success",
  11706. "content": {
  11707. "application/json": {
  11708. "schema": {
  11709. "type": "object",
  11710. "properties": {
  11711. "location": {
  11712. "$ref": "#/components/schemas/Location.Info"
  11713. },
  11714. "data": {
  11715. "type": "array",
  11716. "items": {
  11717. "$ref": "#/components/schemas/WebSearch.Provider"
  11718. }
  11719. }
  11720. },
  11721. "required": [
  11722. "location",
  11723. "data"
  11724. ],
  11725. "additionalProperties": false
  11726. }
  11727. }
  11728. }
  11729. },
  11730. "400": {
  11731. "description": "InvalidRequestError",
  11732. "content": {
  11733. "application/json": {
  11734. "schema": {
  11735. "$ref": "#/components/schemas/InvalidRequestError"
  11736. }
  11737. }
  11738. }
  11739. },
  11740. "401": {
  11741. "description": "UnauthorizedError",
  11742. "content": {
  11743. "application/json": {
  11744. "schema": {
  11745. "$ref": "#/components/schemas/UnauthorizedError"
  11746. }
  11747. }
  11748. }
  11749. },
  11750. "503": {
  11751. "description": "ServiceUnavailableError",
  11752. "content": {
  11753. "application/json": {
  11754. "schema": {
  11755. "$ref": "#/components/schemas/ServiceUnavailableError"
  11756. }
  11757. }
  11758. }
  11759. }
  11760. },
  11761. "description": "Return the registered web search providers.",
  11762. "summary": "List web search providers"
  11763. }
  11764. },
  11765. "/api/websearch": {
  11766. "post": {
  11767. "tags": [
  11768. "websearch"
  11769. ],
  11770. "operationId": "v2.websearch.query",
  11771. "parameters": [
  11772. {
  11773. "name": "location",
  11774. "in": "query",
  11775. "schema": {
  11776. "anyOf": [
  11777. {
  11778. "type": "object",
  11779. "properties": {
  11780. "directory": {
  11781. "anyOf": [
  11782. {
  11783. "type": "string"
  11784. },
  11785. {
  11786. "type": "null"
  11787. }
  11788. ]
  11789. },
  11790. "workspace": {
  11791. "anyOf": [
  11792. {
  11793. "type": "string"
  11794. },
  11795. {
  11796. "type": "null"
  11797. }
  11798. ]
  11799. }
  11800. },
  11801. "additionalProperties": false
  11802. },
  11803. {
  11804. "type": "null"
  11805. }
  11806. ]
  11807. },
  11808. "required": false,
  11809. "style": "deepObject",
  11810. "explode": true
  11811. }
  11812. ],
  11813. "security": [],
  11814. "responses": {
  11815. "200": {
  11816. "description": "Success",
  11817. "content": {
  11818. "application/json": {
  11819. "schema": {
  11820. "type": "object",
  11821. "properties": {
  11822. "location": {
  11823. "$ref": "#/components/schemas/Location.Info"
  11824. },
  11825. "data": {
  11826. "$ref": "#/components/schemas/WebSearch.Response"
  11827. }
  11828. },
  11829. "required": [
  11830. "location",
  11831. "data"
  11832. ],
  11833. "additionalProperties": false
  11834. }
  11835. }
  11836. }
  11837. },
  11838. "400": {
  11839. "description": "InvalidRequestError",
  11840. "content": {
  11841. "application/json": {
  11842. "schema": {
  11843. "anyOf": [
  11844. {
  11845. "$ref": "#/components/schemas/InvalidRequestError1"
  11846. },
  11847. {
  11848. "$ref": "#/components/schemas/InvalidRequestError"
  11849. }
  11850. ]
  11851. }
  11852. }
  11853. }
  11854. },
  11855. "401": {
  11856. "description": "UnauthorizedError",
  11857. "content": {
  11858. "application/json": {
  11859. "schema": {
  11860. "$ref": "#/components/schemas/UnauthorizedError"
  11861. }
  11862. }
  11863. }
  11864. },
  11865. "503": {
  11866. "description": "ServiceUnavailableError",
  11867. "content": {
  11868. "application/json": {
  11869. "schema": {
  11870. "$ref": "#/components/schemas/ServiceUnavailableError"
  11871. }
  11872. }
  11873. }
  11874. }
  11875. },
  11876. "description": "Run one web search through the selected provider. Specify a provider to override the configured default.",
  11877. "summary": "Search the web",
  11878. "requestBody": {
  11879. "content": {
  11880. "application/json": {
  11881. "schema": {
  11882. "type": "object",
  11883. "properties": {
  11884. "query": {
  11885. "type": "string"
  11886. },
  11887. "providerID": {
  11888. "type": "string"
  11889. }
  11890. },
  11891. "required": [
  11892. "query"
  11893. ],
  11894. "additionalProperties": false
  11895. }
  11896. }
  11897. },
  11898. "required": true
  11899. }
  11900. }
  11901. }
  11902. },
  11903. "components": {
  11904. "schemas": {
  11905. "ServiceHealth": {
  11906. "type": "object",
  11907. "properties": {
  11908. "healthy": {
  11909. "type": "boolean",
  11910. "enum": [
  11911. true
  11912. ]
  11913. },
  11914. "version": {
  11915. "type": "string"
  11916. },
  11917. "pid": {
  11918. "type": "integer",
  11919. "allOf": [
  11920. {
  11921. "exclusiveMinimum": 0
  11922. }
  11923. ]
  11924. }
  11925. },
  11926. "required": [
  11927. "healthy",
  11928. "version",
  11929. "pid"
  11930. ],
  11931. "additionalProperties": false
  11932. },
  11933. "UnauthorizedError": {
  11934. "type": "object",
  11935. "properties": {
  11936. "_tag": {
  11937. "type": "string",
  11938. "enum": [
  11939. "UnauthorizedError"
  11940. ]
  11941. },
  11942. "message": {
  11943. "type": "string"
  11944. }
  11945. },
  11946. "required": [
  11947. "_tag",
  11948. "message"
  11949. ],
  11950. "additionalProperties": false
  11951. },
  11952. "InvalidRequestError": {
  11953. "type": "object",
  11954. "properties": {
  11955. "_tag": {
  11956. "type": "string",
  11957. "enum": [
  11958. "InvalidRequestError"
  11959. ]
  11960. },
  11961. "message": {
  11962. "type": "string"
  11963. },
  11964. "kind": {
  11965. "anyOf": [
  11966. {
  11967. "type": "string"
  11968. },
  11969. {
  11970. "type": "null"
  11971. }
  11972. ]
  11973. },
  11974. "field": {
  11975. "anyOf": [
  11976. {
  11977. "type": "string"
  11978. },
  11979. {
  11980. "type": "null"
  11981. }
  11982. ]
  11983. }
  11984. },
  11985. "required": [
  11986. "_tag",
  11987. "message"
  11988. ],
  11989. "additionalProperties": false
  11990. },
  11991. "ServiceStopRequest": {
  11992. "type": "object",
  11993. "properties": {
  11994. "instanceID": {
  11995. "type": "string"
  11996. }
  11997. },
  11998. "required": [
  11999. "instanceID"
  12000. ],
  12001. "additionalProperties": false
  12002. },
  12003. "ServiceStopResponse": {
  12004. "type": "object",
  12005. "properties": {
  12006. "accepted": {
  12007. "type": "boolean"
  12008. }
  12009. },
  12010. "required": [
  12011. "accepted"
  12012. ],
  12013. "additionalProperties": false
  12014. },
  12015. "Location.Info": {
  12016. "type": "object",
  12017. "properties": {
  12018. "directory": {
  12019. "type": "string"
  12020. },
  12021. "workspaceID": {
  12022. "type": "string",
  12023. "allOf": [
  12024. {
  12025. "pattern": "^wrk"
  12026. }
  12027. ]
  12028. },
  12029. "project": {
  12030. "type": "object",
  12031. "properties": {
  12032. "id": {
  12033. "type": "string"
  12034. },
  12035. "directory": {
  12036. "type": "string"
  12037. }
  12038. },
  12039. "required": [
  12040. "id",
  12041. "directory"
  12042. ],
  12043. "additionalProperties": false
  12044. }
  12045. },
  12046. "required": [
  12047. "directory",
  12048. "project"
  12049. ],
  12050. "additionalProperties": false
  12051. },
  12052. "Model.Ref": {
  12053. "type": "object",
  12054. "properties": {
  12055. "id": {
  12056. "type": "string"
  12057. },
  12058. "providerID": {
  12059. "type": "string"
  12060. },
  12061. "variant": {
  12062. "type": "string"
  12063. }
  12064. },
  12065. "required": [
  12066. "id",
  12067. "providerID"
  12068. ],
  12069. "additionalProperties": false
  12070. },
  12071. "Provider.Settings": {
  12072. "type": "object"
  12073. },
  12074. "Provider.Request": {
  12075. "type": "object",
  12076. "properties": {
  12077. "settings": {
  12078. "$ref": "#/components/schemas/Provider.Settings"
  12079. },
  12080. "headers": {
  12081. "type": "object",
  12082. "additionalProperties": {
  12083. "type": "string"
  12084. }
  12085. },
  12086. "body": {
  12087. "type": "object"
  12088. }
  12089. },
  12090. "required": [
  12091. "settings",
  12092. "headers",
  12093. "body"
  12094. ],
  12095. "additionalProperties": false
  12096. },
  12097. "Agent.Color": {
  12098. "type": "string"
  12099. },
  12100. "Permission.Effect": {
  12101. "type": "string",
  12102. "enum": [
  12103. "allow",
  12104. "deny",
  12105. "ask"
  12106. ]
  12107. },
  12108. "Permission.Rule": {
  12109. "type": "object",
  12110. "properties": {
  12111. "action": {
  12112. "type": "string"
  12113. },
  12114. "resource": {
  12115. "type": "string"
  12116. },
  12117. "effect": {
  12118. "$ref": "#/components/schemas/Permission.Effect"
  12119. }
  12120. },
  12121. "required": [
  12122. "action",
  12123. "resource",
  12124. "effect"
  12125. ],
  12126. "additionalProperties": false
  12127. },
  12128. "Permission.Ruleset": {
  12129. "type": "array",
  12130. "items": {
  12131. "$ref": "#/components/schemas/Permission.Rule"
  12132. }
  12133. },
  12134. "Agent.Info": {
  12135. "type": "object",
  12136. "properties": {
  12137. "id": {
  12138. "type": "string"
  12139. },
  12140. "name": {
  12141. "type": "string"
  12142. },
  12143. "model": {
  12144. "$ref": "#/components/schemas/Model.Ref"
  12145. },
  12146. "request": {
  12147. "$ref": "#/components/schemas/Provider.Request"
  12148. },
  12149. "system": {
  12150. "type": "string"
  12151. },
  12152. "description": {
  12153. "type": "string"
  12154. },
  12155. "mode": {
  12156. "type": "string",
  12157. "enum": [
  12158. "subagent",
  12159. "primary",
  12160. "all"
  12161. ]
  12162. },
  12163. "hidden": {
  12164. "type": "boolean"
  12165. },
  12166. "color": {
  12167. "$ref": "#/components/schemas/Agent.Color"
  12168. },
  12169. "steps": {
  12170. "type": "integer",
  12171. "allOf": [
  12172. {
  12173. "exclusiveMinimum": 0
  12174. }
  12175. ]
  12176. },
  12177. "permissions": {
  12178. "$ref": "#/components/schemas/Permission.Ruleset"
  12179. }
  12180. },
  12181. "required": [
  12182. "id",
  12183. "name",
  12184. "request",
  12185. "mode",
  12186. "hidden",
  12187. "permissions"
  12188. ],
  12189. "additionalProperties": false
  12190. },
  12191. "AgentNotFoundError": {
  12192. "type": "object",
  12193. "properties": {
  12194. "_tag": {
  12195. "type": "string",
  12196. "enum": [
  12197. "AgentNotFoundError"
  12198. ]
  12199. },
  12200. "agentID": {
  12201. "type": "string"
  12202. },
  12203. "message": {
  12204. "type": "string"
  12205. }
  12206. },
  12207. "required": [
  12208. "_tag",
  12209. "agentID",
  12210. "message"
  12211. ],
  12212. "additionalProperties": false
  12213. },
  12214. "Plugin.Info": {
  12215. "type": "object",
  12216. "properties": {
  12217. "id": {
  12218. "type": "string"
  12219. }
  12220. },
  12221. "required": [
  12222. "id"
  12223. ],
  12224. "additionalProperties": false
  12225. },
  12226. "Money.USD": {
  12227. "type": "number"
  12228. },
  12229. "TokenUsage.Info": {
  12230. "type": "object",
  12231. "properties": {
  12232. "input": {
  12233. "type": "number"
  12234. },
  12235. "output": {
  12236. "type": "number"
  12237. },
  12238. "reasoning": {
  12239. "type": "number"
  12240. },
  12241. "cache": {
  12242. "type": "object",
  12243. "properties": {
  12244. "read": {
  12245. "type": "number"
  12246. },
  12247. "write": {
  12248. "type": "number"
  12249. }
  12250. },
  12251. "required": [
  12252. "read",
  12253. "write"
  12254. ],
  12255. "additionalProperties": false
  12256. }
  12257. },
  12258. "required": [
  12259. "input",
  12260. "output",
  12261. "reasoning",
  12262. "cache"
  12263. ],
  12264. "additionalProperties": false
  12265. },
  12266. "Location.Ref": {
  12267. "type": "object",
  12268. "properties": {
  12269. "directory": {
  12270. "type": "string"
  12271. },
  12272. "workspaceID": {
  12273. "type": "string",
  12274. "allOf": [
  12275. {
  12276. "pattern": "^wrk"
  12277. }
  12278. ]
  12279. }
  12280. },
  12281. "required": [
  12282. "directory"
  12283. ],
  12284. "additionalProperties": false
  12285. },
  12286. "FileDiff.Info": {
  12287. "type": "object",
  12288. "properties": {
  12289. "file": {
  12290. "type": "string"
  12291. },
  12292. "patch": {
  12293. "type": "string"
  12294. },
  12295. "additions": {
  12296. "type": "integer",
  12297. "allOf": [
  12298. {
  12299. "minimum": 0
  12300. }
  12301. ]
  12302. },
  12303. "deletions": {
  12304. "type": "integer",
  12305. "allOf": [
  12306. {
  12307. "minimum": 0
  12308. }
  12309. ]
  12310. },
  12311. "status": {
  12312. "type": "string",
  12313. "enum": [
  12314. "added",
  12315. "deleted",
  12316. "modified"
  12317. ]
  12318. }
  12319. },
  12320. "required": [
  12321. "file",
  12322. "patch",
  12323. "additions",
  12324. "deletions",
  12325. "status"
  12326. ],
  12327. "additionalProperties": false
  12328. },
  12329. "Session.Revert": {
  12330. "type": "object",
  12331. "properties": {
  12332. "messageID": {
  12333. "type": "string",
  12334. "allOf": [
  12335. {
  12336. "pattern": "^msg_"
  12337. }
  12338. ]
  12339. },
  12340. "partID": {
  12341. "type": "string"
  12342. },
  12343. "snapshot": {
  12344. "type": "string"
  12345. },
  12346. "files": {
  12347. "type": "array",
  12348. "items": {
  12349. "$ref": "#/components/schemas/FileDiff.Info"
  12350. }
  12351. }
  12352. },
  12353. "required": [
  12354. "messageID"
  12355. ],
  12356. "additionalProperties": false
  12357. },
  12358. "Session.Info": {
  12359. "type": "object",
  12360. "properties": {
  12361. "id": {
  12362. "type": "string",
  12363. "allOf": [
  12364. {
  12365. "pattern": "^ses"
  12366. }
  12367. ]
  12368. },
  12369. "parentID": {
  12370. "type": "string",
  12371. "allOf": [
  12372. {
  12373. "pattern": "^ses"
  12374. }
  12375. ]
  12376. },
  12377. "fork": {
  12378. "type": "object",
  12379. "properties": {
  12380. "sessionID": {
  12381. "type": "string",
  12382. "allOf": [
  12383. {
  12384. "pattern": "^ses"
  12385. }
  12386. ]
  12387. },
  12388. "messageID": {
  12389. "type": "string",
  12390. "allOf": [
  12391. {
  12392. "pattern": "^msg_"
  12393. }
  12394. ]
  12395. }
  12396. },
  12397. "required": [
  12398. "sessionID"
  12399. ],
  12400. "additionalProperties": false
  12401. },
  12402. "projectID": {
  12403. "type": "string"
  12404. },
  12405. "agent": {
  12406. "type": "string"
  12407. },
  12408. "model": {
  12409. "$ref": "#/components/schemas/Model.Ref"
  12410. },
  12411. "cost": {
  12412. "$ref": "#/components/schemas/Money.USD"
  12413. },
  12414. "tokens": {
  12415. "$ref": "#/components/schemas/TokenUsage.Info"
  12416. },
  12417. "time": {
  12418. "type": "object",
  12419. "properties": {
  12420. "created": {
  12421. "type": "number"
  12422. },
  12423. "updated": {
  12424. "type": "number"
  12425. },
  12426. "archived": {
  12427. "type": "number"
  12428. }
  12429. },
  12430. "required": [
  12431. "created",
  12432. "updated"
  12433. ],
  12434. "additionalProperties": false
  12435. },
  12436. "title": {
  12437. "type": "string"
  12438. },
  12439. "location": {
  12440. "$ref": "#/components/schemas/Location.Ref"
  12441. },
  12442. "subpath": {
  12443. "type": "string"
  12444. },
  12445. "revert": {
  12446. "$ref": "#/components/schemas/Session.Revert"
  12447. }
  12448. },
  12449. "required": [
  12450. "id",
  12451. "projectID",
  12452. "cost",
  12453. "tokens",
  12454. "time",
  12455. "title",
  12456. "location"
  12457. ],
  12458. "additionalProperties": false
  12459. },
  12460. "SessionsResponse": {
  12461. "type": "object",
  12462. "properties": {
  12463. "data": {
  12464. "type": "array",
  12465. "items": {
  12466. "$ref": "#/components/schemas/Session.Info"
  12467. }
  12468. },
  12469. "cursor": {
  12470. "type": "object",
  12471. "properties": {
  12472. "previous": {
  12473. "anyOf": [
  12474. {
  12475. "type": "string"
  12476. },
  12477. {
  12478. "type": "null"
  12479. }
  12480. ]
  12481. },
  12482. "next": {
  12483. "anyOf": [
  12484. {
  12485. "type": "string"
  12486. },
  12487. {
  12488. "type": "null"
  12489. }
  12490. ]
  12491. }
  12492. },
  12493. "additionalProperties": false
  12494. }
  12495. },
  12496. "required": [
  12497. "data",
  12498. "cursor"
  12499. ],
  12500. "additionalProperties": false
  12501. },
  12502. "InvalidCursorError": {
  12503. "type": "object",
  12504. "properties": {
  12505. "_tag": {
  12506. "type": "string",
  12507. "enum": [
  12508. "InvalidCursorError"
  12509. ]
  12510. },
  12511. "message": {
  12512. "type": "string"
  12513. }
  12514. },
  12515. "required": [
  12516. "_tag",
  12517. "message"
  12518. ],
  12519. "additionalProperties": false
  12520. },
  12521. "InvalidRequestError1": {
  12522. "type": "object",
  12523. "properties": {
  12524. "_tag": {
  12525. "type": "string",
  12526. "enum": [
  12527. "InvalidRequestError"
  12528. ]
  12529. },
  12530. "message": {
  12531. "type": "string"
  12532. },
  12533. "kind": {
  12534. "anyOf": [
  12535. {
  12536. "type": "string"
  12537. },
  12538. {
  12539. "type": "null"
  12540. }
  12541. ]
  12542. },
  12543. "field": {
  12544. "anyOf": [
  12545. {
  12546. "type": "string"
  12547. },
  12548. {
  12549. "type": "null"
  12550. }
  12551. ]
  12552. }
  12553. },
  12554. "required": [
  12555. "_tag",
  12556. "message"
  12557. ],
  12558. "additionalProperties": false
  12559. },
  12560. "SessionActive": {
  12561. "type": "object",
  12562. "properties": {
  12563. "type": {
  12564. "type": "string",
  12565. "enum": [
  12566. "running"
  12567. ]
  12568. }
  12569. },
  12570. "required": [
  12571. "type"
  12572. ],
  12573. "additionalProperties": false
  12574. },
  12575. "SessionNotFoundError": {
  12576. "type": "object",
  12577. "properties": {
  12578. "_tag": {
  12579. "type": "string",
  12580. "enum": [
  12581. "SessionNotFoundError"
  12582. ]
  12583. },
  12584. "sessionID": {
  12585. "type": "string"
  12586. },
  12587. "message": {
  12588. "type": "string"
  12589. }
  12590. },
  12591. "required": [
  12592. "_tag",
  12593. "sessionID",
  12594. "message"
  12595. ],
  12596. "additionalProperties": false
  12597. },
  12598. "MessageNotFoundError": {
  12599. "type": "object",
  12600. "properties": {
  12601. "_tag": {
  12602. "type": "string",
  12603. "enum": [
  12604. "MessageNotFoundError"
  12605. ]
  12606. },
  12607. "sessionID": {
  12608. "type": "string"
  12609. },
  12610. "messageID": {
  12611. "type": "string"
  12612. },
  12613. "message": {
  12614. "type": "string"
  12615. }
  12616. },
  12617. "required": [
  12618. "_tag",
  12619. "sessionID",
  12620. "messageID",
  12621. "message"
  12622. ],
  12623. "additionalProperties": false
  12624. },
  12625. "Prompt.Mention": {
  12626. "type": "object",
  12627. "properties": {
  12628. "start": {
  12629. "type": "number"
  12630. },
  12631. "end": {
  12632. "type": "number"
  12633. },
  12634. "text": {
  12635. "type": "string"
  12636. }
  12637. },
  12638. "required": [
  12639. "start",
  12640. "end",
  12641. "text"
  12642. ],
  12643. "additionalProperties": false
  12644. },
  12645. "PromptInput.FileAttachment": {
  12646. "type": "object",
  12647. "properties": {
  12648. "uri": {
  12649. "type": "string"
  12650. },
  12651. "name": {
  12652. "type": "string"
  12653. },
  12654. "description": {
  12655. "type": "string"
  12656. },
  12657. "mention": {
  12658. "$ref": "#/components/schemas/Prompt.Mention"
  12659. }
  12660. },
  12661. "required": [
  12662. "uri"
  12663. ],
  12664. "additionalProperties": false
  12665. },
  12666. "Prompt.AgentAttachment": {
  12667. "type": "object",
  12668. "properties": {
  12669. "name": {
  12670. "type": "string"
  12671. },
  12672. "mention": {
  12673. "$ref": "#/components/schemas/Prompt.Mention"
  12674. }
  12675. },
  12676. "required": [
  12677. "name"
  12678. ],
  12679. "additionalProperties": false
  12680. },
  12681. "Prompt.Base64": {
  12682. "type": "string",
  12683. "allOf": [
  12684. {
  12685. "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"
  12686. }
  12687. ]
  12688. },
  12689. "Prompt.FileSource": {
  12690. "anyOf": [
  12691. {
  12692. "type": "object",
  12693. "properties": {
  12694. "type": {
  12695. "type": "string",
  12696. "enum": [
  12697. "inline"
  12698. ]
  12699. }
  12700. },
  12701. "required": [
  12702. "type"
  12703. ],
  12704. "additionalProperties": false
  12705. },
  12706. {
  12707. "type": "object",
  12708. "properties": {
  12709. "type": {
  12710. "type": "string",
  12711. "enum": [
  12712. "uri"
  12713. ]
  12714. },
  12715. "uri": {
  12716. "type": "string"
  12717. }
  12718. },
  12719. "required": [
  12720. "type",
  12721. "uri"
  12722. ],
  12723. "additionalProperties": false
  12724. }
  12725. ]
  12726. },
  12727. "Prompt.FileAttachment": {
  12728. "type": "object",
  12729. "properties": {
  12730. "data": {
  12731. "$ref": "#/components/schemas/Prompt.Base64"
  12732. },
  12733. "mime": {
  12734. "type": "string"
  12735. },
  12736. "source": {
  12737. "$ref": "#/components/schemas/Prompt.FileSource"
  12738. },
  12739. "name": {
  12740. "type": "string"
  12741. },
  12742. "description": {
  12743. "type": "string"
  12744. },
  12745. "mention": {
  12746. "$ref": "#/components/schemas/Prompt.Mention"
  12747. }
  12748. },
  12749. "required": [
  12750. "data",
  12751. "mime",
  12752. "source"
  12753. ],
  12754. "additionalProperties": false
  12755. },
  12756. "SessionPending.UserData": {
  12757. "type": "object",
  12758. "properties": {
  12759. "text": {
  12760. "type": "string"
  12761. },
  12762. "files": {
  12763. "type": "array",
  12764. "items": {
  12765. "$ref": "#/components/schemas/Prompt.FileAttachment"
  12766. }
  12767. },
  12768. "agents": {
  12769. "type": "array",
  12770. "items": {
  12771. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  12772. }
  12773. },
  12774. "metadata": {
  12775. "type": "object"
  12776. }
  12777. },
  12778. "required": [
  12779. "text"
  12780. ],
  12781. "additionalProperties": false
  12782. },
  12783. "SessionPending.User": {
  12784. "type": "object",
  12785. "properties": {
  12786. "admittedSeq": {
  12787. "type": "integer",
  12788. "allOf": [
  12789. {
  12790. "minimum": 0
  12791. }
  12792. ]
  12793. },
  12794. "id": {
  12795. "type": "string",
  12796. "allOf": [
  12797. {
  12798. "pattern": "^msg_"
  12799. }
  12800. ]
  12801. },
  12802. "sessionID": {
  12803. "type": "string",
  12804. "allOf": [
  12805. {
  12806. "pattern": "^ses"
  12807. }
  12808. ]
  12809. },
  12810. "timeCreated": {
  12811. "type": "number"
  12812. },
  12813. "type": {
  12814. "type": "string",
  12815. "enum": [
  12816. "user"
  12817. ]
  12818. },
  12819. "data": {
  12820. "$ref": "#/components/schemas/SessionPending.UserData"
  12821. },
  12822. "delivery": {
  12823. "type": "string",
  12824. "enum": [
  12825. "steer",
  12826. "queue"
  12827. ]
  12828. }
  12829. },
  12830. "required": [
  12831. "admittedSeq",
  12832. "id",
  12833. "sessionID",
  12834. "timeCreated",
  12835. "type",
  12836. "data",
  12837. "delivery"
  12838. ],
  12839. "additionalProperties": false
  12840. },
  12841. "ConflictError": {
  12842. "type": "object",
  12843. "properties": {
  12844. "_tag": {
  12845. "type": "string",
  12846. "enum": [
  12847. "ConflictError"
  12848. ]
  12849. },
  12850. "message": {
  12851. "type": "string"
  12852. },
  12853. "resource": {
  12854. "anyOf": [
  12855. {
  12856. "type": "string"
  12857. },
  12858. {
  12859. "type": "null"
  12860. }
  12861. ]
  12862. }
  12863. },
  12864. "required": [
  12865. "_tag",
  12866. "message"
  12867. ],
  12868. "additionalProperties": false
  12869. },
  12870. "CommandNotFoundError": {
  12871. "type": "object",
  12872. "properties": {
  12873. "_tag": {
  12874. "type": "string",
  12875. "enum": [
  12876. "CommandNotFoundError"
  12877. ]
  12878. },
  12879. "command": {
  12880. "type": "string"
  12881. },
  12882. "message": {
  12883. "type": "string"
  12884. }
  12885. },
  12886. "required": [
  12887. "_tag",
  12888. "command",
  12889. "message"
  12890. ],
  12891. "additionalProperties": false
  12892. },
  12893. "CommandEvaluationError": {
  12894. "type": "object",
  12895. "properties": {
  12896. "_tag": {
  12897. "type": "string",
  12898. "enum": [
  12899. "CommandEvaluationError"
  12900. ]
  12901. },
  12902. "command": {
  12903. "type": "string"
  12904. },
  12905. "message": {
  12906. "type": "string"
  12907. }
  12908. },
  12909. "required": [
  12910. "_tag",
  12911. "command",
  12912. "message"
  12913. ],
  12914. "additionalProperties": false
  12915. },
  12916. "SkillNotFoundError": {
  12917. "type": "object",
  12918. "properties": {
  12919. "_tag": {
  12920. "type": "string",
  12921. "enum": [
  12922. "SkillNotFoundError"
  12923. ]
  12924. },
  12925. "skill": {
  12926. "type": "string"
  12927. },
  12928. "message": {
  12929. "type": "string"
  12930. }
  12931. },
  12932. "required": [
  12933. "_tag",
  12934. "skill",
  12935. "message"
  12936. ],
  12937. "additionalProperties": false
  12938. },
  12939. "SessionPending.SyntheticData": {
  12940. "type": "object",
  12941. "properties": {
  12942. "text": {
  12943. "type": "string"
  12944. },
  12945. "description": {
  12946. "type": "string"
  12947. },
  12948. "metadata": {
  12949. "type": "object"
  12950. }
  12951. },
  12952. "required": [
  12953. "text"
  12954. ],
  12955. "additionalProperties": false
  12956. },
  12957. "SessionPending.Synthetic": {
  12958. "type": "object",
  12959. "properties": {
  12960. "admittedSeq": {
  12961. "type": "integer",
  12962. "allOf": [
  12963. {
  12964. "minimum": 0
  12965. }
  12966. ]
  12967. },
  12968. "id": {
  12969. "type": "string",
  12970. "allOf": [
  12971. {
  12972. "pattern": "^msg_"
  12973. }
  12974. ]
  12975. },
  12976. "sessionID": {
  12977. "type": "string",
  12978. "allOf": [
  12979. {
  12980. "pattern": "^ses"
  12981. }
  12982. ]
  12983. },
  12984. "timeCreated": {
  12985. "type": "number"
  12986. },
  12987. "type": {
  12988. "type": "string",
  12989. "enum": [
  12990. "synthetic"
  12991. ]
  12992. },
  12993. "data": {
  12994. "$ref": "#/components/schemas/SessionPending.SyntheticData"
  12995. },
  12996. "delivery": {
  12997. "type": "string",
  12998. "enum": [
  12999. "steer",
  13000. "queue"
  13001. ]
  13002. }
  13003. },
  13004. "required": [
  13005. "admittedSeq",
  13006. "id",
  13007. "sessionID",
  13008. "timeCreated",
  13009. "type",
  13010. "data",
  13011. "delivery"
  13012. ],
  13013. "additionalProperties": false
  13014. },
  13015. "SessionPending.Compaction": {
  13016. "type": "object",
  13017. "properties": {
  13018. "admittedSeq": {
  13019. "type": "integer",
  13020. "allOf": [
  13021. {
  13022. "minimum": 0
  13023. }
  13024. ]
  13025. },
  13026. "id": {
  13027. "type": "string",
  13028. "allOf": [
  13029. {
  13030. "pattern": "^msg_"
  13031. }
  13032. ]
  13033. },
  13034. "sessionID": {
  13035. "type": "string",
  13036. "allOf": [
  13037. {
  13038. "pattern": "^ses"
  13039. }
  13040. ]
  13041. },
  13042. "timeCreated": {
  13043. "type": "number"
  13044. },
  13045. "type": {
  13046. "type": "string",
  13047. "enum": [
  13048. "compaction"
  13049. ]
  13050. }
  13051. },
  13052. "required": [
  13053. "admittedSeq",
  13054. "id",
  13055. "sessionID",
  13056. "timeCreated",
  13057. "type"
  13058. ],
  13059. "additionalProperties": false
  13060. },
  13061. "ServiceUnavailableError": {
  13062. "type": "object",
  13063. "properties": {
  13064. "_tag": {
  13065. "type": "string",
  13066. "enum": [
  13067. "ServiceUnavailableError"
  13068. ]
  13069. },
  13070. "message": {
  13071. "type": "string"
  13072. },
  13073. "service": {
  13074. "anyOf": [
  13075. {
  13076. "type": "string"
  13077. },
  13078. {
  13079. "type": "null"
  13080. }
  13081. ]
  13082. }
  13083. },
  13084. "required": [
  13085. "_tag",
  13086. "message"
  13087. ],
  13088. "additionalProperties": false
  13089. },
  13090. "SessionBusyError": {
  13091. "type": "object",
  13092. "properties": {
  13093. "_tag": {
  13094. "type": "string",
  13095. "enum": [
  13096. "SessionBusyError"
  13097. ]
  13098. },
  13099. "sessionID": {
  13100. "type": "string"
  13101. },
  13102. "message": {
  13103. "type": "string"
  13104. }
  13105. },
  13106. "required": [
  13107. "_tag",
  13108. "sessionID",
  13109. "message"
  13110. ],
  13111. "additionalProperties": false
  13112. },
  13113. "UnknownError": {
  13114. "type": "object",
  13115. "properties": {
  13116. "_tag": {
  13117. "type": "string",
  13118. "enum": [
  13119. "UnknownError"
  13120. ]
  13121. },
  13122. "message": {
  13123. "type": "string"
  13124. },
  13125. "ref": {
  13126. "anyOf": [
  13127. {
  13128. "type": "string"
  13129. },
  13130. {
  13131. "type": "null"
  13132. }
  13133. ]
  13134. }
  13135. },
  13136. "required": [
  13137. "_tag",
  13138. "message"
  13139. ],
  13140. "additionalProperties": false
  13141. },
  13142. "Session.Message.AgentSelected": {
  13143. "type": "object",
  13144. "properties": {
  13145. "id": {
  13146. "type": "string",
  13147. "allOf": [
  13148. {
  13149. "pattern": "^msg_"
  13150. }
  13151. ]
  13152. },
  13153. "metadata": {
  13154. "type": "object"
  13155. },
  13156. "time": {
  13157. "type": "object",
  13158. "properties": {
  13159. "created": {
  13160. "type": "number"
  13161. }
  13162. },
  13163. "required": [
  13164. "created"
  13165. ],
  13166. "additionalProperties": false
  13167. },
  13168. "type": {
  13169. "type": "string",
  13170. "enum": [
  13171. "agent-switched"
  13172. ]
  13173. },
  13174. "agent": {
  13175. "type": "string"
  13176. }
  13177. },
  13178. "required": [
  13179. "id",
  13180. "time",
  13181. "type",
  13182. "agent"
  13183. ],
  13184. "additionalProperties": false
  13185. },
  13186. "Session.Message.ModelSelected": {
  13187. "type": "object",
  13188. "properties": {
  13189. "id": {
  13190. "type": "string",
  13191. "allOf": [
  13192. {
  13193. "pattern": "^msg_"
  13194. }
  13195. ]
  13196. },
  13197. "metadata": {
  13198. "type": "object"
  13199. },
  13200. "time": {
  13201. "type": "object",
  13202. "properties": {
  13203. "created": {
  13204. "type": "number"
  13205. }
  13206. },
  13207. "required": [
  13208. "created"
  13209. ],
  13210. "additionalProperties": false
  13211. },
  13212. "type": {
  13213. "type": "string",
  13214. "enum": [
  13215. "model-switched"
  13216. ]
  13217. },
  13218. "model": {
  13219. "$ref": "#/components/schemas/Model.Ref"
  13220. },
  13221. "previous": {
  13222. "$ref": "#/components/schemas/Model.Ref"
  13223. }
  13224. },
  13225. "required": [
  13226. "id",
  13227. "time",
  13228. "type",
  13229. "model"
  13230. ],
  13231. "additionalProperties": false
  13232. },
  13233. "Session.Message.User": {
  13234. "type": "object",
  13235. "properties": {
  13236. "id": {
  13237. "type": "string",
  13238. "allOf": [
  13239. {
  13240. "pattern": "^msg_"
  13241. }
  13242. ]
  13243. },
  13244. "metadata": {
  13245. "type": "object"
  13246. },
  13247. "time": {
  13248. "type": "object",
  13249. "properties": {
  13250. "created": {
  13251. "type": "number"
  13252. }
  13253. },
  13254. "required": [
  13255. "created"
  13256. ],
  13257. "additionalProperties": false
  13258. },
  13259. "text": {
  13260. "type": "string"
  13261. },
  13262. "files": {
  13263. "type": "array",
  13264. "items": {
  13265. "$ref": "#/components/schemas/Prompt.FileAttachment"
  13266. }
  13267. },
  13268. "agents": {
  13269. "type": "array",
  13270. "items": {
  13271. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  13272. }
  13273. },
  13274. "type": {
  13275. "type": "string",
  13276. "enum": [
  13277. "user"
  13278. ]
  13279. }
  13280. },
  13281. "required": [
  13282. "id",
  13283. "time",
  13284. "text",
  13285. "type"
  13286. ],
  13287. "additionalProperties": false
  13288. },
  13289. "Session.Message.Synthetic": {
  13290. "type": "object",
  13291. "properties": {
  13292. "id": {
  13293. "type": "string",
  13294. "allOf": [
  13295. {
  13296. "pattern": "^msg_"
  13297. }
  13298. ]
  13299. },
  13300. "metadata": {
  13301. "type": "object"
  13302. },
  13303. "time": {
  13304. "type": "object",
  13305. "properties": {
  13306. "created": {
  13307. "type": "number"
  13308. }
  13309. },
  13310. "required": [
  13311. "created"
  13312. ],
  13313. "additionalProperties": false
  13314. },
  13315. "text": {
  13316. "type": "string"
  13317. },
  13318. "description": {
  13319. "type": "string"
  13320. },
  13321. "type": {
  13322. "type": "string",
  13323. "enum": [
  13324. "synthetic"
  13325. ]
  13326. }
  13327. },
  13328. "required": [
  13329. "id",
  13330. "time",
  13331. "text",
  13332. "type"
  13333. ],
  13334. "additionalProperties": false
  13335. },
  13336. "Session.Message.System": {
  13337. "type": "object",
  13338. "properties": {
  13339. "id": {
  13340. "type": "string",
  13341. "allOf": [
  13342. {
  13343. "pattern": "^msg_"
  13344. }
  13345. ]
  13346. },
  13347. "metadata": {
  13348. "type": "object"
  13349. },
  13350. "time": {
  13351. "type": "object",
  13352. "properties": {
  13353. "created": {
  13354. "type": "number"
  13355. }
  13356. },
  13357. "required": [
  13358. "created"
  13359. ],
  13360. "additionalProperties": false
  13361. },
  13362. "type": {
  13363. "type": "string",
  13364. "enum": [
  13365. "system"
  13366. ]
  13367. },
  13368. "text": {
  13369. "type": "string"
  13370. }
  13371. },
  13372. "required": [
  13373. "id",
  13374. "time",
  13375. "type",
  13376. "text"
  13377. ],
  13378. "additionalProperties": false
  13379. },
  13380. "Session.Message.Skill": {
  13381. "type": "object",
  13382. "properties": {
  13383. "id": {
  13384. "type": "string",
  13385. "allOf": [
  13386. {
  13387. "pattern": "^msg_"
  13388. }
  13389. ]
  13390. },
  13391. "metadata": {
  13392. "type": "object"
  13393. },
  13394. "time": {
  13395. "type": "object",
  13396. "properties": {
  13397. "created": {
  13398. "type": "number"
  13399. }
  13400. },
  13401. "required": [
  13402. "created"
  13403. ],
  13404. "additionalProperties": false
  13405. },
  13406. "type": {
  13407. "type": "string",
  13408. "enum": [
  13409. "skill"
  13410. ]
  13411. },
  13412. "skill": {
  13413. "type": "string"
  13414. },
  13415. "name": {
  13416. "type": "string"
  13417. },
  13418. "text": {
  13419. "type": "string"
  13420. }
  13421. },
  13422. "required": [
  13423. "id",
  13424. "time",
  13425. "type",
  13426. "skill",
  13427. "name",
  13428. "text"
  13429. ],
  13430. "additionalProperties": false
  13431. },
  13432. "Session.Message.Shell": {
  13433. "type": "object",
  13434. "properties": {
  13435. "id": {
  13436. "type": "string",
  13437. "allOf": [
  13438. {
  13439. "pattern": "^msg_"
  13440. }
  13441. ]
  13442. },
  13443. "metadata": {
  13444. "type": "object"
  13445. },
  13446. "time": {
  13447. "type": "object",
  13448. "properties": {
  13449. "created": {
  13450. "type": "number"
  13451. },
  13452. "completed": {
  13453. "type": "number"
  13454. }
  13455. },
  13456. "required": [
  13457. "created"
  13458. ],
  13459. "additionalProperties": false
  13460. },
  13461. "type": {
  13462. "type": "string",
  13463. "enum": [
  13464. "shell"
  13465. ]
  13466. },
  13467. "shellID": {
  13468. "type": "string",
  13469. "allOf": [
  13470. {
  13471. "pattern": "^sh_"
  13472. }
  13473. ]
  13474. },
  13475. "command": {
  13476. "type": "string"
  13477. },
  13478. "status": {
  13479. "type": "string",
  13480. "enum": [
  13481. "running",
  13482. "exited",
  13483. "timeout",
  13484. "killed"
  13485. ]
  13486. },
  13487. "exit": {
  13488. "anyOf": [
  13489. {
  13490. "anyOf": [
  13491. {
  13492. "type": "number"
  13493. },
  13494. {
  13495. "type": "string",
  13496. "enum": [
  13497. "NaN"
  13498. ]
  13499. },
  13500. {
  13501. "type": "string",
  13502. "enum": [
  13503. "Infinity"
  13504. ]
  13505. },
  13506. {
  13507. "type": "string",
  13508. "enum": [
  13509. "-Infinity"
  13510. ]
  13511. }
  13512. ]
  13513. },
  13514. {
  13515. "type": "string",
  13516. "enum": [
  13517. "Infinity",
  13518. "-Infinity",
  13519. "NaN"
  13520. ]
  13521. }
  13522. ]
  13523. },
  13524. "output": {
  13525. "type": "object",
  13526. "properties": {
  13527. "output": {
  13528. "type": "string"
  13529. },
  13530. "cursor": {
  13531. "type": "integer",
  13532. "allOf": [
  13533. {
  13534. "minimum": 0
  13535. }
  13536. ]
  13537. },
  13538. "size": {
  13539. "type": "integer",
  13540. "allOf": [
  13541. {
  13542. "minimum": 0
  13543. }
  13544. ]
  13545. },
  13546. "truncated": {
  13547. "type": "boolean"
  13548. }
  13549. },
  13550. "required": [
  13551. "output",
  13552. "cursor",
  13553. "size",
  13554. "truncated"
  13555. ],
  13556. "additionalProperties": false
  13557. }
  13558. },
  13559. "required": [
  13560. "id",
  13561. "time",
  13562. "type",
  13563. "shellID",
  13564. "command",
  13565. "status"
  13566. ],
  13567. "additionalProperties": false
  13568. },
  13569. "Session.Message.ProviderState": {
  13570. "type": "object"
  13571. },
  13572. "Session.Message.Assistant.Text": {
  13573. "type": "object",
  13574. "properties": {
  13575. "type": {
  13576. "type": "string",
  13577. "enum": [
  13578. "text"
  13579. ]
  13580. },
  13581. "text": {
  13582. "type": "string"
  13583. },
  13584. "state": {
  13585. "$ref": "#/components/schemas/Session.Message.ProviderState"
  13586. }
  13587. },
  13588. "required": [
  13589. "type",
  13590. "text"
  13591. ],
  13592. "additionalProperties": false
  13593. },
  13594. "Session.Message.Assistant.Reasoning": {
  13595. "type": "object",
  13596. "properties": {
  13597. "type": {
  13598. "type": "string",
  13599. "enum": [
  13600. "reasoning"
  13601. ]
  13602. },
  13603. "text": {
  13604. "type": "string"
  13605. },
  13606. "state": {
  13607. "$ref": "#/components/schemas/Session.Message.ProviderState"
  13608. },
  13609. "time": {
  13610. "type": "object",
  13611. "properties": {
  13612. "created": {
  13613. "type": "number"
  13614. },
  13615. "completed": {
  13616. "type": "number"
  13617. }
  13618. },
  13619. "required": [
  13620. "created"
  13621. ],
  13622. "additionalProperties": false
  13623. }
  13624. },
  13625. "required": [
  13626. "type",
  13627. "text"
  13628. ],
  13629. "additionalProperties": false
  13630. },
  13631. "Session.Message.ToolState.Streaming": {
  13632. "type": "object",
  13633. "properties": {
  13634. "status": {
  13635. "type": "string",
  13636. "enum": [
  13637. "streaming"
  13638. ]
  13639. },
  13640. "input": {
  13641. "type": "string"
  13642. }
  13643. },
  13644. "required": [
  13645. "status",
  13646. "input"
  13647. ],
  13648. "additionalProperties": false
  13649. },
  13650. "Session.Message.ToolState.Running": {
  13651. "type": "object",
  13652. "properties": {
  13653. "status": {
  13654. "type": "string",
  13655. "enum": [
  13656. "running"
  13657. ]
  13658. },
  13659. "input": {
  13660. "type": "object"
  13661. },
  13662. "metadata": {
  13663. "type": "object"
  13664. }
  13665. },
  13666. "required": [
  13667. "status",
  13668. "input",
  13669. "metadata"
  13670. ],
  13671. "additionalProperties": false
  13672. },
  13673. "Tool.TextContent": {
  13674. "type": "object",
  13675. "properties": {
  13676. "type": {
  13677. "type": "string",
  13678. "enum": [
  13679. "text"
  13680. ]
  13681. },
  13682. "text": {
  13683. "type": "string"
  13684. }
  13685. },
  13686. "required": [
  13687. "type",
  13688. "text"
  13689. ],
  13690. "additionalProperties": false
  13691. },
  13692. "Tool.FileContent": {
  13693. "type": "object",
  13694. "properties": {
  13695. "type": {
  13696. "type": "string",
  13697. "enum": [
  13698. "file"
  13699. ]
  13700. },
  13701. "uri": {
  13702. "type": "string"
  13703. },
  13704. "mime": {
  13705. "type": "string"
  13706. },
  13707. "name": {
  13708. "type": "string"
  13709. }
  13710. },
  13711. "required": [
  13712. "type",
  13713. "uri",
  13714. "mime"
  13715. ],
  13716. "additionalProperties": false
  13717. },
  13718. "LLM.ToolContent": {
  13719. "anyOf": [
  13720. {
  13721. "$ref": "#/components/schemas/Tool.TextContent"
  13722. },
  13723. {
  13724. "$ref": "#/components/schemas/Tool.FileContent"
  13725. }
  13726. ]
  13727. },
  13728. "Session.Message.ToolState.Completed": {
  13729. "type": "object",
  13730. "properties": {
  13731. "status": {
  13732. "type": "string",
  13733. "enum": [
  13734. "completed"
  13735. ]
  13736. },
  13737. "input": {
  13738. "type": "object"
  13739. },
  13740. "content": {
  13741. "type": "array",
  13742. "prefixItems": [
  13743. {
  13744. "$ref": "#/components/schemas/LLM.ToolContent"
  13745. }
  13746. ],
  13747. "minItems": 1,
  13748. "items": {
  13749. "$ref": "#/components/schemas/LLM.ToolContent"
  13750. }
  13751. },
  13752. "metadata": {
  13753. "type": "object"
  13754. }
  13755. },
  13756. "required": [
  13757. "status",
  13758. "input",
  13759. "content"
  13760. ],
  13761. "additionalProperties": false
  13762. },
  13763. "Session.StructuredError": {
  13764. "type": "object",
  13765. "properties": {
  13766. "type": {
  13767. "type": "string"
  13768. },
  13769. "message": {
  13770. "type": "string"
  13771. }
  13772. },
  13773. "required": [
  13774. "type",
  13775. "message"
  13776. ],
  13777. "additionalProperties": false
  13778. },
  13779. "Session.Message.ToolState.Error": {
  13780. "type": "object",
  13781. "properties": {
  13782. "status": {
  13783. "type": "string",
  13784. "enum": [
  13785. "error"
  13786. ]
  13787. },
  13788. "input": {
  13789. "type": "object"
  13790. },
  13791. "error": {
  13792. "$ref": "#/components/schemas/Session.StructuredError"
  13793. },
  13794. "content": {
  13795. "type": "array",
  13796. "prefixItems": [
  13797. {
  13798. "$ref": "#/components/schemas/LLM.ToolContent"
  13799. }
  13800. ],
  13801. "minItems": 1,
  13802. "items": {
  13803. "$ref": "#/components/schemas/LLM.ToolContent"
  13804. }
  13805. },
  13806. "metadata": {
  13807. "type": "object"
  13808. }
  13809. },
  13810. "required": [
  13811. "status",
  13812. "input",
  13813. "error"
  13814. ],
  13815. "additionalProperties": false
  13816. },
  13817. "Session.Message.Assistant.Tool": {
  13818. "type": "object",
  13819. "properties": {
  13820. "type": {
  13821. "type": "string",
  13822. "enum": [
  13823. "tool"
  13824. ]
  13825. },
  13826. "id": {
  13827. "type": "string"
  13828. },
  13829. "name": {
  13830. "type": "string"
  13831. },
  13832. "executed": {
  13833. "type": "boolean"
  13834. },
  13835. "providerState": {
  13836. "$ref": "#/components/schemas/Session.Message.ProviderState"
  13837. },
  13838. "providerResultState": {
  13839. "$ref": "#/components/schemas/Session.Message.ProviderState"
  13840. },
  13841. "state": {
  13842. "anyOf": [
  13843. {
  13844. "$ref": "#/components/schemas/Session.Message.ToolState.Streaming"
  13845. },
  13846. {
  13847. "$ref": "#/components/schemas/Session.Message.ToolState.Running"
  13848. },
  13849. {
  13850. "$ref": "#/components/schemas/Session.Message.ToolState.Completed"
  13851. },
  13852. {
  13853. "$ref": "#/components/schemas/Session.Message.ToolState.Error"
  13854. }
  13855. ]
  13856. },
  13857. "time": {
  13858. "type": "object",
  13859. "properties": {
  13860. "created": {
  13861. "type": "number"
  13862. },
  13863. "ran": {
  13864. "type": "number"
  13865. },
  13866. "completed": {
  13867. "type": "number"
  13868. }
  13869. },
  13870. "required": [
  13871. "created"
  13872. ],
  13873. "additionalProperties": false
  13874. }
  13875. },
  13876. "required": [
  13877. "type",
  13878. "id",
  13879. "name",
  13880. "state",
  13881. "time"
  13882. ],
  13883. "additionalProperties": false
  13884. },
  13885. "Session.Message.Assistant.Retry": {
  13886. "type": "object",
  13887. "properties": {
  13888. "attempt": {
  13889. "type": "integer",
  13890. "allOf": [
  13891. {
  13892. "exclusiveMinimum": 0
  13893. }
  13894. ]
  13895. },
  13896. "at": {
  13897. "type": "number"
  13898. },
  13899. "error": {
  13900. "$ref": "#/components/schemas/Session.StructuredError"
  13901. }
  13902. },
  13903. "required": [
  13904. "attempt",
  13905. "at",
  13906. "error"
  13907. ],
  13908. "additionalProperties": false
  13909. },
  13910. "Session.Message.Assistant": {
  13911. "type": "object",
  13912. "properties": {
  13913. "id": {
  13914. "type": "string",
  13915. "allOf": [
  13916. {
  13917. "pattern": "^msg_"
  13918. }
  13919. ]
  13920. },
  13921. "metadata": {
  13922. "type": "object"
  13923. },
  13924. "time": {
  13925. "type": "object",
  13926. "properties": {
  13927. "created": {
  13928. "type": "number"
  13929. },
  13930. "completed": {
  13931. "type": "number"
  13932. }
  13933. },
  13934. "required": [
  13935. "created"
  13936. ],
  13937. "additionalProperties": false
  13938. },
  13939. "type": {
  13940. "type": "string",
  13941. "enum": [
  13942. "assistant"
  13943. ]
  13944. },
  13945. "agent": {
  13946. "type": "string"
  13947. },
  13948. "model": {
  13949. "$ref": "#/components/schemas/Model.Ref"
  13950. },
  13951. "content": {
  13952. "type": "array",
  13953. "items": {
  13954. "anyOf": [
  13955. {
  13956. "$ref": "#/components/schemas/Session.Message.Assistant.Text"
  13957. },
  13958. {
  13959. "$ref": "#/components/schemas/Session.Message.Assistant.Reasoning"
  13960. },
  13961. {
  13962. "$ref": "#/components/schemas/Session.Message.Assistant.Tool"
  13963. }
  13964. ]
  13965. }
  13966. },
  13967. "snapshot": {
  13968. "type": "object",
  13969. "properties": {
  13970. "start": {
  13971. "type": "string"
  13972. },
  13973. "end": {
  13974. "type": "string"
  13975. },
  13976. "files": {
  13977. "type": "array",
  13978. "items": {
  13979. "type": "string"
  13980. }
  13981. }
  13982. },
  13983. "additionalProperties": false
  13984. },
  13985. "finish": {
  13986. "type": "string",
  13987. "enum": [
  13988. "stop",
  13989. "length",
  13990. "tool-calls",
  13991. "content-filter",
  13992. "error",
  13993. "unknown"
  13994. ]
  13995. },
  13996. "cost": {
  13997. "$ref": "#/components/schemas/Money.USD"
  13998. },
  13999. "tokens": {
  14000. "$ref": "#/components/schemas/TokenUsage.Info"
  14001. },
  14002. "error": {
  14003. "$ref": "#/components/schemas/Session.StructuredError"
  14004. },
  14005. "retry": {
  14006. "$ref": "#/components/schemas/Session.Message.Assistant.Retry"
  14007. }
  14008. },
  14009. "required": [
  14010. "id",
  14011. "time",
  14012. "type",
  14013. "agent",
  14014. "model",
  14015. "content"
  14016. ],
  14017. "additionalProperties": false
  14018. },
  14019. "Session.Message.Compaction.Running": {
  14020. "type": "object",
  14021. "properties": {
  14022. "type": {
  14023. "type": "string",
  14024. "enum": [
  14025. "compaction"
  14026. ]
  14027. },
  14028. "id": {
  14029. "type": "string",
  14030. "allOf": [
  14031. {
  14032. "pattern": "^msg_"
  14033. }
  14034. ]
  14035. },
  14036. "metadata": {
  14037. "type": "object"
  14038. },
  14039. "time": {
  14040. "type": "object",
  14041. "properties": {
  14042. "created": {
  14043. "type": "number"
  14044. }
  14045. },
  14046. "required": [
  14047. "created"
  14048. ],
  14049. "additionalProperties": false
  14050. },
  14051. "status": {
  14052. "type": "string",
  14053. "enum": [
  14054. "running"
  14055. ]
  14056. },
  14057. "reason": {
  14058. "type": "string",
  14059. "enum": [
  14060. "auto",
  14061. "manual"
  14062. ]
  14063. },
  14064. "summary": {
  14065. "type": "string"
  14066. },
  14067. "recent": {
  14068. "type": "string"
  14069. }
  14070. },
  14071. "required": [
  14072. "type",
  14073. "id",
  14074. "time",
  14075. "status",
  14076. "reason",
  14077. "summary",
  14078. "recent"
  14079. ],
  14080. "additionalProperties": false
  14081. },
  14082. "Session.Message.Compaction.Completed": {
  14083. "type": "object",
  14084. "properties": {
  14085. "type": {
  14086. "type": "string",
  14087. "enum": [
  14088. "compaction"
  14089. ]
  14090. },
  14091. "id": {
  14092. "type": "string",
  14093. "allOf": [
  14094. {
  14095. "pattern": "^msg_"
  14096. }
  14097. ]
  14098. },
  14099. "metadata": {
  14100. "type": "object"
  14101. },
  14102. "time": {
  14103. "type": "object",
  14104. "properties": {
  14105. "created": {
  14106. "type": "number"
  14107. }
  14108. },
  14109. "required": [
  14110. "created"
  14111. ],
  14112. "additionalProperties": false
  14113. },
  14114. "status": {
  14115. "type": "string",
  14116. "enum": [
  14117. "completed"
  14118. ]
  14119. },
  14120. "reason": {
  14121. "type": "string",
  14122. "enum": [
  14123. "auto",
  14124. "manual"
  14125. ]
  14126. },
  14127. "summary": {
  14128. "type": "string"
  14129. },
  14130. "recent": {
  14131. "type": "string"
  14132. }
  14133. },
  14134. "required": [
  14135. "type",
  14136. "id",
  14137. "time",
  14138. "status",
  14139. "reason",
  14140. "summary",
  14141. "recent"
  14142. ],
  14143. "additionalProperties": false
  14144. },
  14145. "Session.Message.Compaction.Failed": {
  14146. "type": "object",
  14147. "properties": {
  14148. "type": {
  14149. "type": "string",
  14150. "enum": [
  14151. "compaction"
  14152. ]
  14153. },
  14154. "id": {
  14155. "type": "string",
  14156. "allOf": [
  14157. {
  14158. "pattern": "^msg_"
  14159. }
  14160. ]
  14161. },
  14162. "metadata": {
  14163. "type": "object"
  14164. },
  14165. "time": {
  14166. "type": "object",
  14167. "properties": {
  14168. "created": {
  14169. "type": "number"
  14170. }
  14171. },
  14172. "required": [
  14173. "created"
  14174. ],
  14175. "additionalProperties": false
  14176. },
  14177. "status": {
  14178. "type": "string",
  14179. "enum": [
  14180. "failed"
  14181. ]
  14182. },
  14183. "reason": {
  14184. "type": "string",
  14185. "enum": [
  14186. "auto",
  14187. "manual"
  14188. ]
  14189. },
  14190. "error": {
  14191. "$ref": "#/components/schemas/Session.StructuredError"
  14192. }
  14193. },
  14194. "required": [
  14195. "type",
  14196. "id",
  14197. "time",
  14198. "status",
  14199. "reason",
  14200. "error"
  14201. ],
  14202. "additionalProperties": false
  14203. },
  14204. "Session.Message.Compaction": {
  14205. "anyOf": [
  14206. {
  14207. "$ref": "#/components/schemas/Session.Message.Compaction.Running"
  14208. },
  14209. {
  14210. "$ref": "#/components/schemas/Session.Message.Compaction.Completed"
  14211. },
  14212. {
  14213. "$ref": "#/components/schemas/Session.Message.Compaction.Failed"
  14214. }
  14215. ]
  14216. },
  14217. "Session.Message.Info": {
  14218. "anyOf": [
  14219. {
  14220. "$ref": "#/components/schemas/Session.Message.AgentSelected"
  14221. },
  14222. {
  14223. "$ref": "#/components/schemas/Session.Message.ModelSelected"
  14224. },
  14225. {
  14226. "$ref": "#/components/schemas/Session.Message.User"
  14227. },
  14228. {
  14229. "$ref": "#/components/schemas/Session.Message.Synthetic"
  14230. },
  14231. {
  14232. "$ref": "#/components/schemas/Session.Message.System"
  14233. },
  14234. {
  14235. "$ref": "#/components/schemas/Session.Message.Skill"
  14236. },
  14237. {
  14238. "$ref": "#/components/schemas/Session.Message.Shell"
  14239. },
  14240. {
  14241. "$ref": "#/components/schemas/Session.Message.Assistant"
  14242. },
  14243. {
  14244. "$ref": "#/components/schemas/Session.Message.Compaction"
  14245. }
  14246. ]
  14247. },
  14248. "SessionPending.Info": {
  14249. "anyOf": [
  14250. {
  14251. "$ref": "#/components/schemas/SessionPending.User"
  14252. },
  14253. {
  14254. "$ref": "#/components/schemas/SessionPending.Synthetic"
  14255. },
  14256. {
  14257. "$ref": "#/components/schemas/SessionPending.Compaction"
  14258. }
  14259. ]
  14260. },
  14261. "InstructionEntry.Key": {
  14262. "type": "string",
  14263. "allOf": [
  14264. {
  14265. "pattern": "^[a-z0-9][a-z0-9._-]*$",
  14266. "description": "Instruction entry key (lowercase alphanumerics plus . _ -)"
  14267. }
  14268. ]
  14269. },
  14270. "InstructionEntry.Info": {
  14271. "type": "object",
  14272. "properties": {
  14273. "key": {
  14274. "$ref": "#/components/schemas/InstructionEntry.Key"
  14275. },
  14276. "value": {}
  14277. },
  14278. "required": [
  14279. "key",
  14280. "value"
  14281. ],
  14282. "additionalProperties": false
  14283. },
  14284. "InstructionEntryValueTooLargeError": {
  14285. "type": "object",
  14286. "properties": {
  14287. "_tag": {
  14288. "type": "string",
  14289. "enum": [
  14290. "InstructionEntryValueTooLargeError"
  14291. ]
  14292. },
  14293. "actualBytes": {
  14294. "type": "integer"
  14295. },
  14296. "maxBytes": {
  14297. "type": "integer"
  14298. },
  14299. "message": {
  14300. "type": "string"
  14301. }
  14302. },
  14303. "required": [
  14304. "_tag",
  14305. "actualBytes",
  14306. "maxBytes",
  14307. "message"
  14308. ],
  14309. "additionalProperties": false
  14310. },
  14311. "SessionGenerateResponse": {
  14312. "type": "object",
  14313. "properties": {
  14314. "data": {
  14315. "type": "object",
  14316. "properties": {
  14317. "text": {
  14318. "type": "string"
  14319. }
  14320. },
  14321. "required": [
  14322. "text"
  14323. ],
  14324. "additionalProperties": false
  14325. }
  14326. },
  14327. "required": [
  14328. "data"
  14329. ],
  14330. "additionalProperties": false
  14331. },
  14332. "session.agent.selected": {
  14333. "type": "object",
  14334. "properties": {
  14335. "id": {
  14336. "type": "string",
  14337. "allOf": [
  14338. {
  14339. "pattern": "^evt_"
  14340. }
  14341. ]
  14342. },
  14343. "created": {
  14344. "type": "number"
  14345. },
  14346. "metadata": {
  14347. "type": "object"
  14348. },
  14349. "type": {
  14350. "type": "string",
  14351. "enum": [
  14352. "session.agent.selected"
  14353. ]
  14354. },
  14355. "durable": {
  14356. "type": "object",
  14357. "properties": {
  14358. "aggregateID": {
  14359. "type": "string"
  14360. },
  14361. "seq": {
  14362. "type": "integer",
  14363. "allOf": [
  14364. {
  14365. "minimum": 0
  14366. }
  14367. ]
  14368. },
  14369. "version": {
  14370. "type": "number",
  14371. "enum": [
  14372. 1
  14373. ]
  14374. }
  14375. },
  14376. "required": [
  14377. "aggregateID",
  14378. "seq",
  14379. "version"
  14380. ],
  14381. "additionalProperties": false
  14382. },
  14383. "location": {
  14384. "$ref": "#/components/schemas/Location.Ref"
  14385. },
  14386. "data": {
  14387. "type": "object",
  14388. "properties": {
  14389. "sessionID": {
  14390. "type": "string",
  14391. "allOf": [
  14392. {
  14393. "pattern": "^ses"
  14394. }
  14395. ]
  14396. },
  14397. "agent": {
  14398. "type": "string"
  14399. }
  14400. },
  14401. "required": [
  14402. "sessionID",
  14403. "agent"
  14404. ],
  14405. "additionalProperties": false
  14406. }
  14407. },
  14408. "required": [
  14409. "id",
  14410. "created",
  14411. "type",
  14412. "durable",
  14413. "data"
  14414. ],
  14415. "additionalProperties": false
  14416. },
  14417. "session.model.selected": {
  14418. "type": "object",
  14419. "properties": {
  14420. "id": {
  14421. "type": "string",
  14422. "allOf": [
  14423. {
  14424. "pattern": "^evt_"
  14425. }
  14426. ]
  14427. },
  14428. "created": {
  14429. "type": "number"
  14430. },
  14431. "metadata": {
  14432. "type": "object"
  14433. },
  14434. "type": {
  14435. "type": "string",
  14436. "enum": [
  14437. "session.model.selected"
  14438. ]
  14439. },
  14440. "durable": {
  14441. "type": "object",
  14442. "properties": {
  14443. "aggregateID": {
  14444. "type": "string"
  14445. },
  14446. "seq": {
  14447. "type": "integer",
  14448. "allOf": [
  14449. {
  14450. "minimum": 0
  14451. }
  14452. ]
  14453. },
  14454. "version": {
  14455. "type": "number",
  14456. "enum": [
  14457. 1
  14458. ]
  14459. }
  14460. },
  14461. "required": [
  14462. "aggregateID",
  14463. "seq",
  14464. "version"
  14465. ],
  14466. "additionalProperties": false
  14467. },
  14468. "location": {
  14469. "$ref": "#/components/schemas/Location.Ref"
  14470. },
  14471. "data": {
  14472. "type": "object",
  14473. "properties": {
  14474. "sessionID": {
  14475. "type": "string",
  14476. "allOf": [
  14477. {
  14478. "pattern": "^ses"
  14479. }
  14480. ]
  14481. },
  14482. "model": {
  14483. "$ref": "#/components/schemas/Model.Ref"
  14484. }
  14485. },
  14486. "required": [
  14487. "sessionID",
  14488. "model"
  14489. ],
  14490. "additionalProperties": false
  14491. }
  14492. },
  14493. "required": [
  14494. "id",
  14495. "created",
  14496. "type",
  14497. "durable",
  14498. "data"
  14499. ],
  14500. "additionalProperties": false
  14501. },
  14502. "session.moved": {
  14503. "type": "object",
  14504. "properties": {
  14505. "id": {
  14506. "type": "string",
  14507. "allOf": [
  14508. {
  14509. "pattern": "^evt_"
  14510. }
  14511. ]
  14512. },
  14513. "created": {
  14514. "type": "number"
  14515. },
  14516. "metadata": {
  14517. "type": "object"
  14518. },
  14519. "type": {
  14520. "type": "string",
  14521. "enum": [
  14522. "session.moved"
  14523. ]
  14524. },
  14525. "durable": {
  14526. "type": "object",
  14527. "properties": {
  14528. "aggregateID": {
  14529. "type": "string"
  14530. },
  14531. "seq": {
  14532. "type": "integer",
  14533. "allOf": [
  14534. {
  14535. "minimum": 0
  14536. }
  14537. ]
  14538. },
  14539. "version": {
  14540. "type": "number",
  14541. "enum": [
  14542. 1
  14543. ]
  14544. }
  14545. },
  14546. "required": [
  14547. "aggregateID",
  14548. "seq",
  14549. "version"
  14550. ],
  14551. "additionalProperties": false
  14552. },
  14553. "location": {
  14554. "$ref": "#/components/schemas/Location.Ref"
  14555. },
  14556. "data": {
  14557. "type": "object",
  14558. "properties": {
  14559. "sessionID": {
  14560. "type": "string",
  14561. "allOf": [
  14562. {
  14563. "pattern": "^ses"
  14564. }
  14565. ]
  14566. },
  14567. "location": {
  14568. "$ref": "#/components/schemas/Location.Ref"
  14569. },
  14570. "projectID": {
  14571. "type": "string"
  14572. },
  14573. "subpath": {
  14574. "type": "string"
  14575. }
  14576. },
  14577. "required": [
  14578. "sessionID",
  14579. "location"
  14580. ],
  14581. "additionalProperties": false
  14582. }
  14583. },
  14584. "required": [
  14585. "id",
  14586. "created",
  14587. "type",
  14588. "durable",
  14589. "data"
  14590. ],
  14591. "additionalProperties": false
  14592. },
  14593. "session.renamed": {
  14594. "type": "object",
  14595. "properties": {
  14596. "id": {
  14597. "type": "string",
  14598. "allOf": [
  14599. {
  14600. "pattern": "^evt_"
  14601. }
  14602. ]
  14603. },
  14604. "created": {
  14605. "type": "number"
  14606. },
  14607. "metadata": {
  14608. "type": "object"
  14609. },
  14610. "type": {
  14611. "type": "string",
  14612. "enum": [
  14613. "session.renamed"
  14614. ]
  14615. },
  14616. "durable": {
  14617. "type": "object",
  14618. "properties": {
  14619. "aggregateID": {
  14620. "type": "string"
  14621. },
  14622. "seq": {
  14623. "type": "integer",
  14624. "allOf": [
  14625. {
  14626. "minimum": 0
  14627. }
  14628. ]
  14629. },
  14630. "version": {
  14631. "type": "number",
  14632. "enum": [
  14633. 1
  14634. ]
  14635. }
  14636. },
  14637. "required": [
  14638. "aggregateID",
  14639. "seq",
  14640. "version"
  14641. ],
  14642. "additionalProperties": false
  14643. },
  14644. "location": {
  14645. "$ref": "#/components/schemas/Location.Ref"
  14646. },
  14647. "data": {
  14648. "type": "object",
  14649. "properties": {
  14650. "sessionID": {
  14651. "type": "string",
  14652. "allOf": [
  14653. {
  14654. "pattern": "^ses"
  14655. }
  14656. ]
  14657. },
  14658. "title": {
  14659. "type": "string"
  14660. }
  14661. },
  14662. "required": [
  14663. "sessionID",
  14664. "title"
  14665. ],
  14666. "additionalProperties": false
  14667. }
  14668. },
  14669. "required": [
  14670. "id",
  14671. "created",
  14672. "type",
  14673. "durable",
  14674. "data"
  14675. ],
  14676. "additionalProperties": false
  14677. },
  14678. "session.deleted": {
  14679. "type": "object",
  14680. "properties": {
  14681. "id": {
  14682. "type": "string",
  14683. "allOf": [
  14684. {
  14685. "pattern": "^evt_"
  14686. }
  14687. ]
  14688. },
  14689. "created": {
  14690. "type": "number"
  14691. },
  14692. "metadata": {
  14693. "type": "object"
  14694. },
  14695. "type": {
  14696. "type": "string",
  14697. "enum": [
  14698. "session.deleted"
  14699. ]
  14700. },
  14701. "durable": {
  14702. "type": "object",
  14703. "properties": {
  14704. "aggregateID": {
  14705. "type": "string"
  14706. },
  14707. "seq": {
  14708. "type": "integer",
  14709. "allOf": [
  14710. {
  14711. "minimum": 0
  14712. }
  14713. ]
  14714. },
  14715. "version": {
  14716. "type": "number",
  14717. "enum": [
  14718. 2
  14719. ]
  14720. }
  14721. },
  14722. "required": [
  14723. "aggregateID",
  14724. "seq",
  14725. "version"
  14726. ],
  14727. "additionalProperties": false
  14728. },
  14729. "location": {
  14730. "$ref": "#/components/schemas/Location.Ref"
  14731. },
  14732. "data": {
  14733. "type": "object",
  14734. "properties": {
  14735. "sessionID": {
  14736. "type": "string",
  14737. "allOf": [
  14738. {
  14739. "pattern": "^ses"
  14740. }
  14741. ]
  14742. }
  14743. },
  14744. "required": [
  14745. "sessionID"
  14746. ],
  14747. "additionalProperties": false
  14748. }
  14749. },
  14750. "required": [
  14751. "id",
  14752. "created",
  14753. "type",
  14754. "durable",
  14755. "data"
  14756. ],
  14757. "additionalProperties": false
  14758. },
  14759. "session.forked": {
  14760. "type": "object",
  14761. "properties": {
  14762. "id": {
  14763. "type": "string",
  14764. "allOf": [
  14765. {
  14766. "pattern": "^evt_"
  14767. }
  14768. ]
  14769. },
  14770. "created": {
  14771. "type": "number"
  14772. },
  14773. "metadata": {
  14774. "type": "object"
  14775. },
  14776. "type": {
  14777. "type": "string",
  14778. "enum": [
  14779. "session.forked"
  14780. ]
  14781. },
  14782. "durable": {
  14783. "type": "object",
  14784. "properties": {
  14785. "aggregateID": {
  14786. "type": "string"
  14787. },
  14788. "seq": {
  14789. "type": "integer",
  14790. "allOf": [
  14791. {
  14792. "minimum": 0
  14793. }
  14794. ]
  14795. },
  14796. "version": {
  14797. "type": "number",
  14798. "enum": [
  14799. 2
  14800. ]
  14801. }
  14802. },
  14803. "required": [
  14804. "aggregateID",
  14805. "seq",
  14806. "version"
  14807. ],
  14808. "additionalProperties": false
  14809. },
  14810. "location": {
  14811. "$ref": "#/components/schemas/Location.Ref"
  14812. },
  14813. "data": {
  14814. "type": "object",
  14815. "properties": {
  14816. "sessionID": {
  14817. "type": "string",
  14818. "allOf": [
  14819. {
  14820. "pattern": "^ses"
  14821. }
  14822. ]
  14823. },
  14824. "parentID": {
  14825. "type": "string",
  14826. "allOf": [
  14827. {
  14828. "pattern": "^ses"
  14829. }
  14830. ]
  14831. },
  14832. "parentSeq": {
  14833. "type": "integer",
  14834. "allOf": [
  14835. {
  14836. "minimum": -1
  14837. }
  14838. ]
  14839. },
  14840. "from": {
  14841. "type": "string",
  14842. "allOf": [
  14843. {
  14844. "pattern": "^msg_"
  14845. }
  14846. ]
  14847. }
  14848. },
  14849. "required": [
  14850. "sessionID",
  14851. "parentID",
  14852. "parentSeq"
  14853. ],
  14854. "additionalProperties": false
  14855. }
  14856. },
  14857. "required": [
  14858. "id",
  14859. "created",
  14860. "type",
  14861. "durable",
  14862. "data"
  14863. ],
  14864. "additionalProperties": false
  14865. },
  14866. "session.input.promoted": {
  14867. "type": "object",
  14868. "properties": {
  14869. "id": {
  14870. "type": "string",
  14871. "allOf": [
  14872. {
  14873. "pattern": "^evt_"
  14874. }
  14875. ]
  14876. },
  14877. "created": {
  14878. "type": "number"
  14879. },
  14880. "metadata": {
  14881. "type": "object"
  14882. },
  14883. "type": {
  14884. "type": "string",
  14885. "enum": [
  14886. "session.input.promoted"
  14887. ]
  14888. },
  14889. "durable": {
  14890. "type": "object",
  14891. "properties": {
  14892. "aggregateID": {
  14893. "type": "string"
  14894. },
  14895. "seq": {
  14896. "type": "integer",
  14897. "allOf": [
  14898. {
  14899. "minimum": 0
  14900. }
  14901. ]
  14902. },
  14903. "version": {
  14904. "type": "number",
  14905. "enum": [
  14906. 1
  14907. ]
  14908. }
  14909. },
  14910. "required": [
  14911. "aggregateID",
  14912. "seq",
  14913. "version"
  14914. ],
  14915. "additionalProperties": false
  14916. },
  14917. "location": {
  14918. "$ref": "#/components/schemas/Location.Ref"
  14919. },
  14920. "data": {
  14921. "type": "object",
  14922. "properties": {
  14923. "sessionID": {
  14924. "type": "string",
  14925. "allOf": [
  14926. {
  14927. "pattern": "^ses"
  14928. }
  14929. ]
  14930. },
  14931. "inputID": {
  14932. "type": "string",
  14933. "allOf": [
  14934. {
  14935. "pattern": "^msg_"
  14936. }
  14937. ]
  14938. }
  14939. },
  14940. "required": [
  14941. "sessionID",
  14942. "inputID"
  14943. ],
  14944. "additionalProperties": false
  14945. }
  14946. },
  14947. "required": [
  14948. "id",
  14949. "created",
  14950. "type",
  14951. "durable",
  14952. "data"
  14953. ],
  14954. "additionalProperties": false
  14955. },
  14956. "SessionPending.UserData1": {
  14957. "type": "object",
  14958. "properties": {
  14959. "text": {
  14960. "type": "string"
  14961. },
  14962. "files": {
  14963. "type": "array",
  14964. "items": {
  14965. "$ref": "#/components/schemas/Prompt.FileAttachment"
  14966. }
  14967. },
  14968. "agents": {
  14969. "type": "array",
  14970. "items": {
  14971. "$ref": "#/components/schemas/Prompt.AgentAttachment"
  14972. }
  14973. },
  14974. "metadata": {
  14975. "type": "object"
  14976. }
  14977. },
  14978. "required": [
  14979. "text"
  14980. ],
  14981. "additionalProperties": false
  14982. },
  14983. "SessionPending.UserMessage": {
  14984. "type": "object",
  14985. "properties": {
  14986. "type": {
  14987. "type": "string",
  14988. "enum": [
  14989. "user"
  14990. ]
  14991. },
  14992. "data": {
  14993. "$ref": "#/components/schemas/SessionPending.UserData1"
  14994. },
  14995. "delivery": {
  14996. "type": "string",
  14997. "enum": [
  14998. "steer",
  14999. "queue"
  15000. ]
  15001. }
  15002. },
  15003. "required": [
  15004. "type",
  15005. "data",
  15006. "delivery"
  15007. ],
  15008. "additionalProperties": false
  15009. },
  15010. "SessionPending.SyntheticData1": {
  15011. "type": "object",
  15012. "properties": {
  15013. "text": {
  15014. "type": "string"
  15015. },
  15016. "description": {
  15017. "type": "string"
  15018. },
  15019. "metadata": {
  15020. "type": "object"
  15021. }
  15022. },
  15023. "required": [
  15024. "text"
  15025. ],
  15026. "additionalProperties": false
  15027. },
  15028. "SessionPending.SyntheticMessage": {
  15029. "type": "object",
  15030. "properties": {
  15031. "type": {
  15032. "type": "string",
  15033. "enum": [
  15034. "synthetic"
  15035. ]
  15036. },
  15037. "data": {
  15038. "$ref": "#/components/schemas/SessionPending.SyntheticData1"
  15039. },
  15040. "delivery": {
  15041. "type": "string",
  15042. "enum": [
  15043. "steer",
  15044. "queue"
  15045. ]
  15046. }
  15047. },
  15048. "required": [
  15049. "type",
  15050. "data",
  15051. "delivery"
  15052. ],
  15053. "additionalProperties": false
  15054. },
  15055. "SessionPending.Message": {
  15056. "anyOf": [
  15057. {
  15058. "$ref": "#/components/schemas/SessionPending.UserMessage"
  15059. },
  15060. {
  15061. "$ref": "#/components/schemas/SessionPending.SyntheticMessage"
  15062. }
  15063. ]
  15064. },
  15065. "session.input.admitted": {
  15066. "type": "object",
  15067. "properties": {
  15068. "id": {
  15069. "type": "string",
  15070. "allOf": [
  15071. {
  15072. "pattern": "^evt_"
  15073. }
  15074. ]
  15075. },
  15076. "created": {
  15077. "type": "number"
  15078. },
  15079. "metadata": {
  15080. "type": "object"
  15081. },
  15082. "type": {
  15083. "type": "string",
  15084. "enum": [
  15085. "session.input.admitted"
  15086. ]
  15087. },
  15088. "durable": {
  15089. "type": "object",
  15090. "properties": {
  15091. "aggregateID": {
  15092. "type": "string"
  15093. },
  15094. "seq": {
  15095. "type": "integer",
  15096. "allOf": [
  15097. {
  15098. "minimum": 0
  15099. }
  15100. ]
  15101. },
  15102. "version": {
  15103. "type": "number",
  15104. "enum": [
  15105. 1
  15106. ]
  15107. }
  15108. },
  15109. "required": [
  15110. "aggregateID",
  15111. "seq",
  15112. "version"
  15113. ],
  15114. "additionalProperties": false
  15115. },
  15116. "location": {
  15117. "$ref": "#/components/schemas/Location.Ref"
  15118. },
  15119. "data": {
  15120. "type": "object",
  15121. "properties": {
  15122. "sessionID": {
  15123. "type": "string",
  15124. "allOf": [
  15125. {
  15126. "pattern": "^ses"
  15127. }
  15128. ]
  15129. },
  15130. "inputID": {
  15131. "type": "string",
  15132. "allOf": [
  15133. {
  15134. "pattern": "^msg_"
  15135. }
  15136. ]
  15137. },
  15138. "input": {
  15139. "$ref": "#/components/schemas/SessionPending.Message"
  15140. }
  15141. },
  15142. "required": [
  15143. "sessionID",
  15144. "inputID",
  15145. "input"
  15146. ],
  15147. "additionalProperties": false
  15148. }
  15149. },
  15150. "required": [
  15151. "id",
  15152. "created",
  15153. "type",
  15154. "durable",
  15155. "data"
  15156. ],
  15157. "additionalProperties": false
  15158. },
  15159. "session.execution.started": {
  15160. "type": "object",
  15161. "properties": {
  15162. "id": {
  15163. "type": "string",
  15164. "allOf": [
  15165. {
  15166. "pattern": "^evt_"
  15167. }
  15168. ]
  15169. },
  15170. "created": {
  15171. "type": "number"
  15172. },
  15173. "metadata": {
  15174. "type": "object"
  15175. },
  15176. "type": {
  15177. "type": "string",
  15178. "enum": [
  15179. "session.execution.started"
  15180. ]
  15181. },
  15182. "durable": {
  15183. "type": "object",
  15184. "properties": {
  15185. "aggregateID": {
  15186. "type": "string"
  15187. },
  15188. "seq": {
  15189. "type": "integer",
  15190. "allOf": [
  15191. {
  15192. "minimum": 0
  15193. }
  15194. ]
  15195. },
  15196. "version": {
  15197. "type": "number",
  15198. "enum": [
  15199. 1
  15200. ]
  15201. }
  15202. },
  15203. "required": [
  15204. "aggregateID",
  15205. "seq",
  15206. "version"
  15207. ],
  15208. "additionalProperties": false
  15209. },
  15210. "location": {
  15211. "$ref": "#/components/schemas/Location.Ref"
  15212. },
  15213. "data": {
  15214. "type": "object",
  15215. "properties": {
  15216. "sessionID": {
  15217. "type": "string",
  15218. "allOf": [
  15219. {
  15220. "pattern": "^ses"
  15221. }
  15222. ]
  15223. }
  15224. },
  15225. "required": [
  15226. "sessionID"
  15227. ],
  15228. "additionalProperties": false
  15229. }
  15230. },
  15231. "required": [
  15232. "id",
  15233. "created",
  15234. "type",
  15235. "durable",
  15236. "data"
  15237. ],
  15238. "additionalProperties": false
  15239. },
  15240. "session.execution.succeeded": {
  15241. "type": "object",
  15242. "properties": {
  15243. "id": {
  15244. "type": "string",
  15245. "allOf": [
  15246. {
  15247. "pattern": "^evt_"
  15248. }
  15249. ]
  15250. },
  15251. "created": {
  15252. "type": "number"
  15253. },
  15254. "metadata": {
  15255. "type": "object"
  15256. },
  15257. "type": {
  15258. "type": "string",
  15259. "enum": [
  15260. "session.execution.succeeded"
  15261. ]
  15262. },
  15263. "durable": {
  15264. "type": "object",
  15265. "properties": {
  15266. "aggregateID": {
  15267. "type": "string"
  15268. },
  15269. "seq": {
  15270. "type": "integer",
  15271. "allOf": [
  15272. {
  15273. "minimum": 0
  15274. }
  15275. ]
  15276. },
  15277. "version": {
  15278. "type": "number",
  15279. "enum": [
  15280. 1
  15281. ]
  15282. }
  15283. },
  15284. "required": [
  15285. "aggregateID",
  15286. "seq",
  15287. "version"
  15288. ],
  15289. "additionalProperties": false
  15290. },
  15291. "location": {
  15292. "$ref": "#/components/schemas/Location.Ref"
  15293. },
  15294. "data": {
  15295. "type": "object",
  15296. "properties": {
  15297. "sessionID": {
  15298. "type": "string",
  15299. "allOf": [
  15300. {
  15301. "pattern": "^ses"
  15302. }
  15303. ]
  15304. }
  15305. },
  15306. "required": [
  15307. "sessionID"
  15308. ],
  15309. "additionalProperties": false
  15310. }
  15311. },
  15312. "required": [
  15313. "id",
  15314. "created",
  15315. "type",
  15316. "durable",
  15317. "data"
  15318. ],
  15319. "additionalProperties": false
  15320. },
  15321. "session.execution.failed": {
  15322. "type": "object",
  15323. "properties": {
  15324. "id": {
  15325. "type": "string",
  15326. "allOf": [
  15327. {
  15328. "pattern": "^evt_"
  15329. }
  15330. ]
  15331. },
  15332. "created": {
  15333. "type": "number"
  15334. },
  15335. "metadata": {
  15336. "type": "object"
  15337. },
  15338. "type": {
  15339. "type": "string",
  15340. "enum": [
  15341. "session.execution.failed"
  15342. ]
  15343. },
  15344. "durable": {
  15345. "type": "object",
  15346. "properties": {
  15347. "aggregateID": {
  15348. "type": "string"
  15349. },
  15350. "seq": {
  15351. "type": "integer",
  15352. "allOf": [
  15353. {
  15354. "minimum": 0
  15355. }
  15356. ]
  15357. },
  15358. "version": {
  15359. "type": "number",
  15360. "enum": [
  15361. 1
  15362. ]
  15363. }
  15364. },
  15365. "required": [
  15366. "aggregateID",
  15367. "seq",
  15368. "version"
  15369. ],
  15370. "additionalProperties": false
  15371. },
  15372. "location": {
  15373. "$ref": "#/components/schemas/Location.Ref"
  15374. },
  15375. "data": {
  15376. "type": "object",
  15377. "properties": {
  15378. "sessionID": {
  15379. "type": "string",
  15380. "allOf": [
  15381. {
  15382. "pattern": "^ses"
  15383. }
  15384. ]
  15385. },
  15386. "error": {
  15387. "$ref": "#/components/schemas/Session.StructuredError"
  15388. }
  15389. },
  15390. "required": [
  15391. "sessionID",
  15392. "error"
  15393. ],
  15394. "additionalProperties": false
  15395. }
  15396. },
  15397. "required": [
  15398. "id",
  15399. "created",
  15400. "type",
  15401. "durable",
  15402. "data"
  15403. ],
  15404. "additionalProperties": false
  15405. },
  15406. "session.execution.interrupted": {
  15407. "type": "object",
  15408. "properties": {
  15409. "id": {
  15410. "type": "string",
  15411. "allOf": [
  15412. {
  15413. "pattern": "^evt_"
  15414. }
  15415. ]
  15416. },
  15417. "created": {
  15418. "type": "number"
  15419. },
  15420. "metadata": {
  15421. "type": "object"
  15422. },
  15423. "type": {
  15424. "type": "string",
  15425. "enum": [
  15426. "session.execution.interrupted"
  15427. ]
  15428. },
  15429. "durable": {
  15430. "type": "object",
  15431. "properties": {
  15432. "aggregateID": {
  15433. "type": "string"
  15434. },
  15435. "seq": {
  15436. "type": "integer",
  15437. "allOf": [
  15438. {
  15439. "minimum": 0
  15440. }
  15441. ]
  15442. },
  15443. "version": {
  15444. "type": "number",
  15445. "enum": [
  15446. 1
  15447. ]
  15448. }
  15449. },
  15450. "required": [
  15451. "aggregateID",
  15452. "seq",
  15453. "version"
  15454. ],
  15455. "additionalProperties": false
  15456. },
  15457. "location": {
  15458. "$ref": "#/components/schemas/Location.Ref"
  15459. },
  15460. "data": {
  15461. "type": "object",
  15462. "properties": {
  15463. "sessionID": {
  15464. "type": "string",
  15465. "allOf": [
  15466. {
  15467. "pattern": "^ses"
  15468. }
  15469. ]
  15470. },
  15471. "reason": {
  15472. "type": "string",
  15473. "enum": [
  15474. "user",
  15475. "shutdown",
  15476. "superseded"
  15477. ]
  15478. }
  15479. },
  15480. "required": [
  15481. "sessionID",
  15482. "reason"
  15483. ],
  15484. "additionalProperties": false
  15485. }
  15486. },
  15487. "required": [
  15488. "id",
  15489. "created",
  15490. "type",
  15491. "durable",
  15492. "data"
  15493. ],
  15494. "additionalProperties": false
  15495. },
  15496. "session.instructions.updated": {
  15497. "type": "object",
  15498. "properties": {
  15499. "id": {
  15500. "type": "string",
  15501. "allOf": [
  15502. {
  15503. "pattern": "^evt_"
  15504. }
  15505. ]
  15506. },
  15507. "created": {
  15508. "type": "number"
  15509. },
  15510. "metadata": {
  15511. "type": "object"
  15512. },
  15513. "type": {
  15514. "type": "string",
  15515. "enum": [
  15516. "session.instructions.updated"
  15517. ]
  15518. },
  15519. "durable": {
  15520. "type": "object",
  15521. "properties": {
  15522. "aggregateID": {
  15523. "type": "string"
  15524. },
  15525. "seq": {
  15526. "type": "integer",
  15527. "allOf": [
  15528. {
  15529. "minimum": 0
  15530. }
  15531. ]
  15532. },
  15533. "version": {
  15534. "type": "number",
  15535. "enum": [
  15536. 2
  15537. ]
  15538. }
  15539. },
  15540. "required": [
  15541. "aggregateID",
  15542. "seq",
  15543. "version"
  15544. ],
  15545. "additionalProperties": false
  15546. },
  15547. "location": {
  15548. "$ref": "#/components/schemas/Location.Ref"
  15549. },
  15550. "data": {
  15551. "type": "object",
  15552. "properties": {
  15553. "sessionID": {
  15554. "type": "string",
  15555. "allOf": [
  15556. {
  15557. "pattern": "^ses"
  15558. }
  15559. ]
  15560. },
  15561. "delta": {
  15562. "type": "object",
  15563. "additionalProperties": {
  15564. "anyOf": [
  15565. {
  15566. "type": "string",
  15567. "allOf": [
  15568. {
  15569. "pattern": "^[a-f0-9]{64}$"
  15570. }
  15571. ]
  15572. },
  15573. {
  15574. "type": "string",
  15575. "enum": [
  15576. "removed"
  15577. ]
  15578. }
  15579. ]
  15580. }
  15581. }
  15582. },
  15583. "required": [
  15584. "sessionID",
  15585. "delta"
  15586. ],
  15587. "additionalProperties": false
  15588. }
  15589. },
  15590. "required": [
  15591. "id",
  15592. "created",
  15593. "type",
  15594. "durable",
  15595. "data"
  15596. ],
  15597. "additionalProperties": false
  15598. },
  15599. "session.synthetic": {
  15600. "type": "object",
  15601. "properties": {
  15602. "id": {
  15603. "type": "string",
  15604. "allOf": [
  15605. {
  15606. "pattern": "^evt_"
  15607. }
  15608. ]
  15609. },
  15610. "created": {
  15611. "type": "number"
  15612. },
  15613. "metadata": {
  15614. "type": "object"
  15615. },
  15616. "type": {
  15617. "type": "string",
  15618. "enum": [
  15619. "session.synthetic"
  15620. ]
  15621. },
  15622. "durable": {
  15623. "type": "object",
  15624. "properties": {
  15625. "aggregateID": {
  15626. "type": "string"
  15627. },
  15628. "seq": {
  15629. "type": "integer",
  15630. "allOf": [
  15631. {
  15632. "minimum": 0
  15633. }
  15634. ]
  15635. },
  15636. "version": {
  15637. "type": "number",
  15638. "enum": [
  15639. 1
  15640. ]
  15641. }
  15642. },
  15643. "required": [
  15644. "aggregateID",
  15645. "seq",
  15646. "version"
  15647. ],
  15648. "additionalProperties": false
  15649. },
  15650. "location": {
  15651. "$ref": "#/components/schemas/Location.Ref"
  15652. },
  15653. "data": {
  15654. "type": "object",
  15655. "properties": {
  15656. "sessionID": {
  15657. "type": "string",
  15658. "allOf": [
  15659. {
  15660. "pattern": "^ses"
  15661. }
  15662. ]
  15663. },
  15664. "text": {
  15665. "type": "string"
  15666. },
  15667. "description": {
  15668. "type": "string"
  15669. },
  15670. "metadata": {
  15671. "type": "object"
  15672. }
  15673. },
  15674. "required": [
  15675. "sessionID",
  15676. "text"
  15677. ],
  15678. "additionalProperties": false
  15679. }
  15680. },
  15681. "required": [
  15682. "id",
  15683. "created",
  15684. "type",
  15685. "durable",
  15686. "data"
  15687. ],
  15688. "additionalProperties": false
  15689. },
  15690. "session.skill.activated": {
  15691. "type": "object",
  15692. "properties": {
  15693. "id": {
  15694. "type": "string",
  15695. "allOf": [
  15696. {
  15697. "pattern": "^evt_"
  15698. }
  15699. ]
  15700. },
  15701. "created": {
  15702. "type": "number"
  15703. },
  15704. "metadata": {
  15705. "type": "object"
  15706. },
  15707. "type": {
  15708. "type": "string",
  15709. "enum": [
  15710. "session.skill.activated"
  15711. ]
  15712. },
  15713. "durable": {
  15714. "type": "object",
  15715. "properties": {
  15716. "aggregateID": {
  15717. "type": "string"
  15718. },
  15719. "seq": {
  15720. "type": "integer",
  15721. "allOf": [
  15722. {
  15723. "minimum": 0
  15724. }
  15725. ]
  15726. },
  15727. "version": {
  15728. "type": "number",
  15729. "enum": [
  15730. 1
  15731. ]
  15732. }
  15733. },
  15734. "required": [
  15735. "aggregateID",
  15736. "seq",
  15737. "version"
  15738. ],
  15739. "additionalProperties": false
  15740. },
  15741. "location": {
  15742. "$ref": "#/components/schemas/Location.Ref"
  15743. },
  15744. "data": {
  15745. "type": "object",
  15746. "properties": {
  15747. "sessionID": {
  15748. "type": "string",
  15749. "allOf": [
  15750. {
  15751. "pattern": "^ses"
  15752. }
  15753. ]
  15754. },
  15755. "id": {
  15756. "type": "string"
  15757. },
  15758. "name": {
  15759. "type": "string"
  15760. },
  15761. "text": {
  15762. "type": "string"
  15763. }
  15764. },
  15765. "required": [
  15766. "sessionID",
  15767. "id",
  15768. "name",
  15769. "text"
  15770. ],
  15771. "additionalProperties": false
  15772. }
  15773. },
  15774. "required": [
  15775. "id",
  15776. "created",
  15777. "type",
  15778. "durable",
  15779. "data"
  15780. ],
  15781. "additionalProperties": false
  15782. },
  15783. "Shell.Info": {
  15784. "type": "object",
  15785. "properties": {
  15786. "id": {
  15787. "type": "string",
  15788. "allOf": [
  15789. {
  15790. "pattern": "^sh_"
  15791. }
  15792. ]
  15793. },
  15794. "status": {
  15795. "type": "string",
  15796. "enum": [
  15797. "running",
  15798. "exited",
  15799. "timeout",
  15800. "killed"
  15801. ]
  15802. },
  15803. "command": {
  15804. "type": "string"
  15805. },
  15806. "cwd": {
  15807. "type": "string"
  15808. },
  15809. "shell": {
  15810. "type": "string"
  15811. },
  15812. "file": {
  15813. "type": "string"
  15814. },
  15815. "pid": {
  15816. "type": "integer",
  15817. "allOf": [
  15818. {
  15819. "minimum": 0
  15820. }
  15821. ]
  15822. },
  15823. "exit": {
  15824. "type": "number"
  15825. },
  15826. "metadata": {
  15827. "type": "object"
  15828. },
  15829. "time": {
  15830. "type": "object",
  15831. "properties": {
  15832. "started": {
  15833. "type": "number"
  15834. },
  15835. "completed": {
  15836. "type": "number"
  15837. }
  15838. },
  15839. "required": [
  15840. "started"
  15841. ],
  15842. "additionalProperties": false
  15843. }
  15844. },
  15845. "required": [
  15846. "id",
  15847. "status",
  15848. "command",
  15849. "cwd",
  15850. "shell",
  15851. "file",
  15852. "metadata",
  15853. "time"
  15854. ],
  15855. "additionalProperties": false
  15856. },
  15857. "session.shell.started": {
  15858. "type": "object",
  15859. "properties": {
  15860. "id": {
  15861. "type": "string",
  15862. "allOf": [
  15863. {
  15864. "pattern": "^evt_"
  15865. }
  15866. ]
  15867. },
  15868. "created": {
  15869. "type": "number"
  15870. },
  15871. "metadata": {
  15872. "type": "object"
  15873. },
  15874. "type": {
  15875. "type": "string",
  15876. "enum": [
  15877. "session.shell.started"
  15878. ]
  15879. },
  15880. "durable": {
  15881. "type": "object",
  15882. "properties": {
  15883. "aggregateID": {
  15884. "type": "string"
  15885. },
  15886. "seq": {
  15887. "type": "integer",
  15888. "allOf": [
  15889. {
  15890. "minimum": 0
  15891. }
  15892. ]
  15893. },
  15894. "version": {
  15895. "type": "number",
  15896. "enum": [
  15897. 1
  15898. ]
  15899. }
  15900. },
  15901. "required": [
  15902. "aggregateID",
  15903. "seq",
  15904. "version"
  15905. ],
  15906. "additionalProperties": false
  15907. },
  15908. "location": {
  15909. "$ref": "#/components/schemas/Location.Ref"
  15910. },
  15911. "data": {
  15912. "type": "object",
  15913. "properties": {
  15914. "sessionID": {
  15915. "type": "string",
  15916. "allOf": [
  15917. {
  15918. "pattern": "^ses"
  15919. }
  15920. ]
  15921. },
  15922. "shell": {
  15923. "$ref": "#/components/schemas/Shell.Info"
  15924. }
  15925. },
  15926. "required": [
  15927. "sessionID",
  15928. "shell"
  15929. ],
  15930. "additionalProperties": false
  15931. }
  15932. },
  15933. "required": [
  15934. "id",
  15935. "created",
  15936. "type",
  15937. "durable",
  15938. "data"
  15939. ],
  15940. "additionalProperties": false
  15941. },
  15942. "session.shell.ended": {
  15943. "type": "object",
  15944. "properties": {
  15945. "id": {
  15946. "type": "string",
  15947. "allOf": [
  15948. {
  15949. "pattern": "^evt_"
  15950. }
  15951. ]
  15952. },
  15953. "created": {
  15954. "type": "number"
  15955. },
  15956. "metadata": {
  15957. "type": "object"
  15958. },
  15959. "type": {
  15960. "type": "string",
  15961. "enum": [
  15962. "session.shell.ended"
  15963. ]
  15964. },
  15965. "durable": {
  15966. "type": "object",
  15967. "properties": {
  15968. "aggregateID": {
  15969. "type": "string"
  15970. },
  15971. "seq": {
  15972. "type": "integer",
  15973. "allOf": [
  15974. {
  15975. "minimum": 0
  15976. }
  15977. ]
  15978. },
  15979. "version": {
  15980. "type": "number",
  15981. "enum": [
  15982. 1
  15983. ]
  15984. }
  15985. },
  15986. "required": [
  15987. "aggregateID",
  15988. "seq",
  15989. "version"
  15990. ],
  15991. "additionalProperties": false
  15992. },
  15993. "location": {
  15994. "$ref": "#/components/schemas/Location.Ref"
  15995. },
  15996. "data": {
  15997. "type": "object",
  15998. "properties": {
  15999. "sessionID": {
  16000. "type": "string",
  16001. "allOf": [
  16002. {
  16003. "pattern": "^ses"
  16004. }
  16005. ]
  16006. },
  16007. "shell": {
  16008. "$ref": "#/components/schemas/Shell.Info"
  16009. },
  16010. "output": {
  16011. "type": "object",
  16012. "properties": {
  16013. "output": {
  16014. "type": "string"
  16015. },
  16016. "cursor": {
  16017. "type": "integer",
  16018. "allOf": [
  16019. {
  16020. "minimum": 0
  16021. }
  16022. ]
  16023. },
  16024. "size": {
  16025. "type": "integer",
  16026. "allOf": [
  16027. {
  16028. "minimum": 0
  16029. }
  16030. ]
  16031. },
  16032. "truncated": {
  16033. "type": "boolean"
  16034. }
  16035. },
  16036. "required": [
  16037. "output",
  16038. "cursor",
  16039. "size",
  16040. "truncated"
  16041. ],
  16042. "additionalProperties": false
  16043. }
  16044. },
  16045. "required": [
  16046. "sessionID",
  16047. "shell",
  16048. "output"
  16049. ],
  16050. "additionalProperties": false
  16051. }
  16052. },
  16053. "required": [
  16054. "id",
  16055. "created",
  16056. "type",
  16057. "durable",
  16058. "data"
  16059. ],
  16060. "additionalProperties": false
  16061. },
  16062. "session.step.started": {
  16063. "type": "object",
  16064. "properties": {
  16065. "id": {
  16066. "type": "string",
  16067. "allOf": [
  16068. {
  16069. "pattern": "^evt_"
  16070. }
  16071. ]
  16072. },
  16073. "created": {
  16074. "type": "number"
  16075. },
  16076. "metadata": {
  16077. "type": "object"
  16078. },
  16079. "type": {
  16080. "type": "string",
  16081. "enum": [
  16082. "session.step.started"
  16083. ]
  16084. },
  16085. "durable": {
  16086. "type": "object",
  16087. "properties": {
  16088. "aggregateID": {
  16089. "type": "string"
  16090. },
  16091. "seq": {
  16092. "type": "integer",
  16093. "allOf": [
  16094. {
  16095. "minimum": 0
  16096. }
  16097. ]
  16098. },
  16099. "version": {
  16100. "type": "number",
  16101. "enum": [
  16102. 1
  16103. ]
  16104. }
  16105. },
  16106. "required": [
  16107. "aggregateID",
  16108. "seq",
  16109. "version"
  16110. ],
  16111. "additionalProperties": false
  16112. },
  16113. "location": {
  16114. "$ref": "#/components/schemas/Location.Ref"
  16115. },
  16116. "data": {
  16117. "type": "object",
  16118. "properties": {
  16119. "sessionID": {
  16120. "type": "string",
  16121. "allOf": [
  16122. {
  16123. "pattern": "^ses"
  16124. }
  16125. ]
  16126. },
  16127. "assistantMessageID": {
  16128. "type": "string",
  16129. "allOf": [
  16130. {
  16131. "pattern": "^msg_"
  16132. }
  16133. ]
  16134. },
  16135. "agent": {
  16136. "type": "string"
  16137. },
  16138. "model": {
  16139. "$ref": "#/components/schemas/Model.Ref"
  16140. },
  16141. "snapshot": {
  16142. "type": "string"
  16143. }
  16144. },
  16145. "required": [
  16146. "sessionID",
  16147. "assistantMessageID",
  16148. "agent",
  16149. "model"
  16150. ],
  16151. "additionalProperties": false
  16152. }
  16153. },
  16154. "required": [
  16155. "id",
  16156. "created",
  16157. "type",
  16158. "durable",
  16159. "data"
  16160. ],
  16161. "additionalProperties": false
  16162. },
  16163. "session.step.ended": {
  16164. "type": "object",
  16165. "properties": {
  16166. "id": {
  16167. "type": "string",
  16168. "allOf": [
  16169. {
  16170. "pattern": "^evt_"
  16171. }
  16172. ]
  16173. },
  16174. "created": {
  16175. "type": "number"
  16176. },
  16177. "metadata": {
  16178. "type": "object"
  16179. },
  16180. "type": {
  16181. "type": "string",
  16182. "enum": [
  16183. "session.step.ended"
  16184. ]
  16185. },
  16186. "durable": {
  16187. "type": "object",
  16188. "properties": {
  16189. "aggregateID": {
  16190. "type": "string"
  16191. },
  16192. "seq": {
  16193. "type": "integer",
  16194. "allOf": [
  16195. {
  16196. "minimum": 0
  16197. }
  16198. ]
  16199. },
  16200. "version": {
  16201. "type": "number",
  16202. "enum": [
  16203. 1
  16204. ]
  16205. }
  16206. },
  16207. "required": [
  16208. "aggregateID",
  16209. "seq",
  16210. "version"
  16211. ],
  16212. "additionalProperties": false
  16213. },
  16214. "location": {
  16215. "$ref": "#/components/schemas/Location.Ref"
  16216. },
  16217. "data": {
  16218. "type": "object",
  16219. "properties": {
  16220. "sessionID": {
  16221. "type": "string",
  16222. "allOf": [
  16223. {
  16224. "pattern": "^ses"
  16225. }
  16226. ]
  16227. },
  16228. "assistantMessageID": {
  16229. "type": "string",
  16230. "allOf": [
  16231. {
  16232. "pattern": "^msg_"
  16233. }
  16234. ]
  16235. },
  16236. "finish": {
  16237. "type": "string",
  16238. "enum": [
  16239. "stop",
  16240. "length",
  16241. "tool-calls",
  16242. "content-filter",
  16243. "error",
  16244. "unknown"
  16245. ]
  16246. },
  16247. "cost": {
  16248. "$ref": "#/components/schemas/Money.USD"
  16249. },
  16250. "tokens": {
  16251. "$ref": "#/components/schemas/TokenUsage.Info"
  16252. },
  16253. "snapshot": {
  16254. "type": "string"
  16255. },
  16256. "files": {
  16257. "type": "array",
  16258. "items": {
  16259. "type": "string"
  16260. }
  16261. }
  16262. },
  16263. "required": [
  16264. "sessionID",
  16265. "assistantMessageID",
  16266. "finish",
  16267. "cost",
  16268. "tokens"
  16269. ],
  16270. "additionalProperties": false
  16271. }
  16272. },
  16273. "required": [
  16274. "id",
  16275. "created",
  16276. "type",
  16277. "durable",
  16278. "data"
  16279. ],
  16280. "additionalProperties": false
  16281. },
  16282. "session.step.failed": {
  16283. "type": "object",
  16284. "properties": {
  16285. "id": {
  16286. "type": "string",
  16287. "allOf": [
  16288. {
  16289. "pattern": "^evt_"
  16290. }
  16291. ]
  16292. },
  16293. "created": {
  16294. "type": "number"
  16295. },
  16296. "metadata": {
  16297. "type": "object"
  16298. },
  16299. "type": {
  16300. "type": "string",
  16301. "enum": [
  16302. "session.step.failed"
  16303. ]
  16304. },
  16305. "durable": {
  16306. "type": "object",
  16307. "properties": {
  16308. "aggregateID": {
  16309. "type": "string"
  16310. },
  16311. "seq": {
  16312. "type": "integer",
  16313. "allOf": [
  16314. {
  16315. "minimum": 0
  16316. }
  16317. ]
  16318. },
  16319. "version": {
  16320. "type": "number",
  16321. "enum": [
  16322. 1
  16323. ]
  16324. }
  16325. },
  16326. "required": [
  16327. "aggregateID",
  16328. "seq",
  16329. "version"
  16330. ],
  16331. "additionalProperties": false
  16332. },
  16333. "location": {
  16334. "$ref": "#/components/schemas/Location.Ref"
  16335. },
  16336. "data": {
  16337. "type": "object",
  16338. "properties": {
  16339. "sessionID": {
  16340. "type": "string",
  16341. "allOf": [
  16342. {
  16343. "pattern": "^ses"
  16344. }
  16345. ]
  16346. },
  16347. "assistantMessageID": {
  16348. "type": "string",
  16349. "allOf": [
  16350. {
  16351. "pattern": "^msg_"
  16352. }
  16353. ]
  16354. },
  16355. "error": {
  16356. "$ref": "#/components/schemas/Session.StructuredError"
  16357. },
  16358. "cost": {
  16359. "$ref": "#/components/schemas/Money.USD"
  16360. },
  16361. "tokens": {
  16362. "$ref": "#/components/schemas/TokenUsage.Info"
  16363. },
  16364. "snapshot": {
  16365. "type": "string"
  16366. },
  16367. "files": {
  16368. "type": "array",
  16369. "items": {
  16370. "type": "string"
  16371. }
  16372. }
  16373. },
  16374. "required": [
  16375. "sessionID",
  16376. "assistantMessageID",
  16377. "error"
  16378. ],
  16379. "additionalProperties": false
  16380. }
  16381. },
  16382. "required": [
  16383. "id",
  16384. "created",
  16385. "type",
  16386. "durable",
  16387. "data"
  16388. ],
  16389. "additionalProperties": false
  16390. },
  16391. "session.text.started": {
  16392. "type": "object",
  16393. "properties": {
  16394. "id": {
  16395. "type": "string",
  16396. "allOf": [
  16397. {
  16398. "pattern": "^evt_"
  16399. }
  16400. ]
  16401. },
  16402. "created": {
  16403. "type": "number"
  16404. },
  16405. "metadata": {
  16406. "type": "object"
  16407. },
  16408. "type": {
  16409. "type": "string",
  16410. "enum": [
  16411. "session.text.started"
  16412. ]
  16413. },
  16414. "durable": {
  16415. "type": "object",
  16416. "properties": {
  16417. "aggregateID": {
  16418. "type": "string"
  16419. },
  16420. "seq": {
  16421. "type": "integer",
  16422. "allOf": [
  16423. {
  16424. "minimum": 0
  16425. }
  16426. ]
  16427. },
  16428. "version": {
  16429. "type": "number",
  16430. "enum": [
  16431. 1
  16432. ]
  16433. }
  16434. },
  16435. "required": [
  16436. "aggregateID",
  16437. "seq",
  16438. "version"
  16439. ],
  16440. "additionalProperties": false
  16441. },
  16442. "location": {
  16443. "$ref": "#/components/schemas/Location.Ref"
  16444. },
  16445. "data": {
  16446. "type": "object",
  16447. "properties": {
  16448. "sessionID": {
  16449. "type": "string",
  16450. "allOf": [
  16451. {
  16452. "pattern": "^ses"
  16453. }
  16454. ]
  16455. },
  16456. "assistantMessageID": {
  16457. "type": "string",
  16458. "allOf": [
  16459. {
  16460. "pattern": "^msg_"
  16461. }
  16462. ]
  16463. },
  16464. "ordinal": {
  16465. "type": "integer",
  16466. "allOf": [
  16467. {
  16468. "minimum": 0
  16469. }
  16470. ]
  16471. }
  16472. },
  16473. "required": [
  16474. "sessionID",
  16475. "assistantMessageID",
  16476. "ordinal"
  16477. ],
  16478. "additionalProperties": false
  16479. }
  16480. },
  16481. "required": [
  16482. "id",
  16483. "created",
  16484. "type",
  16485. "durable",
  16486. "data"
  16487. ],
  16488. "additionalProperties": false
  16489. },
  16490. "Session.Message.ProviderState4": {
  16491. "type": "object"
  16492. },
  16493. "session.text.ended": {
  16494. "type": "object",
  16495. "properties": {
  16496. "id": {
  16497. "type": "string",
  16498. "allOf": [
  16499. {
  16500. "pattern": "^evt_"
  16501. }
  16502. ]
  16503. },
  16504. "created": {
  16505. "type": "number"
  16506. },
  16507. "metadata": {
  16508. "type": "object"
  16509. },
  16510. "type": {
  16511. "type": "string",
  16512. "enum": [
  16513. "session.text.ended"
  16514. ]
  16515. },
  16516. "durable": {
  16517. "type": "object",
  16518. "properties": {
  16519. "aggregateID": {
  16520. "type": "string"
  16521. },
  16522. "seq": {
  16523. "type": "integer",
  16524. "allOf": [
  16525. {
  16526. "minimum": 0
  16527. }
  16528. ]
  16529. },
  16530. "version": {
  16531. "type": "number",
  16532. "enum": [
  16533. 1
  16534. ]
  16535. }
  16536. },
  16537. "required": [
  16538. "aggregateID",
  16539. "seq",
  16540. "version"
  16541. ],
  16542. "additionalProperties": false
  16543. },
  16544. "location": {
  16545. "$ref": "#/components/schemas/Location.Ref"
  16546. },
  16547. "data": {
  16548. "type": "object",
  16549. "properties": {
  16550. "sessionID": {
  16551. "type": "string",
  16552. "allOf": [
  16553. {
  16554. "pattern": "^ses"
  16555. }
  16556. ]
  16557. },
  16558. "assistantMessageID": {
  16559. "type": "string",
  16560. "allOf": [
  16561. {
  16562. "pattern": "^msg_"
  16563. }
  16564. ]
  16565. },
  16566. "ordinal": {
  16567. "type": "integer",
  16568. "allOf": [
  16569. {
  16570. "minimum": 0
  16571. }
  16572. ]
  16573. },
  16574. "text": {
  16575. "type": "string"
  16576. },
  16577. "state": {
  16578. "$ref": "#/components/schemas/Session.Message.ProviderState4"
  16579. }
  16580. },
  16581. "required": [
  16582. "sessionID",
  16583. "assistantMessageID",
  16584. "ordinal",
  16585. "text"
  16586. ],
  16587. "additionalProperties": false
  16588. }
  16589. },
  16590. "required": [
  16591. "id",
  16592. "created",
  16593. "type",
  16594. "durable",
  16595. "data"
  16596. ],
  16597. "additionalProperties": false
  16598. },
  16599. "Session.Message.ProviderState5": {
  16600. "type": "object"
  16601. },
  16602. "session.reasoning.started": {
  16603. "type": "object",
  16604. "properties": {
  16605. "id": {
  16606. "type": "string",
  16607. "allOf": [
  16608. {
  16609. "pattern": "^evt_"
  16610. }
  16611. ]
  16612. },
  16613. "created": {
  16614. "type": "number"
  16615. },
  16616. "metadata": {
  16617. "type": "object"
  16618. },
  16619. "type": {
  16620. "type": "string",
  16621. "enum": [
  16622. "session.reasoning.started"
  16623. ]
  16624. },
  16625. "durable": {
  16626. "type": "object",
  16627. "properties": {
  16628. "aggregateID": {
  16629. "type": "string"
  16630. },
  16631. "seq": {
  16632. "type": "integer",
  16633. "allOf": [
  16634. {
  16635. "minimum": 0
  16636. }
  16637. ]
  16638. },
  16639. "version": {
  16640. "type": "number",
  16641. "enum": [
  16642. 1
  16643. ]
  16644. }
  16645. },
  16646. "required": [
  16647. "aggregateID",
  16648. "seq",
  16649. "version"
  16650. ],
  16651. "additionalProperties": false
  16652. },
  16653. "location": {
  16654. "$ref": "#/components/schemas/Location.Ref"
  16655. },
  16656. "data": {
  16657. "type": "object",
  16658. "properties": {
  16659. "sessionID": {
  16660. "type": "string",
  16661. "allOf": [
  16662. {
  16663. "pattern": "^ses"
  16664. }
  16665. ]
  16666. },
  16667. "assistantMessageID": {
  16668. "type": "string",
  16669. "allOf": [
  16670. {
  16671. "pattern": "^msg_"
  16672. }
  16673. ]
  16674. },
  16675. "ordinal": {
  16676. "type": "integer",
  16677. "allOf": [
  16678. {
  16679. "minimum": 0
  16680. }
  16681. ]
  16682. },
  16683. "state": {
  16684. "$ref": "#/components/schemas/Session.Message.ProviderState5"
  16685. }
  16686. },
  16687. "required": [
  16688. "sessionID",
  16689. "assistantMessageID",
  16690. "ordinal"
  16691. ],
  16692. "additionalProperties": false
  16693. }
  16694. },
  16695. "required": [
  16696. "id",
  16697. "created",
  16698. "type",
  16699. "durable",
  16700. "data"
  16701. ],
  16702. "additionalProperties": false
  16703. },
  16704. "Session.Message.ProviderState6": {
  16705. "type": "object"
  16706. },
  16707. "session.reasoning.ended": {
  16708. "type": "object",
  16709. "properties": {
  16710. "id": {
  16711. "type": "string",
  16712. "allOf": [
  16713. {
  16714. "pattern": "^evt_"
  16715. }
  16716. ]
  16717. },
  16718. "created": {
  16719. "type": "number"
  16720. },
  16721. "metadata": {
  16722. "type": "object"
  16723. },
  16724. "type": {
  16725. "type": "string",
  16726. "enum": [
  16727. "session.reasoning.ended"
  16728. ]
  16729. },
  16730. "durable": {
  16731. "type": "object",
  16732. "properties": {
  16733. "aggregateID": {
  16734. "type": "string"
  16735. },
  16736. "seq": {
  16737. "type": "integer",
  16738. "allOf": [
  16739. {
  16740. "minimum": 0
  16741. }
  16742. ]
  16743. },
  16744. "version": {
  16745. "type": "number",
  16746. "enum": [
  16747. 1
  16748. ]
  16749. }
  16750. },
  16751. "required": [
  16752. "aggregateID",
  16753. "seq",
  16754. "version"
  16755. ],
  16756. "additionalProperties": false
  16757. },
  16758. "location": {
  16759. "$ref": "#/components/schemas/Location.Ref"
  16760. },
  16761. "data": {
  16762. "type": "object",
  16763. "properties": {
  16764. "sessionID": {
  16765. "type": "string",
  16766. "allOf": [
  16767. {
  16768. "pattern": "^ses"
  16769. }
  16770. ]
  16771. },
  16772. "assistantMessageID": {
  16773. "type": "string",
  16774. "allOf": [
  16775. {
  16776. "pattern": "^msg_"
  16777. }
  16778. ]
  16779. },
  16780. "ordinal": {
  16781. "type": "integer",
  16782. "allOf": [
  16783. {
  16784. "minimum": 0
  16785. }
  16786. ]
  16787. },
  16788. "text": {
  16789. "type": "string"
  16790. },
  16791. "state": {
  16792. "$ref": "#/components/schemas/Session.Message.ProviderState6"
  16793. }
  16794. },
  16795. "required": [
  16796. "sessionID",
  16797. "assistantMessageID",
  16798. "ordinal",
  16799. "text"
  16800. ],
  16801. "additionalProperties": false
  16802. }
  16803. },
  16804. "required": [
  16805. "id",
  16806. "created",
  16807. "type",
  16808. "durable",
  16809. "data"
  16810. ],
  16811. "additionalProperties": false
  16812. },
  16813. "session.tool.input.started": {
  16814. "type": "object",
  16815. "properties": {
  16816. "id": {
  16817. "type": "string",
  16818. "allOf": [
  16819. {
  16820. "pattern": "^evt_"
  16821. }
  16822. ]
  16823. },
  16824. "created": {
  16825. "type": "number"
  16826. },
  16827. "metadata": {
  16828. "type": "object"
  16829. },
  16830. "type": {
  16831. "type": "string",
  16832. "enum": [
  16833. "session.tool.input.started"
  16834. ]
  16835. },
  16836. "durable": {
  16837. "type": "object",
  16838. "properties": {
  16839. "aggregateID": {
  16840. "type": "string"
  16841. },
  16842. "seq": {
  16843. "type": "integer",
  16844. "allOf": [
  16845. {
  16846. "minimum": 0
  16847. }
  16848. ]
  16849. },
  16850. "version": {
  16851. "type": "number",
  16852. "enum": [
  16853. 1
  16854. ]
  16855. }
  16856. },
  16857. "required": [
  16858. "aggregateID",
  16859. "seq",
  16860. "version"
  16861. ],
  16862. "additionalProperties": false
  16863. },
  16864. "location": {
  16865. "$ref": "#/components/schemas/Location.Ref"
  16866. },
  16867. "data": {
  16868. "type": "object",
  16869. "properties": {
  16870. "sessionID": {
  16871. "type": "string",
  16872. "allOf": [
  16873. {
  16874. "pattern": "^ses"
  16875. }
  16876. ]
  16877. },
  16878. "assistantMessageID": {
  16879. "type": "string",
  16880. "allOf": [
  16881. {
  16882. "pattern": "^msg_"
  16883. }
  16884. ]
  16885. },
  16886. "callID": {
  16887. "type": "string"
  16888. },
  16889. "name": {
  16890. "type": "string"
  16891. }
  16892. },
  16893. "required": [
  16894. "sessionID",
  16895. "assistantMessageID",
  16896. "callID",
  16897. "name"
  16898. ],
  16899. "additionalProperties": false
  16900. }
  16901. },
  16902. "required": [
  16903. "id",
  16904. "created",
  16905. "type",
  16906. "durable",
  16907. "data"
  16908. ],
  16909. "additionalProperties": false
  16910. },
  16911. "session.tool.input.ended": {
  16912. "type": "object",
  16913. "properties": {
  16914. "id": {
  16915. "type": "string",
  16916. "allOf": [
  16917. {
  16918. "pattern": "^evt_"
  16919. }
  16920. ]
  16921. },
  16922. "created": {
  16923. "type": "number"
  16924. },
  16925. "metadata": {
  16926. "type": "object"
  16927. },
  16928. "type": {
  16929. "type": "string",
  16930. "enum": [
  16931. "session.tool.input.ended"
  16932. ]
  16933. },
  16934. "durable": {
  16935. "type": "object",
  16936. "properties": {
  16937. "aggregateID": {
  16938. "type": "string"
  16939. },
  16940. "seq": {
  16941. "type": "integer",
  16942. "allOf": [
  16943. {
  16944. "minimum": 0
  16945. }
  16946. ]
  16947. },
  16948. "version": {
  16949. "type": "number",
  16950. "enum": [
  16951. 1
  16952. ]
  16953. }
  16954. },
  16955. "required": [
  16956. "aggregateID",
  16957. "seq",
  16958. "version"
  16959. ],
  16960. "additionalProperties": false
  16961. },
  16962. "location": {
  16963. "$ref": "#/components/schemas/Location.Ref"
  16964. },
  16965. "data": {
  16966. "type": "object",
  16967. "properties": {
  16968. "sessionID": {
  16969. "type": "string",
  16970. "allOf": [
  16971. {
  16972. "pattern": "^ses"
  16973. }
  16974. ]
  16975. },
  16976. "assistantMessageID": {
  16977. "type": "string",
  16978. "allOf": [
  16979. {
  16980. "pattern": "^msg_"
  16981. }
  16982. ]
  16983. },
  16984. "callID": {
  16985. "type": "string"
  16986. },
  16987. "text": {
  16988. "type": "string"
  16989. }
  16990. },
  16991. "required": [
  16992. "sessionID",
  16993. "assistantMessageID",
  16994. "callID",
  16995. "text"
  16996. ],
  16997. "additionalProperties": false
  16998. }
  16999. },
  17000. "required": [
  17001. "id",
  17002. "created",
  17003. "type",
  17004. "durable",
  17005. "data"
  17006. ],
  17007. "additionalProperties": false
  17008. },
  17009. "Session.Message.ProviderState7": {
  17010. "type": "object"
  17011. },
  17012. "session.tool.called": {
  17013. "type": "object",
  17014. "properties": {
  17015. "id": {
  17016. "type": "string",
  17017. "allOf": [
  17018. {
  17019. "pattern": "^evt_"
  17020. }
  17021. ]
  17022. },
  17023. "created": {
  17024. "type": "number"
  17025. },
  17026. "metadata": {
  17027. "type": "object"
  17028. },
  17029. "type": {
  17030. "type": "string",
  17031. "enum": [
  17032. "session.tool.called"
  17033. ]
  17034. },
  17035. "durable": {
  17036. "type": "object",
  17037. "properties": {
  17038. "aggregateID": {
  17039. "type": "string"
  17040. },
  17041. "seq": {
  17042. "type": "integer",
  17043. "allOf": [
  17044. {
  17045. "minimum": 0
  17046. }
  17047. ]
  17048. },
  17049. "version": {
  17050. "type": "number",
  17051. "enum": [
  17052. 1
  17053. ]
  17054. }
  17055. },
  17056. "required": [
  17057. "aggregateID",
  17058. "seq",
  17059. "version"
  17060. ],
  17061. "additionalProperties": false
  17062. },
  17063. "location": {
  17064. "$ref": "#/components/schemas/Location.Ref"
  17065. },
  17066. "data": {
  17067. "type": "object",
  17068. "properties": {
  17069. "sessionID": {
  17070. "type": "string",
  17071. "allOf": [
  17072. {
  17073. "pattern": "^ses"
  17074. }
  17075. ]
  17076. },
  17077. "assistantMessageID": {
  17078. "type": "string",
  17079. "allOf": [
  17080. {
  17081. "pattern": "^msg_"
  17082. }
  17083. ]
  17084. },
  17085. "callID": {
  17086. "type": "string"
  17087. },
  17088. "input": {
  17089. "type": "object"
  17090. },
  17091. "executed": {
  17092. "type": "boolean"
  17093. },
  17094. "state": {
  17095. "$ref": "#/components/schemas/Session.Message.ProviderState7"
  17096. }
  17097. },
  17098. "required": [
  17099. "sessionID",
  17100. "assistantMessageID",
  17101. "callID",
  17102. "input",
  17103. "executed"
  17104. ],
  17105. "additionalProperties": false
  17106. }
  17107. },
  17108. "required": [
  17109. "id",
  17110. "created",
  17111. "type",
  17112. "durable",
  17113. "data"
  17114. ],
  17115. "additionalProperties": false
  17116. },
  17117. "Session.Message.ProviderState8": {
  17118. "type": "object"
  17119. },
  17120. "session.tool.success": {
  17121. "type": "object",
  17122. "properties": {
  17123. "id": {
  17124. "type": "string",
  17125. "allOf": [
  17126. {
  17127. "pattern": "^evt_"
  17128. }
  17129. ]
  17130. },
  17131. "created": {
  17132. "type": "number"
  17133. },
  17134. "metadata": {
  17135. "type": "object"
  17136. },
  17137. "type": {
  17138. "type": "string",
  17139. "enum": [
  17140. "session.tool.success"
  17141. ]
  17142. },
  17143. "durable": {
  17144. "type": "object",
  17145. "properties": {
  17146. "aggregateID": {
  17147. "type": "string"
  17148. },
  17149. "seq": {
  17150. "type": "integer",
  17151. "allOf": [
  17152. {
  17153. "minimum": 0
  17154. }
  17155. ]
  17156. },
  17157. "version": {
  17158. "type": "number",
  17159. "enum": [
  17160. 2
  17161. ]
  17162. }
  17163. },
  17164. "required": [
  17165. "aggregateID",
  17166. "seq",
  17167. "version"
  17168. ],
  17169. "additionalProperties": false
  17170. },
  17171. "location": {
  17172. "$ref": "#/components/schemas/Location.Ref"
  17173. },
  17174. "data": {
  17175. "type": "object",
  17176. "properties": {
  17177. "sessionID": {
  17178. "type": "string",
  17179. "allOf": [
  17180. {
  17181. "pattern": "^ses"
  17182. }
  17183. ]
  17184. },
  17185. "assistantMessageID": {
  17186. "type": "string",
  17187. "allOf": [
  17188. {
  17189. "pattern": "^msg_"
  17190. }
  17191. ]
  17192. },
  17193. "callID": {
  17194. "type": "string"
  17195. },
  17196. "content": {
  17197. "type": "array",
  17198. "prefixItems": [
  17199. {
  17200. "$ref": "#/components/schemas/LLM.ToolContent"
  17201. }
  17202. ],
  17203. "minItems": 1,
  17204. "items": {
  17205. "$ref": "#/components/schemas/LLM.ToolContent"
  17206. }
  17207. },
  17208. "metadata": {
  17209. "type": "object"
  17210. },
  17211. "executed": {
  17212. "type": "boolean"
  17213. },
  17214. "resultState": {
  17215. "$ref": "#/components/schemas/Session.Message.ProviderState8"
  17216. }
  17217. },
  17218. "required": [
  17219. "sessionID",
  17220. "assistantMessageID",
  17221. "callID",
  17222. "content",
  17223. "executed"
  17224. ],
  17225. "additionalProperties": false
  17226. }
  17227. },
  17228. "required": [
  17229. "id",
  17230. "created",
  17231. "type",
  17232. "durable",
  17233. "data"
  17234. ],
  17235. "additionalProperties": false
  17236. },
  17237. "Session.Message.ProviderState9": {
  17238. "type": "object"
  17239. },
  17240. "session.tool.failed": {
  17241. "type": "object",
  17242. "properties": {
  17243. "id": {
  17244. "type": "string",
  17245. "allOf": [
  17246. {
  17247. "pattern": "^evt_"
  17248. }
  17249. ]
  17250. },
  17251. "created": {
  17252. "type": "number"
  17253. },
  17254. "metadata": {
  17255. "type": "object"
  17256. },
  17257. "type": {
  17258. "type": "string",
  17259. "enum": [
  17260. "session.tool.failed"
  17261. ]
  17262. },
  17263. "durable": {
  17264. "type": "object",
  17265. "properties": {
  17266. "aggregateID": {
  17267. "type": "string"
  17268. },
  17269. "seq": {
  17270. "type": "integer",
  17271. "allOf": [
  17272. {
  17273. "minimum": 0
  17274. }
  17275. ]
  17276. },
  17277. "version": {
  17278. "type": "number",
  17279. "enum": [
  17280. 2
  17281. ]
  17282. }
  17283. },
  17284. "required": [
  17285. "aggregateID",
  17286. "seq",
  17287. "version"
  17288. ],
  17289. "additionalProperties": false
  17290. },
  17291. "location": {
  17292. "$ref": "#/components/schemas/Location.Ref"
  17293. },
  17294. "data": {
  17295. "type": "object",
  17296. "properties": {
  17297. "sessionID": {
  17298. "type": "string",
  17299. "allOf": [
  17300. {
  17301. "pattern": "^ses"
  17302. }
  17303. ]
  17304. },
  17305. "assistantMessageID": {
  17306. "type": "string",
  17307. "allOf": [
  17308. {
  17309. "pattern": "^msg_"
  17310. }
  17311. ]
  17312. },
  17313. "callID": {
  17314. "type": "string"
  17315. },
  17316. "error": {
  17317. "$ref": "#/components/schemas/Session.StructuredError"
  17318. },
  17319. "content": {
  17320. "type": "array",
  17321. "prefixItems": [
  17322. {
  17323. "$ref": "#/components/schemas/LLM.ToolContent"
  17324. }
  17325. ],
  17326. "minItems": 1,
  17327. "items": {
  17328. "$ref": "#/components/schemas/LLM.ToolContent"
  17329. }
  17330. },
  17331. "metadata": {
  17332. "type": "object"
  17333. },
  17334. "executed": {
  17335. "type": "boolean"
  17336. },
  17337. "resultState": {
  17338. "$ref": "#/components/schemas/Session.Message.ProviderState9"
  17339. }
  17340. },
  17341. "required": [
  17342. "sessionID",
  17343. "assistantMessageID",
  17344. "callID",
  17345. "error",
  17346. "executed"
  17347. ],
  17348. "additionalProperties": false
  17349. }
  17350. },
  17351. "required": [
  17352. "id",
  17353. "created",
  17354. "type",
  17355. "durable",
  17356. "data"
  17357. ],
  17358. "additionalProperties": false
  17359. },
  17360. "session.retry.scheduled": {
  17361. "type": "object",
  17362. "properties": {
  17363. "id": {
  17364. "type": "string",
  17365. "allOf": [
  17366. {
  17367. "pattern": "^evt_"
  17368. }
  17369. ]
  17370. },
  17371. "created": {
  17372. "type": "number"
  17373. },
  17374. "metadata": {
  17375. "type": "object"
  17376. },
  17377. "type": {
  17378. "type": "string",
  17379. "enum": [
  17380. "session.retry.scheduled"
  17381. ]
  17382. },
  17383. "durable": {
  17384. "type": "object",
  17385. "properties": {
  17386. "aggregateID": {
  17387. "type": "string"
  17388. },
  17389. "seq": {
  17390. "type": "integer",
  17391. "allOf": [
  17392. {
  17393. "minimum": 0
  17394. }
  17395. ]
  17396. },
  17397. "version": {
  17398. "type": "number",
  17399. "enum": [
  17400. 1
  17401. ]
  17402. }
  17403. },
  17404. "required": [
  17405. "aggregateID",
  17406. "seq",
  17407. "version"
  17408. ],
  17409. "additionalProperties": false
  17410. },
  17411. "location": {
  17412. "$ref": "#/components/schemas/Location.Ref"
  17413. },
  17414. "data": {
  17415. "type": "object",
  17416. "properties": {
  17417. "sessionID": {
  17418. "type": "string",
  17419. "allOf": [
  17420. {
  17421. "pattern": "^ses"
  17422. }
  17423. ]
  17424. },
  17425. "assistantMessageID": {
  17426. "type": "string",
  17427. "allOf": [
  17428. {
  17429. "pattern": "^msg_"
  17430. }
  17431. ]
  17432. },
  17433. "attempt": {
  17434. "type": "integer",
  17435. "allOf": [
  17436. {
  17437. "exclusiveMinimum": 0
  17438. }
  17439. ]
  17440. },
  17441. "at": {
  17442. "type": "integer",
  17443. "allOf": [
  17444. {
  17445. "minimum": 0
  17446. }
  17447. ]
  17448. },
  17449. "error": {
  17450. "$ref": "#/components/schemas/Session.StructuredError"
  17451. }
  17452. },
  17453. "required": [
  17454. "sessionID",
  17455. "assistantMessageID",
  17456. "attempt",
  17457. "at",
  17458. "error"
  17459. ],
  17460. "additionalProperties": false
  17461. }
  17462. },
  17463. "required": [
  17464. "id",
  17465. "created",
  17466. "type",
  17467. "durable",
  17468. "data"
  17469. ],
  17470. "additionalProperties": false
  17471. },
  17472. "session.compaction.admitted": {
  17473. "type": "object",
  17474. "properties": {
  17475. "id": {
  17476. "type": "string",
  17477. "allOf": [
  17478. {
  17479. "pattern": "^evt_"
  17480. }
  17481. ]
  17482. },
  17483. "created": {
  17484. "type": "number"
  17485. },
  17486. "metadata": {
  17487. "type": "object"
  17488. },
  17489. "type": {
  17490. "type": "string",
  17491. "enum": [
  17492. "session.compaction.admitted"
  17493. ]
  17494. },
  17495. "durable": {
  17496. "type": "object",
  17497. "properties": {
  17498. "aggregateID": {
  17499. "type": "string"
  17500. },
  17501. "seq": {
  17502. "type": "integer",
  17503. "allOf": [
  17504. {
  17505. "minimum": 0
  17506. }
  17507. ]
  17508. },
  17509. "version": {
  17510. "type": "number",
  17511. "enum": [
  17512. 1
  17513. ]
  17514. }
  17515. },
  17516. "required": [
  17517. "aggregateID",
  17518. "seq",
  17519. "version"
  17520. ],
  17521. "additionalProperties": false
  17522. },
  17523. "location": {
  17524. "$ref": "#/components/schemas/Location.Ref"
  17525. },
  17526. "data": {
  17527. "type": "object",
  17528. "properties": {
  17529. "sessionID": {
  17530. "type": "string",
  17531. "allOf": [
  17532. {
  17533. "pattern": "^ses"
  17534. }
  17535. ]
  17536. },
  17537. "inputID": {
  17538. "type": "string",
  17539. "allOf": [
  17540. {
  17541. "pattern": "^msg_"
  17542. }
  17543. ]
  17544. }
  17545. },
  17546. "required": [
  17547. "sessionID",
  17548. "inputID"
  17549. ],
  17550. "additionalProperties": false
  17551. }
  17552. },
  17553. "required": [
  17554. "id",
  17555. "created",
  17556. "type",
  17557. "durable",
  17558. "data"
  17559. ],
  17560. "additionalProperties": false
  17561. },
  17562. "session.compaction.started": {
  17563. "type": "object",
  17564. "properties": {
  17565. "id": {
  17566. "type": "string",
  17567. "allOf": [
  17568. {
  17569. "pattern": "^evt_"
  17570. }
  17571. ]
  17572. },
  17573. "created": {
  17574. "type": "number"
  17575. },
  17576. "metadata": {
  17577. "type": "object"
  17578. },
  17579. "type": {
  17580. "type": "string",
  17581. "enum": [
  17582. "session.compaction.started"
  17583. ]
  17584. },
  17585. "durable": {
  17586. "type": "object",
  17587. "properties": {
  17588. "aggregateID": {
  17589. "type": "string"
  17590. },
  17591. "seq": {
  17592. "type": "integer",
  17593. "allOf": [
  17594. {
  17595. "minimum": 0
  17596. }
  17597. ]
  17598. },
  17599. "version": {
  17600. "type": "number",
  17601. "enum": [
  17602. 1
  17603. ]
  17604. }
  17605. },
  17606. "required": [
  17607. "aggregateID",
  17608. "seq",
  17609. "version"
  17610. ],
  17611. "additionalProperties": false
  17612. },
  17613. "location": {
  17614. "$ref": "#/components/schemas/Location.Ref"
  17615. },
  17616. "data": {
  17617. "type": "object",
  17618. "properties": {
  17619. "sessionID": {
  17620. "type": "string",
  17621. "allOf": [
  17622. {
  17623. "pattern": "^ses"
  17624. }
  17625. ]
  17626. },
  17627. "reason": {
  17628. "type": "string",
  17629. "enum": [
  17630. "auto",
  17631. "manual"
  17632. ]
  17633. },
  17634. "recent": {
  17635. "type": "string"
  17636. },
  17637. "inputID": {
  17638. "type": "string",
  17639. "allOf": [
  17640. {
  17641. "pattern": "^msg_"
  17642. }
  17643. ]
  17644. }
  17645. },
  17646. "required": [
  17647. "sessionID",
  17648. "reason",
  17649. "recent"
  17650. ],
  17651. "additionalProperties": false
  17652. }
  17653. },
  17654. "required": [
  17655. "id",
  17656. "created",
  17657. "type",
  17658. "durable",
  17659. "data"
  17660. ],
  17661. "additionalProperties": false
  17662. },
  17663. "session.compaction.ended": {
  17664. "type": "object",
  17665. "properties": {
  17666. "id": {
  17667. "type": "string",
  17668. "allOf": [
  17669. {
  17670. "pattern": "^evt_"
  17671. }
  17672. ]
  17673. },
  17674. "created": {
  17675. "type": "number"
  17676. },
  17677. "metadata": {
  17678. "type": "object"
  17679. },
  17680. "type": {
  17681. "type": "string",
  17682. "enum": [
  17683. "session.compaction.ended"
  17684. ]
  17685. },
  17686. "durable": {
  17687. "type": "object",
  17688. "properties": {
  17689. "aggregateID": {
  17690. "type": "string"
  17691. },
  17692. "seq": {
  17693. "type": "integer",
  17694. "allOf": [
  17695. {
  17696. "minimum": 0
  17697. }
  17698. ]
  17699. },
  17700. "version": {
  17701. "type": "number",
  17702. "enum": [
  17703. 1
  17704. ]
  17705. }
  17706. },
  17707. "required": [
  17708. "aggregateID",
  17709. "seq",
  17710. "version"
  17711. ],
  17712. "additionalProperties": false
  17713. },
  17714. "location": {
  17715. "$ref": "#/components/schemas/Location.Ref"
  17716. },
  17717. "data": {
  17718. "type": "object",
  17719. "properties": {
  17720. "sessionID": {
  17721. "type": "string",
  17722. "allOf": [
  17723. {
  17724. "pattern": "^ses"
  17725. }
  17726. ]
  17727. },
  17728. "reason": {
  17729. "type": "string",
  17730. "enum": [
  17731. "auto",
  17732. "manual"
  17733. ]
  17734. },
  17735. "text": {
  17736. "type": "string"
  17737. },
  17738. "recent": {
  17739. "type": "string"
  17740. }
  17741. },
  17742. "required": [
  17743. "sessionID",
  17744. "reason",
  17745. "text",
  17746. "recent"
  17747. ],
  17748. "additionalProperties": false
  17749. }
  17750. },
  17751. "required": [
  17752. "id",
  17753. "created",
  17754. "type",
  17755. "durable",
  17756. "data"
  17757. ],
  17758. "additionalProperties": false
  17759. },
  17760. "session.compaction.failed": {
  17761. "type": "object",
  17762. "properties": {
  17763. "id": {
  17764. "type": "string",
  17765. "allOf": [
  17766. {
  17767. "pattern": "^evt_"
  17768. }
  17769. ]
  17770. },
  17771. "created": {
  17772. "type": "number"
  17773. },
  17774. "metadata": {
  17775. "type": "object"
  17776. },
  17777. "type": {
  17778. "type": "string",
  17779. "enum": [
  17780. "session.compaction.failed"
  17781. ]
  17782. },
  17783. "durable": {
  17784. "type": "object",
  17785. "properties": {
  17786. "aggregateID": {
  17787. "type": "string"
  17788. },
  17789. "seq": {
  17790. "type": "integer",
  17791. "allOf": [
  17792. {
  17793. "minimum": 0
  17794. }
  17795. ]
  17796. },
  17797. "version": {
  17798. "type": "number",
  17799. "enum": [
  17800. 1
  17801. ]
  17802. }
  17803. },
  17804. "required": [
  17805. "aggregateID",
  17806. "seq",
  17807. "version"
  17808. ],
  17809. "additionalProperties": false
  17810. },
  17811. "location": {
  17812. "$ref": "#/components/schemas/Location.Ref"
  17813. },
  17814. "data": {
  17815. "type": "object",
  17816. "properties": {
  17817. "sessionID": {
  17818. "type": "string",
  17819. "allOf": [
  17820. {
  17821. "pattern": "^ses"
  17822. }
  17823. ]
  17824. },
  17825. "reason": {
  17826. "type": "string",
  17827. "enum": [
  17828. "auto",
  17829. "manual"
  17830. ]
  17831. },
  17832. "error": {
  17833. "$ref": "#/components/schemas/Session.StructuredError"
  17834. },
  17835. "inputID": {
  17836. "type": "string",
  17837. "allOf": [
  17838. {
  17839. "pattern": "^msg_"
  17840. }
  17841. ]
  17842. }
  17843. },
  17844. "required": [
  17845. "sessionID",
  17846. "reason",
  17847. "error"
  17848. ],
  17849. "additionalProperties": false
  17850. }
  17851. },
  17852. "required": [
  17853. "id",
  17854. "created",
  17855. "type",
  17856. "durable",
  17857. "data"
  17858. ],
  17859. "additionalProperties": false
  17860. },
  17861. "session.revert.staged": {
  17862. "type": "object",
  17863. "properties": {
  17864. "id": {
  17865. "type": "string",
  17866. "allOf": [
  17867. {
  17868. "pattern": "^evt_"
  17869. }
  17870. ]
  17871. },
  17872. "created": {
  17873. "type": "number"
  17874. },
  17875. "metadata": {
  17876. "type": "object"
  17877. },
  17878. "type": {
  17879. "type": "string",
  17880. "enum": [
  17881. "session.revert.staged"
  17882. ]
  17883. },
  17884. "durable": {
  17885. "type": "object",
  17886. "properties": {
  17887. "aggregateID": {
  17888. "type": "string"
  17889. },
  17890. "seq": {
  17891. "type": "integer",
  17892. "allOf": [
  17893. {
  17894. "minimum": 0
  17895. }
  17896. ]
  17897. },
  17898. "version": {
  17899. "type": "number",
  17900. "enum": [
  17901. 1
  17902. ]
  17903. }
  17904. },
  17905. "required": [
  17906. "aggregateID",
  17907. "seq",
  17908. "version"
  17909. ],
  17910. "additionalProperties": false
  17911. },
  17912. "location": {
  17913. "$ref": "#/components/schemas/Location.Ref"
  17914. },
  17915. "data": {
  17916. "type": "object",
  17917. "properties": {
  17918. "sessionID": {
  17919. "type": "string",
  17920. "allOf": [
  17921. {
  17922. "pattern": "^ses"
  17923. }
  17924. ]
  17925. },
  17926. "revert": {
  17927. "$ref": "#/components/schemas/Session.Revert"
  17928. }
  17929. },
  17930. "required": [
  17931. "sessionID",
  17932. "revert"
  17933. ],
  17934. "additionalProperties": false
  17935. }
  17936. },
  17937. "required": [
  17938. "id",
  17939. "created",
  17940. "type",
  17941. "durable",
  17942. "data"
  17943. ],
  17944. "additionalProperties": false
  17945. },
  17946. "session.revert.cleared": {
  17947. "type": "object",
  17948. "properties": {
  17949. "id": {
  17950. "type": "string",
  17951. "allOf": [
  17952. {
  17953. "pattern": "^evt_"
  17954. }
  17955. ]
  17956. },
  17957. "created": {
  17958. "type": "number"
  17959. },
  17960. "metadata": {
  17961. "type": "object"
  17962. },
  17963. "type": {
  17964. "type": "string",
  17965. "enum": [
  17966. "session.revert.cleared"
  17967. ]
  17968. },
  17969. "durable": {
  17970. "type": "object",
  17971. "properties": {
  17972. "aggregateID": {
  17973. "type": "string"
  17974. },
  17975. "seq": {
  17976. "type": "integer",
  17977. "allOf": [
  17978. {
  17979. "minimum": 0
  17980. }
  17981. ]
  17982. },
  17983. "version": {
  17984. "type": "number",
  17985. "enum": [
  17986. 1
  17987. ]
  17988. }
  17989. },
  17990. "required": [
  17991. "aggregateID",
  17992. "seq",
  17993. "version"
  17994. ],
  17995. "additionalProperties": false
  17996. },
  17997. "location": {
  17998. "$ref": "#/components/schemas/Location.Ref"
  17999. },
  18000. "data": {
  18001. "type": "object",
  18002. "properties": {
  18003. "sessionID": {
  18004. "type": "string",
  18005. "allOf": [
  18006. {
  18007. "pattern": "^ses"
  18008. }
  18009. ]
  18010. }
  18011. },
  18012. "required": [
  18013. "sessionID"
  18014. ],
  18015. "additionalProperties": false
  18016. }
  18017. },
  18018. "required": [
  18019. "id",
  18020. "created",
  18021. "type",
  18022. "durable",
  18023. "data"
  18024. ],
  18025. "additionalProperties": false
  18026. },
  18027. "session.revert.committed": {
  18028. "type": "object",
  18029. "properties": {
  18030. "id": {
  18031. "type": "string",
  18032. "allOf": [
  18033. {
  18034. "pattern": "^evt_"
  18035. }
  18036. ]
  18037. },
  18038. "created": {
  18039. "type": "number"
  18040. },
  18041. "metadata": {
  18042. "type": "object"
  18043. },
  18044. "type": {
  18045. "type": "string",
  18046. "enum": [
  18047. "session.revert.committed"
  18048. ]
  18049. },
  18050. "durable": {
  18051. "type": "object",
  18052. "properties": {
  18053. "aggregateID": {
  18054. "type": "string"
  18055. },
  18056. "seq": {
  18057. "type": "integer",
  18058. "allOf": [
  18059. {
  18060. "minimum": 0
  18061. }
  18062. ]
  18063. },
  18064. "version": {
  18065. "type": "number",
  18066. "enum": [
  18067. 1
  18068. ]
  18069. }
  18070. },
  18071. "required": [
  18072. "aggregateID",
  18073. "seq",
  18074. "version"
  18075. ],
  18076. "additionalProperties": false
  18077. },
  18078. "location": {
  18079. "$ref": "#/components/schemas/Location.Ref"
  18080. },
  18081. "data": {
  18082. "type": "object",
  18083. "properties": {
  18084. "sessionID": {
  18085. "type": "string",
  18086. "allOf": [
  18087. {
  18088. "pattern": "^ses"
  18089. }
  18090. ]
  18091. },
  18092. "to": {
  18093. "type": "string",
  18094. "allOf": [
  18095. {
  18096. "pattern": "^msg_"
  18097. }
  18098. ]
  18099. }
  18100. },
  18101. "required": [
  18102. "sessionID",
  18103. "to"
  18104. ],
  18105. "additionalProperties": false
  18106. }
  18107. },
  18108. "required": [
  18109. "id",
  18110. "created",
  18111. "type",
  18112. "durable",
  18113. "data"
  18114. ],
  18115. "additionalProperties": false
  18116. },
  18117. "session.usage.recorded": {
  18118. "type": "object",
  18119. "properties": {
  18120. "id": {
  18121. "type": "string",
  18122. "allOf": [
  18123. {
  18124. "pattern": "^evt_"
  18125. }
  18126. ]
  18127. },
  18128. "created": {
  18129. "type": "number"
  18130. },
  18131. "metadata": {
  18132. "type": "object"
  18133. },
  18134. "type": {
  18135. "type": "string",
  18136. "enum": [
  18137. "session.usage.recorded"
  18138. ]
  18139. },
  18140. "durable": {
  18141. "type": "object",
  18142. "properties": {
  18143. "aggregateID": {
  18144. "type": "string"
  18145. },
  18146. "seq": {
  18147. "type": "integer",
  18148. "allOf": [
  18149. {
  18150. "minimum": 0
  18151. }
  18152. ]
  18153. },
  18154. "version": {
  18155. "type": "number",
  18156. "enum": [
  18157. 1
  18158. ]
  18159. }
  18160. },
  18161. "required": [
  18162. "aggregateID",
  18163. "seq",
  18164. "version"
  18165. ],
  18166. "additionalProperties": false
  18167. },
  18168. "location": {
  18169. "$ref": "#/components/schemas/Location.Ref"
  18170. },
  18171. "data": {
  18172. "type": "object",
  18173. "properties": {
  18174. "sessionID": {
  18175. "type": "string",
  18176. "allOf": [
  18177. {
  18178. "pattern": "^ses"
  18179. }
  18180. ]
  18181. },
  18182. "source": {
  18183. "type": "string",
  18184. "enum": [
  18185. "title",
  18186. "compaction"
  18187. ]
  18188. },
  18189. "cost": {
  18190. "$ref": "#/components/schemas/Money.USD"
  18191. },
  18192. "tokens": {
  18193. "$ref": "#/components/schemas/TokenUsage.Info"
  18194. }
  18195. },
  18196. "required": [
  18197. "sessionID",
  18198. "source",
  18199. "cost",
  18200. "tokens"
  18201. ],
  18202. "additionalProperties": false
  18203. }
  18204. },
  18205. "required": [
  18206. "id",
  18207. "created",
  18208. "type",
  18209. "durable",
  18210. "data"
  18211. ],
  18212. "additionalProperties": false
  18213. },
  18214. "Session.Event.Durable": {
  18215. "oneOf": [
  18216. {
  18217. "$ref": "#/components/schemas/session.agent.selected"
  18218. },
  18219. {
  18220. "$ref": "#/components/schemas/session.model.selected"
  18221. },
  18222. {
  18223. "$ref": "#/components/schemas/session.moved"
  18224. },
  18225. {
  18226. "$ref": "#/components/schemas/session.renamed"
  18227. },
  18228. {
  18229. "$ref": "#/components/schemas/session.deleted"
  18230. },
  18231. {
  18232. "$ref": "#/components/schemas/session.forked"
  18233. },
  18234. {
  18235. "$ref": "#/components/schemas/session.input.promoted"
  18236. },
  18237. {
  18238. "$ref": "#/components/schemas/session.input.admitted"
  18239. },
  18240. {
  18241. "$ref": "#/components/schemas/session.execution.started"
  18242. },
  18243. {
  18244. "$ref": "#/components/schemas/session.execution.succeeded"
  18245. },
  18246. {
  18247. "$ref": "#/components/schemas/session.execution.failed"
  18248. },
  18249. {
  18250. "$ref": "#/components/schemas/session.execution.interrupted"
  18251. },
  18252. {
  18253. "$ref": "#/components/schemas/session.instructions.updated"
  18254. },
  18255. {
  18256. "$ref": "#/components/schemas/session.synthetic"
  18257. },
  18258. {
  18259. "$ref": "#/components/schemas/session.skill.activated"
  18260. },
  18261. {
  18262. "$ref": "#/components/schemas/session.shell.started"
  18263. },
  18264. {
  18265. "$ref": "#/components/schemas/session.shell.ended"
  18266. },
  18267. {
  18268. "$ref": "#/components/schemas/session.step.started"
  18269. },
  18270. {
  18271. "$ref": "#/components/schemas/session.step.ended"
  18272. },
  18273. {
  18274. "$ref": "#/components/schemas/session.step.failed"
  18275. },
  18276. {
  18277. "$ref": "#/components/schemas/session.text.started"
  18278. },
  18279. {
  18280. "$ref": "#/components/schemas/session.text.ended"
  18281. },
  18282. {
  18283. "$ref": "#/components/schemas/session.reasoning.started"
  18284. },
  18285. {
  18286. "$ref": "#/components/schemas/session.reasoning.ended"
  18287. },
  18288. {
  18289. "$ref": "#/components/schemas/session.tool.input.started"
  18290. },
  18291. {
  18292. "$ref": "#/components/schemas/session.tool.input.ended"
  18293. },
  18294. {
  18295. "$ref": "#/components/schemas/session.tool.called"
  18296. },
  18297. {
  18298. "$ref": "#/components/schemas/session.tool.success"
  18299. },
  18300. {
  18301. "$ref": "#/components/schemas/session.tool.failed"
  18302. },
  18303. {
  18304. "$ref": "#/components/schemas/session.retry.scheduled"
  18305. },
  18306. {
  18307. "$ref": "#/components/schemas/session.compaction.admitted"
  18308. },
  18309. {
  18310. "$ref": "#/components/schemas/session.compaction.started"
  18311. },
  18312. {
  18313. "$ref": "#/components/schemas/session.compaction.ended"
  18314. },
  18315. {
  18316. "$ref": "#/components/schemas/session.compaction.failed"
  18317. },
  18318. {
  18319. "$ref": "#/components/schemas/session.revert.staged"
  18320. },
  18321. {
  18322. "$ref": "#/components/schemas/session.revert.cleared"
  18323. },
  18324. {
  18325. "$ref": "#/components/schemas/session.revert.committed"
  18326. },
  18327. {
  18328. "$ref": "#/components/schemas/session.usage.recorded"
  18329. }
  18330. ]
  18331. },
  18332. "EventLog.Synced": {
  18333. "type": "object",
  18334. "properties": {
  18335. "type": {
  18336. "type": "string",
  18337. "enum": [
  18338. "log.synced"
  18339. ]
  18340. },
  18341. "aggregateID": {
  18342. "type": "string"
  18343. },
  18344. "seq": {
  18345. "type": "integer",
  18346. "allOf": [
  18347. {
  18348. "minimum": 0
  18349. }
  18350. ]
  18351. }
  18352. },
  18353. "required": [
  18354. "type",
  18355. "aggregateID"
  18356. ],
  18357. "additionalProperties": false,
  18358. "description": "Marker emitted once when a log read reaches its captured watermark. The reader holds every event committed at or below seq."
  18359. },
  18360. "SessionLogItem": {
  18361. "anyOf": [
  18362. {
  18363. "$ref": "#/components/schemas/Session.Event.Durable"
  18364. },
  18365. {
  18366. "$ref": "#/components/schemas/EventLog.Synced"
  18367. }
  18368. ]
  18369. },
  18370. "SessionLogItemJsonString": {
  18371. "type": "string",
  18372. "contentSchema": {
  18373. "$ref": "#/components/schemas/SessionLogItem"
  18374. },
  18375. "contentMediaType": "application/json"
  18376. },
  18377. "SessionMessagesResponse": {
  18378. "type": "object",
  18379. "properties": {
  18380. "data": {
  18381. "type": "array",
  18382. "items": {
  18383. "$ref": "#/components/schemas/Session.Message.Info"
  18384. }
  18385. },
  18386. "cursor": {
  18387. "type": "object",
  18388. "properties": {
  18389. "previous": {
  18390. "anyOf": [
  18391. {
  18392. "type": "string"
  18393. },
  18394. {
  18395. "type": "null"
  18396. }
  18397. ]
  18398. },
  18399. "next": {
  18400. "anyOf": [
  18401. {
  18402. "type": "string"
  18403. },
  18404. {
  18405. "type": "null"
  18406. }
  18407. ]
  18408. }
  18409. },
  18410. "additionalProperties": false
  18411. }
  18412. },
  18413. "required": [
  18414. "data",
  18415. "cursor"
  18416. ],
  18417. "additionalProperties": false
  18418. },
  18419. "Model.ReasoningField": {
  18420. "anyOf": [
  18421. {
  18422. "type": "string",
  18423. "enum": [
  18424. "reasoning",
  18425. "reasoning_content",
  18426. "reasoning_text"
  18427. ]
  18428. },
  18429. {
  18430. "type": "string"
  18431. }
  18432. ]
  18433. },
  18434. "Model.Compatibility": {
  18435. "type": "object",
  18436. "properties": {
  18437. "reasoningField": {
  18438. "$ref": "#/components/schemas/Model.ReasoningField"
  18439. }
  18440. },
  18441. "additionalProperties": false
  18442. },
  18443. "Model.Capabilities": {
  18444. "type": "object",
  18445. "properties": {
  18446. "tools": {
  18447. "type": "boolean"
  18448. },
  18449. "input": {
  18450. "type": "array",
  18451. "items": {
  18452. "type": "string"
  18453. }
  18454. },
  18455. "output": {
  18456. "type": "array",
  18457. "items": {
  18458. "type": "string"
  18459. }
  18460. }
  18461. },
  18462. "required": [
  18463. "tools",
  18464. "input",
  18465. "output"
  18466. ],
  18467. "additionalProperties": false
  18468. },
  18469. "Model.Variant": {
  18470. "type": "object",
  18471. "properties": {
  18472. "id": {
  18473. "type": "string"
  18474. },
  18475. "settings": {
  18476. "type": "object"
  18477. },
  18478. "headers": {
  18479. "type": "object",
  18480. "additionalProperties": {
  18481. "type": "string"
  18482. }
  18483. },
  18484. "body": {
  18485. "type": "object"
  18486. }
  18487. },
  18488. "required": [
  18489. "id"
  18490. ],
  18491. "additionalProperties": false
  18492. },
  18493. "Money.USDPerMillionTokens": {
  18494. "type": "number"
  18495. },
  18496. "Model.Cost": {
  18497. "type": "object",
  18498. "properties": {
  18499. "tier": {
  18500. "type": "object",
  18501. "properties": {
  18502. "type": {
  18503. "type": "string",
  18504. "enum": [
  18505. "context"
  18506. ]
  18507. },
  18508. "size": {
  18509. "type": "integer"
  18510. }
  18511. },
  18512. "required": [
  18513. "type",
  18514. "size"
  18515. ],
  18516. "additionalProperties": false
  18517. },
  18518. "input": {
  18519. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  18520. },
  18521. "output": {
  18522. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  18523. },
  18524. "cache": {
  18525. "type": "object",
  18526. "properties": {
  18527. "read": {
  18528. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  18529. },
  18530. "write": {
  18531. "$ref": "#/components/schemas/Money.USDPerMillionTokens"
  18532. }
  18533. },
  18534. "required": [
  18535. "read",
  18536. "write"
  18537. ],
  18538. "additionalProperties": false
  18539. }
  18540. },
  18541. "required": [
  18542. "input",
  18543. "output",
  18544. "cache"
  18545. ],
  18546. "additionalProperties": false
  18547. },
  18548. "Model.Info": {
  18549. "type": "object",
  18550. "properties": {
  18551. "id": {
  18552. "type": "string"
  18553. },
  18554. "modelID": {
  18555. "type": "string"
  18556. },
  18557. "providerID": {
  18558. "type": "string"
  18559. },
  18560. "family": {
  18561. "type": "string"
  18562. },
  18563. "name": {
  18564. "type": "string"
  18565. },
  18566. "compatibility": {
  18567. "$ref": "#/components/schemas/Model.Compatibility"
  18568. },
  18569. "package": {
  18570. "type": "string"
  18571. },
  18572. "settings": {
  18573. "type": "object"
  18574. },
  18575. "headers": {
  18576. "type": "object",
  18577. "additionalProperties": {
  18578. "type": "string"
  18579. }
  18580. },
  18581. "body": {
  18582. "type": "object"
  18583. },
  18584. "capabilities": {
  18585. "$ref": "#/components/schemas/Model.Capabilities"
  18586. },
  18587. "variants": {
  18588. "type": "array",
  18589. "items": {
  18590. "$ref": "#/components/schemas/Model.Variant"
  18591. }
  18592. },
  18593. "time": {
  18594. "type": "object",
  18595. "properties": {
  18596. "released": {
  18597. "type": "number"
  18598. }
  18599. },
  18600. "required": [
  18601. "released"
  18602. ],
  18603. "additionalProperties": false
  18604. },
  18605. "cost": {
  18606. "type": "array",
  18607. "items": {
  18608. "$ref": "#/components/schemas/Model.Cost"
  18609. }
  18610. },
  18611. "status": {
  18612. "type": "string",
  18613. "enum": [
  18614. "alpha",
  18615. "beta",
  18616. "deprecated",
  18617. "active"
  18618. ]
  18619. },
  18620. "enabled": {
  18621. "type": "boolean"
  18622. },
  18623. "limit": {
  18624. "type": "object",
  18625. "properties": {
  18626. "context": {
  18627. "type": "integer"
  18628. },
  18629. "input": {
  18630. "type": "integer"
  18631. },
  18632. "output": {
  18633. "type": "integer"
  18634. }
  18635. },
  18636. "required": [
  18637. "context",
  18638. "output"
  18639. ],
  18640. "additionalProperties": false
  18641. }
  18642. },
  18643. "required": [
  18644. "id",
  18645. "modelID",
  18646. "providerID",
  18647. "name",
  18648. "capabilities",
  18649. "variants",
  18650. "time",
  18651. "cost",
  18652. "status",
  18653. "enabled",
  18654. "limit"
  18655. ],
  18656. "additionalProperties": false
  18657. },
  18658. "GenerateTextResponse": {
  18659. "type": "object",
  18660. "properties": {
  18661. "data": {
  18662. "type": "object",
  18663. "properties": {
  18664. "text": {
  18665. "type": "string"
  18666. }
  18667. },
  18668. "required": [
  18669. "text"
  18670. ],
  18671. "additionalProperties": false
  18672. }
  18673. },
  18674. "required": [
  18675. "data"
  18676. ],
  18677. "additionalProperties": false
  18678. },
  18679. "Provider.Info": {
  18680. "type": "object",
  18681. "properties": {
  18682. "id": {
  18683. "type": "string"
  18684. },
  18685. "integrationID": {
  18686. "type": "string"
  18687. },
  18688. "name": {
  18689. "type": "string"
  18690. },
  18691. "disabled": {
  18692. "type": "boolean"
  18693. },
  18694. "package": {
  18695. "type": "string"
  18696. },
  18697. "settings": {
  18698. "type": "object"
  18699. },
  18700. "headers": {
  18701. "type": "object",
  18702. "additionalProperties": {
  18703. "type": "string"
  18704. }
  18705. },
  18706. "body": {
  18707. "type": "object"
  18708. }
  18709. },
  18710. "required": [
  18711. "id",
  18712. "name",
  18713. "package"
  18714. ],
  18715. "additionalProperties": false
  18716. },
  18717. "ProviderNotFoundError": {
  18718. "type": "object",
  18719. "properties": {
  18720. "_tag": {
  18721. "type": "string",
  18722. "enum": [
  18723. "ProviderNotFoundError"
  18724. ]
  18725. },
  18726. "providerID": {
  18727. "type": "string"
  18728. },
  18729. "message": {
  18730. "type": "string"
  18731. }
  18732. },
  18733. "required": [
  18734. "_tag",
  18735. "providerID",
  18736. "message"
  18737. ],
  18738. "additionalProperties": false
  18739. },
  18740. "Integration.When": {
  18741. "type": "object",
  18742. "properties": {
  18743. "key": {
  18744. "type": "string"
  18745. },
  18746. "op": {
  18747. "type": "string",
  18748. "enum": [
  18749. "eq",
  18750. "neq"
  18751. ]
  18752. },
  18753. "value": {
  18754. "type": "string"
  18755. }
  18756. },
  18757. "required": [
  18758. "key",
  18759. "op",
  18760. "value"
  18761. ],
  18762. "additionalProperties": false
  18763. },
  18764. "Integration.TextPrompt": {
  18765. "type": "object",
  18766. "properties": {
  18767. "type": {
  18768. "type": "string",
  18769. "enum": [
  18770. "text"
  18771. ]
  18772. },
  18773. "key": {
  18774. "type": "string"
  18775. },
  18776. "message": {
  18777. "type": "string"
  18778. },
  18779. "placeholder": {
  18780. "type": "string"
  18781. },
  18782. "when": {
  18783. "$ref": "#/components/schemas/Integration.When"
  18784. }
  18785. },
  18786. "required": [
  18787. "type",
  18788. "key",
  18789. "message"
  18790. ],
  18791. "additionalProperties": false
  18792. },
  18793. "Integration.SelectPrompt": {
  18794. "type": "object",
  18795. "properties": {
  18796. "type": {
  18797. "type": "string",
  18798. "enum": [
  18799. "select"
  18800. ]
  18801. },
  18802. "key": {
  18803. "type": "string"
  18804. },
  18805. "message": {
  18806. "type": "string"
  18807. },
  18808. "options": {
  18809. "type": "array",
  18810. "items": {
  18811. "type": "object",
  18812. "properties": {
  18813. "label": {
  18814. "type": "string"
  18815. },
  18816. "value": {
  18817. "type": "string"
  18818. },
  18819. "hint": {
  18820. "type": "string"
  18821. }
  18822. },
  18823. "required": [
  18824. "label",
  18825. "value"
  18826. ],
  18827. "additionalProperties": false
  18828. }
  18829. },
  18830. "when": {
  18831. "$ref": "#/components/schemas/Integration.When"
  18832. }
  18833. },
  18834. "required": [
  18835. "type",
  18836. "key",
  18837. "message",
  18838. "options"
  18839. ],
  18840. "additionalProperties": false
  18841. },
  18842. "Integration.OAuthMethod": {
  18843. "type": "object",
  18844. "properties": {
  18845. "id": {
  18846. "type": "string"
  18847. },
  18848. "type": {
  18849. "type": "string",
  18850. "enum": [
  18851. "oauth"
  18852. ]
  18853. },
  18854. "label": {
  18855. "type": "string"
  18856. },
  18857. "prompts": {
  18858. "type": "array",
  18859. "items": {
  18860. "anyOf": [
  18861. {
  18862. "$ref": "#/components/schemas/Integration.TextPrompt"
  18863. },
  18864. {
  18865. "$ref": "#/components/schemas/Integration.SelectPrompt"
  18866. }
  18867. ]
  18868. }
  18869. }
  18870. },
  18871. "required": [
  18872. "id",
  18873. "type",
  18874. "label"
  18875. ],
  18876. "additionalProperties": false
  18877. },
  18878. "Integration.CommandMethod": {
  18879. "type": "object",
  18880. "properties": {
  18881. "id": {
  18882. "type": "string"
  18883. },
  18884. "type": {
  18885. "type": "string",
  18886. "enum": [
  18887. "command"
  18888. ]
  18889. },
  18890. "label": {
  18891. "type": "string"
  18892. },
  18893. "command": {
  18894. "type": "array",
  18895. "items": {
  18896. "type": "string"
  18897. }
  18898. }
  18899. },
  18900. "required": [
  18901. "id",
  18902. "type",
  18903. "label",
  18904. "command"
  18905. ],
  18906. "additionalProperties": false
  18907. },
  18908. "Integration.KeyMethod": {
  18909. "type": "object",
  18910. "properties": {
  18911. "type": {
  18912. "type": "string",
  18913. "enum": [
  18914. "key"
  18915. ]
  18916. },
  18917. "label": {
  18918. "type": "string"
  18919. }
  18920. },
  18921. "required": [
  18922. "type"
  18923. ],
  18924. "additionalProperties": false
  18925. },
  18926. "Integration.EnvMethod": {
  18927. "type": "object",
  18928. "properties": {
  18929. "type": {
  18930. "type": "string",
  18931. "enum": [
  18932. "env"
  18933. ]
  18934. },
  18935. "names": {
  18936. "type": "array",
  18937. "items": {
  18938. "type": "string"
  18939. }
  18940. }
  18941. },
  18942. "required": [
  18943. "type",
  18944. "names"
  18945. ],
  18946. "additionalProperties": false
  18947. },
  18948. "Integration.Method": {
  18949. "anyOf": [
  18950. {
  18951. "$ref": "#/components/schemas/Integration.OAuthMethod"
  18952. },
  18953. {
  18954. "$ref": "#/components/schemas/Integration.CommandMethod"
  18955. },
  18956. {
  18957. "$ref": "#/components/schemas/Integration.KeyMethod"
  18958. },
  18959. {
  18960. "$ref": "#/components/schemas/Integration.EnvMethod"
  18961. }
  18962. ]
  18963. },
  18964. "Connection.CredentialInfo": {
  18965. "type": "object",
  18966. "properties": {
  18967. "type": {
  18968. "type": "string",
  18969. "enum": [
  18970. "credential"
  18971. ]
  18972. },
  18973. "id": {
  18974. "type": "string"
  18975. },
  18976. "label": {
  18977. "type": "string"
  18978. }
  18979. },
  18980. "required": [
  18981. "type",
  18982. "id",
  18983. "label"
  18984. ],
  18985. "additionalProperties": false
  18986. },
  18987. "Connection.EnvInfo": {
  18988. "type": "object",
  18989. "properties": {
  18990. "type": {
  18991. "type": "string",
  18992. "enum": [
  18993. "env"
  18994. ]
  18995. },
  18996. "name": {
  18997. "type": "string"
  18998. }
  18999. },
  19000. "required": [
  19001. "type",
  19002. "name"
  19003. ],
  19004. "additionalProperties": false
  19005. },
  19006. "Connection.Info": {
  19007. "anyOf": [
  19008. {
  19009. "$ref": "#/components/schemas/Connection.CredentialInfo"
  19010. },
  19011. {
  19012. "$ref": "#/components/schemas/Connection.EnvInfo"
  19013. }
  19014. ]
  19015. },
  19016. "Integration.Info": {
  19017. "type": "object",
  19018. "properties": {
  19019. "id": {
  19020. "type": "string"
  19021. },
  19022. "name": {
  19023. "type": "string"
  19024. },
  19025. "methods": {
  19026. "type": "array",
  19027. "items": {
  19028. "$ref": "#/components/schemas/Integration.Method"
  19029. }
  19030. },
  19031. "connections": {
  19032. "type": "array",
  19033. "items": {
  19034. "$ref": "#/components/schemas/Connection.Info"
  19035. }
  19036. }
  19037. },
  19038. "required": [
  19039. "id",
  19040. "name",
  19041. "methods",
  19042. "connections"
  19043. ],
  19044. "additionalProperties": false
  19045. },
  19046. "Integration.Attempt": {
  19047. "type": "object",
  19048. "properties": {
  19049. "attemptID": {
  19050. "type": "string"
  19051. },
  19052. "url": {
  19053. "type": "string"
  19054. },
  19055. "instructions": {
  19056. "type": "string"
  19057. },
  19058. "mode": {
  19059. "type": "string",
  19060. "enum": [
  19061. "auto",
  19062. "code"
  19063. ]
  19064. },
  19065. "time": {
  19066. "type": "object",
  19067. "properties": {
  19068. "created": {
  19069. "anyOf": [
  19070. {
  19071. "anyOf": [
  19072. {
  19073. "type": "number"
  19074. },
  19075. {
  19076. "type": "string",
  19077. "enum": [
  19078. "NaN"
  19079. ]
  19080. },
  19081. {
  19082. "type": "string",
  19083. "enum": [
  19084. "Infinity"
  19085. ]
  19086. },
  19087. {
  19088. "type": "string",
  19089. "enum": [
  19090. "-Infinity"
  19091. ]
  19092. }
  19093. ]
  19094. },
  19095. {
  19096. "type": "string",
  19097. "enum": [
  19098. "Infinity",
  19099. "-Infinity",
  19100. "NaN"
  19101. ]
  19102. }
  19103. ]
  19104. },
  19105. "expires": {
  19106. "anyOf": [
  19107. {
  19108. "anyOf": [
  19109. {
  19110. "type": "number"
  19111. },
  19112. {
  19113. "type": "string",
  19114. "enum": [
  19115. "NaN"
  19116. ]
  19117. },
  19118. {
  19119. "type": "string",
  19120. "enum": [
  19121. "Infinity"
  19122. ]
  19123. },
  19124. {
  19125. "type": "string",
  19126. "enum": [
  19127. "-Infinity"
  19128. ]
  19129. }
  19130. ]
  19131. },
  19132. {
  19133. "type": "string",
  19134. "enum": [
  19135. "Infinity",
  19136. "-Infinity",
  19137. "NaN"
  19138. ]
  19139. }
  19140. ]
  19141. }
  19142. },
  19143. "required": [
  19144. "created",
  19145. "expires"
  19146. ],
  19147. "additionalProperties": false
  19148. }
  19149. },
  19150. "required": [
  19151. "attemptID",
  19152. "url",
  19153. "instructions",
  19154. "mode",
  19155. "time"
  19156. ],
  19157. "additionalProperties": false
  19158. },
  19159. "Integration.AttemptStatus": {
  19160. "anyOf": [
  19161. {
  19162. "type": "object",
  19163. "properties": {
  19164. "status": {
  19165. "type": "string",
  19166. "enum": [
  19167. "pending"
  19168. ]
  19169. },
  19170. "time": {
  19171. "type": "object",
  19172. "properties": {
  19173. "created": {
  19174. "anyOf": [
  19175. {
  19176. "anyOf": [
  19177. {
  19178. "type": "number"
  19179. },
  19180. {
  19181. "type": "string",
  19182. "enum": [
  19183. "NaN"
  19184. ]
  19185. },
  19186. {
  19187. "type": "string",
  19188. "enum": [
  19189. "Infinity"
  19190. ]
  19191. },
  19192. {
  19193. "type": "string",
  19194. "enum": [
  19195. "-Infinity"
  19196. ]
  19197. }
  19198. ]
  19199. },
  19200. {
  19201. "type": "string",
  19202. "enum": [
  19203. "Infinity",
  19204. "-Infinity",
  19205. "NaN"
  19206. ]
  19207. }
  19208. ]
  19209. },
  19210. "expires": {
  19211. "anyOf": [
  19212. {
  19213. "anyOf": [
  19214. {
  19215. "type": "number"
  19216. },
  19217. {
  19218. "type": "string",
  19219. "enum": [
  19220. "NaN"
  19221. ]
  19222. },
  19223. {
  19224. "type": "string",
  19225. "enum": [
  19226. "Infinity"
  19227. ]
  19228. },
  19229. {
  19230. "type": "string",
  19231. "enum": [
  19232. "-Infinity"
  19233. ]
  19234. }
  19235. ]
  19236. },
  19237. {
  19238. "type": "string",
  19239. "enum": [
  19240. "Infinity",
  19241. "-Infinity",
  19242. "NaN"
  19243. ]
  19244. }
  19245. ]
  19246. }
  19247. },
  19248. "required": [
  19249. "created",
  19250. "expires"
  19251. ],
  19252. "additionalProperties": false
  19253. }
  19254. },
  19255. "required": [
  19256. "status",
  19257. "time"
  19258. ],
  19259. "additionalProperties": false
  19260. },
  19261. {
  19262. "type": "object",
  19263. "properties": {
  19264. "status": {
  19265. "type": "string",
  19266. "enum": [
  19267. "complete"
  19268. ]
  19269. },
  19270. "time": {
  19271. "type": "object",
  19272. "properties": {
  19273. "created": {
  19274. "anyOf": [
  19275. {
  19276. "anyOf": [
  19277. {
  19278. "type": "number"
  19279. },
  19280. {
  19281. "type": "string",
  19282. "enum": [
  19283. "NaN"
  19284. ]
  19285. },
  19286. {
  19287. "type": "string",
  19288. "enum": [
  19289. "Infinity"
  19290. ]
  19291. },
  19292. {
  19293. "type": "string",
  19294. "enum": [
  19295. "-Infinity"
  19296. ]
  19297. }
  19298. ]
  19299. },
  19300. {
  19301. "type": "string",
  19302. "enum": [
  19303. "Infinity",
  19304. "-Infinity",
  19305. "NaN"
  19306. ]
  19307. }
  19308. ]
  19309. },
  19310. "expires": {
  19311. "anyOf": [
  19312. {
  19313. "anyOf": [
  19314. {
  19315. "type": "number"
  19316. },
  19317. {
  19318. "type": "string",
  19319. "enum": [
  19320. "NaN"
  19321. ]
  19322. },
  19323. {
  19324. "type": "string",
  19325. "enum": [
  19326. "Infinity"
  19327. ]
  19328. },
  19329. {
  19330. "type": "string",
  19331. "enum": [
  19332. "-Infinity"
  19333. ]
  19334. }
  19335. ]
  19336. },
  19337. {
  19338. "type": "string",
  19339. "enum": [
  19340. "Infinity",
  19341. "-Infinity",
  19342. "NaN"
  19343. ]
  19344. }
  19345. ]
  19346. }
  19347. },
  19348. "required": [
  19349. "created",
  19350. "expires"
  19351. ],
  19352. "additionalProperties": false
  19353. }
  19354. },
  19355. "required": [
  19356. "status",
  19357. "time"
  19358. ],
  19359. "additionalProperties": false
  19360. },
  19361. {
  19362. "type": "object",
  19363. "properties": {
  19364. "status": {
  19365. "type": "string",
  19366. "enum": [
  19367. "failed"
  19368. ]
  19369. },
  19370. "message": {
  19371. "type": "string"
  19372. },
  19373. "time": {
  19374. "type": "object",
  19375. "properties": {
  19376. "created": {
  19377. "anyOf": [
  19378. {
  19379. "anyOf": [
  19380. {
  19381. "type": "number"
  19382. },
  19383. {
  19384. "type": "string",
  19385. "enum": [
  19386. "NaN"
  19387. ]
  19388. },
  19389. {
  19390. "type": "string",
  19391. "enum": [
  19392. "Infinity"
  19393. ]
  19394. },
  19395. {
  19396. "type": "string",
  19397. "enum": [
  19398. "-Infinity"
  19399. ]
  19400. }
  19401. ]
  19402. },
  19403. {
  19404. "type": "string",
  19405. "enum": [
  19406. "Infinity",
  19407. "-Infinity",
  19408. "NaN"
  19409. ]
  19410. }
  19411. ]
  19412. },
  19413. "expires": {
  19414. "anyOf": [
  19415. {
  19416. "anyOf": [
  19417. {
  19418. "type": "number"
  19419. },
  19420. {
  19421. "type": "string",
  19422. "enum": [
  19423. "NaN"
  19424. ]
  19425. },
  19426. {
  19427. "type": "string",
  19428. "enum": [
  19429. "Infinity"
  19430. ]
  19431. },
  19432. {
  19433. "type": "string",
  19434. "enum": [
  19435. "-Infinity"
  19436. ]
  19437. }
  19438. ]
  19439. },
  19440. {
  19441. "type": "string",
  19442. "enum": [
  19443. "Infinity",
  19444. "-Infinity",
  19445. "NaN"
  19446. ]
  19447. }
  19448. ]
  19449. }
  19450. },
  19451. "required": [
  19452. "created",
  19453. "expires"
  19454. ],
  19455. "additionalProperties": false
  19456. }
  19457. },
  19458. "required": [
  19459. "status",
  19460. "message",
  19461. "time"
  19462. ],
  19463. "additionalProperties": false
  19464. },
  19465. {
  19466. "type": "object",
  19467. "properties": {
  19468. "status": {
  19469. "type": "string",
  19470. "enum": [
  19471. "expired"
  19472. ]
  19473. },
  19474. "time": {
  19475. "type": "object",
  19476. "properties": {
  19477. "created": {
  19478. "anyOf": [
  19479. {
  19480. "anyOf": [
  19481. {
  19482. "type": "number"
  19483. },
  19484. {
  19485. "type": "string",
  19486. "enum": [
  19487. "NaN"
  19488. ]
  19489. },
  19490. {
  19491. "type": "string",
  19492. "enum": [
  19493. "Infinity"
  19494. ]
  19495. },
  19496. {
  19497. "type": "string",
  19498. "enum": [
  19499. "-Infinity"
  19500. ]
  19501. }
  19502. ]
  19503. },
  19504. {
  19505. "type": "string",
  19506. "enum": [
  19507. "Infinity",
  19508. "-Infinity",
  19509. "NaN"
  19510. ]
  19511. }
  19512. ]
  19513. },
  19514. "expires": {
  19515. "anyOf": [
  19516. {
  19517. "anyOf": [
  19518. {
  19519. "type": "number"
  19520. },
  19521. {
  19522. "type": "string",
  19523. "enum": [
  19524. "NaN"
  19525. ]
  19526. },
  19527. {
  19528. "type": "string",
  19529. "enum": [
  19530. "Infinity"
  19531. ]
  19532. },
  19533. {
  19534. "type": "string",
  19535. "enum": [
  19536. "-Infinity"
  19537. ]
  19538. }
  19539. ]
  19540. },
  19541. {
  19542. "type": "string",
  19543. "enum": [
  19544. "Infinity",
  19545. "-Infinity",
  19546. "NaN"
  19547. ]
  19548. }
  19549. ]
  19550. }
  19551. },
  19552. "required": [
  19553. "created",
  19554. "expires"
  19555. ],
  19556. "additionalProperties": false
  19557. }
  19558. },
  19559. "required": [
  19560. "status",
  19561. "time"
  19562. ],
  19563. "additionalProperties": false
  19564. }
  19565. ]
  19566. },
  19567. "Integration.CommandAttempt": {
  19568. "type": "object",
  19569. "properties": {
  19570. "attemptID": {
  19571. "type": "string"
  19572. },
  19573. "time": {
  19574. "type": "object",
  19575. "properties": {
  19576. "created": {
  19577. "anyOf": [
  19578. {
  19579. "anyOf": [
  19580. {
  19581. "type": "number"
  19582. },
  19583. {
  19584. "type": "string",
  19585. "enum": [
  19586. "NaN"
  19587. ]
  19588. },
  19589. {
  19590. "type": "string",
  19591. "enum": [
  19592. "Infinity"
  19593. ]
  19594. },
  19595. {
  19596. "type": "string",
  19597. "enum": [
  19598. "-Infinity"
  19599. ]
  19600. }
  19601. ]
  19602. },
  19603. {
  19604. "type": "string",
  19605. "enum": [
  19606. "Infinity",
  19607. "-Infinity",
  19608. "NaN"
  19609. ]
  19610. }
  19611. ]
  19612. },
  19613. "expires": {
  19614. "anyOf": [
  19615. {
  19616. "anyOf": [
  19617. {
  19618. "type": "number"
  19619. },
  19620. {
  19621. "type": "string",
  19622. "enum": [
  19623. "NaN"
  19624. ]
  19625. },
  19626. {
  19627. "type": "string",
  19628. "enum": [
  19629. "Infinity"
  19630. ]
  19631. },
  19632. {
  19633. "type": "string",
  19634. "enum": [
  19635. "-Infinity"
  19636. ]
  19637. }
  19638. ]
  19639. },
  19640. {
  19641. "type": "string",
  19642. "enum": [
  19643. "Infinity",
  19644. "-Infinity",
  19645. "NaN"
  19646. ]
  19647. }
  19648. ]
  19649. }
  19650. },
  19651. "required": [
  19652. "created",
  19653. "expires"
  19654. ],
  19655. "additionalProperties": false
  19656. }
  19657. },
  19658. "required": [
  19659. "attemptID",
  19660. "time"
  19661. ],
  19662. "additionalProperties": false
  19663. },
  19664. "Integration.CommandAttemptStatus": {
  19665. "anyOf": [
  19666. {
  19667. "type": "object",
  19668. "properties": {
  19669. "status": {
  19670. "type": "string",
  19671. "enum": [
  19672. "pending"
  19673. ]
  19674. },
  19675. "message": {
  19676. "type": "string"
  19677. },
  19678. "time": {
  19679. "type": "object",
  19680. "properties": {
  19681. "created": {
  19682. "anyOf": [
  19683. {
  19684. "anyOf": [
  19685. {
  19686. "type": "number"
  19687. },
  19688. {
  19689. "type": "string",
  19690. "enum": [
  19691. "NaN"
  19692. ]
  19693. },
  19694. {
  19695. "type": "string",
  19696. "enum": [
  19697. "Infinity"
  19698. ]
  19699. },
  19700. {
  19701. "type": "string",
  19702. "enum": [
  19703. "-Infinity"
  19704. ]
  19705. }
  19706. ]
  19707. },
  19708. {
  19709. "type": "string",
  19710. "enum": [
  19711. "Infinity",
  19712. "-Infinity",
  19713. "NaN"
  19714. ]
  19715. }
  19716. ]
  19717. },
  19718. "expires": {
  19719. "anyOf": [
  19720. {
  19721. "anyOf": [
  19722. {
  19723. "type": "number"
  19724. },
  19725. {
  19726. "type": "string",
  19727. "enum": [
  19728. "NaN"
  19729. ]
  19730. },
  19731. {
  19732. "type": "string",
  19733. "enum": [
  19734. "Infinity"
  19735. ]
  19736. },
  19737. {
  19738. "type": "string",
  19739. "enum": [
  19740. "-Infinity"
  19741. ]
  19742. }
  19743. ]
  19744. },
  19745. {
  19746. "type": "string",
  19747. "enum": [
  19748. "Infinity",
  19749. "-Infinity",
  19750. "NaN"
  19751. ]
  19752. }
  19753. ]
  19754. }
  19755. },
  19756. "required": [
  19757. "created",
  19758. "expires"
  19759. ],
  19760. "additionalProperties": false
  19761. }
  19762. },
  19763. "required": [
  19764. "status",
  19765. "time"
  19766. ],
  19767. "additionalProperties": false
  19768. },
  19769. {
  19770. "type": "object",
  19771. "properties": {
  19772. "status": {
  19773. "type": "string",
  19774. "enum": [
  19775. "complete"
  19776. ]
  19777. },
  19778. "time": {
  19779. "type": "object",
  19780. "properties": {
  19781. "created": {
  19782. "anyOf": [
  19783. {
  19784. "anyOf": [
  19785. {
  19786. "type": "number"
  19787. },
  19788. {
  19789. "type": "string",
  19790. "enum": [
  19791. "NaN"
  19792. ]
  19793. },
  19794. {
  19795. "type": "string",
  19796. "enum": [
  19797. "Infinity"
  19798. ]
  19799. },
  19800. {
  19801. "type": "string",
  19802. "enum": [
  19803. "-Infinity"
  19804. ]
  19805. }
  19806. ]
  19807. },
  19808. {
  19809. "type": "string",
  19810. "enum": [
  19811. "Infinity",
  19812. "-Infinity",
  19813. "NaN"
  19814. ]
  19815. }
  19816. ]
  19817. },
  19818. "expires": {
  19819. "anyOf": [
  19820. {
  19821. "anyOf": [
  19822. {
  19823. "type": "number"
  19824. },
  19825. {
  19826. "type": "string",
  19827. "enum": [
  19828. "NaN"
  19829. ]
  19830. },
  19831. {
  19832. "type": "string",
  19833. "enum": [
  19834. "Infinity"
  19835. ]
  19836. },
  19837. {
  19838. "type": "string",
  19839. "enum": [
  19840. "-Infinity"
  19841. ]
  19842. }
  19843. ]
  19844. },
  19845. {
  19846. "type": "string",
  19847. "enum": [
  19848. "Infinity",
  19849. "-Infinity",
  19850. "NaN"
  19851. ]
  19852. }
  19853. ]
  19854. }
  19855. },
  19856. "required": [
  19857. "created",
  19858. "expires"
  19859. ],
  19860. "additionalProperties": false
  19861. }
  19862. },
  19863. "required": [
  19864. "status",
  19865. "time"
  19866. ],
  19867. "additionalProperties": false
  19868. },
  19869. {
  19870. "type": "object",
  19871. "properties": {
  19872. "status": {
  19873. "type": "string",
  19874. "enum": [
  19875. "failed"
  19876. ]
  19877. },
  19878. "message": {
  19879. "type": "string"
  19880. },
  19881. "time": {
  19882. "type": "object",
  19883. "properties": {
  19884. "created": {
  19885. "anyOf": [
  19886. {
  19887. "anyOf": [
  19888. {
  19889. "type": "number"
  19890. },
  19891. {
  19892. "type": "string",
  19893. "enum": [
  19894. "NaN"
  19895. ]
  19896. },
  19897. {
  19898. "type": "string",
  19899. "enum": [
  19900. "Infinity"
  19901. ]
  19902. },
  19903. {
  19904. "type": "string",
  19905. "enum": [
  19906. "-Infinity"
  19907. ]
  19908. }
  19909. ]
  19910. },
  19911. {
  19912. "type": "string",
  19913. "enum": [
  19914. "Infinity",
  19915. "-Infinity",
  19916. "NaN"
  19917. ]
  19918. }
  19919. ]
  19920. },
  19921. "expires": {
  19922. "anyOf": [
  19923. {
  19924. "anyOf": [
  19925. {
  19926. "type": "number"
  19927. },
  19928. {
  19929. "type": "string",
  19930. "enum": [
  19931. "NaN"
  19932. ]
  19933. },
  19934. {
  19935. "type": "string",
  19936. "enum": [
  19937. "Infinity"
  19938. ]
  19939. },
  19940. {
  19941. "type": "string",
  19942. "enum": [
  19943. "-Infinity"
  19944. ]
  19945. }
  19946. ]
  19947. },
  19948. {
  19949. "type": "string",
  19950. "enum": [
  19951. "Infinity",
  19952. "-Infinity",
  19953. "NaN"
  19954. ]
  19955. }
  19956. ]
  19957. }
  19958. },
  19959. "required": [
  19960. "created",
  19961. "expires"
  19962. ],
  19963. "additionalProperties": false
  19964. }
  19965. },
  19966. "required": [
  19967. "status",
  19968. "message",
  19969. "time"
  19970. ],
  19971. "additionalProperties": false
  19972. },
  19973. {
  19974. "type": "object",
  19975. "properties": {
  19976. "status": {
  19977. "type": "string",
  19978. "enum": [
  19979. "expired"
  19980. ]
  19981. },
  19982. "time": {
  19983. "type": "object",
  19984. "properties": {
  19985. "created": {
  19986. "anyOf": [
  19987. {
  19988. "anyOf": [
  19989. {
  19990. "type": "number"
  19991. },
  19992. {
  19993. "type": "string",
  19994. "enum": [
  19995. "NaN"
  19996. ]
  19997. },
  19998. {
  19999. "type": "string",
  20000. "enum": [
  20001. "Infinity"
  20002. ]
  20003. },
  20004. {
  20005. "type": "string",
  20006. "enum": [
  20007. "-Infinity"
  20008. ]
  20009. }
  20010. ]
  20011. },
  20012. {
  20013. "type": "string",
  20014. "enum": [
  20015. "Infinity",
  20016. "-Infinity",
  20017. "NaN"
  20018. ]
  20019. }
  20020. ]
  20021. },
  20022. "expires": {
  20023. "anyOf": [
  20024. {
  20025. "anyOf": [
  20026. {
  20027. "type": "number"
  20028. },
  20029. {
  20030. "type": "string",
  20031. "enum": [
  20032. "NaN"
  20033. ]
  20034. },
  20035. {
  20036. "type": "string",
  20037. "enum": [
  20038. "Infinity"
  20039. ]
  20040. },
  20041. {
  20042. "type": "string",
  20043. "enum": [
  20044. "-Infinity"
  20045. ]
  20046. }
  20047. ]
  20048. },
  20049. {
  20050. "type": "string",
  20051. "enum": [
  20052. "Infinity",
  20053. "-Infinity",
  20054. "NaN"
  20055. ]
  20056. }
  20057. ]
  20058. }
  20059. },
  20060. "required": [
  20061. "created",
  20062. "expires"
  20063. ],
  20064. "additionalProperties": false
  20065. }
  20066. },
  20067. "required": [
  20068. "status",
  20069. "time"
  20070. ],
  20071. "additionalProperties": false
  20072. }
  20073. ]
  20074. },
  20075. "Mcp.Status.Connected": {
  20076. "type": "object",
  20077. "properties": {
  20078. "status": {
  20079. "type": "string",
  20080. "enum": [
  20081. "connected"
  20082. ]
  20083. }
  20084. },
  20085. "required": [
  20086. "status"
  20087. ],
  20088. "additionalProperties": false
  20089. },
  20090. "Mcp.Status.Pending": {
  20091. "type": "object",
  20092. "properties": {
  20093. "status": {
  20094. "type": "string",
  20095. "enum": [
  20096. "pending"
  20097. ]
  20098. }
  20099. },
  20100. "required": [
  20101. "status"
  20102. ],
  20103. "additionalProperties": false
  20104. },
  20105. "Mcp.Status.Disabled": {
  20106. "type": "object",
  20107. "properties": {
  20108. "status": {
  20109. "type": "string",
  20110. "enum": [
  20111. "disabled"
  20112. ]
  20113. }
  20114. },
  20115. "required": [
  20116. "status"
  20117. ],
  20118. "additionalProperties": false
  20119. },
  20120. "Mcp.Status.Failed": {
  20121. "type": "object",
  20122. "properties": {
  20123. "status": {
  20124. "type": "string",
  20125. "enum": [
  20126. "failed"
  20127. ]
  20128. },
  20129. "error": {
  20130. "type": "string"
  20131. }
  20132. },
  20133. "required": [
  20134. "status",
  20135. "error"
  20136. ],
  20137. "additionalProperties": false
  20138. },
  20139. "Mcp.Status.NeedsAuth": {
  20140. "type": "object",
  20141. "properties": {
  20142. "status": {
  20143. "type": "string",
  20144. "enum": [
  20145. "needs_auth"
  20146. ]
  20147. }
  20148. },
  20149. "required": [
  20150. "status"
  20151. ],
  20152. "additionalProperties": false
  20153. },
  20154. "Mcp.Status.NeedsClientRegistration": {
  20155. "type": "object",
  20156. "properties": {
  20157. "status": {
  20158. "type": "string",
  20159. "enum": [
  20160. "needs_client_registration"
  20161. ]
  20162. },
  20163. "error": {
  20164. "type": "string"
  20165. }
  20166. },
  20167. "required": [
  20168. "status",
  20169. "error"
  20170. ],
  20171. "additionalProperties": false
  20172. },
  20173. "Mcp.Server": {
  20174. "type": "object",
  20175. "properties": {
  20176. "name": {
  20177. "type": "string"
  20178. },
  20179. "status": {
  20180. "anyOf": [
  20181. {
  20182. "$ref": "#/components/schemas/Mcp.Status.Connected"
  20183. },
  20184. {
  20185. "$ref": "#/components/schemas/Mcp.Status.Pending"
  20186. },
  20187. {
  20188. "$ref": "#/components/schemas/Mcp.Status.Disabled"
  20189. },
  20190. {
  20191. "$ref": "#/components/schemas/Mcp.Status.Failed"
  20192. },
  20193. {
  20194. "$ref": "#/components/schemas/Mcp.Status.NeedsAuth"
  20195. },
  20196. {
  20197. "$ref": "#/components/schemas/Mcp.Status.NeedsClientRegistration"
  20198. }
  20199. ]
  20200. },
  20201. "integrationID": {
  20202. "type": "string"
  20203. }
  20204. },
  20205. "required": [
  20206. "name",
  20207. "status"
  20208. ],
  20209. "additionalProperties": false
  20210. },
  20211. "Mcp.TimeoutConfig": {
  20212. "type": "object",
  20213. "properties": {
  20214. "startup": {
  20215. "anyOf": [
  20216. {
  20217. "type": "integer",
  20218. "allOf": [
  20219. {
  20220. "exclusiveMinimum": 0
  20221. }
  20222. ]
  20223. },
  20224. {
  20225. "type": "null"
  20226. }
  20227. ],
  20228. "description": "Maximum time in milliseconds to establish and initialize the MCP server."
  20229. },
  20230. "catalog": {
  20231. "anyOf": [
  20232. {
  20233. "type": "integer",
  20234. "allOf": [
  20235. {
  20236. "exclusiveMinimum": 0
  20237. }
  20238. ]
  20239. },
  20240. {
  20241. "type": "null"
  20242. }
  20243. ],
  20244. "description": "Maximum time in milliseconds to wait for MCP discovery requests such as tools/list and prompts/list."
  20245. },
  20246. "execution": {
  20247. "anyOf": [
  20248. {
  20249. "type": "integer",
  20250. "allOf": [
  20251. {
  20252. "exclusiveMinimum": 0
  20253. }
  20254. ]
  20255. },
  20256. {
  20257. "type": "null"
  20258. }
  20259. ],
  20260. "description": "Maximum time in milliseconds to wait for MCP tool and prompt execution."
  20261. }
  20262. },
  20263. "additionalProperties": false
  20264. },
  20265. "Mcp.LocalConfig": {
  20266. "type": "object",
  20267. "properties": {
  20268. "type": {
  20269. "type": "string",
  20270. "enum": [
  20271. "local"
  20272. ]
  20273. },
  20274. "command": {
  20275. "type": "array",
  20276. "items": {
  20277. "type": "string"
  20278. }
  20279. },
  20280. "cwd": {
  20281. "anyOf": [
  20282. {
  20283. "type": "string"
  20284. },
  20285. {
  20286. "type": "null"
  20287. }
  20288. ],
  20289. "description": "Working directory for the MCP server process. Relative paths resolve from the workspace directory."
  20290. },
  20291. "environment": {
  20292. "anyOf": [
  20293. {
  20294. "type": "object",
  20295. "additionalProperties": {
  20296. "type": "string"
  20297. }
  20298. },
  20299. {
  20300. "type": "null"
  20301. }
  20302. ]
  20303. },
  20304. "disabled": {
  20305. "anyOf": [
  20306. {
  20307. "type": "boolean"
  20308. },
  20309. {
  20310. "type": "null"
  20311. }
  20312. ]
  20313. },
  20314. "codemode": {
  20315. "anyOf": [
  20316. {
  20317. "type": "boolean"
  20318. },
  20319. {
  20320. "type": "null"
  20321. }
  20322. ],
  20323. "description": "Expose this server's tools through Code Mode. Defaults to true."
  20324. },
  20325. "timeout": {
  20326. "anyOf": [
  20327. {
  20328. "$ref": "#/components/schemas/Mcp.TimeoutConfig"
  20329. },
  20330. {
  20331. "type": "null"
  20332. }
  20333. ]
  20334. }
  20335. },
  20336. "required": [
  20337. "type",
  20338. "command"
  20339. ],
  20340. "additionalProperties": false
  20341. },
  20342. "Mcp.OAuthConfig": {
  20343. "type": "object",
  20344. "properties": {
  20345. "client_id": {
  20346. "anyOf": [
  20347. {
  20348. "type": "string"
  20349. },
  20350. {
  20351. "type": "null"
  20352. }
  20353. ]
  20354. },
  20355. "client_secret": {
  20356. "anyOf": [
  20357. {
  20358. "type": "string"
  20359. },
  20360. {
  20361. "type": "null"
  20362. }
  20363. ]
  20364. },
  20365. "scope": {
  20366. "anyOf": [
  20367. {
  20368. "type": "string"
  20369. },
  20370. {
  20371. "type": "null"
  20372. }
  20373. ]
  20374. },
  20375. "callback_port": {
  20376. "anyOf": [
  20377. {
  20378. "type": "integer",
  20379. "allOf": [
  20380. {
  20381. "minimum": 1,
  20382. "maximum": 65535
  20383. }
  20384. ]
  20385. },
  20386. {
  20387. "type": "null"
  20388. }
  20389. ]
  20390. },
  20391. "redirect_uri": {
  20392. "anyOf": [
  20393. {
  20394. "type": "string"
  20395. },
  20396. {
  20397. "type": "null"
  20398. }
  20399. ]
  20400. }
  20401. },
  20402. "additionalProperties": false
  20403. },
  20404. "Mcp.RemoteConfig": {
  20405. "type": "object",
  20406. "properties": {
  20407. "type": {
  20408. "type": "string",
  20409. "enum": [
  20410. "remote"
  20411. ]
  20412. },
  20413. "url": {
  20414. "type": "string"
  20415. },
  20416. "headers": {
  20417. "anyOf": [
  20418. {
  20419. "type": "object",
  20420. "additionalProperties": {
  20421. "type": "string"
  20422. }
  20423. },
  20424. {
  20425. "type": "null"
  20426. }
  20427. ]
  20428. },
  20429. "oauth": {
  20430. "anyOf": [
  20431. {
  20432. "anyOf": [
  20433. {
  20434. "$ref": "#/components/schemas/Mcp.OAuthConfig"
  20435. },
  20436. {
  20437. "type": "boolean",
  20438. "enum": [
  20439. false
  20440. ]
  20441. }
  20442. ]
  20443. },
  20444. {
  20445. "type": "null"
  20446. }
  20447. ]
  20448. },
  20449. "disabled": {
  20450. "anyOf": [
  20451. {
  20452. "type": "boolean"
  20453. },
  20454. {
  20455. "type": "null"
  20456. }
  20457. ]
  20458. },
  20459. "codemode": {
  20460. "anyOf": [
  20461. {
  20462. "type": "boolean"
  20463. },
  20464. {
  20465. "type": "null"
  20466. }
  20467. ],
  20468. "description": "Expose this server's tools through Code Mode. Defaults to true."
  20469. },
  20470. "timeout": {
  20471. "anyOf": [
  20472. {
  20473. "$ref": "#/components/schemas/Mcp.TimeoutConfig"
  20474. },
  20475. {
  20476. "type": "null"
  20477. }
  20478. ]
  20479. }
  20480. },
  20481. "required": [
  20482. "type",
  20483. "url"
  20484. ],
  20485. "additionalProperties": false
  20486. },
  20487. "McpServerNotFoundError": {
  20488. "type": "object",
  20489. "properties": {
  20490. "_tag": {
  20491. "type": "string",
  20492. "enum": [
  20493. "McpServerNotFoundError"
  20494. ]
  20495. },
  20496. "server": {
  20497. "type": "string"
  20498. },
  20499. "message": {
  20500. "type": "string"
  20501. }
  20502. },
  20503. "required": [
  20504. "_tag",
  20505. "server",
  20506. "message"
  20507. ],
  20508. "additionalProperties": false
  20509. },
  20510. "Mcp.Resource": {
  20511. "type": "object",
  20512. "properties": {
  20513. "server": {
  20514. "type": "string"
  20515. },
  20516. "name": {
  20517. "type": "string"
  20518. },
  20519. "uri": {
  20520. "type": "string"
  20521. },
  20522. "description": {
  20523. "type": "string"
  20524. },
  20525. "mimeType": {
  20526. "type": "string"
  20527. }
  20528. },
  20529. "required": [
  20530. "server",
  20531. "name",
  20532. "uri"
  20533. ],
  20534. "additionalProperties": false
  20535. },
  20536. "Mcp.ResourceTemplate": {
  20537. "type": "object",
  20538. "properties": {
  20539. "server": {
  20540. "type": "string"
  20541. },
  20542. "name": {
  20543. "type": "string"
  20544. },
  20545. "uriTemplate": {
  20546. "type": "string"
  20547. },
  20548. "description": {
  20549. "type": "string"
  20550. },
  20551. "mimeType": {
  20552. "type": "string"
  20553. }
  20554. },
  20555. "required": [
  20556. "server",
  20557. "name",
  20558. "uriTemplate"
  20559. ],
  20560. "additionalProperties": false
  20561. },
  20562. "Mcp.ResourceCatalog": {
  20563. "type": "object",
  20564. "properties": {
  20565. "resources": {
  20566. "type": "array",
  20567. "items": {
  20568. "$ref": "#/components/schemas/Mcp.Resource"
  20569. }
  20570. },
  20571. "templates": {
  20572. "type": "array",
  20573. "items": {
  20574. "$ref": "#/components/schemas/Mcp.ResourceTemplate"
  20575. }
  20576. }
  20577. },
  20578. "required": [
  20579. "resources",
  20580. "templates"
  20581. ],
  20582. "additionalProperties": false
  20583. },
  20584. "Project.Vcs": {
  20585. "type": "string",
  20586. "enum": [
  20587. "git",
  20588. "hg"
  20589. ]
  20590. },
  20591. "Project.Icon": {
  20592. "type": "object",
  20593. "properties": {
  20594. "url": {
  20595. "type": "string"
  20596. },
  20597. "override": {
  20598. "type": "string"
  20599. },
  20600. "color": {
  20601. "type": "string"
  20602. }
  20603. },
  20604. "additionalProperties": false
  20605. },
  20606. "Project.Commands": {
  20607. "type": "object",
  20608. "properties": {
  20609. "start": {
  20610. "type": "string",
  20611. "description": "Startup script to run when creating a new workspace (worktree)"
  20612. }
  20613. },
  20614. "additionalProperties": false
  20615. },
  20616. "Project.Time": {
  20617. "type": "object",
  20618. "properties": {
  20619. "created": {
  20620. "type": "integer",
  20621. "allOf": [
  20622. {
  20623. "minimum": 0
  20624. }
  20625. ]
  20626. },
  20627. "updated": {
  20628. "type": "integer",
  20629. "allOf": [
  20630. {
  20631. "minimum": 0
  20632. }
  20633. ]
  20634. },
  20635. "initialized": {
  20636. "type": "integer",
  20637. "allOf": [
  20638. {
  20639. "minimum": 0
  20640. }
  20641. ]
  20642. }
  20643. },
  20644. "required": [
  20645. "created",
  20646. "updated"
  20647. ],
  20648. "additionalProperties": false
  20649. },
  20650. "Project": {
  20651. "type": "object",
  20652. "properties": {
  20653. "id": {
  20654. "type": "string"
  20655. },
  20656. "worktree": {
  20657. "type": "string"
  20658. },
  20659. "vcs": {
  20660. "$ref": "#/components/schemas/Project.Vcs"
  20661. },
  20662. "name": {
  20663. "type": "string"
  20664. },
  20665. "icon": {
  20666. "$ref": "#/components/schemas/Project.Icon"
  20667. },
  20668. "commands": {
  20669. "$ref": "#/components/schemas/Project.Commands"
  20670. },
  20671. "time": {
  20672. "$ref": "#/components/schemas/Project.Time"
  20673. },
  20674. "sandboxes": {
  20675. "type": "array",
  20676. "items": {
  20677. "type": "string"
  20678. }
  20679. }
  20680. },
  20681. "required": [
  20682. "id",
  20683. "worktree",
  20684. "time",
  20685. "sandboxes"
  20686. ],
  20687. "additionalProperties": false
  20688. },
  20689. "Project.Current": {
  20690. "type": "object",
  20691. "properties": {
  20692. "id": {
  20693. "type": "string"
  20694. },
  20695. "directory": {
  20696. "type": "string"
  20697. }
  20698. },
  20699. "required": [
  20700. "id",
  20701. "directory"
  20702. ],
  20703. "additionalProperties": false
  20704. },
  20705. "Project.Directory": {
  20706. "type": "object",
  20707. "properties": {
  20708. "directory": {
  20709. "type": "string"
  20710. },
  20711. "strategy": {
  20712. "type": "string"
  20713. }
  20714. },
  20715. "required": [
  20716. "directory"
  20717. ],
  20718. "additionalProperties": false
  20719. },
  20720. "Project.Directories": {
  20721. "type": "array",
  20722. "items": {
  20723. "$ref": "#/components/schemas/Project.Directory"
  20724. }
  20725. },
  20726. "Form.Metadata": {
  20727. "type": "object"
  20728. },
  20729. "Form.When": {
  20730. "type": "object",
  20731. "properties": {
  20732. "key": {
  20733. "type": "string"
  20734. },
  20735. "op": {
  20736. "type": "string",
  20737. "enum": [
  20738. "eq",
  20739. "neq"
  20740. ]
  20741. },
  20742. "value": {
  20743. "anyOf": [
  20744. {
  20745. "type": "string"
  20746. },
  20747. {
  20748. "anyOf": [
  20749. {
  20750. "anyOf": [
  20751. {
  20752. "type": "number"
  20753. },
  20754. {
  20755. "type": "string",
  20756. "enum": [
  20757. "NaN"
  20758. ]
  20759. },
  20760. {
  20761. "type": "string",
  20762. "enum": [
  20763. "Infinity"
  20764. ]
  20765. },
  20766. {
  20767. "type": "string",
  20768. "enum": [
  20769. "-Infinity"
  20770. ]
  20771. }
  20772. ]
  20773. },
  20774. {
  20775. "type": "string",
  20776. "enum": [
  20777. "Infinity",
  20778. "-Infinity",
  20779. "NaN"
  20780. ]
  20781. }
  20782. ]
  20783. },
  20784. {
  20785. "type": "boolean"
  20786. }
  20787. ]
  20788. }
  20789. },
  20790. "required": [
  20791. "key",
  20792. "op",
  20793. "value"
  20794. ],
  20795. "additionalProperties": false
  20796. },
  20797. "Form.Option": {
  20798. "type": "object",
  20799. "properties": {
  20800. "value": {
  20801. "type": "string"
  20802. },
  20803. "label": {
  20804. "type": "string"
  20805. },
  20806. "description": {
  20807. "type": "string"
  20808. }
  20809. },
  20810. "required": [
  20811. "value",
  20812. "label"
  20813. ],
  20814. "additionalProperties": false
  20815. },
  20816. "Form.StringField": {
  20817. "type": "object",
  20818. "properties": {
  20819. "key": {
  20820. "type": "string"
  20821. },
  20822. "title": {
  20823. "type": "string"
  20824. },
  20825. "description": {
  20826. "type": "string"
  20827. },
  20828. "required": {
  20829. "type": "boolean"
  20830. },
  20831. "when": {
  20832. "type": "array",
  20833. "items": {
  20834. "$ref": "#/components/schemas/Form.When"
  20835. }
  20836. },
  20837. "type": {
  20838. "type": "string",
  20839. "enum": [
  20840. "string"
  20841. ]
  20842. },
  20843. "format": {
  20844. "type": "string",
  20845. "enum": [
  20846. "email",
  20847. "uri",
  20848. "date",
  20849. "date-time"
  20850. ]
  20851. },
  20852. "minLength": {
  20853. "type": "integer",
  20854. "allOf": [
  20855. {
  20856. "minimum": 0
  20857. }
  20858. ]
  20859. },
  20860. "maxLength": {
  20861. "type": "integer",
  20862. "allOf": [
  20863. {
  20864. "minimum": 0
  20865. }
  20866. ]
  20867. },
  20868. "pattern": {
  20869. "type": "string"
  20870. },
  20871. "placeholder": {
  20872. "type": "string"
  20873. },
  20874. "default": {
  20875. "type": "string"
  20876. },
  20877. "options": {
  20878. "type": "array",
  20879. "items": {
  20880. "$ref": "#/components/schemas/Form.Option"
  20881. }
  20882. },
  20883. "custom": {
  20884. "type": "boolean"
  20885. }
  20886. },
  20887. "required": [
  20888. "key",
  20889. "type"
  20890. ],
  20891. "additionalProperties": false
  20892. },
  20893. "Form.NumberField": {
  20894. "type": "object",
  20895. "properties": {
  20896. "key": {
  20897. "type": "string"
  20898. },
  20899. "title": {
  20900. "type": "string"
  20901. },
  20902. "description": {
  20903. "type": "string"
  20904. },
  20905. "required": {
  20906. "type": "boolean"
  20907. },
  20908. "when": {
  20909. "type": "array",
  20910. "items": {
  20911. "$ref": "#/components/schemas/Form.When"
  20912. }
  20913. },
  20914. "type": {
  20915. "type": "string",
  20916. "enum": [
  20917. "number"
  20918. ]
  20919. },
  20920. "minimum": {
  20921. "anyOf": [
  20922. {
  20923. "anyOf": [
  20924. {
  20925. "type": "number"
  20926. },
  20927. {
  20928. "type": "string",
  20929. "enum": [
  20930. "NaN"
  20931. ]
  20932. },
  20933. {
  20934. "type": "string",
  20935. "enum": [
  20936. "Infinity"
  20937. ]
  20938. },
  20939. {
  20940. "type": "string",
  20941. "enum": [
  20942. "-Infinity"
  20943. ]
  20944. }
  20945. ]
  20946. },
  20947. {
  20948. "type": "string",
  20949. "enum": [
  20950. "Infinity",
  20951. "-Infinity",
  20952. "NaN"
  20953. ]
  20954. }
  20955. ]
  20956. },
  20957. "maximum": {
  20958. "anyOf": [
  20959. {
  20960. "anyOf": [
  20961. {
  20962. "type": "number"
  20963. },
  20964. {
  20965. "type": "string",
  20966. "enum": [
  20967. "NaN"
  20968. ]
  20969. },
  20970. {
  20971. "type": "string",
  20972. "enum": [
  20973. "Infinity"
  20974. ]
  20975. },
  20976. {
  20977. "type": "string",
  20978. "enum": [
  20979. "-Infinity"
  20980. ]
  20981. }
  20982. ]
  20983. },
  20984. {
  20985. "type": "string",
  20986. "enum": [
  20987. "Infinity",
  20988. "-Infinity",
  20989. "NaN"
  20990. ]
  20991. }
  20992. ]
  20993. },
  20994. "default": {
  20995. "anyOf": [
  20996. {
  20997. "anyOf": [
  20998. {
  20999. "type": "number"
  21000. },
  21001. {
  21002. "type": "string",
  21003. "enum": [
  21004. "NaN"
  21005. ]
  21006. },
  21007. {
  21008. "type": "string",
  21009. "enum": [
  21010. "Infinity"
  21011. ]
  21012. },
  21013. {
  21014. "type": "string",
  21015. "enum": [
  21016. "-Infinity"
  21017. ]
  21018. }
  21019. ]
  21020. },
  21021. {
  21022. "type": "string",
  21023. "enum": [
  21024. "Infinity",
  21025. "-Infinity",
  21026. "NaN"
  21027. ]
  21028. }
  21029. ]
  21030. }
  21031. },
  21032. "required": [
  21033. "key",
  21034. "type"
  21035. ],
  21036. "additionalProperties": false
  21037. },
  21038. "Form.IntegerField": {
  21039. "type": "object",
  21040. "properties": {
  21041. "key": {
  21042. "type": "string"
  21043. },
  21044. "title": {
  21045. "type": "string"
  21046. },
  21047. "description": {
  21048. "type": "string"
  21049. },
  21050. "required": {
  21051. "type": "boolean"
  21052. },
  21053. "when": {
  21054. "type": "array",
  21055. "items": {
  21056. "$ref": "#/components/schemas/Form.When"
  21057. }
  21058. },
  21059. "type": {
  21060. "type": "string",
  21061. "enum": [
  21062. "integer"
  21063. ]
  21064. },
  21065. "minimum": {
  21066. "anyOf": [
  21067. {
  21068. "anyOf": [
  21069. {
  21070. "type": "number"
  21071. },
  21072. {
  21073. "type": "string",
  21074. "enum": [
  21075. "NaN"
  21076. ]
  21077. },
  21078. {
  21079. "type": "string",
  21080. "enum": [
  21081. "Infinity"
  21082. ]
  21083. },
  21084. {
  21085. "type": "string",
  21086. "enum": [
  21087. "-Infinity"
  21088. ]
  21089. }
  21090. ]
  21091. },
  21092. {
  21093. "type": "string",
  21094. "enum": [
  21095. "Infinity",
  21096. "-Infinity",
  21097. "NaN"
  21098. ]
  21099. }
  21100. ]
  21101. },
  21102. "maximum": {
  21103. "anyOf": [
  21104. {
  21105. "anyOf": [
  21106. {
  21107. "type": "number"
  21108. },
  21109. {
  21110. "type": "string",
  21111. "enum": [
  21112. "NaN"
  21113. ]
  21114. },
  21115. {
  21116. "type": "string",
  21117. "enum": [
  21118. "Infinity"
  21119. ]
  21120. },
  21121. {
  21122. "type": "string",
  21123. "enum": [
  21124. "-Infinity"
  21125. ]
  21126. }
  21127. ]
  21128. },
  21129. {
  21130. "type": "string",
  21131. "enum": [
  21132. "Infinity",
  21133. "-Infinity",
  21134. "NaN"
  21135. ]
  21136. }
  21137. ]
  21138. },
  21139. "default": {
  21140. "anyOf": [
  21141. {
  21142. "anyOf": [
  21143. {
  21144. "type": "number"
  21145. },
  21146. {
  21147. "type": "string",
  21148. "enum": [
  21149. "NaN"
  21150. ]
  21151. },
  21152. {
  21153. "type": "string",
  21154. "enum": [
  21155. "Infinity"
  21156. ]
  21157. },
  21158. {
  21159. "type": "string",
  21160. "enum": [
  21161. "-Infinity"
  21162. ]
  21163. }
  21164. ]
  21165. },
  21166. {
  21167. "type": "string",
  21168. "enum": [
  21169. "Infinity",
  21170. "-Infinity",
  21171. "NaN"
  21172. ]
  21173. }
  21174. ]
  21175. }
  21176. },
  21177. "required": [
  21178. "key",
  21179. "type"
  21180. ],
  21181. "additionalProperties": false
  21182. },
  21183. "Form.BooleanField": {
  21184. "type": "object",
  21185. "properties": {
  21186. "key": {
  21187. "type": "string"
  21188. },
  21189. "title": {
  21190. "type": "string"
  21191. },
  21192. "description": {
  21193. "type": "string"
  21194. },
  21195. "required": {
  21196. "type": "boolean"
  21197. },
  21198. "when": {
  21199. "type": "array",
  21200. "items": {
  21201. "$ref": "#/components/schemas/Form.When"
  21202. }
  21203. },
  21204. "type": {
  21205. "type": "string",
  21206. "enum": [
  21207. "boolean"
  21208. ]
  21209. },
  21210. "default": {
  21211. "type": "boolean"
  21212. }
  21213. },
  21214. "required": [
  21215. "key",
  21216. "type"
  21217. ],
  21218. "additionalProperties": false
  21219. },
  21220. "Form.MultiselectField": {
  21221. "type": "object",
  21222. "properties": {
  21223. "key": {
  21224. "type": "string"
  21225. },
  21226. "title": {
  21227. "type": "string"
  21228. },
  21229. "description": {
  21230. "type": "string"
  21231. },
  21232. "required": {
  21233. "type": "boolean"
  21234. },
  21235. "when": {
  21236. "type": "array",
  21237. "items": {
  21238. "$ref": "#/components/schemas/Form.When"
  21239. }
  21240. },
  21241. "type": {
  21242. "type": "string",
  21243. "enum": [
  21244. "multiselect"
  21245. ]
  21246. },
  21247. "options": {
  21248. "type": "array",
  21249. "items": {
  21250. "$ref": "#/components/schemas/Form.Option"
  21251. }
  21252. },
  21253. "minItems": {
  21254. "type": "integer",
  21255. "allOf": [
  21256. {
  21257. "minimum": 0
  21258. }
  21259. ]
  21260. },
  21261. "maxItems": {
  21262. "type": "integer",
  21263. "allOf": [
  21264. {
  21265. "minimum": 0
  21266. }
  21267. ]
  21268. },
  21269. "custom": {
  21270. "type": "boolean"
  21271. },
  21272. "default": {
  21273. "type": "array",
  21274. "items": {
  21275. "type": "string"
  21276. }
  21277. }
  21278. },
  21279. "required": [
  21280. "key",
  21281. "type",
  21282. "options"
  21283. ],
  21284. "additionalProperties": false
  21285. },
  21286. "Form.ExternalField": {
  21287. "type": "object",
  21288. "properties": {
  21289. "key": {
  21290. "type": "string"
  21291. },
  21292. "type": {
  21293. "type": "string",
  21294. "enum": [
  21295. "external"
  21296. ]
  21297. },
  21298. "url": {
  21299. "type": "string"
  21300. },
  21301. "title": {
  21302. "type": "string"
  21303. },
  21304. "description": {
  21305. "type": "string"
  21306. }
  21307. },
  21308. "required": [
  21309. "key",
  21310. "type",
  21311. "url"
  21312. ],
  21313. "additionalProperties": false
  21314. },
  21315. "Form.Field": {
  21316. "anyOf": [
  21317. {
  21318. "$ref": "#/components/schemas/Form.StringField"
  21319. },
  21320. {
  21321. "$ref": "#/components/schemas/Form.NumberField"
  21322. },
  21323. {
  21324. "$ref": "#/components/schemas/Form.IntegerField"
  21325. },
  21326. {
  21327. "$ref": "#/components/schemas/Form.BooleanField"
  21328. },
  21329. {
  21330. "$ref": "#/components/schemas/Form.MultiselectField"
  21331. },
  21332. {
  21333. "$ref": "#/components/schemas/Form.ExternalField"
  21334. }
  21335. ]
  21336. },
  21337. "Form.Fields": {
  21338. "type": "array",
  21339. "prefixItems": [
  21340. {
  21341. "$ref": "#/components/schemas/Form.Field"
  21342. }
  21343. ],
  21344. "minItems": 1,
  21345. "items": {
  21346. "$ref": "#/components/schemas/Form.Field"
  21347. }
  21348. },
  21349. "Form.Info": {
  21350. "type": "object",
  21351. "properties": {
  21352. "id": {
  21353. "type": "string",
  21354. "allOf": [
  21355. {
  21356. "pattern": "^frm_"
  21357. }
  21358. ]
  21359. },
  21360. "sessionID": {
  21361. "type": "string"
  21362. },
  21363. "title": {
  21364. "type": "string"
  21365. },
  21366. "metadata": {
  21367. "$ref": "#/components/schemas/Form.Metadata"
  21368. },
  21369. "fields": {
  21370. "$ref": "#/components/schemas/Form.Fields"
  21371. }
  21372. },
  21373. "required": [
  21374. "id",
  21375. "sessionID",
  21376. "title",
  21377. "fields"
  21378. ],
  21379. "additionalProperties": false
  21380. },
  21381. "Form.CreatePayload": {
  21382. "type": "object",
  21383. "properties": {
  21384. "id": {
  21385. "anyOf": [
  21386. {
  21387. "type": "string",
  21388. "allOf": [
  21389. {
  21390. "pattern": "^frm_"
  21391. }
  21392. ]
  21393. },
  21394. {
  21395. "type": "null"
  21396. }
  21397. ]
  21398. },
  21399. "title": {
  21400. "type": "string"
  21401. },
  21402. "metadata": {
  21403. "$ref": "#/components/schemas/Form.Metadata"
  21404. },
  21405. "fields": {
  21406. "$ref": "#/components/schemas/Form.Fields"
  21407. }
  21408. },
  21409. "required": [
  21410. "title",
  21411. "fields"
  21412. ],
  21413. "additionalProperties": false
  21414. },
  21415. "FormNotFoundError": {
  21416. "type": "object",
  21417. "properties": {
  21418. "_tag": {
  21419. "type": "string",
  21420. "enum": [
  21421. "FormNotFoundError"
  21422. ]
  21423. },
  21424. "id": {
  21425. "type": "string"
  21426. },
  21427. "message": {
  21428. "type": "string"
  21429. }
  21430. },
  21431. "required": [
  21432. "_tag",
  21433. "id",
  21434. "message"
  21435. ],
  21436. "additionalProperties": false
  21437. },
  21438. "Form.Value": {
  21439. "anyOf": [
  21440. {
  21441. "type": "string"
  21442. },
  21443. {
  21444. "anyOf": [
  21445. {
  21446. "anyOf": [
  21447. {
  21448. "type": "number"
  21449. },
  21450. {
  21451. "type": "string",
  21452. "enum": [
  21453. "NaN"
  21454. ]
  21455. },
  21456. {
  21457. "type": "string",
  21458. "enum": [
  21459. "Infinity"
  21460. ]
  21461. },
  21462. {
  21463. "type": "string",
  21464. "enum": [
  21465. "-Infinity"
  21466. ]
  21467. }
  21468. ]
  21469. },
  21470. {
  21471. "type": "string",
  21472. "enum": [
  21473. "Infinity",
  21474. "-Infinity",
  21475. "NaN"
  21476. ]
  21477. }
  21478. ]
  21479. },
  21480. {
  21481. "type": "boolean"
  21482. },
  21483. {
  21484. "type": "array",
  21485. "items": {
  21486. "type": "string"
  21487. }
  21488. }
  21489. ]
  21490. },
  21491. "Form.Answer": {
  21492. "type": "object",
  21493. "additionalProperties": {
  21494. "$ref": "#/components/schemas/Form.Value"
  21495. }
  21496. },
  21497. "Form.State": {
  21498. "anyOf": [
  21499. {
  21500. "type": "object",
  21501. "properties": {
  21502. "status": {
  21503. "type": "string",
  21504. "enum": [
  21505. "pending"
  21506. ]
  21507. }
  21508. },
  21509. "required": [
  21510. "status"
  21511. ],
  21512. "additionalProperties": false
  21513. },
  21514. {
  21515. "type": "object",
  21516. "properties": {
  21517. "status": {
  21518. "type": "string",
  21519. "enum": [
  21520. "answered"
  21521. ]
  21522. },
  21523. "answer": {
  21524. "$ref": "#/components/schemas/Form.Answer"
  21525. }
  21526. },
  21527. "required": [
  21528. "status",
  21529. "answer"
  21530. ],
  21531. "additionalProperties": false
  21532. },
  21533. {
  21534. "type": "object",
  21535. "properties": {
  21536. "status": {
  21537. "type": "string",
  21538. "enum": [
  21539. "cancelled"
  21540. ]
  21541. }
  21542. },
  21543. "required": [
  21544. "status"
  21545. ],
  21546. "additionalProperties": false
  21547. }
  21548. ]
  21549. },
  21550. "Form.Reply": {
  21551. "type": "object",
  21552. "properties": {
  21553. "answer": {
  21554. "$ref": "#/components/schemas/Form.Answer"
  21555. }
  21556. },
  21557. "required": [
  21558. "answer"
  21559. ],
  21560. "additionalProperties": false
  21561. },
  21562. "FormAlreadySettledError": {
  21563. "type": "object",
  21564. "properties": {
  21565. "_tag": {
  21566. "type": "string",
  21567. "enum": [
  21568. "FormAlreadySettledError"
  21569. ]
  21570. },
  21571. "id": {
  21572. "type": "string"
  21573. },
  21574. "message": {
  21575. "type": "string"
  21576. }
  21577. },
  21578. "required": [
  21579. "_tag",
  21580. "id",
  21581. "message"
  21582. ],
  21583. "additionalProperties": false
  21584. },
  21585. "FormInvalidAnswerError": {
  21586. "type": "object",
  21587. "properties": {
  21588. "_tag": {
  21589. "type": "string",
  21590. "enum": [
  21591. "FormInvalidAnswerError"
  21592. ]
  21593. },
  21594. "id": {
  21595. "type": "string"
  21596. },
  21597. "message": {
  21598. "type": "string"
  21599. }
  21600. },
  21601. "required": [
  21602. "_tag",
  21603. "id",
  21604. "message"
  21605. ],
  21606. "additionalProperties": false
  21607. },
  21608. "Permission.Source": {
  21609. "anyOf": [
  21610. {
  21611. "type": "object",
  21612. "properties": {
  21613. "type": {
  21614. "type": "string",
  21615. "enum": [
  21616. "tool"
  21617. ]
  21618. },
  21619. "messageID": {
  21620. "type": "string"
  21621. },
  21622. "callID": {
  21623. "type": "string"
  21624. }
  21625. },
  21626. "required": [
  21627. "type",
  21628. "messageID",
  21629. "callID"
  21630. ],
  21631. "additionalProperties": false
  21632. }
  21633. ]
  21634. },
  21635. "Permission.Request": {
  21636. "type": "object",
  21637. "properties": {
  21638. "id": {
  21639. "type": "string",
  21640. "allOf": [
  21641. {
  21642. "pattern": "^per"
  21643. }
  21644. ]
  21645. },
  21646. "sessionID": {
  21647. "type": "string",
  21648. "allOf": [
  21649. {
  21650. "pattern": "^ses"
  21651. }
  21652. ]
  21653. },
  21654. "action": {
  21655. "type": "string"
  21656. },
  21657. "resources": {
  21658. "type": "array",
  21659. "items": {
  21660. "type": "string"
  21661. }
  21662. },
  21663. "save": {
  21664. "type": "array",
  21665. "items": {
  21666. "type": "string"
  21667. }
  21668. },
  21669. "metadata": {
  21670. "type": "object"
  21671. },
  21672. "source": {
  21673. "$ref": "#/components/schemas/Permission.Source"
  21674. }
  21675. },
  21676. "required": [
  21677. "id",
  21678. "sessionID",
  21679. "action",
  21680. "resources"
  21681. ],
  21682. "additionalProperties": false
  21683. },
  21684. "PermissionSaved.Info": {
  21685. "type": "object",
  21686. "properties": {
  21687. "id": {
  21688. "type": "string"
  21689. },
  21690. "projectID": {
  21691. "type": "string"
  21692. },
  21693. "action": {
  21694. "type": "string"
  21695. },
  21696. "resource": {
  21697. "type": "string"
  21698. }
  21699. },
  21700. "required": [
  21701. "id",
  21702. "projectID",
  21703. "action",
  21704. "resource"
  21705. ],
  21706. "additionalProperties": false
  21707. },
  21708. "PermissionNotFoundError": {
  21709. "type": "object",
  21710. "properties": {
  21711. "_tag": {
  21712. "type": "string",
  21713. "enum": [
  21714. "PermissionNotFoundError"
  21715. ]
  21716. },
  21717. "requestID": {
  21718. "type": "string"
  21719. },
  21720. "message": {
  21721. "type": "string"
  21722. }
  21723. },
  21724. "required": [
  21725. "_tag",
  21726. "requestID",
  21727. "message"
  21728. ],
  21729. "additionalProperties": false
  21730. },
  21731. "Permission.Reply": {
  21732. "type": "string",
  21733. "enum": [
  21734. "once",
  21735. "always",
  21736. "reject"
  21737. ]
  21738. },
  21739. "FileSystem.Entry": {
  21740. "type": "object",
  21741. "properties": {
  21742. "path": {
  21743. "type": "string"
  21744. },
  21745. "type": {
  21746. "type": "string",
  21747. "enum": [
  21748. "file",
  21749. "directory"
  21750. ]
  21751. }
  21752. },
  21753. "required": [
  21754. "path",
  21755. "type"
  21756. ],
  21757. "additionalProperties": false
  21758. },
  21759. "Command.Info": {
  21760. "type": "object",
  21761. "properties": {
  21762. "name": {
  21763. "type": "string"
  21764. },
  21765. "template": {
  21766. "type": "string"
  21767. },
  21768. "description": {
  21769. "type": "string"
  21770. },
  21771. "agent": {
  21772. "type": "string"
  21773. },
  21774. "model": {
  21775. "$ref": "#/components/schemas/Model.Ref"
  21776. },
  21777. "subtask": {
  21778. "type": "boolean"
  21779. }
  21780. },
  21781. "required": [
  21782. "name",
  21783. "template"
  21784. ],
  21785. "additionalProperties": false
  21786. },
  21787. "Skill.Info": {
  21788. "type": "object",
  21789. "properties": {
  21790. "id": {
  21791. "type": "string"
  21792. },
  21793. "name": {
  21794. "type": "string"
  21795. },
  21796. "description": {
  21797. "type": "string"
  21798. },
  21799. "slash": {
  21800. "type": "boolean"
  21801. },
  21802. "autoinvoke": {
  21803. "type": "boolean"
  21804. },
  21805. "location": {
  21806. "type": "string"
  21807. },
  21808. "content": {
  21809. "type": "string"
  21810. }
  21811. },
  21812. "required": [
  21813. "id",
  21814. "name",
  21815. "location",
  21816. "content"
  21817. ],
  21818. "additionalProperties": false
  21819. },
  21820. "models-dev.refreshed": {
  21821. "type": "object",
  21822. "properties": {
  21823. "id": {
  21824. "type": "string",
  21825. "allOf": [
  21826. {
  21827. "pattern": "^evt_"
  21828. }
  21829. ]
  21830. },
  21831. "created": {
  21832. "type": "number"
  21833. },
  21834. "metadata": {
  21835. "type": "object"
  21836. },
  21837. "type": {
  21838. "type": "string",
  21839. "enum": [
  21840. "models-dev.refreshed"
  21841. ]
  21842. },
  21843. "location": {
  21844. "$ref": "#/components/schemas/Location.Ref"
  21845. },
  21846. "data": {
  21847. "anyOf": [
  21848. {
  21849. "type": "object"
  21850. },
  21851. {
  21852. "type": "array"
  21853. }
  21854. ]
  21855. }
  21856. },
  21857. "required": [
  21858. "id",
  21859. "created",
  21860. "type",
  21861. "data"
  21862. ],
  21863. "additionalProperties": false
  21864. },
  21865. "integration.updated": {
  21866. "type": "object",
  21867. "properties": {
  21868. "id": {
  21869. "type": "string",
  21870. "allOf": [
  21871. {
  21872. "pattern": "^evt_"
  21873. }
  21874. ]
  21875. },
  21876. "created": {
  21877. "type": "number"
  21878. },
  21879. "metadata": {
  21880. "type": "object"
  21881. },
  21882. "type": {
  21883. "type": "string",
  21884. "enum": [
  21885. "integration.updated"
  21886. ]
  21887. },
  21888. "location": {
  21889. "$ref": "#/components/schemas/Location.Ref"
  21890. },
  21891. "data": {
  21892. "anyOf": [
  21893. {
  21894. "type": "object"
  21895. },
  21896. {
  21897. "type": "array"
  21898. }
  21899. ]
  21900. }
  21901. },
  21902. "required": [
  21903. "id",
  21904. "created",
  21905. "type",
  21906. "data"
  21907. ],
  21908. "additionalProperties": false
  21909. },
  21910. "integration.connection.updated": {
  21911. "type": "object",
  21912. "properties": {
  21913. "id": {
  21914. "type": "string",
  21915. "allOf": [
  21916. {
  21917. "pattern": "^evt_"
  21918. }
  21919. ]
  21920. },
  21921. "created": {
  21922. "type": "number"
  21923. },
  21924. "metadata": {
  21925. "type": "object"
  21926. },
  21927. "type": {
  21928. "type": "string",
  21929. "enum": [
  21930. "integration.connection.updated"
  21931. ]
  21932. },
  21933. "location": {
  21934. "$ref": "#/components/schemas/Location.Ref"
  21935. },
  21936. "data": {
  21937. "type": "object",
  21938. "properties": {
  21939. "integrationID": {
  21940. "type": "string"
  21941. }
  21942. },
  21943. "required": [
  21944. "integrationID"
  21945. ],
  21946. "additionalProperties": false
  21947. }
  21948. },
  21949. "required": [
  21950. "id",
  21951. "created",
  21952. "type",
  21953. "data"
  21954. ],
  21955. "additionalProperties": false
  21956. },
  21957. "catalog.updated": {
  21958. "type": "object",
  21959. "properties": {
  21960. "id": {
  21961. "type": "string",
  21962. "allOf": [
  21963. {
  21964. "pattern": "^evt_"
  21965. }
  21966. ]
  21967. },
  21968. "created": {
  21969. "type": "number"
  21970. },
  21971. "metadata": {
  21972. "type": "object"
  21973. },
  21974. "type": {
  21975. "type": "string",
  21976. "enum": [
  21977. "catalog.updated"
  21978. ]
  21979. },
  21980. "location": {
  21981. "$ref": "#/components/schemas/Location.Ref"
  21982. },
  21983. "data": {
  21984. "anyOf": [
  21985. {
  21986. "type": "object"
  21987. },
  21988. {
  21989. "type": "array"
  21990. }
  21991. ]
  21992. }
  21993. },
  21994. "required": [
  21995. "id",
  21996. "created",
  21997. "type",
  21998. "data"
  21999. ],
  22000. "additionalProperties": false
  22001. },
  22002. "agent.updated": {
  22003. "type": "object",
  22004. "properties": {
  22005. "id": {
  22006. "type": "string",
  22007. "allOf": [
  22008. {
  22009. "pattern": "^evt_"
  22010. }
  22011. ]
  22012. },
  22013. "created": {
  22014. "type": "number"
  22015. },
  22016. "metadata": {
  22017. "type": "object"
  22018. },
  22019. "type": {
  22020. "type": "string",
  22021. "enum": [
  22022. "agent.updated"
  22023. ]
  22024. },
  22025. "location": {
  22026. "$ref": "#/components/schemas/Location.Ref"
  22027. },
  22028. "data": {
  22029. "anyOf": [
  22030. {
  22031. "type": "object"
  22032. },
  22033. {
  22034. "type": "array"
  22035. }
  22036. ]
  22037. }
  22038. },
  22039. "required": [
  22040. "id",
  22041. "created",
  22042. "type",
  22043. "data"
  22044. ],
  22045. "additionalProperties": false
  22046. },
  22047. "FileDiff.LegacyInfo": {
  22048. "type": "object",
  22049. "properties": {
  22050. "file": {
  22051. "type": "string"
  22052. },
  22053. "patch": {
  22054. "type": "string"
  22055. },
  22056. "additions": {
  22057. "type": "number"
  22058. },
  22059. "deletions": {
  22060. "type": "number"
  22061. },
  22062. "status": {
  22063. "type": "string",
  22064. "enum": [
  22065. "added",
  22066. "deleted",
  22067. "modified"
  22068. ]
  22069. }
  22070. },
  22071. "required": [
  22072. "additions",
  22073. "deletions"
  22074. ],
  22075. "additionalProperties": false
  22076. },
  22077. "PermissionV1.Action": {
  22078. "type": "string",
  22079. "enum": [
  22080. "allow",
  22081. "deny",
  22082. "ask"
  22083. ]
  22084. },
  22085. "PermissionV1.Rule": {
  22086. "type": "object",
  22087. "properties": {
  22088. "permission": {
  22089. "type": "string"
  22090. },
  22091. "pattern": {
  22092. "type": "string"
  22093. },
  22094. "action": {
  22095. "$ref": "#/components/schemas/PermissionV1.Action"
  22096. }
  22097. },
  22098. "required": [
  22099. "permission",
  22100. "pattern",
  22101. "action"
  22102. ],
  22103. "additionalProperties": false
  22104. },
  22105. "PermissionV1.Ruleset": {
  22106. "type": "array",
  22107. "items": {
  22108. "$ref": "#/components/schemas/PermissionV1.Rule"
  22109. }
  22110. },
  22111. "SessionV1.Info": {
  22112. "type": "object",
  22113. "properties": {
  22114. "id": {
  22115. "type": "string",
  22116. "allOf": [
  22117. {
  22118. "pattern": "^ses"
  22119. }
  22120. ]
  22121. },
  22122. "slug": {
  22123. "type": "string"
  22124. },
  22125. "projectID": {
  22126. "type": "string"
  22127. },
  22128. "workspaceID": {
  22129. "type": "string",
  22130. "allOf": [
  22131. {
  22132. "pattern": "^wrk"
  22133. }
  22134. ]
  22135. },
  22136. "directory": {
  22137. "type": "string"
  22138. },
  22139. "path": {
  22140. "type": "string"
  22141. },
  22142. "parentID": {
  22143. "type": "string",
  22144. "allOf": [
  22145. {
  22146. "pattern": "^ses"
  22147. }
  22148. ]
  22149. },
  22150. "summary": {
  22151. "type": "object",
  22152. "properties": {
  22153. "additions": {
  22154. "type": "number"
  22155. },
  22156. "deletions": {
  22157. "type": "number"
  22158. },
  22159. "files": {
  22160. "type": "number"
  22161. },
  22162. "diffs": {
  22163. "type": "array",
  22164. "items": {
  22165. "$ref": "#/components/schemas/FileDiff.LegacyInfo"
  22166. }
  22167. }
  22168. },
  22169. "required": [
  22170. "additions",
  22171. "deletions",
  22172. "files"
  22173. ],
  22174. "additionalProperties": false
  22175. },
  22176. "cost": {
  22177. "type": "number"
  22178. },
  22179. "tokens": {
  22180. "type": "object",
  22181. "properties": {
  22182. "input": {
  22183. "type": "number"
  22184. },
  22185. "output": {
  22186. "type": "number"
  22187. },
  22188. "reasoning": {
  22189. "type": "number"
  22190. },
  22191. "cache": {
  22192. "type": "object",
  22193. "properties": {
  22194. "read": {
  22195. "type": "number"
  22196. },
  22197. "write": {
  22198. "type": "number"
  22199. }
  22200. },
  22201. "required": [
  22202. "read",
  22203. "write"
  22204. ],
  22205. "additionalProperties": false
  22206. }
  22207. },
  22208. "required": [
  22209. "input",
  22210. "output",
  22211. "reasoning",
  22212. "cache"
  22213. ],
  22214. "additionalProperties": false
  22215. },
  22216. "share": {
  22217. "type": "object",
  22218. "properties": {
  22219. "url": {
  22220. "type": "string"
  22221. }
  22222. },
  22223. "required": [
  22224. "url"
  22225. ],
  22226. "additionalProperties": false
  22227. },
  22228. "title": {
  22229. "type": "string"
  22230. },
  22231. "agent": {
  22232. "type": "string"
  22233. },
  22234. "model": {
  22235. "type": "object",
  22236. "properties": {
  22237. "id": {
  22238. "type": "string"
  22239. },
  22240. "providerID": {
  22241. "type": "string"
  22242. },
  22243. "variant": {
  22244. "type": "string"
  22245. }
  22246. },
  22247. "required": [
  22248. "id",
  22249. "providerID"
  22250. ],
  22251. "additionalProperties": false
  22252. },
  22253. "version": {
  22254. "type": "string"
  22255. },
  22256. "metadata": {
  22257. "type": "object"
  22258. },
  22259. "time": {
  22260. "type": "object",
  22261. "properties": {
  22262. "created": {
  22263. "type": "integer",
  22264. "allOf": [
  22265. {
  22266. "minimum": 0
  22267. }
  22268. ]
  22269. },
  22270. "updated": {
  22271. "type": "integer",
  22272. "allOf": [
  22273. {
  22274. "minimum": 0
  22275. }
  22276. ]
  22277. },
  22278. "compacting": {
  22279. "type": "integer",
  22280. "allOf": [
  22281. {
  22282. "minimum": 0
  22283. }
  22284. ]
  22285. },
  22286. "archived": {
  22287. "type": "number"
  22288. }
  22289. },
  22290. "required": [
  22291. "created",
  22292. "updated"
  22293. ],
  22294. "additionalProperties": false
  22295. },
  22296. "permission": {
  22297. "$ref": "#/components/schemas/PermissionV1.Ruleset"
  22298. },
  22299. "revert": {
  22300. "type": "object",
  22301. "properties": {
  22302. "messageID": {
  22303. "type": "string",
  22304. "allOf": [
  22305. {
  22306. "pattern": "^msg"
  22307. }
  22308. ]
  22309. },
  22310. "partID": {
  22311. "type": "string",
  22312. "allOf": [
  22313. {
  22314. "pattern": "^prt"
  22315. }
  22316. ]
  22317. },
  22318. "snapshot": {
  22319. "type": "string"
  22320. },
  22321. "diff": {
  22322. "type": "string"
  22323. }
  22324. },
  22325. "required": [
  22326. "messageID"
  22327. ],
  22328. "additionalProperties": false
  22329. }
  22330. },
  22331. "required": [
  22332. "id",
  22333. "slug",
  22334. "projectID",
  22335. "directory",
  22336. "title",
  22337. "version",
  22338. "time"
  22339. ],
  22340. "additionalProperties": false
  22341. },
  22342. "session.created": {
  22343. "type": "object",
  22344. "properties": {
  22345. "id": {
  22346. "type": "string",
  22347. "allOf": [
  22348. {
  22349. "pattern": "^evt_"
  22350. }
  22351. ]
  22352. },
  22353. "created": {
  22354. "type": "number"
  22355. },
  22356. "metadata": {
  22357. "type": "object"
  22358. },
  22359. "type": {
  22360. "type": "string",
  22361. "enum": [
  22362. "session.created"
  22363. ]
  22364. },
  22365. "durable": {
  22366. "type": "object",
  22367. "properties": {
  22368. "aggregateID": {
  22369. "type": "string"
  22370. },
  22371. "seq": {
  22372. "type": "integer",
  22373. "allOf": [
  22374. {
  22375. "minimum": 0
  22376. }
  22377. ]
  22378. },
  22379. "version": {
  22380. "type": "number",
  22381. "enum": [
  22382. 1
  22383. ]
  22384. }
  22385. },
  22386. "required": [
  22387. "aggregateID",
  22388. "seq",
  22389. "version"
  22390. ],
  22391. "additionalProperties": false
  22392. },
  22393. "location": {
  22394. "$ref": "#/components/schemas/Location.Ref"
  22395. },
  22396. "data": {
  22397. "type": "object",
  22398. "properties": {
  22399. "sessionID": {
  22400. "type": "string",
  22401. "allOf": [
  22402. {
  22403. "pattern": "^ses"
  22404. }
  22405. ]
  22406. },
  22407. "info": {
  22408. "$ref": "#/components/schemas/SessionV1.Info"
  22409. }
  22410. },
  22411. "required": [
  22412. "sessionID",
  22413. "info"
  22414. ],
  22415. "additionalProperties": false
  22416. }
  22417. },
  22418. "required": [
  22419. "id",
  22420. "created",
  22421. "type",
  22422. "durable",
  22423. "data"
  22424. ],
  22425. "additionalProperties": false
  22426. },
  22427. "session.updated": {
  22428. "type": "object",
  22429. "properties": {
  22430. "id": {
  22431. "type": "string",
  22432. "allOf": [
  22433. {
  22434. "pattern": "^evt_"
  22435. }
  22436. ]
  22437. },
  22438. "created": {
  22439. "type": "number"
  22440. },
  22441. "metadata": {
  22442. "type": "object"
  22443. },
  22444. "type": {
  22445. "type": "string",
  22446. "enum": [
  22447. "session.updated"
  22448. ]
  22449. },
  22450. "durable": {
  22451. "type": "object",
  22452. "properties": {
  22453. "aggregateID": {
  22454. "type": "string"
  22455. },
  22456. "seq": {
  22457. "type": "integer",
  22458. "allOf": [
  22459. {
  22460. "minimum": 0
  22461. }
  22462. ]
  22463. },
  22464. "version": {
  22465. "type": "number",
  22466. "enum": [
  22467. 1
  22468. ]
  22469. }
  22470. },
  22471. "required": [
  22472. "aggregateID",
  22473. "seq",
  22474. "version"
  22475. ],
  22476. "additionalProperties": false
  22477. },
  22478. "location": {
  22479. "$ref": "#/components/schemas/Location.Ref"
  22480. },
  22481. "data": {
  22482. "type": "object",
  22483. "properties": {
  22484. "sessionID": {
  22485. "type": "string",
  22486. "allOf": [
  22487. {
  22488. "pattern": "^ses"
  22489. }
  22490. ]
  22491. },
  22492. "info": {
  22493. "$ref": "#/components/schemas/SessionV1.Info"
  22494. }
  22495. },
  22496. "required": [
  22497. "sessionID",
  22498. "info"
  22499. ],
  22500. "additionalProperties": false
  22501. }
  22502. },
  22503. "required": [
  22504. "id",
  22505. "created",
  22506. "type",
  22507. "durable",
  22508. "data"
  22509. ],
  22510. "additionalProperties": false
  22511. },
  22512. "session.deleted1": {
  22513. "type": "object",
  22514. "properties": {
  22515. "id": {
  22516. "type": "string",
  22517. "allOf": [
  22518. {
  22519. "pattern": "^evt_"
  22520. }
  22521. ]
  22522. },
  22523. "created": {
  22524. "type": "number"
  22525. },
  22526. "metadata": {
  22527. "type": "object"
  22528. },
  22529. "type": {
  22530. "type": "string",
  22531. "enum": [
  22532. "session.deleted"
  22533. ]
  22534. },
  22535. "durable": {
  22536. "type": "object",
  22537. "properties": {
  22538. "aggregateID": {
  22539. "type": "string"
  22540. },
  22541. "seq": {
  22542. "type": "integer",
  22543. "allOf": [
  22544. {
  22545. "minimum": 0
  22546. }
  22547. ]
  22548. },
  22549. "version": {
  22550. "type": "number",
  22551. "enum": [
  22552. 1
  22553. ]
  22554. }
  22555. },
  22556. "required": [
  22557. "aggregateID",
  22558. "seq",
  22559. "version"
  22560. ],
  22561. "additionalProperties": false
  22562. },
  22563. "location": {
  22564. "$ref": "#/components/schemas/Location.Ref"
  22565. },
  22566. "data": {
  22567. "type": "object",
  22568. "properties": {
  22569. "sessionID": {
  22570. "type": "string",
  22571. "allOf": [
  22572. {
  22573. "pattern": "^ses"
  22574. }
  22575. ]
  22576. },
  22577. "info": {
  22578. "$ref": "#/components/schemas/SessionV1.Info"
  22579. }
  22580. },
  22581. "required": [
  22582. "sessionID",
  22583. "info"
  22584. ],
  22585. "additionalProperties": false
  22586. }
  22587. },
  22588. "required": [
  22589. "id",
  22590. "created",
  22591. "type",
  22592. "durable",
  22593. "data"
  22594. ],
  22595. "additionalProperties": false
  22596. },
  22597. "SessionV1.JSONSchema": {
  22598. "type": "object"
  22599. },
  22600. "SessionV1.OutputFormat": {
  22601. "anyOf": [
  22602. {
  22603. "type": "object",
  22604. "properties": {
  22605. "type": {
  22606. "type": "string",
  22607. "enum": [
  22608. "text"
  22609. ]
  22610. }
  22611. },
  22612. "required": [
  22613. "type"
  22614. ],
  22615. "additionalProperties": false
  22616. },
  22617. {
  22618. "type": "object",
  22619. "properties": {
  22620. "type": {
  22621. "type": "string",
  22622. "enum": [
  22623. "json_schema"
  22624. ]
  22625. },
  22626. "schema": {
  22627. "$ref": "#/components/schemas/SessionV1.JSONSchema"
  22628. },
  22629. "retryCount": {
  22630. "anyOf": [
  22631. {
  22632. "anyOf": [
  22633. {
  22634. "type": "integer",
  22635. "allOf": [
  22636. {
  22637. "minimum": 0
  22638. }
  22639. ]
  22640. },
  22641. {
  22642. "type": "null"
  22643. }
  22644. ]
  22645. },
  22646. {
  22647. "type": "null"
  22648. }
  22649. ]
  22650. }
  22651. },
  22652. "required": [
  22653. "type",
  22654. "schema"
  22655. ],
  22656. "additionalProperties": false
  22657. }
  22658. ]
  22659. },
  22660. "SessionV1.UserMessage": {
  22661. "type": "object",
  22662. "properties": {
  22663. "id": {
  22664. "type": "string",
  22665. "allOf": [
  22666. {
  22667. "pattern": "^msg"
  22668. }
  22669. ]
  22670. },
  22671. "sessionID": {
  22672. "type": "string",
  22673. "allOf": [
  22674. {
  22675. "pattern": "^ses"
  22676. }
  22677. ]
  22678. },
  22679. "role": {
  22680. "type": "string",
  22681. "enum": [
  22682. "user"
  22683. ]
  22684. },
  22685. "time": {
  22686. "type": "object",
  22687. "properties": {
  22688. "created": {
  22689. "type": "number",
  22690. "allOf": [
  22691. {
  22692. "minimum": 0
  22693. }
  22694. ]
  22695. }
  22696. },
  22697. "required": [
  22698. "created"
  22699. ],
  22700. "additionalProperties": false
  22701. },
  22702. "format": {
  22703. "anyOf": [
  22704. {
  22705. "$ref": "#/components/schemas/SessionV1.OutputFormat"
  22706. },
  22707. {
  22708. "type": "null"
  22709. }
  22710. ]
  22711. },
  22712. "summary": {
  22713. "anyOf": [
  22714. {
  22715. "type": "object",
  22716. "properties": {
  22717. "title": {
  22718. "anyOf": [
  22719. {
  22720. "type": "string"
  22721. },
  22722. {
  22723. "type": "null"
  22724. }
  22725. ]
  22726. },
  22727. "body": {
  22728. "anyOf": [
  22729. {
  22730. "type": "string"
  22731. },
  22732. {
  22733. "type": "null"
  22734. }
  22735. ]
  22736. },
  22737. "diffs": {
  22738. "type": "array",
  22739. "items": {
  22740. "$ref": "#/components/schemas/FileDiff.LegacyInfo"
  22741. }
  22742. }
  22743. },
  22744. "required": [
  22745. "diffs"
  22746. ],
  22747. "additionalProperties": false
  22748. },
  22749. {
  22750. "type": "null"
  22751. }
  22752. ]
  22753. },
  22754. "agent": {
  22755. "type": "string"
  22756. },
  22757. "model": {
  22758. "type": "object",
  22759. "properties": {
  22760. "providerID": {
  22761. "type": "string"
  22762. },
  22763. "modelID": {
  22764. "type": "string"
  22765. },
  22766. "variant": {
  22767. "anyOf": [
  22768. {
  22769. "type": "string"
  22770. },
  22771. {
  22772. "type": "null"
  22773. }
  22774. ]
  22775. }
  22776. },
  22777. "required": [
  22778. "providerID",
  22779. "modelID"
  22780. ],
  22781. "additionalProperties": false
  22782. },
  22783. "system": {
  22784. "anyOf": [
  22785. {
  22786. "type": "string"
  22787. },
  22788. {
  22789. "type": "null"
  22790. }
  22791. ]
  22792. },
  22793. "tools": {
  22794. "anyOf": [
  22795. {
  22796. "type": "object",
  22797. "additionalProperties": {
  22798. "type": "boolean"
  22799. }
  22800. },
  22801. {
  22802. "type": "null"
  22803. }
  22804. ]
  22805. }
  22806. },
  22807. "required": [
  22808. "id",
  22809. "sessionID",
  22810. "role",
  22811. "time",
  22812. "agent",
  22813. "model"
  22814. ],
  22815. "additionalProperties": false
  22816. },
  22817. "ProviderAuthError": {
  22818. "type": "object",
  22819. "properties": {
  22820. "name": {
  22821. "type": "string",
  22822. "enum": [
  22823. "ProviderAuthError"
  22824. ]
  22825. },
  22826. "data": {
  22827. "type": "object",
  22828. "properties": {
  22829. "providerID": {
  22830. "type": "string"
  22831. },
  22832. "message": {
  22833. "type": "string"
  22834. }
  22835. },
  22836. "required": [
  22837. "providerID",
  22838. "message"
  22839. ],
  22840. "additionalProperties": false
  22841. }
  22842. },
  22843. "required": [
  22844. "name",
  22845. "data"
  22846. ],
  22847. "additionalProperties": false
  22848. },
  22849. "UnknownError1": {
  22850. "type": "object",
  22851. "properties": {
  22852. "name": {
  22853. "type": "string",
  22854. "enum": [
  22855. "UnknownError"
  22856. ]
  22857. },
  22858. "data": {
  22859. "type": "object",
  22860. "properties": {
  22861. "message": {
  22862. "type": "string"
  22863. },
  22864. "ref": {
  22865. "anyOf": [
  22866. {
  22867. "type": "string"
  22868. },
  22869. {
  22870. "type": "null"
  22871. }
  22872. ]
  22873. }
  22874. },
  22875. "required": [
  22876. "message"
  22877. ],
  22878. "additionalProperties": false
  22879. }
  22880. },
  22881. "required": [
  22882. "name",
  22883. "data"
  22884. ],
  22885. "additionalProperties": false
  22886. },
  22887. "MessageOutputLengthError": {
  22888. "type": "object",
  22889. "properties": {
  22890. "name": {
  22891. "type": "string",
  22892. "enum": [
  22893. "MessageOutputLengthError"
  22894. ]
  22895. },
  22896. "data": {
  22897. "anyOf": [
  22898. {
  22899. "type": "object"
  22900. },
  22901. {
  22902. "type": "array"
  22903. }
  22904. ]
  22905. }
  22906. },
  22907. "required": [
  22908. "name",
  22909. "data"
  22910. ],
  22911. "additionalProperties": false
  22912. },
  22913. "MessageAbortedError": {
  22914. "type": "object",
  22915. "properties": {
  22916. "name": {
  22917. "type": "string",
  22918. "enum": [
  22919. "MessageAbortedError"
  22920. ]
  22921. },
  22922. "data": {
  22923. "type": "object",
  22924. "properties": {
  22925. "message": {
  22926. "type": "string"
  22927. }
  22928. },
  22929. "required": [
  22930. "message"
  22931. ],
  22932. "additionalProperties": false
  22933. }
  22934. },
  22935. "required": [
  22936. "name",
  22937. "data"
  22938. ],
  22939. "additionalProperties": false
  22940. },
  22941. "StructuredOutputError": {
  22942. "type": "object",
  22943. "properties": {
  22944. "name": {
  22945. "type": "string",
  22946. "enum": [
  22947. "StructuredOutputError"
  22948. ]
  22949. },
  22950. "data": {
  22951. "type": "object",
  22952. "properties": {
  22953. "message": {
  22954. "type": "string"
  22955. },
  22956. "retries": {
  22957. "type": "integer",
  22958. "allOf": [
  22959. {
  22960. "minimum": 0
  22961. }
  22962. ]
  22963. }
  22964. },
  22965. "required": [
  22966. "message",
  22967. "retries"
  22968. ],
  22969. "additionalProperties": false
  22970. }
  22971. },
  22972. "required": [
  22973. "name",
  22974. "data"
  22975. ],
  22976. "additionalProperties": false
  22977. },
  22978. "ContextOverflowError": {
  22979. "type": "object",
  22980. "properties": {
  22981. "name": {
  22982. "type": "string",
  22983. "enum": [
  22984. "ContextOverflowError"
  22985. ]
  22986. },
  22987. "data": {
  22988. "type": "object",
  22989. "properties": {
  22990. "message": {
  22991. "type": "string"
  22992. },
  22993. "responseBody": {
  22994. "anyOf": [
  22995. {
  22996. "type": "string"
  22997. },
  22998. {
  22999. "type": "null"
  23000. }
  23001. ]
  23002. }
  23003. },
  23004. "required": [
  23005. "message"
  23006. ],
  23007. "additionalProperties": false
  23008. }
  23009. },
  23010. "required": [
  23011. "name",
  23012. "data"
  23013. ],
  23014. "additionalProperties": false
  23015. },
  23016. "ContentFilterError": {
  23017. "type": "object",
  23018. "properties": {
  23019. "name": {
  23020. "type": "string",
  23021. "enum": [
  23022. "ContentFilterError"
  23023. ]
  23024. },
  23025. "data": {
  23026. "type": "object",
  23027. "properties": {
  23028. "message": {
  23029. "type": "string"
  23030. }
  23031. },
  23032. "required": [
  23033. "message"
  23034. ],
  23035. "additionalProperties": false
  23036. }
  23037. },
  23038. "required": [
  23039. "name",
  23040. "data"
  23041. ],
  23042. "additionalProperties": false
  23043. },
  23044. "APIError": {
  23045. "type": "object",
  23046. "properties": {
  23047. "name": {
  23048. "type": "string",
  23049. "enum": [
  23050. "APIError"
  23051. ]
  23052. },
  23053. "data": {
  23054. "type": "object",
  23055. "properties": {
  23056. "message": {
  23057. "type": "string"
  23058. },
  23059. "statusCode": {
  23060. "anyOf": [
  23061. {
  23062. "type": "integer",
  23063. "allOf": [
  23064. {
  23065. "minimum": 0
  23066. }
  23067. ]
  23068. },
  23069. {
  23070. "type": "null"
  23071. }
  23072. ]
  23073. },
  23074. "isRetryable": {
  23075. "type": "boolean"
  23076. },
  23077. "responseHeaders": {
  23078. "anyOf": [
  23079. {
  23080. "type": "object",
  23081. "additionalProperties": {
  23082. "type": "string"
  23083. }
  23084. },
  23085. {
  23086. "type": "null"
  23087. }
  23088. ]
  23089. },
  23090. "responseBody": {
  23091. "anyOf": [
  23092. {
  23093. "type": "string"
  23094. },
  23095. {
  23096. "type": "null"
  23097. }
  23098. ]
  23099. },
  23100. "metadata": {
  23101. "anyOf": [
  23102. {
  23103. "type": "object",
  23104. "additionalProperties": {
  23105. "type": "string"
  23106. }
  23107. },
  23108. {
  23109. "type": "null"
  23110. }
  23111. ]
  23112. }
  23113. },
  23114. "required": [
  23115. "message",
  23116. "isRetryable"
  23117. ],
  23118. "additionalProperties": false
  23119. }
  23120. },
  23121. "required": [
  23122. "name",
  23123. "data"
  23124. ],
  23125. "additionalProperties": false
  23126. },
  23127. "SessionV1.AssistantMessage": {
  23128. "type": "object",
  23129. "properties": {
  23130. "id": {
  23131. "type": "string",
  23132. "allOf": [
  23133. {
  23134. "pattern": "^msg"
  23135. }
  23136. ]
  23137. },
  23138. "sessionID": {
  23139. "type": "string",
  23140. "allOf": [
  23141. {
  23142. "pattern": "^ses"
  23143. }
  23144. ]
  23145. },
  23146. "role": {
  23147. "type": "string",
  23148. "enum": [
  23149. "assistant"
  23150. ]
  23151. },
  23152. "time": {
  23153. "type": "object",
  23154. "properties": {
  23155. "created": {
  23156. "type": "integer",
  23157. "allOf": [
  23158. {
  23159. "minimum": 0
  23160. }
  23161. ]
  23162. },
  23163. "completed": {
  23164. "anyOf": [
  23165. {
  23166. "type": "integer",
  23167. "allOf": [
  23168. {
  23169. "minimum": 0
  23170. }
  23171. ]
  23172. },
  23173. {
  23174. "type": "null"
  23175. }
  23176. ]
  23177. }
  23178. },
  23179. "required": [
  23180. "created"
  23181. ],
  23182. "additionalProperties": false
  23183. },
  23184. "error": {
  23185. "anyOf": [
  23186. {
  23187. "anyOf": [
  23188. {
  23189. "$ref": "#/components/schemas/ProviderAuthError"
  23190. },
  23191. {
  23192. "$ref": "#/components/schemas/UnknownError1"
  23193. },
  23194. {
  23195. "$ref": "#/components/schemas/MessageOutputLengthError"
  23196. },
  23197. {
  23198. "$ref": "#/components/schemas/MessageAbortedError"
  23199. },
  23200. {
  23201. "$ref": "#/components/schemas/StructuredOutputError"
  23202. },
  23203. {
  23204. "$ref": "#/components/schemas/ContextOverflowError"
  23205. },
  23206. {
  23207. "$ref": "#/components/schemas/ContentFilterError"
  23208. },
  23209. {
  23210. "$ref": "#/components/schemas/APIError"
  23211. }
  23212. ]
  23213. },
  23214. {
  23215. "type": "null"
  23216. }
  23217. ]
  23218. },
  23219. "parentID": {
  23220. "type": "string",
  23221. "allOf": [
  23222. {
  23223. "pattern": "^msg"
  23224. }
  23225. ]
  23226. },
  23227. "modelID": {
  23228. "type": "string"
  23229. },
  23230. "providerID": {
  23231. "type": "string"
  23232. },
  23233. "mode": {
  23234. "type": "string"
  23235. },
  23236. "agent": {
  23237. "type": "string"
  23238. },
  23239. "path": {
  23240. "type": "object",
  23241. "properties": {
  23242. "cwd": {
  23243. "type": "string"
  23244. },
  23245. "root": {
  23246. "type": "string"
  23247. }
  23248. },
  23249. "required": [
  23250. "cwd",
  23251. "root"
  23252. ],
  23253. "additionalProperties": false
  23254. },
  23255. "summary": {
  23256. "anyOf": [
  23257. {
  23258. "type": "boolean"
  23259. },
  23260. {
  23261. "type": "null"
  23262. }
  23263. ]
  23264. },
  23265. "cost": {
  23266. "type": "number"
  23267. },
  23268. "tokens": {
  23269. "type": "object",
  23270. "properties": {
  23271. "total": {
  23272. "anyOf": [
  23273. {
  23274. "type": "number"
  23275. },
  23276. {
  23277. "type": "null"
  23278. }
  23279. ]
  23280. },
  23281. "input": {
  23282. "type": "number"
  23283. },
  23284. "output": {
  23285. "type": "number"
  23286. },
  23287. "reasoning": {
  23288. "type": "number"
  23289. },
  23290. "cache": {
  23291. "type": "object",
  23292. "properties": {
  23293. "read": {
  23294. "type": "number"
  23295. },
  23296. "write": {
  23297. "type": "number"
  23298. }
  23299. },
  23300. "required": [
  23301. "read",
  23302. "write"
  23303. ],
  23304. "additionalProperties": false
  23305. }
  23306. },
  23307. "required": [
  23308. "input",
  23309. "output",
  23310. "reasoning",
  23311. "cache"
  23312. ],
  23313. "additionalProperties": false
  23314. },
  23315. "structured": {
  23316. "anyOf": [
  23317. {},
  23318. {
  23319. "type": "null"
  23320. }
  23321. ]
  23322. },
  23323. "variant": {
  23324. "anyOf": [
  23325. {
  23326. "type": "string"
  23327. },
  23328. {
  23329. "type": "null"
  23330. }
  23331. ]
  23332. },
  23333. "finish": {
  23334. "anyOf": [
  23335. {
  23336. "type": "string"
  23337. },
  23338. {
  23339. "type": "null"
  23340. }
  23341. ]
  23342. }
  23343. },
  23344. "required": [
  23345. "id",
  23346. "sessionID",
  23347. "role",
  23348. "time",
  23349. "parentID",
  23350. "modelID",
  23351. "providerID",
  23352. "mode",
  23353. "agent",
  23354. "path",
  23355. "cost",
  23356. "tokens"
  23357. ],
  23358. "additionalProperties": false
  23359. },
  23360. "SessionV1.Message": {
  23361. "anyOf": [
  23362. {
  23363. "$ref": "#/components/schemas/SessionV1.UserMessage"
  23364. },
  23365. {
  23366. "$ref": "#/components/schemas/SessionV1.AssistantMessage"
  23367. }
  23368. ]
  23369. },
  23370. "message.updated": {
  23371. "type": "object",
  23372. "properties": {
  23373. "id": {
  23374. "type": "string",
  23375. "allOf": [
  23376. {
  23377. "pattern": "^evt_"
  23378. }
  23379. ]
  23380. },
  23381. "created": {
  23382. "type": "number"
  23383. },
  23384. "metadata": {
  23385. "type": "object"
  23386. },
  23387. "type": {
  23388. "type": "string",
  23389. "enum": [
  23390. "message.updated"
  23391. ]
  23392. },
  23393. "durable": {
  23394. "type": "object",
  23395. "properties": {
  23396. "aggregateID": {
  23397. "type": "string"
  23398. },
  23399. "seq": {
  23400. "type": "integer",
  23401. "allOf": [
  23402. {
  23403. "minimum": 0
  23404. }
  23405. ]
  23406. },
  23407. "version": {
  23408. "type": "number",
  23409. "enum": [
  23410. 1
  23411. ]
  23412. }
  23413. },
  23414. "required": [
  23415. "aggregateID",
  23416. "seq",
  23417. "version"
  23418. ],
  23419. "additionalProperties": false
  23420. },
  23421. "location": {
  23422. "$ref": "#/components/schemas/Location.Ref"
  23423. },
  23424. "data": {
  23425. "type": "object",
  23426. "properties": {
  23427. "sessionID": {
  23428. "type": "string",
  23429. "allOf": [
  23430. {
  23431. "pattern": "^ses"
  23432. }
  23433. ]
  23434. },
  23435. "info": {
  23436. "$ref": "#/components/schemas/SessionV1.Message"
  23437. }
  23438. },
  23439. "required": [
  23440. "sessionID",
  23441. "info"
  23442. ],
  23443. "additionalProperties": false
  23444. }
  23445. },
  23446. "required": [
  23447. "id",
  23448. "created",
  23449. "type",
  23450. "durable",
  23451. "data"
  23452. ],
  23453. "additionalProperties": false
  23454. },
  23455. "message.removed": {
  23456. "type": "object",
  23457. "properties": {
  23458. "id": {
  23459. "type": "string",
  23460. "allOf": [
  23461. {
  23462. "pattern": "^evt_"
  23463. }
  23464. ]
  23465. },
  23466. "created": {
  23467. "type": "number"
  23468. },
  23469. "metadata": {
  23470. "type": "object"
  23471. },
  23472. "type": {
  23473. "type": "string",
  23474. "enum": [
  23475. "message.removed"
  23476. ]
  23477. },
  23478. "durable": {
  23479. "type": "object",
  23480. "properties": {
  23481. "aggregateID": {
  23482. "type": "string"
  23483. },
  23484. "seq": {
  23485. "type": "integer",
  23486. "allOf": [
  23487. {
  23488. "minimum": 0
  23489. }
  23490. ]
  23491. },
  23492. "version": {
  23493. "type": "number",
  23494. "enum": [
  23495. 1
  23496. ]
  23497. }
  23498. },
  23499. "required": [
  23500. "aggregateID",
  23501. "seq",
  23502. "version"
  23503. ],
  23504. "additionalProperties": false
  23505. },
  23506. "location": {
  23507. "$ref": "#/components/schemas/Location.Ref"
  23508. },
  23509. "data": {
  23510. "type": "object",
  23511. "properties": {
  23512. "sessionID": {
  23513. "type": "string",
  23514. "allOf": [
  23515. {
  23516. "pattern": "^ses"
  23517. }
  23518. ]
  23519. },
  23520. "messageID": {
  23521. "type": "string",
  23522. "allOf": [
  23523. {
  23524. "pattern": "^msg"
  23525. }
  23526. ]
  23527. }
  23528. },
  23529. "required": [
  23530. "sessionID",
  23531. "messageID"
  23532. ],
  23533. "additionalProperties": false
  23534. }
  23535. },
  23536. "required": [
  23537. "id",
  23538. "created",
  23539. "type",
  23540. "durable",
  23541. "data"
  23542. ],
  23543. "additionalProperties": false
  23544. },
  23545. "SessionV1.TextPart": {
  23546. "type": "object",
  23547. "properties": {
  23548. "id": {
  23549. "type": "string",
  23550. "allOf": [
  23551. {
  23552. "pattern": "^prt"
  23553. }
  23554. ]
  23555. },
  23556. "sessionID": {
  23557. "type": "string",
  23558. "allOf": [
  23559. {
  23560. "pattern": "^ses"
  23561. }
  23562. ]
  23563. },
  23564. "messageID": {
  23565. "type": "string",
  23566. "allOf": [
  23567. {
  23568. "pattern": "^msg"
  23569. }
  23570. ]
  23571. },
  23572. "type": {
  23573. "type": "string",
  23574. "enum": [
  23575. "text"
  23576. ]
  23577. },
  23578. "text": {
  23579. "type": "string"
  23580. },
  23581. "synthetic": {
  23582. "anyOf": [
  23583. {
  23584. "type": "boolean"
  23585. },
  23586. {
  23587. "type": "null"
  23588. }
  23589. ]
  23590. },
  23591. "ignored": {
  23592. "anyOf": [
  23593. {
  23594. "type": "boolean"
  23595. },
  23596. {
  23597. "type": "null"
  23598. }
  23599. ]
  23600. },
  23601. "time": {
  23602. "anyOf": [
  23603. {
  23604. "type": "object",
  23605. "properties": {
  23606. "start": {
  23607. "type": "integer",
  23608. "allOf": [
  23609. {
  23610. "minimum": 0
  23611. }
  23612. ]
  23613. },
  23614. "end": {
  23615. "anyOf": [
  23616. {
  23617. "type": "integer",
  23618. "allOf": [
  23619. {
  23620. "minimum": 0
  23621. }
  23622. ]
  23623. },
  23624. {
  23625. "type": "null"
  23626. }
  23627. ]
  23628. }
  23629. },
  23630. "required": [
  23631. "start"
  23632. ],
  23633. "additionalProperties": false
  23634. },
  23635. {
  23636. "type": "null"
  23637. }
  23638. ]
  23639. },
  23640. "metadata": {
  23641. "anyOf": [
  23642. {
  23643. "type": "object"
  23644. },
  23645. {
  23646. "type": "null"
  23647. }
  23648. ]
  23649. }
  23650. },
  23651. "required": [
  23652. "id",
  23653. "sessionID",
  23654. "messageID",
  23655. "type",
  23656. "text"
  23657. ],
  23658. "additionalProperties": false
  23659. },
  23660. "SessionV1.SubtaskPart": {
  23661. "type": "object",
  23662. "properties": {
  23663. "id": {
  23664. "type": "string",
  23665. "allOf": [
  23666. {
  23667. "pattern": "^prt"
  23668. }
  23669. ]
  23670. },
  23671. "sessionID": {
  23672. "type": "string",
  23673. "allOf": [
  23674. {
  23675. "pattern": "^ses"
  23676. }
  23677. ]
  23678. },
  23679. "messageID": {
  23680. "type": "string",
  23681. "allOf": [
  23682. {
  23683. "pattern": "^msg"
  23684. }
  23685. ]
  23686. },
  23687. "type": {
  23688. "type": "string",
  23689. "enum": [
  23690. "subtask"
  23691. ]
  23692. },
  23693. "prompt": {
  23694. "type": "string"
  23695. },
  23696. "description": {
  23697. "type": "string"
  23698. },
  23699. "agent": {
  23700. "type": "string"
  23701. },
  23702. "model": {
  23703. "anyOf": [
  23704. {
  23705. "type": "object",
  23706. "properties": {
  23707. "providerID": {
  23708. "type": "string"
  23709. },
  23710. "modelID": {
  23711. "type": "string"
  23712. }
  23713. },
  23714. "required": [
  23715. "providerID",
  23716. "modelID"
  23717. ],
  23718. "additionalProperties": false
  23719. },
  23720. {
  23721. "type": "null"
  23722. }
  23723. ]
  23724. },
  23725. "command": {
  23726. "anyOf": [
  23727. {
  23728. "type": "string"
  23729. },
  23730. {
  23731. "type": "null"
  23732. }
  23733. ]
  23734. }
  23735. },
  23736. "required": [
  23737. "id",
  23738. "sessionID",
  23739. "messageID",
  23740. "type",
  23741. "prompt",
  23742. "description",
  23743. "agent"
  23744. ],
  23745. "additionalProperties": false
  23746. },
  23747. "SessionV1.ReasoningPart": {
  23748. "type": "object",
  23749. "properties": {
  23750. "id": {
  23751. "type": "string",
  23752. "allOf": [
  23753. {
  23754. "pattern": "^prt"
  23755. }
  23756. ]
  23757. },
  23758. "sessionID": {
  23759. "type": "string",
  23760. "allOf": [
  23761. {
  23762. "pattern": "^ses"
  23763. }
  23764. ]
  23765. },
  23766. "messageID": {
  23767. "type": "string",
  23768. "allOf": [
  23769. {
  23770. "pattern": "^msg"
  23771. }
  23772. ]
  23773. },
  23774. "type": {
  23775. "type": "string",
  23776. "enum": [
  23777. "reasoning"
  23778. ]
  23779. },
  23780. "text": {
  23781. "type": "string"
  23782. },
  23783. "metadata": {
  23784. "anyOf": [
  23785. {
  23786. "type": "object"
  23787. },
  23788. {
  23789. "type": "null"
  23790. }
  23791. ]
  23792. },
  23793. "time": {
  23794. "type": "object",
  23795. "properties": {
  23796. "start": {
  23797. "type": "integer",
  23798. "allOf": [
  23799. {
  23800. "minimum": 0
  23801. }
  23802. ]
  23803. },
  23804. "end": {
  23805. "anyOf": [
  23806. {
  23807. "type": "integer",
  23808. "allOf": [
  23809. {
  23810. "minimum": 0
  23811. }
  23812. ]
  23813. },
  23814. {
  23815. "type": "null"
  23816. }
  23817. ]
  23818. }
  23819. },
  23820. "required": [
  23821. "start"
  23822. ],
  23823. "additionalProperties": false
  23824. }
  23825. },
  23826. "required": [
  23827. "id",
  23828. "sessionID",
  23829. "messageID",
  23830. "type",
  23831. "text",
  23832. "time"
  23833. ],
  23834. "additionalProperties": false
  23835. },
  23836. "SessionV1.FilePartSourceText": {
  23837. "type": "object",
  23838. "properties": {
  23839. "value": {
  23840. "type": "string"
  23841. },
  23842. "start": {
  23843. "type": "number"
  23844. },
  23845. "end": {
  23846. "type": "number"
  23847. }
  23848. },
  23849. "required": [
  23850. "value",
  23851. "start",
  23852. "end"
  23853. ],
  23854. "additionalProperties": false
  23855. },
  23856. "SessionV1.FileSource": {
  23857. "type": "object",
  23858. "properties": {
  23859. "text": {
  23860. "$ref": "#/components/schemas/SessionV1.FilePartSourceText"
  23861. },
  23862. "type": {
  23863. "type": "string",
  23864. "enum": [
  23865. "file"
  23866. ]
  23867. },
  23868. "path": {
  23869. "type": "string"
  23870. }
  23871. },
  23872. "required": [
  23873. "text",
  23874. "type",
  23875. "path"
  23876. ],
  23877. "additionalProperties": false
  23878. },
  23879. "SessionV1.Range": {
  23880. "type": "object",
  23881. "properties": {
  23882. "start": {
  23883. "type": "object",
  23884. "properties": {
  23885. "line": {
  23886. "type": "integer",
  23887. "allOf": [
  23888. {
  23889. "minimum": 0
  23890. }
  23891. ]
  23892. },
  23893. "character": {
  23894. "type": "integer",
  23895. "allOf": [
  23896. {
  23897. "minimum": 0
  23898. }
  23899. ]
  23900. }
  23901. },
  23902. "required": [
  23903. "line",
  23904. "character"
  23905. ],
  23906. "additionalProperties": false
  23907. },
  23908. "end": {
  23909. "type": "object",
  23910. "properties": {
  23911. "line": {
  23912. "type": "integer",
  23913. "allOf": [
  23914. {
  23915. "minimum": 0
  23916. }
  23917. ]
  23918. },
  23919. "character": {
  23920. "type": "integer",
  23921. "allOf": [
  23922. {
  23923. "minimum": 0
  23924. }
  23925. ]
  23926. }
  23927. },
  23928. "required": [
  23929. "line",
  23930. "character"
  23931. ],
  23932. "additionalProperties": false
  23933. }
  23934. },
  23935. "required": [
  23936. "start",
  23937. "end"
  23938. ],
  23939. "additionalProperties": false
  23940. },
  23941. "SessionV1.SymbolSource": {
  23942. "type": "object",
  23943. "properties": {
  23944. "text": {
  23945. "$ref": "#/components/schemas/SessionV1.FilePartSourceText"
  23946. },
  23947. "type": {
  23948. "type": "string",
  23949. "enum": [
  23950. "symbol"
  23951. ]
  23952. },
  23953. "path": {
  23954. "type": "string"
  23955. },
  23956. "range": {
  23957. "$ref": "#/components/schemas/SessionV1.Range"
  23958. },
  23959. "name": {
  23960. "type": "string"
  23961. },
  23962. "kind": {
  23963. "type": "integer",
  23964. "allOf": [
  23965. {
  23966. "minimum": 0
  23967. }
  23968. ]
  23969. }
  23970. },
  23971. "required": [
  23972. "text",
  23973. "type",
  23974. "path",
  23975. "range",
  23976. "name",
  23977. "kind"
  23978. ],
  23979. "additionalProperties": false
  23980. },
  23981. "SessionV1.ResourceSource": {
  23982. "type": "object",
  23983. "properties": {
  23984. "text": {
  23985. "$ref": "#/components/schemas/SessionV1.FilePartSourceText"
  23986. },
  23987. "type": {
  23988. "type": "string",
  23989. "enum": [
  23990. "resource"
  23991. ]
  23992. },
  23993. "clientName": {
  23994. "type": "string"
  23995. },
  23996. "uri": {
  23997. "type": "string"
  23998. }
  23999. },
  24000. "required": [
  24001. "text",
  24002. "type",
  24003. "clientName",
  24004. "uri"
  24005. ],
  24006. "additionalProperties": false
  24007. },
  24008. "SessionV1.FilePartSource": {
  24009. "anyOf": [
  24010. {
  24011. "$ref": "#/components/schemas/SessionV1.FileSource"
  24012. },
  24013. {
  24014. "$ref": "#/components/schemas/SessionV1.SymbolSource"
  24015. },
  24016. {
  24017. "$ref": "#/components/schemas/SessionV1.ResourceSource"
  24018. }
  24019. ]
  24020. },
  24021. "SessionV1.FilePart": {
  24022. "type": "object",
  24023. "properties": {
  24024. "id": {
  24025. "type": "string",
  24026. "allOf": [
  24027. {
  24028. "pattern": "^prt"
  24029. }
  24030. ]
  24031. },
  24032. "sessionID": {
  24033. "type": "string",
  24034. "allOf": [
  24035. {
  24036. "pattern": "^ses"
  24037. }
  24038. ]
  24039. },
  24040. "messageID": {
  24041. "type": "string",
  24042. "allOf": [
  24043. {
  24044. "pattern": "^msg"
  24045. }
  24046. ]
  24047. },
  24048. "type": {
  24049. "type": "string",
  24050. "enum": [
  24051. "file"
  24052. ]
  24053. },
  24054. "mime": {
  24055. "type": "string"
  24056. },
  24057. "filename": {
  24058. "anyOf": [
  24059. {
  24060. "type": "string"
  24061. },
  24062. {
  24063. "type": "null"
  24064. }
  24065. ]
  24066. },
  24067. "url": {
  24068. "type": "string"
  24069. },
  24070. "source": {
  24071. "anyOf": [
  24072. {
  24073. "$ref": "#/components/schemas/SessionV1.FilePartSource"
  24074. },
  24075. {
  24076. "type": "null"
  24077. }
  24078. ]
  24079. }
  24080. },
  24081. "required": [
  24082. "id",
  24083. "sessionID",
  24084. "messageID",
  24085. "type",
  24086. "mime",
  24087. "url"
  24088. ],
  24089. "additionalProperties": false
  24090. },
  24091. "SessionV1.ToolStatePending": {
  24092. "type": "object",
  24093. "properties": {
  24094. "status": {
  24095. "type": "string",
  24096. "enum": [
  24097. "pending"
  24098. ]
  24099. },
  24100. "input": {
  24101. "type": "object"
  24102. },
  24103. "raw": {
  24104. "type": "string"
  24105. }
  24106. },
  24107. "required": [
  24108. "status",
  24109. "input",
  24110. "raw"
  24111. ],
  24112. "additionalProperties": false
  24113. },
  24114. "SessionV1.ToolStateRunning": {
  24115. "type": "object",
  24116. "properties": {
  24117. "status": {
  24118. "type": "string",
  24119. "enum": [
  24120. "running"
  24121. ]
  24122. },
  24123. "input": {
  24124. "type": "object"
  24125. },
  24126. "title": {
  24127. "anyOf": [
  24128. {
  24129. "type": "string"
  24130. },
  24131. {
  24132. "type": "null"
  24133. }
  24134. ]
  24135. },
  24136. "metadata": {
  24137. "anyOf": [
  24138. {
  24139. "type": "object"
  24140. },
  24141. {
  24142. "type": "null"
  24143. }
  24144. ]
  24145. },
  24146. "time": {
  24147. "type": "object",
  24148. "properties": {
  24149. "start": {
  24150. "type": "integer",
  24151. "allOf": [
  24152. {
  24153. "minimum": 0
  24154. }
  24155. ]
  24156. }
  24157. },
  24158. "required": [
  24159. "start"
  24160. ],
  24161. "additionalProperties": false
  24162. }
  24163. },
  24164. "required": [
  24165. "status",
  24166. "input",
  24167. "time"
  24168. ],
  24169. "additionalProperties": false
  24170. },
  24171. "SessionV1.ToolStateCompleted": {
  24172. "type": "object",
  24173. "properties": {
  24174. "status": {
  24175. "type": "string",
  24176. "enum": [
  24177. "completed"
  24178. ]
  24179. },
  24180. "input": {
  24181. "type": "object"
  24182. },
  24183. "output": {
  24184. "type": "string"
  24185. },
  24186. "title": {
  24187. "type": "string"
  24188. },
  24189. "metadata": {
  24190. "type": "object"
  24191. },
  24192. "time": {
  24193. "type": "object",
  24194. "properties": {
  24195. "start": {
  24196. "type": "integer",
  24197. "allOf": [
  24198. {
  24199. "minimum": 0
  24200. }
  24201. ]
  24202. },
  24203. "end": {
  24204. "type": "integer",
  24205. "allOf": [
  24206. {
  24207. "minimum": 0
  24208. }
  24209. ]
  24210. },
  24211. "compacted": {
  24212. "anyOf": [
  24213. {
  24214. "type": "integer",
  24215. "allOf": [
  24216. {
  24217. "minimum": 0
  24218. }
  24219. ]
  24220. },
  24221. {
  24222. "type": "null"
  24223. }
  24224. ]
  24225. }
  24226. },
  24227. "required": [
  24228. "start",
  24229. "end"
  24230. ],
  24231. "additionalProperties": false
  24232. },
  24233. "attachments": {
  24234. "anyOf": [
  24235. {
  24236. "type": "array",
  24237. "items": {
  24238. "$ref": "#/components/schemas/SessionV1.FilePart"
  24239. }
  24240. },
  24241. {
  24242. "type": "null"
  24243. }
  24244. ]
  24245. }
  24246. },
  24247. "required": [
  24248. "status",
  24249. "input",
  24250. "output",
  24251. "title",
  24252. "metadata",
  24253. "time"
  24254. ],
  24255. "additionalProperties": false
  24256. },
  24257. "SessionV1.ToolStateError": {
  24258. "type": "object",
  24259. "properties": {
  24260. "status": {
  24261. "type": "string",
  24262. "enum": [
  24263. "error"
  24264. ]
  24265. },
  24266. "input": {
  24267. "type": "object"
  24268. },
  24269. "error": {
  24270. "type": "string"
  24271. },
  24272. "metadata": {
  24273. "anyOf": [
  24274. {
  24275. "type": "object"
  24276. },
  24277. {
  24278. "type": "null"
  24279. }
  24280. ]
  24281. },
  24282. "time": {
  24283. "type": "object",
  24284. "properties": {
  24285. "start": {
  24286. "type": "integer",
  24287. "allOf": [
  24288. {
  24289. "minimum": 0
  24290. }
  24291. ]
  24292. },
  24293. "end": {
  24294. "type": "integer",
  24295. "allOf": [
  24296. {
  24297. "minimum": 0
  24298. }
  24299. ]
  24300. }
  24301. },
  24302. "required": [
  24303. "start",
  24304. "end"
  24305. ],
  24306. "additionalProperties": false
  24307. }
  24308. },
  24309. "required": [
  24310. "status",
  24311. "input",
  24312. "error",
  24313. "time"
  24314. ],
  24315. "additionalProperties": false
  24316. },
  24317. "SessionV1.ToolState": {
  24318. "anyOf": [
  24319. {
  24320. "$ref": "#/components/schemas/SessionV1.ToolStatePending"
  24321. },
  24322. {
  24323. "$ref": "#/components/schemas/SessionV1.ToolStateRunning"
  24324. },
  24325. {
  24326. "$ref": "#/components/schemas/SessionV1.ToolStateCompleted"
  24327. },
  24328. {
  24329. "$ref": "#/components/schemas/SessionV1.ToolStateError"
  24330. }
  24331. ]
  24332. },
  24333. "SessionV1.ToolPart": {
  24334. "type": "object",
  24335. "properties": {
  24336. "id": {
  24337. "type": "string",
  24338. "allOf": [
  24339. {
  24340. "pattern": "^prt"
  24341. }
  24342. ]
  24343. },
  24344. "sessionID": {
  24345. "type": "string",
  24346. "allOf": [
  24347. {
  24348. "pattern": "^ses"
  24349. }
  24350. ]
  24351. },
  24352. "messageID": {
  24353. "type": "string",
  24354. "allOf": [
  24355. {
  24356. "pattern": "^msg"
  24357. }
  24358. ]
  24359. },
  24360. "type": {
  24361. "type": "string",
  24362. "enum": [
  24363. "tool"
  24364. ]
  24365. },
  24366. "callID": {
  24367. "type": "string"
  24368. },
  24369. "tool": {
  24370. "type": "string"
  24371. },
  24372. "state": {
  24373. "$ref": "#/components/schemas/SessionV1.ToolState"
  24374. },
  24375. "metadata": {
  24376. "anyOf": [
  24377. {
  24378. "type": "object"
  24379. },
  24380. {
  24381. "type": "null"
  24382. }
  24383. ]
  24384. }
  24385. },
  24386. "required": [
  24387. "id",
  24388. "sessionID",
  24389. "messageID",
  24390. "type",
  24391. "callID",
  24392. "tool",
  24393. "state"
  24394. ],
  24395. "additionalProperties": false
  24396. },
  24397. "SessionV1.StepStartPart": {
  24398. "type": "object",
  24399. "properties": {
  24400. "id": {
  24401. "type": "string",
  24402. "allOf": [
  24403. {
  24404. "pattern": "^prt"
  24405. }
  24406. ]
  24407. },
  24408. "sessionID": {
  24409. "type": "string",
  24410. "allOf": [
  24411. {
  24412. "pattern": "^ses"
  24413. }
  24414. ]
  24415. },
  24416. "messageID": {
  24417. "type": "string",
  24418. "allOf": [
  24419. {
  24420. "pattern": "^msg"
  24421. }
  24422. ]
  24423. },
  24424. "type": {
  24425. "type": "string",
  24426. "enum": [
  24427. "step-start"
  24428. ]
  24429. },
  24430. "snapshot": {
  24431. "anyOf": [
  24432. {
  24433. "type": "string"
  24434. },
  24435. {
  24436. "type": "null"
  24437. }
  24438. ]
  24439. }
  24440. },
  24441. "required": [
  24442. "id",
  24443. "sessionID",
  24444. "messageID",
  24445. "type"
  24446. ],
  24447. "additionalProperties": false
  24448. },
  24449. "SessionV1.StepFinishPart": {
  24450. "type": "object",
  24451. "properties": {
  24452. "id": {
  24453. "type": "string",
  24454. "allOf": [
  24455. {
  24456. "pattern": "^prt"
  24457. }
  24458. ]
  24459. },
  24460. "sessionID": {
  24461. "type": "string",
  24462. "allOf": [
  24463. {
  24464. "pattern": "^ses"
  24465. }
  24466. ]
  24467. },
  24468. "messageID": {
  24469. "type": "string",
  24470. "allOf": [
  24471. {
  24472. "pattern": "^msg"
  24473. }
  24474. ]
  24475. },
  24476. "type": {
  24477. "type": "string",
  24478. "enum": [
  24479. "step-finish"
  24480. ]
  24481. },
  24482. "reason": {
  24483. "type": "string"
  24484. },
  24485. "snapshot": {
  24486. "anyOf": [
  24487. {
  24488. "type": "string"
  24489. },
  24490. {
  24491. "type": "null"
  24492. }
  24493. ]
  24494. },
  24495. "cost": {
  24496. "type": "number"
  24497. },
  24498. "tokens": {
  24499. "type": "object",
  24500. "properties": {
  24501. "total": {
  24502. "anyOf": [
  24503. {
  24504. "type": "number"
  24505. },
  24506. {
  24507. "type": "null"
  24508. }
  24509. ]
  24510. },
  24511. "input": {
  24512. "type": "number"
  24513. },
  24514. "output": {
  24515. "type": "number"
  24516. },
  24517. "reasoning": {
  24518. "type": "number"
  24519. },
  24520. "cache": {
  24521. "type": "object",
  24522. "properties": {
  24523. "read": {
  24524. "type": "number"
  24525. },
  24526. "write": {
  24527. "type": "number"
  24528. }
  24529. },
  24530. "required": [
  24531. "read",
  24532. "write"
  24533. ],
  24534. "additionalProperties": false
  24535. }
  24536. },
  24537. "required": [
  24538. "input",
  24539. "output",
  24540. "reasoning",
  24541. "cache"
  24542. ],
  24543. "additionalProperties": false
  24544. }
  24545. },
  24546. "required": [
  24547. "id",
  24548. "sessionID",
  24549. "messageID",
  24550. "type",
  24551. "reason",
  24552. "cost",
  24553. "tokens"
  24554. ],
  24555. "additionalProperties": false
  24556. },
  24557. "SessionV1.SnapshotPart": {
  24558. "type": "object",
  24559. "properties": {
  24560. "id": {
  24561. "type": "string",
  24562. "allOf": [
  24563. {
  24564. "pattern": "^prt"
  24565. }
  24566. ]
  24567. },
  24568. "sessionID": {
  24569. "type": "string",
  24570. "allOf": [
  24571. {
  24572. "pattern": "^ses"
  24573. }
  24574. ]
  24575. },
  24576. "messageID": {
  24577. "type": "string",
  24578. "allOf": [
  24579. {
  24580. "pattern": "^msg"
  24581. }
  24582. ]
  24583. },
  24584. "type": {
  24585. "type": "string",
  24586. "enum": [
  24587. "snapshot"
  24588. ]
  24589. },
  24590. "snapshot": {
  24591. "type": "string"
  24592. }
  24593. },
  24594. "required": [
  24595. "id",
  24596. "sessionID",
  24597. "messageID",
  24598. "type",
  24599. "snapshot"
  24600. ],
  24601. "additionalProperties": false
  24602. },
  24603. "SessionV1.PatchPart": {
  24604. "type": "object",
  24605. "properties": {
  24606. "id": {
  24607. "type": "string",
  24608. "allOf": [
  24609. {
  24610. "pattern": "^prt"
  24611. }
  24612. ]
  24613. },
  24614. "sessionID": {
  24615. "type": "string",
  24616. "allOf": [
  24617. {
  24618. "pattern": "^ses"
  24619. }
  24620. ]
  24621. },
  24622. "messageID": {
  24623. "type": "string",
  24624. "allOf": [
  24625. {
  24626. "pattern": "^msg"
  24627. }
  24628. ]
  24629. },
  24630. "type": {
  24631. "type": "string",
  24632. "enum": [
  24633. "patch"
  24634. ]
  24635. },
  24636. "hash": {
  24637. "type": "string"
  24638. },
  24639. "files": {
  24640. "type": "array",
  24641. "items": {
  24642. "type": "string"
  24643. }
  24644. }
  24645. },
  24646. "required": [
  24647. "id",
  24648. "sessionID",
  24649. "messageID",
  24650. "type",
  24651. "hash",
  24652. "files"
  24653. ],
  24654. "additionalProperties": false
  24655. },
  24656. "SessionV1.AgentPart": {
  24657. "type": "object",
  24658. "properties": {
  24659. "id": {
  24660. "type": "string",
  24661. "allOf": [
  24662. {
  24663. "pattern": "^prt"
  24664. }
  24665. ]
  24666. },
  24667. "sessionID": {
  24668. "type": "string",
  24669. "allOf": [
  24670. {
  24671. "pattern": "^ses"
  24672. }
  24673. ]
  24674. },
  24675. "messageID": {
  24676. "type": "string",
  24677. "allOf": [
  24678. {
  24679. "pattern": "^msg"
  24680. }
  24681. ]
  24682. },
  24683. "type": {
  24684. "type": "string",
  24685. "enum": [
  24686. "agent"
  24687. ]
  24688. },
  24689. "name": {
  24690. "type": "string"
  24691. },
  24692. "source": {
  24693. "anyOf": [
  24694. {
  24695. "type": "object",
  24696. "properties": {
  24697. "value": {
  24698. "type": "string"
  24699. },
  24700. "start": {
  24701. "type": "integer",
  24702. "allOf": [
  24703. {
  24704. "minimum": 0
  24705. }
  24706. ]
  24707. },
  24708. "end": {
  24709. "type": "integer",
  24710. "allOf": [
  24711. {
  24712. "minimum": 0
  24713. }
  24714. ]
  24715. }
  24716. },
  24717. "required": [
  24718. "value",
  24719. "start",
  24720. "end"
  24721. ],
  24722. "additionalProperties": false
  24723. },
  24724. {
  24725. "type": "null"
  24726. }
  24727. ]
  24728. }
  24729. },
  24730. "required": [
  24731. "id",
  24732. "sessionID",
  24733. "messageID",
  24734. "type",
  24735. "name"
  24736. ],
  24737. "additionalProperties": false
  24738. },
  24739. "SessionV1.RetryPart": {
  24740. "type": "object",
  24741. "properties": {
  24742. "id": {
  24743. "type": "string",
  24744. "allOf": [
  24745. {
  24746. "pattern": "^prt"
  24747. }
  24748. ]
  24749. },
  24750. "sessionID": {
  24751. "type": "string",
  24752. "allOf": [
  24753. {
  24754. "pattern": "^ses"
  24755. }
  24756. ]
  24757. },
  24758. "messageID": {
  24759. "type": "string",
  24760. "allOf": [
  24761. {
  24762. "pattern": "^msg"
  24763. }
  24764. ]
  24765. },
  24766. "type": {
  24767. "type": "string",
  24768. "enum": [
  24769. "retry"
  24770. ]
  24771. },
  24772. "attempt": {
  24773. "type": "integer",
  24774. "allOf": [
  24775. {
  24776. "minimum": 0
  24777. }
  24778. ]
  24779. },
  24780. "error": {
  24781. "$ref": "#/components/schemas/APIError"
  24782. },
  24783. "time": {
  24784. "type": "object",
  24785. "properties": {
  24786. "created": {
  24787. "type": "integer",
  24788. "allOf": [
  24789. {
  24790. "minimum": 0
  24791. }
  24792. ]
  24793. }
  24794. },
  24795. "required": [
  24796. "created"
  24797. ],
  24798. "additionalProperties": false
  24799. }
  24800. },
  24801. "required": [
  24802. "id",
  24803. "sessionID",
  24804. "messageID",
  24805. "type",
  24806. "attempt",
  24807. "error",
  24808. "time"
  24809. ],
  24810. "additionalProperties": false
  24811. },
  24812. "SessionV1.CompactionPart": {
  24813. "type": "object",
  24814. "properties": {
  24815. "id": {
  24816. "type": "string",
  24817. "allOf": [
  24818. {
  24819. "pattern": "^prt"
  24820. }
  24821. ]
  24822. },
  24823. "sessionID": {
  24824. "type": "string",
  24825. "allOf": [
  24826. {
  24827. "pattern": "^ses"
  24828. }
  24829. ]
  24830. },
  24831. "messageID": {
  24832. "type": "string",
  24833. "allOf": [
  24834. {
  24835. "pattern": "^msg"
  24836. }
  24837. ]
  24838. },
  24839. "type": {
  24840. "type": "string",
  24841. "enum": [
  24842. "compaction"
  24843. ]
  24844. },
  24845. "auto": {
  24846. "type": "boolean"
  24847. },
  24848. "overflow": {
  24849. "anyOf": [
  24850. {
  24851. "type": "boolean"
  24852. },
  24853. {
  24854. "type": "null"
  24855. }
  24856. ]
  24857. },
  24858. "tail_start_id": {
  24859. "anyOf": [
  24860. {
  24861. "type": "string",
  24862. "allOf": [
  24863. {
  24864. "pattern": "^msg"
  24865. }
  24866. ]
  24867. },
  24868. {
  24869. "type": "null"
  24870. }
  24871. ]
  24872. }
  24873. },
  24874. "required": [
  24875. "id",
  24876. "sessionID",
  24877. "messageID",
  24878. "type",
  24879. "auto"
  24880. ],
  24881. "additionalProperties": false
  24882. },
  24883. "SessionV1.Part": {
  24884. "anyOf": [
  24885. {
  24886. "$ref": "#/components/schemas/SessionV1.TextPart"
  24887. },
  24888. {
  24889. "$ref": "#/components/schemas/SessionV1.SubtaskPart"
  24890. },
  24891. {
  24892. "$ref": "#/components/schemas/SessionV1.ReasoningPart"
  24893. },
  24894. {
  24895. "$ref": "#/components/schemas/SessionV1.FilePart"
  24896. },
  24897. {
  24898. "$ref": "#/components/schemas/SessionV1.ToolPart"
  24899. },
  24900. {
  24901. "$ref": "#/components/schemas/SessionV1.StepStartPart"
  24902. },
  24903. {
  24904. "$ref": "#/components/schemas/SessionV1.StepFinishPart"
  24905. },
  24906. {
  24907. "$ref": "#/components/schemas/SessionV1.SnapshotPart"
  24908. },
  24909. {
  24910. "$ref": "#/components/schemas/SessionV1.PatchPart"
  24911. },
  24912. {
  24913. "$ref": "#/components/schemas/SessionV1.AgentPart"
  24914. },
  24915. {
  24916. "$ref": "#/components/schemas/SessionV1.RetryPart"
  24917. },
  24918. {
  24919. "$ref": "#/components/schemas/SessionV1.CompactionPart"
  24920. }
  24921. ]
  24922. },
  24923. "message.part.updated": {
  24924. "type": "object",
  24925. "properties": {
  24926. "id": {
  24927. "type": "string",
  24928. "allOf": [
  24929. {
  24930. "pattern": "^evt_"
  24931. }
  24932. ]
  24933. },
  24934. "created": {
  24935. "type": "number"
  24936. },
  24937. "metadata": {
  24938. "type": "object"
  24939. },
  24940. "type": {
  24941. "type": "string",
  24942. "enum": [
  24943. "message.part.updated"
  24944. ]
  24945. },
  24946. "durable": {
  24947. "type": "object",
  24948. "properties": {
  24949. "aggregateID": {
  24950. "type": "string"
  24951. },
  24952. "seq": {
  24953. "type": "integer",
  24954. "allOf": [
  24955. {
  24956. "minimum": 0
  24957. }
  24958. ]
  24959. },
  24960. "version": {
  24961. "type": "number",
  24962. "enum": [
  24963. 1
  24964. ]
  24965. }
  24966. },
  24967. "required": [
  24968. "aggregateID",
  24969. "seq",
  24970. "version"
  24971. ],
  24972. "additionalProperties": false
  24973. },
  24974. "location": {
  24975. "$ref": "#/components/schemas/Location.Ref"
  24976. },
  24977. "data": {
  24978. "type": "object",
  24979. "properties": {
  24980. "sessionID": {
  24981. "type": "string",
  24982. "allOf": [
  24983. {
  24984. "pattern": "^ses"
  24985. }
  24986. ]
  24987. },
  24988. "part": {
  24989. "$ref": "#/components/schemas/SessionV1.Part"
  24990. },
  24991. "time": {
  24992. "type": "number"
  24993. }
  24994. },
  24995. "required": [
  24996. "sessionID",
  24997. "part",
  24998. "time"
  24999. ],
  25000. "additionalProperties": false
  25001. }
  25002. },
  25003. "required": [
  25004. "id",
  25005. "created",
  25006. "type",
  25007. "durable",
  25008. "data"
  25009. ],
  25010. "additionalProperties": false
  25011. },
  25012. "message.part.removed": {
  25013. "type": "object",
  25014. "properties": {
  25015. "id": {
  25016. "type": "string",
  25017. "allOf": [
  25018. {
  25019. "pattern": "^evt_"
  25020. }
  25021. ]
  25022. },
  25023. "created": {
  25024. "type": "number"
  25025. },
  25026. "metadata": {
  25027. "type": "object"
  25028. },
  25029. "type": {
  25030. "type": "string",
  25031. "enum": [
  25032. "message.part.removed"
  25033. ]
  25034. },
  25035. "durable": {
  25036. "type": "object",
  25037. "properties": {
  25038. "aggregateID": {
  25039. "type": "string"
  25040. },
  25041. "seq": {
  25042. "type": "integer",
  25043. "allOf": [
  25044. {
  25045. "minimum": 0
  25046. }
  25047. ]
  25048. },
  25049. "version": {
  25050. "type": "number",
  25051. "enum": [
  25052. 1
  25053. ]
  25054. }
  25055. },
  25056. "required": [
  25057. "aggregateID",
  25058. "seq",
  25059. "version"
  25060. ],
  25061. "additionalProperties": false
  25062. },
  25063. "location": {
  25064. "$ref": "#/components/schemas/Location.Ref"
  25065. },
  25066. "data": {
  25067. "type": "object",
  25068. "properties": {
  25069. "sessionID": {
  25070. "type": "string",
  25071. "allOf": [
  25072. {
  25073. "pattern": "^ses"
  25074. }
  25075. ]
  25076. },
  25077. "messageID": {
  25078. "type": "string",
  25079. "allOf": [
  25080. {
  25081. "pattern": "^msg"
  25082. }
  25083. ]
  25084. },
  25085. "partID": {
  25086. "type": "string",
  25087. "allOf": [
  25088. {
  25089. "pattern": "^prt"
  25090. }
  25091. ]
  25092. }
  25093. },
  25094. "required": [
  25095. "sessionID",
  25096. "messageID",
  25097. "partID"
  25098. ],
  25099. "additionalProperties": false
  25100. }
  25101. },
  25102. "required": [
  25103. "id",
  25104. "created",
  25105. "type",
  25106. "durable",
  25107. "data"
  25108. ],
  25109. "additionalProperties": false
  25110. },
  25111. "session.usage.updated": {
  25112. "type": "object",
  25113. "properties": {
  25114. "id": {
  25115. "type": "string",
  25116. "allOf": [
  25117. {
  25118. "pattern": "^evt_"
  25119. }
  25120. ]
  25121. },
  25122. "created": {
  25123. "type": "number"
  25124. },
  25125. "metadata": {
  25126. "type": "object"
  25127. },
  25128. "type": {
  25129. "type": "string",
  25130. "enum": [
  25131. "session.usage.updated"
  25132. ]
  25133. },
  25134. "location": {
  25135. "$ref": "#/components/schemas/Location.Ref"
  25136. },
  25137. "data": {
  25138. "type": "object",
  25139. "properties": {
  25140. "sessionID": {
  25141. "type": "string",
  25142. "allOf": [
  25143. {
  25144. "pattern": "^ses"
  25145. }
  25146. ]
  25147. },
  25148. "cost": {
  25149. "$ref": "#/components/schemas/Money.USD"
  25150. },
  25151. "tokens": {
  25152. "$ref": "#/components/schemas/TokenUsage.Info"
  25153. }
  25154. },
  25155. "required": [
  25156. "sessionID",
  25157. "cost",
  25158. "tokens"
  25159. ],
  25160. "additionalProperties": false
  25161. }
  25162. },
  25163. "required": [
  25164. "id",
  25165. "created",
  25166. "type",
  25167. "data"
  25168. ],
  25169. "additionalProperties": false
  25170. },
  25171. "session.text.delta": {
  25172. "type": "object",
  25173. "properties": {
  25174. "id": {
  25175. "type": "string",
  25176. "allOf": [
  25177. {
  25178. "pattern": "^evt_"
  25179. }
  25180. ]
  25181. },
  25182. "created": {
  25183. "type": "number"
  25184. },
  25185. "metadata": {
  25186. "type": "object"
  25187. },
  25188. "type": {
  25189. "type": "string",
  25190. "enum": [
  25191. "session.text.delta"
  25192. ]
  25193. },
  25194. "location": {
  25195. "$ref": "#/components/schemas/Location.Ref"
  25196. },
  25197. "data": {
  25198. "type": "object",
  25199. "properties": {
  25200. "sessionID": {
  25201. "type": "string",
  25202. "allOf": [
  25203. {
  25204. "pattern": "^ses"
  25205. }
  25206. ]
  25207. },
  25208. "assistantMessageID": {
  25209. "type": "string",
  25210. "allOf": [
  25211. {
  25212. "pattern": "^msg_"
  25213. }
  25214. ]
  25215. },
  25216. "ordinal": {
  25217. "type": "integer",
  25218. "allOf": [
  25219. {
  25220. "minimum": 0
  25221. }
  25222. ]
  25223. },
  25224. "delta": {
  25225. "type": "string"
  25226. }
  25227. },
  25228. "required": [
  25229. "sessionID",
  25230. "assistantMessageID",
  25231. "ordinal",
  25232. "delta"
  25233. ],
  25234. "additionalProperties": false
  25235. }
  25236. },
  25237. "required": [
  25238. "id",
  25239. "created",
  25240. "type",
  25241. "data"
  25242. ],
  25243. "additionalProperties": false
  25244. },
  25245. "session.reasoning.delta": {
  25246. "type": "object",
  25247. "properties": {
  25248. "id": {
  25249. "type": "string",
  25250. "allOf": [
  25251. {
  25252. "pattern": "^evt_"
  25253. }
  25254. ]
  25255. },
  25256. "created": {
  25257. "type": "number"
  25258. },
  25259. "metadata": {
  25260. "type": "object"
  25261. },
  25262. "type": {
  25263. "type": "string",
  25264. "enum": [
  25265. "session.reasoning.delta"
  25266. ]
  25267. },
  25268. "location": {
  25269. "$ref": "#/components/schemas/Location.Ref"
  25270. },
  25271. "data": {
  25272. "type": "object",
  25273. "properties": {
  25274. "sessionID": {
  25275. "type": "string",
  25276. "allOf": [
  25277. {
  25278. "pattern": "^ses"
  25279. }
  25280. ]
  25281. },
  25282. "assistantMessageID": {
  25283. "type": "string",
  25284. "allOf": [
  25285. {
  25286. "pattern": "^msg_"
  25287. }
  25288. ]
  25289. },
  25290. "ordinal": {
  25291. "type": "integer",
  25292. "allOf": [
  25293. {
  25294. "minimum": 0
  25295. }
  25296. ]
  25297. },
  25298. "delta": {
  25299. "type": "string"
  25300. }
  25301. },
  25302. "required": [
  25303. "sessionID",
  25304. "assistantMessageID",
  25305. "ordinal",
  25306. "delta"
  25307. ],
  25308. "additionalProperties": false
  25309. }
  25310. },
  25311. "required": [
  25312. "id",
  25313. "created",
  25314. "type",
  25315. "data"
  25316. ],
  25317. "additionalProperties": false
  25318. },
  25319. "session.tool.input.delta": {
  25320. "type": "object",
  25321. "properties": {
  25322. "id": {
  25323. "type": "string",
  25324. "allOf": [
  25325. {
  25326. "pattern": "^evt_"
  25327. }
  25328. ]
  25329. },
  25330. "created": {
  25331. "type": "number"
  25332. },
  25333. "metadata": {
  25334. "type": "object"
  25335. },
  25336. "type": {
  25337. "type": "string",
  25338. "enum": [
  25339. "session.tool.input.delta"
  25340. ]
  25341. },
  25342. "location": {
  25343. "$ref": "#/components/schemas/Location.Ref"
  25344. },
  25345. "data": {
  25346. "type": "object",
  25347. "properties": {
  25348. "sessionID": {
  25349. "type": "string",
  25350. "allOf": [
  25351. {
  25352. "pattern": "^ses"
  25353. }
  25354. ]
  25355. },
  25356. "assistantMessageID": {
  25357. "type": "string",
  25358. "allOf": [
  25359. {
  25360. "pattern": "^msg_"
  25361. }
  25362. ]
  25363. },
  25364. "callID": {
  25365. "type": "string"
  25366. },
  25367. "delta": {
  25368. "type": "string"
  25369. }
  25370. },
  25371. "required": [
  25372. "sessionID",
  25373. "assistantMessageID",
  25374. "callID",
  25375. "delta"
  25376. ],
  25377. "additionalProperties": false
  25378. }
  25379. },
  25380. "required": [
  25381. "id",
  25382. "created",
  25383. "type",
  25384. "data"
  25385. ],
  25386. "additionalProperties": false
  25387. },
  25388. "session.tool.progress": {
  25389. "type": "object",
  25390. "properties": {
  25391. "id": {
  25392. "type": "string",
  25393. "allOf": [
  25394. {
  25395. "pattern": "^evt_"
  25396. }
  25397. ]
  25398. },
  25399. "created": {
  25400. "type": "number"
  25401. },
  25402. "metadata": {
  25403. "type": "object"
  25404. },
  25405. "type": {
  25406. "type": "string",
  25407. "enum": [
  25408. "session.tool.progress"
  25409. ]
  25410. },
  25411. "location": {
  25412. "$ref": "#/components/schemas/Location.Ref"
  25413. },
  25414. "data": {
  25415. "type": "object",
  25416. "properties": {
  25417. "sessionID": {
  25418. "type": "string",
  25419. "allOf": [
  25420. {
  25421. "pattern": "^ses"
  25422. }
  25423. ]
  25424. },
  25425. "assistantMessageID": {
  25426. "type": "string",
  25427. "allOf": [
  25428. {
  25429. "pattern": "^msg_"
  25430. }
  25431. ]
  25432. },
  25433. "callID": {
  25434. "type": "string"
  25435. },
  25436. "metadata": {
  25437. "type": "object"
  25438. }
  25439. },
  25440. "required": [
  25441. "sessionID",
  25442. "assistantMessageID",
  25443. "callID",
  25444. "metadata"
  25445. ],
  25446. "additionalProperties": false
  25447. }
  25448. },
  25449. "required": [
  25450. "id",
  25451. "created",
  25452. "type",
  25453. "data"
  25454. ],
  25455. "additionalProperties": false
  25456. },
  25457. "session.compaction.delta": {
  25458. "type": "object",
  25459. "properties": {
  25460. "id": {
  25461. "type": "string",
  25462. "allOf": [
  25463. {
  25464. "pattern": "^evt_"
  25465. }
  25466. ]
  25467. },
  25468. "created": {
  25469. "type": "number"
  25470. },
  25471. "metadata": {
  25472. "type": "object"
  25473. },
  25474. "type": {
  25475. "type": "string",
  25476. "enum": [
  25477. "session.compaction.delta"
  25478. ]
  25479. },
  25480. "location": {
  25481. "$ref": "#/components/schemas/Location.Ref"
  25482. },
  25483. "data": {
  25484. "type": "object",
  25485. "properties": {
  25486. "sessionID": {
  25487. "type": "string",
  25488. "allOf": [
  25489. {
  25490. "pattern": "^ses"
  25491. }
  25492. ]
  25493. },
  25494. "text": {
  25495. "type": "string"
  25496. }
  25497. },
  25498. "required": [
  25499. "sessionID",
  25500. "text"
  25501. ],
  25502. "additionalProperties": false
  25503. }
  25504. },
  25505. "required": [
  25506. "id",
  25507. "created",
  25508. "type",
  25509. "data"
  25510. ],
  25511. "additionalProperties": false
  25512. },
  25513. "filesystem.changed": {
  25514. "type": "object",
  25515. "properties": {
  25516. "id": {
  25517. "type": "string",
  25518. "allOf": [
  25519. {
  25520. "pattern": "^evt_"
  25521. }
  25522. ]
  25523. },
  25524. "created": {
  25525. "type": "number"
  25526. },
  25527. "metadata": {
  25528. "type": "object"
  25529. },
  25530. "type": {
  25531. "type": "string",
  25532. "enum": [
  25533. "filesystem.changed"
  25534. ]
  25535. },
  25536. "location": {
  25537. "$ref": "#/components/schemas/Location.Ref"
  25538. },
  25539. "data": {
  25540. "type": "object",
  25541. "properties": {
  25542. "file": {
  25543. "type": "string"
  25544. },
  25545. "event": {
  25546. "type": "string",
  25547. "enum": [
  25548. "add",
  25549. "change",
  25550. "unlink"
  25551. ]
  25552. }
  25553. },
  25554. "required": [
  25555. "file",
  25556. "event"
  25557. ],
  25558. "additionalProperties": false
  25559. }
  25560. },
  25561. "required": [
  25562. "id",
  25563. "created",
  25564. "type",
  25565. "data"
  25566. ],
  25567. "additionalProperties": false
  25568. },
  25569. "reference.updated": {
  25570. "type": "object",
  25571. "properties": {
  25572. "id": {
  25573. "type": "string",
  25574. "allOf": [
  25575. {
  25576. "pattern": "^evt_"
  25577. }
  25578. ]
  25579. },
  25580. "created": {
  25581. "type": "number"
  25582. },
  25583. "metadata": {
  25584. "type": "object"
  25585. },
  25586. "type": {
  25587. "type": "string",
  25588. "enum": [
  25589. "reference.updated"
  25590. ]
  25591. },
  25592. "location": {
  25593. "$ref": "#/components/schemas/Location.Ref"
  25594. },
  25595. "data": {
  25596. "anyOf": [
  25597. {
  25598. "type": "object"
  25599. },
  25600. {
  25601. "type": "array"
  25602. }
  25603. ]
  25604. }
  25605. },
  25606. "required": [
  25607. "id",
  25608. "created",
  25609. "type",
  25610. "data"
  25611. ],
  25612. "additionalProperties": false
  25613. },
  25614. "permission.asked": {
  25615. "type": "object",
  25616. "properties": {
  25617. "id": {
  25618. "type": "string",
  25619. "allOf": [
  25620. {
  25621. "pattern": "^evt_"
  25622. }
  25623. ]
  25624. },
  25625. "created": {
  25626. "type": "number"
  25627. },
  25628. "metadata": {
  25629. "type": "object"
  25630. },
  25631. "type": {
  25632. "type": "string",
  25633. "enum": [
  25634. "permission.asked"
  25635. ]
  25636. },
  25637. "location": {
  25638. "$ref": "#/components/schemas/Location.Ref"
  25639. },
  25640. "data": {
  25641. "type": "object",
  25642. "properties": {
  25643. "id": {
  25644. "type": "string",
  25645. "allOf": [
  25646. {
  25647. "pattern": "^per"
  25648. }
  25649. ]
  25650. },
  25651. "sessionID": {
  25652. "type": "string",
  25653. "allOf": [
  25654. {
  25655. "pattern": "^ses"
  25656. }
  25657. ]
  25658. },
  25659. "action": {
  25660. "type": "string"
  25661. },
  25662. "resources": {
  25663. "type": "array",
  25664. "items": {
  25665. "type": "string"
  25666. }
  25667. },
  25668. "save": {
  25669. "type": "array",
  25670. "items": {
  25671. "type": "string"
  25672. }
  25673. },
  25674. "metadata": {
  25675. "type": "object"
  25676. },
  25677. "source": {
  25678. "$ref": "#/components/schemas/Permission.Source"
  25679. }
  25680. },
  25681. "required": [
  25682. "id",
  25683. "sessionID",
  25684. "action",
  25685. "resources"
  25686. ],
  25687. "additionalProperties": false
  25688. }
  25689. },
  25690. "required": [
  25691. "id",
  25692. "created",
  25693. "type",
  25694. "data"
  25695. ],
  25696. "additionalProperties": false
  25697. },
  25698. "permission.replied": {
  25699. "type": "object",
  25700. "properties": {
  25701. "id": {
  25702. "type": "string",
  25703. "allOf": [
  25704. {
  25705. "pattern": "^evt_"
  25706. }
  25707. ]
  25708. },
  25709. "created": {
  25710. "type": "number"
  25711. },
  25712. "metadata": {
  25713. "type": "object"
  25714. },
  25715. "type": {
  25716. "type": "string",
  25717. "enum": [
  25718. "permission.replied"
  25719. ]
  25720. },
  25721. "location": {
  25722. "$ref": "#/components/schemas/Location.Ref"
  25723. },
  25724. "data": {
  25725. "type": "object",
  25726. "properties": {
  25727. "sessionID": {
  25728. "type": "string",
  25729. "allOf": [
  25730. {
  25731. "pattern": "^ses"
  25732. }
  25733. ]
  25734. },
  25735. "requestID": {
  25736. "type": "string",
  25737. "allOf": [
  25738. {
  25739. "pattern": "^per"
  25740. }
  25741. ]
  25742. },
  25743. "reply": {
  25744. "$ref": "#/components/schemas/Permission.Reply"
  25745. }
  25746. },
  25747. "required": [
  25748. "sessionID",
  25749. "requestID",
  25750. "reply"
  25751. ],
  25752. "additionalProperties": false
  25753. }
  25754. },
  25755. "required": [
  25756. "id",
  25757. "created",
  25758. "type",
  25759. "data"
  25760. ],
  25761. "additionalProperties": false
  25762. },
  25763. "plugin.added": {
  25764. "type": "object",
  25765. "properties": {
  25766. "id": {
  25767. "type": "string",
  25768. "allOf": [
  25769. {
  25770. "pattern": "^evt_"
  25771. }
  25772. ]
  25773. },
  25774. "created": {
  25775. "type": "number"
  25776. },
  25777. "metadata": {
  25778. "type": "object"
  25779. },
  25780. "type": {
  25781. "type": "string",
  25782. "enum": [
  25783. "plugin.added"
  25784. ]
  25785. },
  25786. "location": {
  25787. "$ref": "#/components/schemas/Location.Ref"
  25788. },
  25789. "data": {
  25790. "type": "object",
  25791. "properties": {
  25792. "id": {
  25793. "type": "string"
  25794. }
  25795. },
  25796. "required": [
  25797. "id"
  25798. ],
  25799. "additionalProperties": false
  25800. }
  25801. },
  25802. "required": [
  25803. "id",
  25804. "created",
  25805. "type",
  25806. "data"
  25807. ],
  25808. "additionalProperties": false
  25809. },
  25810. "plugin.updated": {
  25811. "type": "object",
  25812. "properties": {
  25813. "id": {
  25814. "type": "string",
  25815. "allOf": [
  25816. {
  25817. "pattern": "^evt_"
  25818. }
  25819. ]
  25820. },
  25821. "created": {
  25822. "type": "number"
  25823. },
  25824. "metadata": {
  25825. "type": "object"
  25826. },
  25827. "type": {
  25828. "type": "string",
  25829. "enum": [
  25830. "plugin.updated"
  25831. ]
  25832. },
  25833. "location": {
  25834. "$ref": "#/components/schemas/Location.Ref"
  25835. },
  25836. "data": {
  25837. "anyOf": [
  25838. {
  25839. "type": "object"
  25840. },
  25841. {
  25842. "type": "array"
  25843. }
  25844. ]
  25845. }
  25846. },
  25847. "required": [
  25848. "id",
  25849. "created",
  25850. "type",
  25851. "data"
  25852. ],
  25853. "additionalProperties": false
  25854. },
  25855. "project.directories.updated": {
  25856. "type": "object",
  25857. "properties": {
  25858. "id": {
  25859. "type": "string",
  25860. "allOf": [
  25861. {
  25862. "pattern": "^evt_"
  25863. }
  25864. ]
  25865. },
  25866. "created": {
  25867. "type": "number"
  25868. },
  25869. "metadata": {
  25870. "type": "object"
  25871. },
  25872. "type": {
  25873. "type": "string",
  25874. "enum": [
  25875. "project.directories.updated"
  25876. ]
  25877. },
  25878. "location": {
  25879. "$ref": "#/components/schemas/Location.Ref"
  25880. },
  25881. "data": {
  25882. "type": "object",
  25883. "properties": {
  25884. "projectID": {
  25885. "type": "string"
  25886. }
  25887. },
  25888. "required": [
  25889. "projectID"
  25890. ],
  25891. "additionalProperties": false
  25892. }
  25893. },
  25894. "required": [
  25895. "id",
  25896. "created",
  25897. "type",
  25898. "data"
  25899. ],
  25900. "additionalProperties": false
  25901. },
  25902. "command.updated": {
  25903. "type": "object",
  25904. "properties": {
  25905. "id": {
  25906. "type": "string",
  25907. "allOf": [
  25908. {
  25909. "pattern": "^evt_"
  25910. }
  25911. ]
  25912. },
  25913. "created": {
  25914. "type": "number"
  25915. },
  25916. "metadata": {
  25917. "type": "object"
  25918. },
  25919. "type": {
  25920. "type": "string",
  25921. "enum": [
  25922. "command.updated"
  25923. ]
  25924. },
  25925. "location": {
  25926. "$ref": "#/components/schemas/Location.Ref"
  25927. },
  25928. "data": {
  25929. "anyOf": [
  25930. {
  25931. "type": "object"
  25932. },
  25933. {
  25934. "type": "array"
  25935. }
  25936. ]
  25937. }
  25938. },
  25939. "required": [
  25940. "id",
  25941. "created",
  25942. "type",
  25943. "data"
  25944. ],
  25945. "additionalProperties": false
  25946. },
  25947. "config.updated": {
  25948. "type": "object",
  25949. "properties": {
  25950. "id": {
  25951. "type": "string",
  25952. "allOf": [
  25953. {
  25954. "pattern": "^evt_"
  25955. }
  25956. ]
  25957. },
  25958. "created": {
  25959. "type": "number"
  25960. },
  25961. "metadata": {
  25962. "type": "object"
  25963. },
  25964. "type": {
  25965. "type": "string",
  25966. "enum": [
  25967. "config.updated"
  25968. ]
  25969. },
  25970. "location": {
  25971. "$ref": "#/components/schemas/Location.Ref"
  25972. },
  25973. "data": {
  25974. "anyOf": [
  25975. {
  25976. "type": "object"
  25977. },
  25978. {
  25979. "type": "array"
  25980. }
  25981. ]
  25982. }
  25983. },
  25984. "required": [
  25985. "id",
  25986. "created",
  25987. "type",
  25988. "data"
  25989. ],
  25990. "additionalProperties": false
  25991. },
  25992. "skill.updated": {
  25993. "type": "object",
  25994. "properties": {
  25995. "id": {
  25996. "type": "string",
  25997. "allOf": [
  25998. {
  25999. "pattern": "^evt_"
  26000. }
  26001. ]
  26002. },
  26003. "created": {
  26004. "type": "number"
  26005. },
  26006. "metadata": {
  26007. "type": "object"
  26008. },
  26009. "type": {
  26010. "type": "string",
  26011. "enum": [
  26012. "skill.updated"
  26013. ]
  26014. },
  26015. "location": {
  26016. "$ref": "#/components/schemas/Location.Ref"
  26017. },
  26018. "data": {
  26019. "anyOf": [
  26020. {
  26021. "type": "object"
  26022. },
  26023. {
  26024. "type": "array"
  26025. }
  26026. ]
  26027. }
  26028. },
  26029. "required": [
  26030. "id",
  26031. "created",
  26032. "type",
  26033. "data"
  26034. ],
  26035. "additionalProperties": false
  26036. },
  26037. "Pty": {
  26038. "type": "object",
  26039. "properties": {
  26040. "id": {
  26041. "type": "string",
  26042. "allOf": [
  26043. {
  26044. "pattern": "^pty"
  26045. }
  26046. ]
  26047. },
  26048. "title": {
  26049. "type": "string"
  26050. },
  26051. "command": {
  26052. "type": "string"
  26053. },
  26054. "args": {
  26055. "type": "array",
  26056. "items": {
  26057. "type": "string"
  26058. }
  26059. },
  26060. "cwd": {
  26061. "type": "string"
  26062. },
  26063. "status": {
  26064. "type": "string",
  26065. "enum": [
  26066. "running",
  26067. "exited"
  26068. ]
  26069. },
  26070. "pid": {
  26071. "type": "integer",
  26072. "allOf": [
  26073. {
  26074. "minimum": 0
  26075. }
  26076. ]
  26077. },
  26078. "exitCode": {
  26079. "type": "integer",
  26080. "allOf": [
  26081. {
  26082. "minimum": 0
  26083. }
  26084. ]
  26085. }
  26086. },
  26087. "required": [
  26088. "id",
  26089. "title",
  26090. "command",
  26091. "args",
  26092. "cwd",
  26093. "status",
  26094. "pid"
  26095. ],
  26096. "additionalProperties": false
  26097. },
  26098. "pty.created": {
  26099. "type": "object",
  26100. "properties": {
  26101. "id": {
  26102. "type": "string",
  26103. "allOf": [
  26104. {
  26105. "pattern": "^evt_"
  26106. }
  26107. ]
  26108. },
  26109. "created": {
  26110. "type": "number"
  26111. },
  26112. "metadata": {
  26113. "type": "object"
  26114. },
  26115. "type": {
  26116. "type": "string",
  26117. "enum": [
  26118. "pty.created"
  26119. ]
  26120. },
  26121. "location": {
  26122. "$ref": "#/components/schemas/Location.Ref"
  26123. },
  26124. "data": {
  26125. "type": "object",
  26126. "properties": {
  26127. "info": {
  26128. "$ref": "#/components/schemas/Pty"
  26129. }
  26130. },
  26131. "required": [
  26132. "info"
  26133. ],
  26134. "additionalProperties": false
  26135. }
  26136. },
  26137. "required": [
  26138. "id",
  26139. "created",
  26140. "type",
  26141. "data"
  26142. ],
  26143. "additionalProperties": false
  26144. },
  26145. "pty.updated": {
  26146. "type": "object",
  26147. "properties": {
  26148. "id": {
  26149. "type": "string",
  26150. "allOf": [
  26151. {
  26152. "pattern": "^evt_"
  26153. }
  26154. ]
  26155. },
  26156. "created": {
  26157. "type": "number"
  26158. },
  26159. "metadata": {
  26160. "type": "object"
  26161. },
  26162. "type": {
  26163. "type": "string",
  26164. "enum": [
  26165. "pty.updated"
  26166. ]
  26167. },
  26168. "location": {
  26169. "$ref": "#/components/schemas/Location.Ref"
  26170. },
  26171. "data": {
  26172. "type": "object",
  26173. "properties": {
  26174. "info": {
  26175. "$ref": "#/components/schemas/Pty"
  26176. }
  26177. },
  26178. "required": [
  26179. "info"
  26180. ],
  26181. "additionalProperties": false
  26182. }
  26183. },
  26184. "required": [
  26185. "id",
  26186. "created",
  26187. "type",
  26188. "data"
  26189. ],
  26190. "additionalProperties": false
  26191. },
  26192. "pty.exited": {
  26193. "type": "object",
  26194. "properties": {
  26195. "id": {
  26196. "type": "string",
  26197. "allOf": [
  26198. {
  26199. "pattern": "^evt_"
  26200. }
  26201. ]
  26202. },
  26203. "created": {
  26204. "type": "number"
  26205. },
  26206. "metadata": {
  26207. "type": "object"
  26208. },
  26209. "type": {
  26210. "type": "string",
  26211. "enum": [
  26212. "pty.exited"
  26213. ]
  26214. },
  26215. "location": {
  26216. "$ref": "#/components/schemas/Location.Ref"
  26217. },
  26218. "data": {
  26219. "type": "object",
  26220. "properties": {
  26221. "id": {
  26222. "type": "string",
  26223. "allOf": [
  26224. {
  26225. "pattern": "^pty"
  26226. }
  26227. ]
  26228. },
  26229. "exitCode": {
  26230. "type": "integer",
  26231. "allOf": [
  26232. {
  26233. "minimum": 0
  26234. }
  26235. ]
  26236. }
  26237. },
  26238. "required": [
  26239. "id",
  26240. "exitCode"
  26241. ],
  26242. "additionalProperties": false
  26243. }
  26244. },
  26245. "required": [
  26246. "id",
  26247. "created",
  26248. "type",
  26249. "data"
  26250. ],
  26251. "additionalProperties": false
  26252. },
  26253. "pty.deleted": {
  26254. "type": "object",
  26255. "properties": {
  26256. "id": {
  26257. "type": "string",
  26258. "allOf": [
  26259. {
  26260. "pattern": "^evt_"
  26261. }
  26262. ]
  26263. },
  26264. "created": {
  26265. "type": "number"
  26266. },
  26267. "metadata": {
  26268. "type": "object"
  26269. },
  26270. "type": {
  26271. "type": "string",
  26272. "enum": [
  26273. "pty.deleted"
  26274. ]
  26275. },
  26276. "location": {
  26277. "$ref": "#/components/schemas/Location.Ref"
  26278. },
  26279. "data": {
  26280. "type": "object",
  26281. "properties": {
  26282. "id": {
  26283. "type": "string",
  26284. "allOf": [
  26285. {
  26286. "pattern": "^pty"
  26287. }
  26288. ]
  26289. }
  26290. },
  26291. "required": [
  26292. "id"
  26293. ],
  26294. "additionalProperties": false
  26295. }
  26296. },
  26297. "required": [
  26298. "id",
  26299. "created",
  26300. "type",
  26301. "data"
  26302. ],
  26303. "additionalProperties": false
  26304. },
  26305. "shell.created": {
  26306. "type": "object",
  26307. "properties": {
  26308. "id": {
  26309. "type": "string",
  26310. "allOf": [
  26311. {
  26312. "pattern": "^evt_"
  26313. }
  26314. ]
  26315. },
  26316. "created": {
  26317. "type": "number"
  26318. },
  26319. "metadata": {
  26320. "type": "object"
  26321. },
  26322. "type": {
  26323. "type": "string",
  26324. "enum": [
  26325. "shell.created"
  26326. ]
  26327. },
  26328. "location": {
  26329. "$ref": "#/components/schemas/Location.Ref"
  26330. },
  26331. "data": {
  26332. "type": "object",
  26333. "properties": {
  26334. "info": {
  26335. "$ref": "#/components/schemas/Shell.Info"
  26336. }
  26337. },
  26338. "required": [
  26339. "info"
  26340. ],
  26341. "additionalProperties": false
  26342. }
  26343. },
  26344. "required": [
  26345. "id",
  26346. "created",
  26347. "type",
  26348. "data"
  26349. ],
  26350. "additionalProperties": false
  26351. },
  26352. "shell.exited": {
  26353. "type": "object",
  26354. "properties": {
  26355. "id": {
  26356. "type": "string",
  26357. "allOf": [
  26358. {
  26359. "pattern": "^evt_"
  26360. }
  26361. ]
  26362. },
  26363. "created": {
  26364. "type": "number"
  26365. },
  26366. "metadata": {
  26367. "type": "object"
  26368. },
  26369. "type": {
  26370. "type": "string",
  26371. "enum": [
  26372. "shell.exited"
  26373. ]
  26374. },
  26375. "location": {
  26376. "$ref": "#/components/schemas/Location.Ref"
  26377. },
  26378. "data": {
  26379. "type": "object",
  26380. "properties": {
  26381. "id": {
  26382. "type": "string",
  26383. "allOf": [
  26384. {
  26385. "pattern": "^sh_"
  26386. }
  26387. ]
  26388. },
  26389. "exit": {
  26390. "type": "number"
  26391. },
  26392. "status": {
  26393. "type": "string",
  26394. "enum": [
  26395. "running",
  26396. "exited",
  26397. "timeout",
  26398. "killed"
  26399. ]
  26400. }
  26401. },
  26402. "required": [
  26403. "id",
  26404. "status"
  26405. ],
  26406. "additionalProperties": false
  26407. }
  26408. },
  26409. "required": [
  26410. "id",
  26411. "created",
  26412. "type",
  26413. "data"
  26414. ],
  26415. "additionalProperties": false
  26416. },
  26417. "shell.deleted": {
  26418. "type": "object",
  26419. "properties": {
  26420. "id": {
  26421. "type": "string",
  26422. "allOf": [
  26423. {
  26424. "pattern": "^evt_"
  26425. }
  26426. ]
  26427. },
  26428. "created": {
  26429. "type": "number"
  26430. },
  26431. "metadata": {
  26432. "type": "object"
  26433. },
  26434. "type": {
  26435. "type": "string",
  26436. "enum": [
  26437. "shell.deleted"
  26438. ]
  26439. },
  26440. "location": {
  26441. "$ref": "#/components/schemas/Location.Ref"
  26442. },
  26443. "data": {
  26444. "type": "object",
  26445. "properties": {
  26446. "id": {
  26447. "type": "string",
  26448. "allOf": [
  26449. {
  26450. "pattern": "^sh_"
  26451. }
  26452. ]
  26453. }
  26454. },
  26455. "required": [
  26456. "id"
  26457. ],
  26458. "additionalProperties": false
  26459. }
  26460. },
  26461. "required": [
  26462. "id",
  26463. "created",
  26464. "type",
  26465. "data"
  26466. ],
  26467. "additionalProperties": false
  26468. },
  26469. "Question.Option": {
  26470. "type": "object",
  26471. "properties": {
  26472. "label": {
  26473. "type": "string",
  26474. "description": "Display text (1-5 words, concise)"
  26475. },
  26476. "description": {
  26477. "type": "string",
  26478. "description": "Explanation of choice"
  26479. }
  26480. },
  26481. "required": [
  26482. "label",
  26483. "description"
  26484. ],
  26485. "additionalProperties": false
  26486. },
  26487. "Question.Info": {
  26488. "type": "object",
  26489. "properties": {
  26490. "question": {
  26491. "type": "string",
  26492. "description": "Complete question"
  26493. },
  26494. "header": {
  26495. "type": "string",
  26496. "description": "Very short label (max 30 chars)"
  26497. },
  26498. "options": {
  26499. "type": "array",
  26500. "items": {
  26501. "$ref": "#/components/schemas/Question.Option"
  26502. },
  26503. "description": "Available choices"
  26504. },
  26505. "multiple": {
  26506. "type": "boolean"
  26507. },
  26508. "custom": {
  26509. "type": "boolean"
  26510. }
  26511. },
  26512. "required": [
  26513. "question",
  26514. "header",
  26515. "options"
  26516. ],
  26517. "additionalProperties": false
  26518. },
  26519. "Question.Tool": {
  26520. "type": "object",
  26521. "properties": {
  26522. "messageID": {
  26523. "type": "string"
  26524. },
  26525. "callID": {
  26526. "type": "string"
  26527. }
  26528. },
  26529. "required": [
  26530. "messageID",
  26531. "callID"
  26532. ],
  26533. "additionalProperties": false
  26534. },
  26535. "question.asked": {
  26536. "type": "object",
  26537. "properties": {
  26538. "id": {
  26539. "type": "string",
  26540. "allOf": [
  26541. {
  26542. "pattern": "^evt_"
  26543. }
  26544. ]
  26545. },
  26546. "created": {
  26547. "type": "number"
  26548. },
  26549. "metadata": {
  26550. "type": "object"
  26551. },
  26552. "type": {
  26553. "type": "string",
  26554. "enum": [
  26555. "question.asked"
  26556. ]
  26557. },
  26558. "location": {
  26559. "$ref": "#/components/schemas/Location.Ref"
  26560. },
  26561. "data": {
  26562. "type": "object",
  26563. "properties": {
  26564. "id": {
  26565. "type": "string",
  26566. "allOf": [
  26567. {
  26568. "pattern": "^que"
  26569. }
  26570. ]
  26571. },
  26572. "sessionID": {
  26573. "type": "string",
  26574. "allOf": [
  26575. {
  26576. "pattern": "^ses"
  26577. }
  26578. ]
  26579. },
  26580. "questions": {
  26581. "type": "array",
  26582. "items": {
  26583. "$ref": "#/components/schemas/Question.Info"
  26584. },
  26585. "description": "Questions to ask"
  26586. },
  26587. "tool": {
  26588. "$ref": "#/components/schemas/Question.Tool"
  26589. }
  26590. },
  26591. "required": [
  26592. "id",
  26593. "sessionID",
  26594. "questions"
  26595. ],
  26596. "additionalProperties": false
  26597. }
  26598. },
  26599. "required": [
  26600. "id",
  26601. "created",
  26602. "type",
  26603. "data"
  26604. ],
  26605. "additionalProperties": false
  26606. },
  26607. "Question.Answer": {
  26608. "type": "array",
  26609. "items": {
  26610. "type": "string"
  26611. }
  26612. },
  26613. "question.replied": {
  26614. "type": "object",
  26615. "properties": {
  26616. "id": {
  26617. "type": "string",
  26618. "allOf": [
  26619. {
  26620. "pattern": "^evt_"
  26621. }
  26622. ]
  26623. },
  26624. "created": {
  26625. "type": "number"
  26626. },
  26627. "metadata": {
  26628. "type": "object"
  26629. },
  26630. "type": {
  26631. "type": "string",
  26632. "enum": [
  26633. "question.replied"
  26634. ]
  26635. },
  26636. "location": {
  26637. "$ref": "#/components/schemas/Location.Ref"
  26638. },
  26639. "data": {
  26640. "type": "object",
  26641. "properties": {
  26642. "sessionID": {
  26643. "type": "string",
  26644. "allOf": [
  26645. {
  26646. "pattern": "^ses"
  26647. }
  26648. ]
  26649. },
  26650. "requestID": {
  26651. "type": "string",
  26652. "allOf": [
  26653. {
  26654. "pattern": "^que"
  26655. }
  26656. ]
  26657. },
  26658. "answers": {
  26659. "type": "array",
  26660. "items": {
  26661. "$ref": "#/components/schemas/Question.Answer"
  26662. }
  26663. }
  26664. },
  26665. "required": [
  26666. "sessionID",
  26667. "requestID",
  26668. "answers"
  26669. ],
  26670. "additionalProperties": false
  26671. }
  26672. },
  26673. "required": [
  26674. "id",
  26675. "created",
  26676. "type",
  26677. "data"
  26678. ],
  26679. "additionalProperties": false
  26680. },
  26681. "question.rejected": {
  26682. "type": "object",
  26683. "properties": {
  26684. "id": {
  26685. "type": "string",
  26686. "allOf": [
  26687. {
  26688. "pattern": "^evt_"
  26689. }
  26690. ]
  26691. },
  26692. "created": {
  26693. "type": "number"
  26694. },
  26695. "metadata": {
  26696. "type": "object"
  26697. },
  26698. "type": {
  26699. "type": "string",
  26700. "enum": [
  26701. "question.rejected"
  26702. ]
  26703. },
  26704. "location": {
  26705. "$ref": "#/components/schemas/Location.Ref"
  26706. },
  26707. "data": {
  26708. "type": "object",
  26709. "properties": {
  26710. "sessionID": {
  26711. "type": "string",
  26712. "allOf": [
  26713. {
  26714. "pattern": "^ses"
  26715. }
  26716. ]
  26717. },
  26718. "requestID": {
  26719. "type": "string",
  26720. "allOf": [
  26721. {
  26722. "pattern": "^que"
  26723. }
  26724. ]
  26725. }
  26726. },
  26727. "required": [
  26728. "sessionID",
  26729. "requestID"
  26730. ],
  26731. "additionalProperties": false
  26732. }
  26733. },
  26734. "required": [
  26735. "id",
  26736. "created",
  26737. "type",
  26738. "data"
  26739. ],
  26740. "additionalProperties": false
  26741. },
  26742. "Form.Metadata1": {
  26743. "type": "object"
  26744. },
  26745. "Form.When1": {
  26746. "type": "object",
  26747. "properties": {
  26748. "key": {
  26749. "type": "string"
  26750. },
  26751. "op": {
  26752. "type": "string",
  26753. "enum": [
  26754. "eq",
  26755. "neq"
  26756. ]
  26757. },
  26758. "value": {
  26759. "anyOf": [
  26760. {
  26761. "type": "string"
  26762. },
  26763. {
  26764. "anyOf": [
  26765. {
  26766. "type": "number"
  26767. },
  26768. {
  26769. "type": "string",
  26770. "enum": [
  26771. "NaN"
  26772. ]
  26773. },
  26774. {
  26775. "type": "string",
  26776. "enum": [
  26777. "Infinity"
  26778. ]
  26779. },
  26780. {
  26781. "type": "string",
  26782. "enum": [
  26783. "-Infinity"
  26784. ]
  26785. }
  26786. ]
  26787. },
  26788. {
  26789. "type": "boolean"
  26790. }
  26791. ]
  26792. }
  26793. },
  26794. "required": [
  26795. "key",
  26796. "op",
  26797. "value"
  26798. ],
  26799. "additionalProperties": false
  26800. },
  26801. "Form.StringField1": {
  26802. "type": "object",
  26803. "properties": {
  26804. "key": {
  26805. "type": "string"
  26806. },
  26807. "title": {
  26808. "type": "string"
  26809. },
  26810. "description": {
  26811. "type": "string"
  26812. },
  26813. "required": {
  26814. "type": "boolean"
  26815. },
  26816. "when": {
  26817. "type": "array",
  26818. "items": {
  26819. "$ref": "#/components/schemas/Form.When1"
  26820. }
  26821. },
  26822. "type": {
  26823. "type": "string",
  26824. "enum": [
  26825. "string"
  26826. ]
  26827. },
  26828. "format": {
  26829. "type": "string",
  26830. "enum": [
  26831. "email",
  26832. "uri",
  26833. "date",
  26834. "date-time"
  26835. ]
  26836. },
  26837. "minLength": {
  26838. "type": "integer",
  26839. "allOf": [
  26840. {
  26841. "minimum": 0
  26842. }
  26843. ]
  26844. },
  26845. "maxLength": {
  26846. "type": "integer",
  26847. "allOf": [
  26848. {
  26849. "minimum": 0
  26850. }
  26851. ]
  26852. },
  26853. "pattern": {
  26854. "type": "string"
  26855. },
  26856. "placeholder": {
  26857. "type": "string"
  26858. },
  26859. "default": {
  26860. "type": "string"
  26861. },
  26862. "options": {
  26863. "type": "array",
  26864. "items": {
  26865. "$ref": "#/components/schemas/Form.Option"
  26866. }
  26867. },
  26868. "custom": {
  26869. "type": "boolean"
  26870. }
  26871. },
  26872. "required": [
  26873. "key",
  26874. "type"
  26875. ],
  26876. "additionalProperties": false
  26877. },
  26878. "Form.NumberField1": {
  26879. "type": "object",
  26880. "properties": {
  26881. "key": {
  26882. "type": "string"
  26883. },
  26884. "title": {
  26885. "type": "string"
  26886. },
  26887. "description": {
  26888. "type": "string"
  26889. },
  26890. "required": {
  26891. "type": "boolean"
  26892. },
  26893. "when": {
  26894. "type": "array",
  26895. "items": {
  26896. "$ref": "#/components/schemas/Form.When1"
  26897. }
  26898. },
  26899. "type": {
  26900. "type": "string",
  26901. "enum": [
  26902. "number"
  26903. ]
  26904. },
  26905. "minimum": {
  26906. "anyOf": [
  26907. {
  26908. "type": "number"
  26909. },
  26910. {
  26911. "type": "string",
  26912. "enum": [
  26913. "NaN"
  26914. ]
  26915. },
  26916. {
  26917. "type": "string",
  26918. "enum": [
  26919. "Infinity"
  26920. ]
  26921. },
  26922. {
  26923. "type": "string",
  26924. "enum": [
  26925. "-Infinity"
  26926. ]
  26927. }
  26928. ]
  26929. },
  26930. "maximum": {
  26931. "anyOf": [
  26932. {
  26933. "type": "number"
  26934. },
  26935. {
  26936. "type": "string",
  26937. "enum": [
  26938. "NaN"
  26939. ]
  26940. },
  26941. {
  26942. "type": "string",
  26943. "enum": [
  26944. "Infinity"
  26945. ]
  26946. },
  26947. {
  26948. "type": "string",
  26949. "enum": [
  26950. "-Infinity"
  26951. ]
  26952. }
  26953. ]
  26954. },
  26955. "default": {
  26956. "anyOf": [
  26957. {
  26958. "type": "number"
  26959. },
  26960. {
  26961. "type": "string",
  26962. "enum": [
  26963. "NaN"
  26964. ]
  26965. },
  26966. {
  26967. "type": "string",
  26968. "enum": [
  26969. "Infinity"
  26970. ]
  26971. },
  26972. {
  26973. "type": "string",
  26974. "enum": [
  26975. "-Infinity"
  26976. ]
  26977. }
  26978. ]
  26979. }
  26980. },
  26981. "required": [
  26982. "key",
  26983. "type"
  26984. ],
  26985. "additionalProperties": false
  26986. },
  26987. "Form.IntegerField1": {
  26988. "type": "object",
  26989. "properties": {
  26990. "key": {
  26991. "type": "string"
  26992. },
  26993. "title": {
  26994. "type": "string"
  26995. },
  26996. "description": {
  26997. "type": "string"
  26998. },
  26999. "required": {
  27000. "type": "boolean"
  27001. },
  27002. "when": {
  27003. "type": "array",
  27004. "items": {
  27005. "$ref": "#/components/schemas/Form.When1"
  27006. }
  27007. },
  27008. "type": {
  27009. "type": "string",
  27010. "enum": [
  27011. "integer"
  27012. ]
  27013. },
  27014. "minimum": {
  27015. "anyOf": [
  27016. {
  27017. "type": "number"
  27018. },
  27019. {
  27020. "type": "string",
  27021. "enum": [
  27022. "NaN"
  27023. ]
  27024. },
  27025. {
  27026. "type": "string",
  27027. "enum": [
  27028. "Infinity"
  27029. ]
  27030. },
  27031. {
  27032. "type": "string",
  27033. "enum": [
  27034. "-Infinity"
  27035. ]
  27036. }
  27037. ]
  27038. },
  27039. "maximum": {
  27040. "anyOf": [
  27041. {
  27042. "type": "number"
  27043. },
  27044. {
  27045. "type": "string",
  27046. "enum": [
  27047. "NaN"
  27048. ]
  27049. },
  27050. {
  27051. "type": "string",
  27052. "enum": [
  27053. "Infinity"
  27054. ]
  27055. },
  27056. {
  27057. "type": "string",
  27058. "enum": [
  27059. "-Infinity"
  27060. ]
  27061. }
  27062. ]
  27063. },
  27064. "default": {
  27065. "anyOf": [
  27066. {
  27067. "type": "number"
  27068. },
  27069. {
  27070. "type": "string",
  27071. "enum": [
  27072. "NaN"
  27073. ]
  27074. },
  27075. {
  27076. "type": "string",
  27077. "enum": [
  27078. "Infinity"
  27079. ]
  27080. },
  27081. {
  27082. "type": "string",
  27083. "enum": [
  27084. "-Infinity"
  27085. ]
  27086. }
  27087. ]
  27088. }
  27089. },
  27090. "required": [
  27091. "key",
  27092. "type"
  27093. ],
  27094. "additionalProperties": false
  27095. },
  27096. "Form.BooleanField1": {
  27097. "type": "object",
  27098. "properties": {
  27099. "key": {
  27100. "type": "string"
  27101. },
  27102. "title": {
  27103. "type": "string"
  27104. },
  27105. "description": {
  27106. "type": "string"
  27107. },
  27108. "required": {
  27109. "type": "boolean"
  27110. },
  27111. "when": {
  27112. "type": "array",
  27113. "items": {
  27114. "$ref": "#/components/schemas/Form.When1"
  27115. }
  27116. },
  27117. "type": {
  27118. "type": "string",
  27119. "enum": [
  27120. "boolean"
  27121. ]
  27122. },
  27123. "default": {
  27124. "type": "boolean"
  27125. }
  27126. },
  27127. "required": [
  27128. "key",
  27129. "type"
  27130. ],
  27131. "additionalProperties": false
  27132. },
  27133. "Form.MultiselectField1": {
  27134. "type": "object",
  27135. "properties": {
  27136. "key": {
  27137. "type": "string"
  27138. },
  27139. "title": {
  27140. "type": "string"
  27141. },
  27142. "description": {
  27143. "type": "string"
  27144. },
  27145. "required": {
  27146. "type": "boolean"
  27147. },
  27148. "when": {
  27149. "type": "array",
  27150. "items": {
  27151. "$ref": "#/components/schemas/Form.When1"
  27152. }
  27153. },
  27154. "type": {
  27155. "type": "string",
  27156. "enum": [
  27157. "multiselect"
  27158. ]
  27159. },
  27160. "options": {
  27161. "type": "array",
  27162. "items": {
  27163. "$ref": "#/components/schemas/Form.Option"
  27164. }
  27165. },
  27166. "minItems": {
  27167. "type": "integer",
  27168. "allOf": [
  27169. {
  27170. "minimum": 0
  27171. }
  27172. ]
  27173. },
  27174. "maxItems": {
  27175. "type": "integer",
  27176. "allOf": [
  27177. {
  27178. "minimum": 0
  27179. }
  27180. ]
  27181. },
  27182. "custom": {
  27183. "type": "boolean"
  27184. },
  27185. "default": {
  27186. "type": "array",
  27187. "items": {
  27188. "type": "string"
  27189. }
  27190. }
  27191. },
  27192. "required": [
  27193. "key",
  27194. "type",
  27195. "options"
  27196. ],
  27197. "additionalProperties": false
  27198. },
  27199. "Form.Field1": {
  27200. "anyOf": [
  27201. {
  27202. "$ref": "#/components/schemas/Form.StringField1"
  27203. },
  27204. {
  27205. "$ref": "#/components/schemas/Form.NumberField1"
  27206. },
  27207. {
  27208. "$ref": "#/components/schemas/Form.IntegerField1"
  27209. },
  27210. {
  27211. "$ref": "#/components/schemas/Form.BooleanField1"
  27212. },
  27213. {
  27214. "$ref": "#/components/schemas/Form.MultiselectField1"
  27215. },
  27216. {
  27217. "$ref": "#/components/schemas/Form.ExternalField"
  27218. }
  27219. ]
  27220. },
  27221. "Form.Fields1": {
  27222. "type": "array",
  27223. "prefixItems": [
  27224. {
  27225. "$ref": "#/components/schemas/Form.Field1"
  27226. }
  27227. ],
  27228. "minItems": 1,
  27229. "items": {
  27230. "$ref": "#/components/schemas/Form.Field1"
  27231. }
  27232. },
  27233. "Form.Info1": {
  27234. "type": "object",
  27235. "properties": {
  27236. "id": {
  27237. "type": "string",
  27238. "allOf": [
  27239. {
  27240. "pattern": "^frm_"
  27241. }
  27242. ]
  27243. },
  27244. "sessionID": {
  27245. "type": "string"
  27246. },
  27247. "title": {
  27248. "type": "string"
  27249. },
  27250. "metadata": {
  27251. "$ref": "#/components/schemas/Form.Metadata1"
  27252. },
  27253. "fields": {
  27254. "$ref": "#/components/schemas/Form.Fields1"
  27255. }
  27256. },
  27257. "required": [
  27258. "id",
  27259. "sessionID",
  27260. "title",
  27261. "fields"
  27262. ],
  27263. "additionalProperties": false
  27264. },
  27265. "form.created": {
  27266. "type": "object",
  27267. "properties": {
  27268. "id": {
  27269. "type": "string",
  27270. "allOf": [
  27271. {
  27272. "pattern": "^evt_"
  27273. }
  27274. ]
  27275. },
  27276. "created": {
  27277. "type": "number"
  27278. },
  27279. "metadata": {
  27280. "type": "object"
  27281. },
  27282. "type": {
  27283. "type": "string",
  27284. "enum": [
  27285. "form.created"
  27286. ]
  27287. },
  27288. "location": {
  27289. "$ref": "#/components/schemas/Location.Ref"
  27290. },
  27291. "data": {
  27292. "type": "object",
  27293. "properties": {
  27294. "form": {
  27295. "$ref": "#/components/schemas/Form.Info1"
  27296. }
  27297. },
  27298. "required": [
  27299. "form"
  27300. ],
  27301. "additionalProperties": false
  27302. }
  27303. },
  27304. "required": [
  27305. "id",
  27306. "created",
  27307. "type",
  27308. "data"
  27309. ],
  27310. "additionalProperties": false
  27311. },
  27312. "Form.Value1": {
  27313. "anyOf": [
  27314. {
  27315. "type": "string"
  27316. },
  27317. {
  27318. "anyOf": [
  27319. {
  27320. "type": "number"
  27321. },
  27322. {
  27323. "type": "string",
  27324. "enum": [
  27325. "NaN"
  27326. ]
  27327. },
  27328. {
  27329. "type": "string",
  27330. "enum": [
  27331. "Infinity"
  27332. ]
  27333. },
  27334. {
  27335. "type": "string",
  27336. "enum": [
  27337. "-Infinity"
  27338. ]
  27339. }
  27340. ]
  27341. },
  27342. {
  27343. "type": "boolean"
  27344. },
  27345. {
  27346. "type": "array",
  27347. "items": {
  27348. "type": "string"
  27349. }
  27350. }
  27351. ]
  27352. },
  27353. "Form.Answer1": {
  27354. "type": "object",
  27355. "additionalProperties": {
  27356. "$ref": "#/components/schemas/Form.Value1"
  27357. }
  27358. },
  27359. "form.replied": {
  27360. "type": "object",
  27361. "properties": {
  27362. "id": {
  27363. "type": "string",
  27364. "allOf": [
  27365. {
  27366. "pattern": "^evt_"
  27367. }
  27368. ]
  27369. },
  27370. "created": {
  27371. "type": "number"
  27372. },
  27373. "metadata": {
  27374. "type": "object"
  27375. },
  27376. "type": {
  27377. "type": "string",
  27378. "enum": [
  27379. "form.replied"
  27380. ]
  27381. },
  27382. "location": {
  27383. "$ref": "#/components/schemas/Location.Ref"
  27384. },
  27385. "data": {
  27386. "type": "object",
  27387. "properties": {
  27388. "id": {
  27389. "type": "string",
  27390. "allOf": [
  27391. {
  27392. "pattern": "^frm_"
  27393. }
  27394. ]
  27395. },
  27396. "sessionID": {
  27397. "type": "string"
  27398. },
  27399. "answer": {
  27400. "$ref": "#/components/schemas/Form.Answer1"
  27401. }
  27402. },
  27403. "required": [
  27404. "id",
  27405. "sessionID",
  27406. "answer"
  27407. ],
  27408. "additionalProperties": false
  27409. }
  27410. },
  27411. "required": [
  27412. "id",
  27413. "created",
  27414. "type",
  27415. "data"
  27416. ],
  27417. "additionalProperties": false
  27418. },
  27419. "form.cancelled": {
  27420. "type": "object",
  27421. "properties": {
  27422. "id": {
  27423. "type": "string",
  27424. "allOf": [
  27425. {
  27426. "pattern": "^evt_"
  27427. }
  27428. ]
  27429. },
  27430. "created": {
  27431. "type": "number"
  27432. },
  27433. "metadata": {
  27434. "type": "object"
  27435. },
  27436. "type": {
  27437. "type": "string",
  27438. "enum": [
  27439. "form.cancelled"
  27440. ]
  27441. },
  27442. "location": {
  27443. "$ref": "#/components/schemas/Location.Ref"
  27444. },
  27445. "data": {
  27446. "type": "object",
  27447. "properties": {
  27448. "id": {
  27449. "type": "string",
  27450. "allOf": [
  27451. {
  27452. "pattern": "^frm_"
  27453. }
  27454. ]
  27455. },
  27456. "sessionID": {
  27457. "type": "string"
  27458. }
  27459. },
  27460. "required": [
  27461. "id",
  27462. "sessionID"
  27463. ],
  27464. "additionalProperties": false
  27465. }
  27466. },
  27467. "required": [
  27468. "id",
  27469. "created",
  27470. "type",
  27471. "data"
  27472. ],
  27473. "additionalProperties": false
  27474. },
  27475. "websearch.updated": {
  27476. "type": "object",
  27477. "properties": {
  27478. "id": {
  27479. "type": "string",
  27480. "allOf": [
  27481. {
  27482. "pattern": "^evt_"
  27483. }
  27484. ]
  27485. },
  27486. "created": {
  27487. "type": "number"
  27488. },
  27489. "metadata": {
  27490. "type": "object"
  27491. },
  27492. "type": {
  27493. "type": "string",
  27494. "enum": [
  27495. "websearch.updated"
  27496. ]
  27497. },
  27498. "location": {
  27499. "$ref": "#/components/schemas/Location.Ref"
  27500. },
  27501. "data": {
  27502. "anyOf": [
  27503. {
  27504. "type": "object"
  27505. },
  27506. {
  27507. "type": "array"
  27508. }
  27509. ]
  27510. }
  27511. },
  27512. "required": [
  27513. "id",
  27514. "created",
  27515. "type",
  27516. "data"
  27517. ],
  27518. "additionalProperties": false
  27519. },
  27520. "SessionStatus": {
  27521. "anyOf": [
  27522. {
  27523. "type": "object",
  27524. "properties": {
  27525. "type": {
  27526. "type": "string",
  27527. "enum": [
  27528. "idle"
  27529. ]
  27530. }
  27531. },
  27532. "required": [
  27533. "type"
  27534. ],
  27535. "additionalProperties": false
  27536. },
  27537. {
  27538. "type": "object",
  27539. "properties": {
  27540. "type": {
  27541. "type": "string",
  27542. "enum": [
  27543. "retry"
  27544. ]
  27545. },
  27546. "attempt": {
  27547. "type": "integer",
  27548. "allOf": [
  27549. {
  27550. "minimum": 0
  27551. }
  27552. ]
  27553. },
  27554. "message": {
  27555. "type": "string"
  27556. },
  27557. "action": {
  27558. "type": "object",
  27559. "properties": {
  27560. "reason": {
  27561. "type": "string"
  27562. },
  27563. "provider": {
  27564. "type": "string"
  27565. },
  27566. "title": {
  27567. "type": "string"
  27568. },
  27569. "message": {
  27570. "type": "string"
  27571. },
  27572. "label": {
  27573. "type": "string"
  27574. },
  27575. "link": {
  27576. "type": "string"
  27577. }
  27578. },
  27579. "required": [
  27580. "reason",
  27581. "provider",
  27582. "title",
  27583. "message",
  27584. "label"
  27585. ],
  27586. "additionalProperties": false
  27587. },
  27588. "next": {
  27589. "type": "integer",
  27590. "allOf": [
  27591. {
  27592. "minimum": 0
  27593. }
  27594. ]
  27595. }
  27596. },
  27597. "required": [
  27598. "type",
  27599. "attempt",
  27600. "message",
  27601. "next"
  27602. ],
  27603. "additionalProperties": false
  27604. },
  27605. {
  27606. "type": "object",
  27607. "properties": {
  27608. "type": {
  27609. "type": "string",
  27610. "enum": [
  27611. "busy"
  27612. ]
  27613. }
  27614. },
  27615. "required": [
  27616. "type"
  27617. ],
  27618. "additionalProperties": false
  27619. }
  27620. ]
  27621. },
  27622. "session.status": {
  27623. "type": "object",
  27624. "properties": {
  27625. "id": {
  27626. "type": "string",
  27627. "allOf": [
  27628. {
  27629. "pattern": "^evt_"
  27630. }
  27631. ]
  27632. },
  27633. "created": {
  27634. "type": "number"
  27635. },
  27636. "metadata": {
  27637. "type": "object"
  27638. },
  27639. "type": {
  27640. "type": "string",
  27641. "enum": [
  27642. "session.status"
  27643. ]
  27644. },
  27645. "location": {
  27646. "$ref": "#/components/schemas/Location.Ref"
  27647. },
  27648. "data": {
  27649. "type": "object",
  27650. "properties": {
  27651. "sessionID": {
  27652. "type": "string",
  27653. "allOf": [
  27654. {
  27655. "pattern": "^ses"
  27656. }
  27657. ]
  27658. },
  27659. "status": {
  27660. "$ref": "#/components/schemas/SessionStatus"
  27661. }
  27662. },
  27663. "required": [
  27664. "sessionID",
  27665. "status"
  27666. ],
  27667. "additionalProperties": false
  27668. }
  27669. },
  27670. "required": [
  27671. "id",
  27672. "created",
  27673. "type",
  27674. "data"
  27675. ],
  27676. "additionalProperties": false
  27677. },
  27678. "session.idle": {
  27679. "type": "object",
  27680. "properties": {
  27681. "id": {
  27682. "type": "string",
  27683. "allOf": [
  27684. {
  27685. "pattern": "^evt_"
  27686. }
  27687. ]
  27688. },
  27689. "created": {
  27690. "type": "number"
  27691. },
  27692. "metadata": {
  27693. "type": "object"
  27694. },
  27695. "type": {
  27696. "type": "string",
  27697. "enum": [
  27698. "session.idle"
  27699. ]
  27700. },
  27701. "location": {
  27702. "$ref": "#/components/schemas/Location.Ref"
  27703. },
  27704. "data": {
  27705. "type": "object",
  27706. "properties": {
  27707. "sessionID": {
  27708. "type": "string",
  27709. "allOf": [
  27710. {
  27711. "pattern": "^ses"
  27712. }
  27713. ]
  27714. }
  27715. },
  27716. "required": [
  27717. "sessionID"
  27718. ],
  27719. "additionalProperties": false
  27720. }
  27721. },
  27722. "required": [
  27723. "id",
  27724. "created",
  27725. "type",
  27726. "data"
  27727. ],
  27728. "additionalProperties": false
  27729. },
  27730. "tui.prompt.append": {
  27731. "type": "object",
  27732. "properties": {
  27733. "id": {
  27734. "type": "string",
  27735. "allOf": [
  27736. {
  27737. "pattern": "^evt_"
  27738. }
  27739. ]
  27740. },
  27741. "created": {
  27742. "type": "number"
  27743. },
  27744. "metadata": {
  27745. "type": "object"
  27746. },
  27747. "type": {
  27748. "type": "string",
  27749. "enum": [
  27750. "tui.prompt.append"
  27751. ]
  27752. },
  27753. "location": {
  27754. "$ref": "#/components/schemas/Location.Ref"
  27755. },
  27756. "data": {
  27757. "type": "object",
  27758. "properties": {
  27759. "text": {
  27760. "type": "string"
  27761. }
  27762. },
  27763. "required": [
  27764. "text"
  27765. ],
  27766. "additionalProperties": false
  27767. }
  27768. },
  27769. "required": [
  27770. "id",
  27771. "created",
  27772. "type",
  27773. "data"
  27774. ],
  27775. "additionalProperties": false
  27776. },
  27777. "tui.command.execute": {
  27778. "type": "object",
  27779. "properties": {
  27780. "id": {
  27781. "type": "string",
  27782. "allOf": [
  27783. {
  27784. "pattern": "^evt_"
  27785. }
  27786. ]
  27787. },
  27788. "created": {
  27789. "type": "number"
  27790. },
  27791. "metadata": {
  27792. "type": "object"
  27793. },
  27794. "type": {
  27795. "type": "string",
  27796. "enum": [
  27797. "tui.command.execute"
  27798. ]
  27799. },
  27800. "location": {
  27801. "$ref": "#/components/schemas/Location.Ref"
  27802. },
  27803. "data": {
  27804. "type": "object",
  27805. "properties": {
  27806. "command": {
  27807. "anyOf": [
  27808. {
  27809. "type": "string",
  27810. "enum": [
  27811. "session.list",
  27812. "session.new",
  27813. "session.share",
  27814. "session.interrupt",
  27815. "session.background",
  27816. "session.compact",
  27817. "session.page.up",
  27818. "session.page.down",
  27819. "session.line.up",
  27820. "session.line.down",
  27821. "session.half.page.up",
  27822. "session.half.page.down",
  27823. "session.first",
  27824. "session.last",
  27825. "prompt.clear",
  27826. "prompt.submit",
  27827. "agent.cycle"
  27828. ]
  27829. },
  27830. {
  27831. "type": "string"
  27832. }
  27833. ]
  27834. }
  27835. },
  27836. "required": [
  27837. "command"
  27838. ],
  27839. "additionalProperties": false
  27840. }
  27841. },
  27842. "required": [
  27843. "id",
  27844. "created",
  27845. "type",
  27846. "data"
  27847. ],
  27848. "additionalProperties": false
  27849. },
  27850. "tui.toast.show": {
  27851. "type": "object",
  27852. "properties": {
  27853. "id": {
  27854. "type": "string",
  27855. "allOf": [
  27856. {
  27857. "pattern": "^evt_"
  27858. }
  27859. ]
  27860. },
  27861. "created": {
  27862. "type": "number"
  27863. },
  27864. "metadata": {
  27865. "type": "object"
  27866. },
  27867. "type": {
  27868. "type": "string",
  27869. "enum": [
  27870. "tui.toast.show"
  27871. ]
  27872. },
  27873. "location": {
  27874. "$ref": "#/components/schemas/Location.Ref"
  27875. },
  27876. "data": {
  27877. "type": "object",
  27878. "properties": {
  27879. "title": {
  27880. "type": "string"
  27881. },
  27882. "message": {
  27883. "type": "string"
  27884. },
  27885. "variant": {
  27886. "type": "string",
  27887. "enum": [
  27888. "info",
  27889. "success",
  27890. "warning",
  27891. "error"
  27892. ]
  27893. },
  27894. "duration": {
  27895. "anyOf": [
  27896. {
  27897. "type": "integer",
  27898. "allOf": [
  27899. {
  27900. "exclusiveMinimum": 0
  27901. }
  27902. ]
  27903. },
  27904. {
  27905. "type": "null"
  27906. }
  27907. ]
  27908. }
  27909. },
  27910. "required": [
  27911. "message",
  27912. "variant"
  27913. ],
  27914. "additionalProperties": false
  27915. }
  27916. },
  27917. "required": [
  27918. "id",
  27919. "created",
  27920. "type",
  27921. "data"
  27922. ],
  27923. "additionalProperties": false
  27924. },
  27925. "tui.session.select": {
  27926. "type": "object",
  27927. "properties": {
  27928. "id": {
  27929. "type": "string",
  27930. "allOf": [
  27931. {
  27932. "pattern": "^evt_"
  27933. }
  27934. ]
  27935. },
  27936. "created": {
  27937. "type": "number"
  27938. },
  27939. "metadata": {
  27940. "type": "object"
  27941. },
  27942. "type": {
  27943. "type": "string",
  27944. "enum": [
  27945. "tui.session.select"
  27946. ]
  27947. },
  27948. "location": {
  27949. "$ref": "#/components/schemas/Location.Ref"
  27950. },
  27951. "data": {
  27952. "type": "object",
  27953. "properties": {
  27954. "sessionID": {
  27955. "type": "string",
  27956. "allOf": [
  27957. {
  27958. "pattern": "^ses",
  27959. "description": "Session ID to navigate to"
  27960. }
  27961. ]
  27962. }
  27963. },
  27964. "required": [
  27965. "sessionID"
  27966. ],
  27967. "additionalProperties": false
  27968. }
  27969. },
  27970. "required": [
  27971. "id",
  27972. "created",
  27973. "type",
  27974. "data"
  27975. ],
  27976. "additionalProperties": false
  27977. },
  27978. "installation.updated": {
  27979. "type": "object",
  27980. "properties": {
  27981. "id": {
  27982. "type": "string",
  27983. "allOf": [
  27984. {
  27985. "pattern": "^evt_"
  27986. }
  27987. ]
  27988. },
  27989. "created": {
  27990. "type": "number"
  27991. },
  27992. "metadata": {
  27993. "type": "object"
  27994. },
  27995. "type": {
  27996. "type": "string",
  27997. "enum": [
  27998. "installation.updated"
  27999. ]
  28000. },
  28001. "location": {
  28002. "$ref": "#/components/schemas/Location.Ref"
  28003. },
  28004. "data": {
  28005. "type": "object",
  28006. "properties": {
  28007. "version": {
  28008. "type": "string"
  28009. }
  28010. },
  28011. "required": [
  28012. "version"
  28013. ],
  28014. "additionalProperties": false
  28015. }
  28016. },
  28017. "required": [
  28018. "id",
  28019. "created",
  28020. "type",
  28021. "data"
  28022. ],
  28023. "additionalProperties": false
  28024. },
  28025. "installation.update-available": {
  28026. "type": "object",
  28027. "properties": {
  28028. "id": {
  28029. "type": "string",
  28030. "allOf": [
  28031. {
  28032. "pattern": "^evt_"
  28033. }
  28034. ]
  28035. },
  28036. "created": {
  28037. "type": "number"
  28038. },
  28039. "metadata": {
  28040. "type": "object"
  28041. },
  28042. "type": {
  28043. "type": "string",
  28044. "enum": [
  28045. "installation.update-available"
  28046. ]
  28047. },
  28048. "location": {
  28049. "$ref": "#/components/schemas/Location.Ref"
  28050. },
  28051. "data": {
  28052. "type": "object",
  28053. "properties": {
  28054. "version": {
  28055. "type": "string"
  28056. }
  28057. },
  28058. "required": [
  28059. "version"
  28060. ],
  28061. "additionalProperties": false
  28062. }
  28063. },
  28064. "required": [
  28065. "id",
  28066. "created",
  28067. "type",
  28068. "data"
  28069. ],
  28070. "additionalProperties": false
  28071. },
  28072. "vcs.branch.updated": {
  28073. "type": "object",
  28074. "properties": {
  28075. "id": {
  28076. "type": "string",
  28077. "allOf": [
  28078. {
  28079. "pattern": "^evt_"
  28080. }
  28081. ]
  28082. },
  28083. "created": {
  28084. "type": "number"
  28085. },
  28086. "metadata": {
  28087. "type": "object"
  28088. },
  28089. "type": {
  28090. "type": "string",
  28091. "enum": [
  28092. "vcs.branch.updated"
  28093. ]
  28094. },
  28095. "location": {
  28096. "$ref": "#/components/schemas/Location.Ref"
  28097. },
  28098. "data": {
  28099. "type": "object",
  28100. "properties": {
  28101. "branch": {
  28102. "type": "string"
  28103. }
  28104. },
  28105. "additionalProperties": false
  28106. }
  28107. },
  28108. "required": [
  28109. "id",
  28110. "created",
  28111. "type",
  28112. "data"
  28113. ],
  28114. "additionalProperties": false
  28115. },
  28116. "mcp.status.changed": {
  28117. "type": "object",
  28118. "properties": {
  28119. "id": {
  28120. "type": "string",
  28121. "allOf": [
  28122. {
  28123. "pattern": "^evt_"
  28124. }
  28125. ]
  28126. },
  28127. "created": {
  28128. "type": "number"
  28129. },
  28130. "metadata": {
  28131. "type": "object"
  28132. },
  28133. "type": {
  28134. "type": "string",
  28135. "enum": [
  28136. "mcp.status.changed"
  28137. ]
  28138. },
  28139. "location": {
  28140. "$ref": "#/components/schemas/Location.Ref"
  28141. },
  28142. "data": {
  28143. "type": "object",
  28144. "properties": {
  28145. "server": {
  28146. "type": "string"
  28147. }
  28148. },
  28149. "required": [
  28150. "server"
  28151. ],
  28152. "additionalProperties": false
  28153. }
  28154. },
  28155. "required": [
  28156. "id",
  28157. "created",
  28158. "type",
  28159. "data"
  28160. ],
  28161. "additionalProperties": false
  28162. },
  28163. "mcp.resources.changed": {
  28164. "type": "object",
  28165. "properties": {
  28166. "id": {
  28167. "type": "string",
  28168. "allOf": [
  28169. {
  28170. "pattern": "^evt_"
  28171. }
  28172. ]
  28173. },
  28174. "created": {
  28175. "type": "number"
  28176. },
  28177. "metadata": {
  28178. "type": "object"
  28179. },
  28180. "type": {
  28181. "type": "string",
  28182. "enum": [
  28183. "mcp.resources.changed"
  28184. ]
  28185. },
  28186. "location": {
  28187. "$ref": "#/components/schemas/Location.Ref"
  28188. },
  28189. "data": {
  28190. "type": "object",
  28191. "properties": {
  28192. "server": {
  28193. "type": "string"
  28194. }
  28195. },
  28196. "required": [
  28197. "server"
  28198. ],
  28199. "additionalProperties": false
  28200. }
  28201. },
  28202. "required": [
  28203. "id",
  28204. "created",
  28205. "type",
  28206. "data"
  28207. ],
  28208. "additionalProperties": false
  28209. },
  28210. "session.error": {
  28211. "type": "object",
  28212. "properties": {
  28213. "id": {
  28214. "type": "string",
  28215. "allOf": [
  28216. {
  28217. "pattern": "^evt_"
  28218. }
  28219. ]
  28220. },
  28221. "created": {
  28222. "type": "number"
  28223. },
  28224. "metadata": {
  28225. "type": "object"
  28226. },
  28227. "type": {
  28228. "type": "string",
  28229. "enum": [
  28230. "session.error"
  28231. ]
  28232. },
  28233. "location": {
  28234. "$ref": "#/components/schemas/Location.Ref"
  28235. },
  28236. "data": {
  28237. "type": "object",
  28238. "properties": {
  28239. "sessionID": {
  28240. "anyOf": [
  28241. {
  28242. "type": "string",
  28243. "allOf": [
  28244. {
  28245. "pattern": "^ses"
  28246. }
  28247. ]
  28248. },
  28249. {
  28250. "type": "null"
  28251. }
  28252. ]
  28253. },
  28254. "error": {
  28255. "anyOf": [
  28256. {
  28257. "anyOf": [
  28258. {
  28259. "$ref": "#/components/schemas/ProviderAuthError"
  28260. },
  28261. {
  28262. "$ref": "#/components/schemas/UnknownError1"
  28263. },
  28264. {
  28265. "$ref": "#/components/schemas/MessageOutputLengthError"
  28266. },
  28267. {
  28268. "$ref": "#/components/schemas/MessageAbortedError"
  28269. },
  28270. {
  28271. "$ref": "#/components/schemas/StructuredOutputError"
  28272. },
  28273. {
  28274. "$ref": "#/components/schemas/ContextOverflowError"
  28275. },
  28276. {
  28277. "$ref": "#/components/schemas/ContentFilterError"
  28278. },
  28279. {
  28280. "$ref": "#/components/schemas/APIError"
  28281. }
  28282. ]
  28283. },
  28284. {
  28285. "type": "null"
  28286. }
  28287. ]
  28288. }
  28289. },
  28290. "additionalProperties": false
  28291. }
  28292. },
  28293. "required": [
  28294. "id",
  28295. "created",
  28296. "type",
  28297. "data"
  28298. ],
  28299. "additionalProperties": false
  28300. },
  28301. "V2Event.server.connected": {
  28302. "type": "object",
  28303. "properties": {
  28304. "id": {
  28305. "type": "string",
  28306. "allOf": [
  28307. {
  28308. "pattern": "^evt_"
  28309. }
  28310. ]
  28311. },
  28312. "metadata": {
  28313. "anyOf": [
  28314. {
  28315. "type": "object"
  28316. },
  28317. {
  28318. "type": "null"
  28319. }
  28320. ]
  28321. },
  28322. "location": {
  28323. "anyOf": [
  28324. {
  28325. "$ref": "#/components/schemas/Location.Ref"
  28326. },
  28327. {
  28328. "type": "null"
  28329. }
  28330. ]
  28331. },
  28332. "type": {
  28333. "type": "string",
  28334. "enum": [
  28335. "server.connected"
  28336. ]
  28337. },
  28338. "data": {
  28339. "anyOf": [
  28340. {
  28341. "type": "object"
  28342. },
  28343. {
  28344. "type": "array"
  28345. }
  28346. ]
  28347. }
  28348. },
  28349. "required": [
  28350. "id",
  28351. "type",
  28352. "data"
  28353. ],
  28354. "additionalProperties": false
  28355. },
  28356. "V2Event": {
  28357. "anyOf": [
  28358. {
  28359. "$ref": "#/components/schemas/models-dev.refreshed"
  28360. },
  28361. {
  28362. "$ref": "#/components/schemas/integration.updated"
  28363. },
  28364. {
  28365. "$ref": "#/components/schemas/integration.connection.updated"
  28366. },
  28367. {
  28368. "$ref": "#/components/schemas/catalog.updated"
  28369. },
  28370. {
  28371. "$ref": "#/components/schemas/agent.updated"
  28372. },
  28373. {
  28374. "$ref": "#/components/schemas/session.created"
  28375. },
  28376. {
  28377. "$ref": "#/components/schemas/session.updated"
  28378. },
  28379. {
  28380. "$ref": "#/components/schemas/session.deleted1"
  28381. },
  28382. {
  28383. "$ref": "#/components/schemas/message.updated"
  28384. },
  28385. {
  28386. "$ref": "#/components/schemas/message.removed"
  28387. },
  28388. {
  28389. "$ref": "#/components/schemas/message.part.updated"
  28390. },
  28391. {
  28392. "$ref": "#/components/schemas/message.part.removed"
  28393. },
  28394. {
  28395. "$ref": "#/components/schemas/session.agent.selected"
  28396. },
  28397. {
  28398. "$ref": "#/components/schemas/session.model.selected"
  28399. },
  28400. {
  28401. "$ref": "#/components/schemas/session.moved"
  28402. },
  28403. {
  28404. "$ref": "#/components/schemas/session.renamed"
  28405. },
  28406. {
  28407. "$ref": "#/components/schemas/session.usage.updated"
  28408. },
  28409. {
  28410. "$ref": "#/components/schemas/session.deleted"
  28411. },
  28412. {
  28413. "$ref": "#/components/schemas/session.forked"
  28414. },
  28415. {
  28416. "$ref": "#/components/schemas/session.input.promoted"
  28417. },
  28418. {
  28419. "$ref": "#/components/schemas/session.input.admitted"
  28420. },
  28421. {
  28422. "$ref": "#/components/schemas/session.execution.started"
  28423. },
  28424. {
  28425. "$ref": "#/components/schemas/session.execution.succeeded"
  28426. },
  28427. {
  28428. "$ref": "#/components/schemas/session.execution.failed"
  28429. },
  28430. {
  28431. "$ref": "#/components/schemas/session.execution.interrupted"
  28432. },
  28433. {
  28434. "$ref": "#/components/schemas/session.instructions.updated"
  28435. },
  28436. {
  28437. "$ref": "#/components/schemas/session.synthetic"
  28438. },
  28439. {
  28440. "$ref": "#/components/schemas/session.skill.activated"
  28441. },
  28442. {
  28443. "$ref": "#/components/schemas/session.shell.started"
  28444. },
  28445. {
  28446. "$ref": "#/components/schemas/session.shell.ended"
  28447. },
  28448. {
  28449. "$ref": "#/components/schemas/session.step.started"
  28450. },
  28451. {
  28452. "$ref": "#/components/schemas/session.step.ended"
  28453. },
  28454. {
  28455. "$ref": "#/components/schemas/session.step.failed"
  28456. },
  28457. {
  28458. "$ref": "#/components/schemas/session.text.started"
  28459. },
  28460. {
  28461. "$ref": "#/components/schemas/session.text.delta"
  28462. },
  28463. {
  28464. "$ref": "#/components/schemas/session.text.ended"
  28465. },
  28466. {
  28467. "$ref": "#/components/schemas/session.reasoning.started"
  28468. },
  28469. {
  28470. "$ref": "#/components/schemas/session.reasoning.delta"
  28471. },
  28472. {
  28473. "$ref": "#/components/schemas/session.reasoning.ended"
  28474. },
  28475. {
  28476. "$ref": "#/components/schemas/session.tool.input.started"
  28477. },
  28478. {
  28479. "$ref": "#/components/schemas/session.tool.input.delta"
  28480. },
  28481. {
  28482. "$ref": "#/components/schemas/session.tool.input.ended"
  28483. },
  28484. {
  28485. "$ref": "#/components/schemas/session.tool.called"
  28486. },
  28487. {
  28488. "$ref": "#/components/schemas/session.tool.progress"
  28489. },
  28490. {
  28491. "$ref": "#/components/schemas/session.tool.success"
  28492. },
  28493. {
  28494. "$ref": "#/components/schemas/session.tool.failed"
  28495. },
  28496. {
  28497. "$ref": "#/components/schemas/session.retry.scheduled"
  28498. },
  28499. {
  28500. "$ref": "#/components/schemas/session.compaction.admitted"
  28501. },
  28502. {
  28503. "$ref": "#/components/schemas/session.compaction.started"
  28504. },
  28505. {
  28506. "$ref": "#/components/schemas/session.compaction.delta"
  28507. },
  28508. {
  28509. "$ref": "#/components/schemas/session.compaction.ended"
  28510. },
  28511. {
  28512. "$ref": "#/components/schemas/session.compaction.failed"
  28513. },
  28514. {
  28515. "$ref": "#/components/schemas/session.revert.staged"
  28516. },
  28517. {
  28518. "$ref": "#/components/schemas/session.revert.cleared"
  28519. },
  28520. {
  28521. "$ref": "#/components/schemas/session.revert.committed"
  28522. },
  28523. {
  28524. "$ref": "#/components/schemas/filesystem.changed"
  28525. },
  28526. {
  28527. "$ref": "#/components/schemas/reference.updated"
  28528. },
  28529. {
  28530. "$ref": "#/components/schemas/permission.asked"
  28531. },
  28532. {
  28533. "$ref": "#/components/schemas/permission.replied"
  28534. },
  28535. {
  28536. "$ref": "#/components/schemas/plugin.added"
  28537. },
  28538. {
  28539. "$ref": "#/components/schemas/plugin.updated"
  28540. },
  28541. {
  28542. "$ref": "#/components/schemas/project.directories.updated"
  28543. },
  28544. {
  28545. "$ref": "#/components/schemas/command.updated"
  28546. },
  28547. {
  28548. "$ref": "#/components/schemas/config.updated"
  28549. },
  28550. {
  28551. "$ref": "#/components/schemas/skill.updated"
  28552. },
  28553. {
  28554. "$ref": "#/components/schemas/pty.created"
  28555. },
  28556. {
  28557. "$ref": "#/components/schemas/pty.updated"
  28558. },
  28559. {
  28560. "$ref": "#/components/schemas/pty.exited"
  28561. },
  28562. {
  28563. "$ref": "#/components/schemas/pty.deleted"
  28564. },
  28565. {
  28566. "$ref": "#/components/schemas/shell.created"
  28567. },
  28568. {
  28569. "$ref": "#/components/schemas/shell.exited"
  28570. },
  28571. {
  28572. "$ref": "#/components/schemas/shell.deleted"
  28573. },
  28574. {
  28575. "$ref": "#/components/schemas/question.asked"
  28576. },
  28577. {
  28578. "$ref": "#/components/schemas/question.replied"
  28579. },
  28580. {
  28581. "$ref": "#/components/schemas/question.rejected"
  28582. },
  28583. {
  28584. "$ref": "#/components/schemas/form.created"
  28585. },
  28586. {
  28587. "$ref": "#/components/schemas/form.replied"
  28588. },
  28589. {
  28590. "$ref": "#/components/schemas/form.cancelled"
  28591. },
  28592. {
  28593. "$ref": "#/components/schemas/websearch.updated"
  28594. },
  28595. {
  28596. "$ref": "#/components/schemas/session.status"
  28597. },
  28598. {
  28599. "$ref": "#/components/schemas/session.idle"
  28600. },
  28601. {
  28602. "$ref": "#/components/schemas/tui.prompt.append"
  28603. },
  28604. {
  28605. "$ref": "#/components/schemas/tui.command.execute"
  28606. },
  28607. {
  28608. "$ref": "#/components/schemas/tui.toast.show"
  28609. },
  28610. {
  28611. "$ref": "#/components/schemas/tui.session.select"
  28612. },
  28613. {
  28614. "$ref": "#/components/schemas/installation.updated"
  28615. },
  28616. {
  28617. "$ref": "#/components/schemas/installation.update-available"
  28618. },
  28619. {
  28620. "$ref": "#/components/schemas/vcs.branch.updated"
  28621. },
  28622. {
  28623. "$ref": "#/components/schemas/mcp.status.changed"
  28624. },
  28625. {
  28626. "$ref": "#/components/schemas/mcp.resources.changed"
  28627. },
  28628. {
  28629. "$ref": "#/components/schemas/session.error"
  28630. },
  28631. {
  28632. "$ref": "#/components/schemas/V2Event.server.connected"
  28633. }
  28634. ]
  28635. },
  28636. "V2EventJsonString": {
  28637. "type": "string",
  28638. "contentSchema": {
  28639. "$ref": "#/components/schemas/V2Event"
  28640. },
  28641. "contentMediaType": "application/json"
  28642. },
  28643. "PtyNotFoundError": {
  28644. "type": "object",
  28645. "properties": {
  28646. "_tag": {
  28647. "type": "string",
  28648. "enum": [
  28649. "PtyNotFoundError"
  28650. ]
  28651. },
  28652. "ptyID": {
  28653. "type": "string"
  28654. },
  28655. "message": {
  28656. "type": "string"
  28657. }
  28658. },
  28659. "required": [
  28660. "_tag",
  28661. "ptyID",
  28662. "message"
  28663. ],
  28664. "additionalProperties": false
  28665. },
  28666. "PtyTicket.ConnectToken": {
  28667. "type": "object",
  28668. "properties": {
  28669. "ticket": {
  28670. "type": "string"
  28671. },
  28672. "expires_in": {
  28673. "type": "integer",
  28674. "allOf": [
  28675. {
  28676. "exclusiveMinimum": 0
  28677. }
  28678. ]
  28679. }
  28680. },
  28681. "required": [
  28682. "ticket",
  28683. "expires_in"
  28684. ],
  28685. "additionalProperties": false
  28686. },
  28687. "ForbiddenError": {
  28688. "type": "object",
  28689. "properties": {
  28690. "_tag": {
  28691. "type": "string",
  28692. "enum": [
  28693. "ForbiddenError"
  28694. ]
  28695. },
  28696. "message": {
  28697. "type": "string"
  28698. }
  28699. },
  28700. "required": [
  28701. "_tag",
  28702. "message"
  28703. ],
  28704. "additionalProperties": false
  28705. },
  28706. "Shell.Info1": {
  28707. "type": "object",
  28708. "properties": {
  28709. "id": {
  28710. "type": "string",
  28711. "allOf": [
  28712. {
  28713. "pattern": "^sh_"
  28714. }
  28715. ]
  28716. },
  28717. "status": {
  28718. "type": "string",
  28719. "enum": [
  28720. "running",
  28721. "exited",
  28722. "timeout",
  28723. "killed"
  28724. ]
  28725. },
  28726. "command": {
  28727. "type": "string"
  28728. },
  28729. "cwd": {
  28730. "type": "string"
  28731. },
  28732. "shell": {
  28733. "type": "string"
  28734. },
  28735. "file": {
  28736. "type": "string"
  28737. },
  28738. "pid": {
  28739. "type": "integer",
  28740. "allOf": [
  28741. {
  28742. "minimum": 0
  28743. }
  28744. ]
  28745. },
  28746. "exit": {
  28747. "type": "number"
  28748. },
  28749. "metadata": {
  28750. "type": "object"
  28751. },
  28752. "time": {
  28753. "type": "object",
  28754. "properties": {
  28755. "started": {
  28756. "type": "number"
  28757. },
  28758. "completed": {
  28759. "type": "number"
  28760. }
  28761. },
  28762. "required": [
  28763. "started"
  28764. ],
  28765. "additionalProperties": false
  28766. }
  28767. },
  28768. "required": [
  28769. "id",
  28770. "status",
  28771. "command",
  28772. "cwd",
  28773. "shell",
  28774. "file",
  28775. "metadata",
  28776. "time"
  28777. ],
  28778. "additionalProperties": false
  28779. },
  28780. "ShellNotFoundError": {
  28781. "type": "object",
  28782. "properties": {
  28783. "_tag": {
  28784. "type": "string",
  28785. "enum": [
  28786. "ShellNotFoundError"
  28787. ]
  28788. },
  28789. "id": {
  28790. "type": "string"
  28791. },
  28792. "message": {
  28793. "type": "string"
  28794. }
  28795. },
  28796. "required": [
  28797. "_tag",
  28798. "id",
  28799. "message"
  28800. ],
  28801. "additionalProperties": false
  28802. },
  28803. "Question.Request": {
  28804. "type": "object",
  28805. "properties": {
  28806. "id": {
  28807. "type": "string",
  28808. "allOf": [
  28809. {
  28810. "pattern": "^que"
  28811. }
  28812. ]
  28813. },
  28814. "sessionID": {
  28815. "type": "string",
  28816. "allOf": [
  28817. {
  28818. "pattern": "^ses"
  28819. }
  28820. ]
  28821. },
  28822. "questions": {
  28823. "type": "array",
  28824. "items": {
  28825. "$ref": "#/components/schemas/Question.Info"
  28826. },
  28827. "description": "Questions to ask"
  28828. },
  28829. "tool": {
  28830. "$ref": "#/components/schemas/Question.Tool"
  28831. }
  28832. },
  28833. "required": [
  28834. "id",
  28835. "sessionID",
  28836. "questions"
  28837. ],
  28838. "additionalProperties": false
  28839. },
  28840. "Question.Reply": {
  28841. "type": "object",
  28842. "properties": {
  28843. "answers": {
  28844. "type": "array",
  28845. "items": {
  28846. "$ref": "#/components/schemas/Question.Answer"
  28847. },
  28848. "description": "User answers in order of questions (each answer is an array of selected labels)"
  28849. }
  28850. },
  28851. "required": [
  28852. "answers"
  28853. ],
  28854. "additionalProperties": false
  28855. },
  28856. "QuestionNotFoundError": {
  28857. "type": "object",
  28858. "properties": {
  28859. "_tag": {
  28860. "type": "string",
  28861. "enum": [
  28862. "QuestionNotFoundError"
  28863. ]
  28864. },
  28865. "requestID": {
  28866. "type": "string"
  28867. },
  28868. "message": {
  28869. "type": "string"
  28870. }
  28871. },
  28872. "required": [
  28873. "_tag",
  28874. "requestID",
  28875. "message"
  28876. ],
  28877. "additionalProperties": false
  28878. },
  28879. "Reference.LocalSource": {
  28880. "type": "object",
  28881. "properties": {
  28882. "type": {
  28883. "type": "string",
  28884. "enum": [
  28885. "local"
  28886. ]
  28887. },
  28888. "path": {
  28889. "type": "string"
  28890. },
  28891. "description": {
  28892. "type": "string"
  28893. },
  28894. "hidden": {
  28895. "type": "boolean"
  28896. }
  28897. },
  28898. "required": [
  28899. "type",
  28900. "path"
  28901. ],
  28902. "additionalProperties": false
  28903. },
  28904. "Reference.GitSource": {
  28905. "type": "object",
  28906. "properties": {
  28907. "type": {
  28908. "type": "string",
  28909. "enum": [
  28910. "git"
  28911. ]
  28912. },
  28913. "repository": {
  28914. "type": "string"
  28915. },
  28916. "branch": {
  28917. "type": "string"
  28918. },
  28919. "description": {
  28920. "type": "string"
  28921. },
  28922. "hidden": {
  28923. "type": "boolean"
  28924. }
  28925. },
  28926. "required": [
  28927. "type",
  28928. "repository"
  28929. ],
  28930. "additionalProperties": false
  28931. },
  28932. "Reference.Source": {
  28933. "anyOf": [
  28934. {
  28935. "$ref": "#/components/schemas/Reference.LocalSource"
  28936. },
  28937. {
  28938. "$ref": "#/components/schemas/Reference.GitSource"
  28939. }
  28940. ]
  28941. },
  28942. "Reference.Info": {
  28943. "type": "object",
  28944. "properties": {
  28945. "name": {
  28946. "type": "string"
  28947. },
  28948. "path": {
  28949. "type": "string"
  28950. },
  28951. "description": {
  28952. "type": "string"
  28953. },
  28954. "hidden": {
  28955. "type": "boolean"
  28956. },
  28957. "source": {
  28958. "$ref": "#/components/schemas/Reference.Source"
  28959. }
  28960. },
  28961. "required": [
  28962. "name",
  28963. "path",
  28964. "source"
  28965. ],
  28966. "additionalProperties": false
  28967. },
  28968. "ProjectCopy.Copy": {
  28969. "type": "object",
  28970. "properties": {
  28971. "directory": {
  28972. "type": "string"
  28973. }
  28974. },
  28975. "required": [
  28976. "directory"
  28977. ],
  28978. "additionalProperties": false
  28979. },
  28980. "ProjectCopyError": {
  28981. "type": "object",
  28982. "properties": {
  28983. "name": {
  28984. "type": "string",
  28985. "enum": [
  28986. "ProjectCopyError"
  28987. ]
  28988. },
  28989. "data": {
  28990. "type": "object",
  28991. "properties": {
  28992. "message": {
  28993. "type": "string"
  28994. },
  28995. "forceRequired": {
  28996. "anyOf": [
  28997. {
  28998. "type": "boolean"
  28999. },
  29000. {
  29001. "type": "null"
  29002. }
  29003. ]
  29004. }
  29005. },
  29006. "required": [
  29007. "message"
  29008. ],
  29009. "additionalProperties": false
  29010. }
  29011. },
  29012. "required": [
  29013. "name",
  29014. "data"
  29015. ],
  29016. "additionalProperties": false
  29017. },
  29018. "Vcs.FileStatus": {
  29019. "type": "object",
  29020. "properties": {
  29021. "file": {
  29022. "type": "string"
  29023. },
  29024. "additions": {
  29025. "type": "integer",
  29026. "allOf": [
  29027. {
  29028. "minimum": 0
  29029. }
  29030. ]
  29031. },
  29032. "deletions": {
  29033. "type": "integer",
  29034. "allOf": [
  29035. {
  29036. "minimum": 0
  29037. }
  29038. ]
  29039. },
  29040. "status": {
  29041. "type": "string",
  29042. "enum": [
  29043. "added",
  29044. "deleted",
  29045. "modified"
  29046. ]
  29047. }
  29048. },
  29049. "required": [
  29050. "file",
  29051. "additions",
  29052. "deletions",
  29053. "status"
  29054. ],
  29055. "additionalProperties": false
  29056. },
  29057. "Vcs.Mode": {
  29058. "type": "string",
  29059. "enum": [
  29060. "working",
  29061. "branch"
  29062. ]
  29063. },
  29064. "WebSearch.Provider": {
  29065. "type": "object",
  29066. "properties": {
  29067. "id": {
  29068. "type": "string"
  29069. },
  29070. "name": {
  29071. "type": "string"
  29072. }
  29073. },
  29074. "required": [
  29075. "id",
  29076. "name"
  29077. ],
  29078. "additionalProperties": false
  29079. },
  29080. "WebSearch.Result": {
  29081. "type": "object",
  29082. "properties": {
  29083. "url": {
  29084. "type": "string"
  29085. },
  29086. "title": {
  29087. "type": "string"
  29088. },
  29089. "content": {
  29090. "type": "string"
  29091. },
  29092. "time": {
  29093. "type": "object",
  29094. "properties": {
  29095. "published": {
  29096. "type": "number"
  29097. }
  29098. },
  29099. "additionalProperties": false
  29100. }
  29101. },
  29102. "required": [
  29103. "url",
  29104. "time"
  29105. ],
  29106. "additionalProperties": false
  29107. },
  29108. "WebSearch.Response": {
  29109. "type": "object",
  29110. "properties": {
  29111. "providerID": {
  29112. "type": "string"
  29113. },
  29114. "results": {
  29115. "type": "array",
  29116. "items": {
  29117. "$ref": "#/components/schemas/WebSearch.Result"
  29118. }
  29119. }
  29120. },
  29121. "required": [
  29122. "providerID",
  29123. "results"
  29124. ],
  29125. "additionalProperties": false
  29126. }
  29127. },
  29128. "securitySchemes": {}
  29129. },
  29130. "security": [],
  29131. "tags": [
  29132. {
  29133. "name": "health"
  29134. },
  29135. {
  29136. "name": "server"
  29137. },
  29138. {
  29139. "name": "location"
  29140. },
  29141. {
  29142. "name": "agent"
  29143. },
  29144. {
  29145. "name": "plugin",
  29146. "description": "Experimental plugin routes."
  29147. },
  29148. {
  29149. "name": "session",
  29150. "description": "Experimental session routes."
  29151. },
  29152. {
  29153. "name": "session",
  29154. "description": "Experimental message routes."
  29155. },
  29156. {
  29157. "name": "model",
  29158. "description": "Experimental model routes."
  29159. },
  29160. {
  29161. "name": "generate",
  29162. "description": "Experimental one-shot generation routes."
  29163. },
  29164. {
  29165. "name": "provider",
  29166. "description": "Experimental provider routes."
  29167. },
  29168. {
  29169. "name": "integration",
  29170. "description": "Integration discovery and authentication routes."
  29171. },
  29172. {
  29173. "name": "mcp",
  29174. "description": "MCP server and resource routes."
  29175. },
  29176. {
  29177. "name": "credential"
  29178. },
  29179. {
  29180. "name": "project",
  29181. "description": "Location-scoped project routes."
  29182. },
  29183. {
  29184. "name": "form",
  29185. "description": "Session form routes."
  29186. },
  29187. {
  29188. "name": "permission",
  29189. "description": "Experimental permission routes."
  29190. },
  29191. {
  29192. "name": "filesystem",
  29193. "description": "Experimental location-scoped filesystem routes."
  29194. },
  29195. {
  29196. "name": "command",
  29197. "description": "Experimental command routes."
  29198. },
  29199. {
  29200. "name": "skill",
  29201. "description": "Experimental skill routes."
  29202. },
  29203. {
  29204. "name": "event",
  29205. "description": "Experimental event stream routes."
  29206. },
  29207. {
  29208. "name": "pty",
  29209. "description": "Experimental location-scoped PTY routes."
  29210. },
  29211. {
  29212. "name": "shell",
  29213. "description": "Experimental location-scoped shell command routes."
  29214. },
  29215. {
  29216. "name": "question",
  29217. "description": "Experimental session question routes."
  29218. },
  29219. {
  29220. "name": "reference",
  29221. "description": "Location-scoped project references."
  29222. },
  29223. {
  29224. "name": "projectCopy",
  29225. "description": "Project copy management routes."
  29226. },
  29227. {
  29228. "name": "vcs",
  29229. "description": "Location-scoped version control routes."
  29230. },
  29231. {
  29232. "name": "debug"
  29233. },
  29234. {
  29235. "name": "websearch",
  29236. "description": "Location-scoped web search routes."
  29237. }
  29238. ]
  29239. }