openapi.json 49 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951
  1. {
  2. "openapi": "3.0.0",
  3. "info": {
  4. "title": "opencode",
  5. "description": "opencode api",
  6. "version": "1.0.0"
  7. },
  8. "paths": {
  9. "/event": {
  10. "get": {
  11. "responses": {
  12. "200": {
  13. "description": "Event stream",
  14. "content": {
  15. "application/json": {
  16. "schema": {
  17. "$ref": "#/components/schemas/Event"
  18. }
  19. }
  20. }
  21. }
  22. },
  23. "operationId": "getEvent",
  24. "parameters": [],
  25. "description": "Get events"
  26. }
  27. },
  28. "/app_info": {
  29. "post": {
  30. "responses": {
  31. "200": {
  32. "description": "200",
  33. "content": {
  34. "application/json": {
  35. "schema": {
  36. "$ref": "#/components/schemas/App.Info"
  37. }
  38. }
  39. }
  40. }
  41. },
  42. "operationId": "postApp_info",
  43. "parameters": [],
  44. "description": "Get app info"
  45. }
  46. },
  47. "/config_get": {
  48. "post": {
  49. "responses": {
  50. "200": {
  51. "description": "Get config info",
  52. "content": {
  53. "application/json": {
  54. "schema": {
  55. "$ref": "#/components/schemas/Config.Info"
  56. }
  57. }
  58. }
  59. }
  60. },
  61. "operationId": "postConfig_get",
  62. "parameters": [],
  63. "description": "Get config info"
  64. }
  65. },
  66. "/app_initialize": {
  67. "post": {
  68. "responses": {
  69. "200": {
  70. "description": "Initialize the app",
  71. "content": {
  72. "application/json": {
  73. "schema": {
  74. "type": "boolean"
  75. }
  76. }
  77. }
  78. }
  79. },
  80. "operationId": "postApp_initialize",
  81. "parameters": [],
  82. "description": "Initialize the app"
  83. }
  84. },
  85. "/session_initialize": {
  86. "post": {
  87. "responses": {
  88. "200": {
  89. "description": "200",
  90. "content": {
  91. "application/json": {
  92. "schema": {
  93. "type": "boolean"
  94. }
  95. }
  96. }
  97. }
  98. },
  99. "operationId": "postSession_initialize",
  100. "parameters": [],
  101. "description": "Analyze the app and create an AGENTS.md file",
  102. "requestBody": {
  103. "content": {
  104. "application/json": {
  105. "schema": {
  106. "type": "object",
  107. "properties": {
  108. "sessionID": {
  109. "type": "string"
  110. },
  111. "providerID": {
  112. "type": "string"
  113. },
  114. "modelID": {
  115. "type": "string"
  116. }
  117. },
  118. "required": [
  119. "sessionID",
  120. "providerID",
  121. "modelID"
  122. ]
  123. }
  124. }
  125. }
  126. }
  127. }
  128. },
  129. "/path_get": {
  130. "post": {
  131. "responses": {
  132. "200": {
  133. "description": "200",
  134. "content": {
  135. "application/json": {
  136. "schema": {
  137. "type": "object",
  138. "properties": {
  139. "root": {
  140. "type": "string"
  141. },
  142. "data": {
  143. "type": "string"
  144. },
  145. "cwd": {
  146. "type": "string"
  147. },
  148. "config": {
  149. "type": "string"
  150. }
  151. },
  152. "required": [
  153. "root",
  154. "data",
  155. "cwd",
  156. "config"
  157. ]
  158. }
  159. }
  160. }
  161. }
  162. },
  163. "operationId": "postPath_get",
  164. "parameters": [],
  165. "description": "Get paths"
  166. }
  167. },
  168. "/session_create": {
  169. "post": {
  170. "responses": {
  171. "200": {
  172. "description": "Successfully created session",
  173. "content": {
  174. "application/json": {
  175. "schema": {
  176. "$ref": "#/components/schemas/session.info"
  177. }
  178. }
  179. }
  180. },
  181. "400": {
  182. "description": "Bad request",
  183. "content": {
  184. "application/json": {
  185. "schema": {
  186. "$ref": "#/components/schemas/Error"
  187. }
  188. }
  189. }
  190. }
  191. },
  192. "operationId": "postSession_create",
  193. "parameters": [],
  194. "description": "Create a new session"
  195. }
  196. },
  197. "/session_share": {
  198. "post": {
  199. "responses": {
  200. "200": {
  201. "description": "Successfully shared session",
  202. "content": {
  203. "application/json": {
  204. "schema": {
  205. "$ref": "#/components/schemas/session.info"
  206. }
  207. }
  208. }
  209. }
  210. },
  211. "operationId": "postSession_share",
  212. "parameters": [],
  213. "description": "Share the session",
  214. "requestBody": {
  215. "content": {
  216. "application/json": {
  217. "schema": {
  218. "type": "object",
  219. "properties": {
  220. "sessionID": {
  221. "type": "string"
  222. }
  223. },
  224. "required": [
  225. "sessionID"
  226. ]
  227. }
  228. }
  229. }
  230. }
  231. }
  232. },
  233. "/session_unshare": {
  234. "post": {
  235. "responses": {
  236. "200": {
  237. "description": "Successfully unshared session",
  238. "content": {
  239. "application/json": {
  240. "schema": {
  241. "$ref": "#/components/schemas/session.info"
  242. }
  243. }
  244. }
  245. }
  246. },
  247. "operationId": "postSession_unshare",
  248. "parameters": [],
  249. "description": "Unshare the session",
  250. "requestBody": {
  251. "content": {
  252. "application/json": {
  253. "schema": {
  254. "type": "object",
  255. "properties": {
  256. "sessionID": {
  257. "type": "string"
  258. }
  259. },
  260. "required": [
  261. "sessionID"
  262. ]
  263. }
  264. }
  265. }
  266. }
  267. }
  268. },
  269. "/session_messages": {
  270. "post": {
  271. "responses": {
  272. "200": {
  273. "description": "Successfully created session",
  274. "content": {
  275. "application/json": {
  276. "schema": {
  277. "type": "array",
  278. "items": {
  279. "$ref": "#/components/schemas/Message.Info"
  280. }
  281. }
  282. }
  283. }
  284. }
  285. },
  286. "operationId": "postSession_messages",
  287. "parameters": [],
  288. "description": "Get messages for a session",
  289. "requestBody": {
  290. "content": {
  291. "application/json": {
  292. "schema": {
  293. "type": "object",
  294. "properties": {
  295. "sessionID": {
  296. "type": "string"
  297. }
  298. },
  299. "required": [
  300. "sessionID"
  301. ]
  302. }
  303. }
  304. }
  305. }
  306. }
  307. },
  308. "/session_list": {
  309. "post": {
  310. "responses": {
  311. "200": {
  312. "description": "List of sessions",
  313. "content": {
  314. "application/json": {
  315. "schema": {
  316. "type": "array",
  317. "items": {
  318. "$ref": "#/components/schemas/session.info"
  319. }
  320. }
  321. }
  322. }
  323. }
  324. },
  325. "operationId": "postSession_list",
  326. "parameters": [],
  327. "description": "List all sessions"
  328. }
  329. },
  330. "/session_abort": {
  331. "post": {
  332. "responses": {
  333. "200": {
  334. "description": "Aborted session",
  335. "content": {
  336. "application/json": {
  337. "schema": {
  338. "type": "boolean"
  339. }
  340. }
  341. }
  342. }
  343. },
  344. "operationId": "postSession_abort",
  345. "parameters": [],
  346. "description": "Abort a session",
  347. "requestBody": {
  348. "content": {
  349. "application/json": {
  350. "schema": {
  351. "type": "object",
  352. "properties": {
  353. "sessionID": {
  354. "type": "string"
  355. }
  356. },
  357. "required": [
  358. "sessionID"
  359. ]
  360. }
  361. }
  362. }
  363. }
  364. }
  365. },
  366. "/session_delete": {
  367. "post": {
  368. "responses": {
  369. "200": {
  370. "description": "Successfully deleted session",
  371. "content": {
  372. "application/json": {
  373. "schema": {
  374. "type": "boolean"
  375. }
  376. }
  377. }
  378. }
  379. },
  380. "operationId": "postSession_delete",
  381. "parameters": [],
  382. "description": "Delete a session and all its data",
  383. "requestBody": {
  384. "content": {
  385. "application/json": {
  386. "schema": {
  387. "type": "object",
  388. "properties": {
  389. "sessionID": {
  390. "type": "string"
  391. }
  392. },
  393. "required": [
  394. "sessionID"
  395. ]
  396. }
  397. }
  398. }
  399. }
  400. }
  401. },
  402. "/session_summarize": {
  403. "post": {
  404. "responses": {
  405. "200": {
  406. "description": "Summarize the session",
  407. "content": {
  408. "application/json": {
  409. "schema": {
  410. "type": "boolean"
  411. }
  412. }
  413. }
  414. }
  415. },
  416. "operationId": "postSession_summarize",
  417. "parameters": [],
  418. "description": "Summarize the session",
  419. "requestBody": {
  420. "content": {
  421. "application/json": {
  422. "schema": {
  423. "type": "object",
  424. "properties": {
  425. "sessionID": {
  426. "type": "string"
  427. },
  428. "providerID": {
  429. "type": "string"
  430. },
  431. "modelID": {
  432. "type": "string"
  433. }
  434. },
  435. "required": [
  436. "sessionID",
  437. "providerID",
  438. "modelID"
  439. ]
  440. }
  441. }
  442. }
  443. }
  444. }
  445. },
  446. "/session_chat": {
  447. "post": {
  448. "responses": {
  449. "200": {
  450. "description": "Chat with a model",
  451. "content": {
  452. "application/json": {
  453. "schema": {
  454. "$ref": "#/components/schemas/Message.Info"
  455. }
  456. }
  457. }
  458. }
  459. },
  460. "operationId": "postSession_chat",
  461. "parameters": [],
  462. "description": "Chat with a model",
  463. "requestBody": {
  464. "content": {
  465. "application/json": {
  466. "schema": {
  467. "type": "object",
  468. "properties": {
  469. "sessionID": {
  470. "type": "string"
  471. },
  472. "providerID": {
  473. "type": "string"
  474. },
  475. "modelID": {
  476. "type": "string"
  477. },
  478. "parts": {
  479. "type": "array",
  480. "items": {
  481. "$ref": "#/components/schemas/Message.Part"
  482. }
  483. }
  484. },
  485. "required": [
  486. "sessionID",
  487. "providerID",
  488. "modelID",
  489. "parts"
  490. ]
  491. }
  492. }
  493. }
  494. }
  495. }
  496. },
  497. "/provider_list": {
  498. "post": {
  499. "responses": {
  500. "200": {
  501. "description": "List of providers",
  502. "content": {
  503. "application/json": {
  504. "schema": {
  505. "type": "object",
  506. "properties": {
  507. "providers": {
  508. "type": "array",
  509. "items": {
  510. "$ref": "#/components/schemas/Provider.Info"
  511. }
  512. },
  513. "default": {
  514. "type": "object",
  515. "additionalProperties": {
  516. "type": "string"
  517. }
  518. }
  519. },
  520. "required": [
  521. "providers",
  522. "default"
  523. ]
  524. }
  525. }
  526. }
  527. }
  528. },
  529. "operationId": "postProvider_list",
  530. "parameters": [],
  531. "description": "List all providers"
  532. }
  533. },
  534. "/file_search": {
  535. "post": {
  536. "responses": {
  537. "200": {
  538. "description": "Search for files",
  539. "content": {
  540. "application/json": {
  541. "schema": {
  542. "type": "array",
  543. "items": {
  544. "type": "string"
  545. }
  546. }
  547. }
  548. }
  549. }
  550. },
  551. "operationId": "postFile_search",
  552. "parameters": [],
  553. "description": "Search for files",
  554. "requestBody": {
  555. "content": {
  556. "application/json": {
  557. "schema": {
  558. "type": "object",
  559. "properties": {
  560. "query": {
  561. "type": "string"
  562. }
  563. },
  564. "required": [
  565. "query"
  566. ]
  567. }
  568. }
  569. }
  570. }
  571. }
  572. },
  573. "/installation_info": {
  574. "post": {
  575. "responses": {
  576. "200": {
  577. "description": "Get installation info",
  578. "content": {
  579. "application/json": {
  580. "schema": {
  581. "$ref": "#/components/schemas/InstallationInfo"
  582. }
  583. }
  584. }
  585. }
  586. },
  587. "operationId": "postInstallation_info",
  588. "parameters": [],
  589. "description": "Get installation info"
  590. }
  591. }
  592. },
  593. "components": {
  594. "schemas": {
  595. "Event": {
  596. "oneOf": [
  597. {
  598. "$ref": "#/components/schemas/Event.storage.write"
  599. },
  600. {
  601. "$ref": "#/components/schemas/Event.installation.updated"
  602. },
  603. {
  604. "$ref": "#/components/schemas/Event.lsp.client.diagnostics"
  605. },
  606. {
  607. "$ref": "#/components/schemas/Event.permission.updated"
  608. },
  609. {
  610. "$ref": "#/components/schemas/Event.message.updated"
  611. },
  612. {
  613. "$ref": "#/components/schemas/Event.message.part.updated"
  614. },
  615. {
  616. "$ref": "#/components/schemas/Event.session.updated"
  617. },
  618. {
  619. "$ref": "#/components/schemas/Event.session.deleted"
  620. },
  621. {
  622. "$ref": "#/components/schemas/Event.session.error"
  623. }
  624. ],
  625. "discriminator": {
  626. "propertyName": "type",
  627. "mapping": {
  628. "storage.write": "#/components/schemas/Event.storage.write",
  629. "installation.updated": "#/components/schemas/Event.installation.updated",
  630. "lsp.client.diagnostics": "#/components/schemas/Event.lsp.client.diagnostics",
  631. "permission.updated": "#/components/schemas/Event.permission.updated",
  632. "message.updated": "#/components/schemas/Event.message.updated",
  633. "message.part.updated": "#/components/schemas/Event.message.part.updated",
  634. "session.updated": "#/components/schemas/Event.session.updated",
  635. "session.deleted": "#/components/schemas/Event.session.deleted",
  636. "session.error": "#/components/schemas/Event.session.error"
  637. }
  638. }
  639. },
  640. "Event.storage.write": {
  641. "type": "object",
  642. "properties": {
  643. "type": {
  644. "type": "string",
  645. "const": "storage.write"
  646. },
  647. "properties": {
  648. "type": "object",
  649. "properties": {
  650. "key": {
  651. "type": "string"
  652. },
  653. "content": {}
  654. },
  655. "required": [
  656. "key"
  657. ]
  658. }
  659. },
  660. "required": [
  661. "type",
  662. "properties"
  663. ]
  664. },
  665. "Event.installation.updated": {
  666. "type": "object",
  667. "properties": {
  668. "type": {
  669. "type": "string",
  670. "const": "installation.updated"
  671. },
  672. "properties": {
  673. "type": "object",
  674. "properties": {
  675. "version": {
  676. "type": "string"
  677. }
  678. },
  679. "required": [
  680. "version"
  681. ]
  682. }
  683. },
  684. "required": [
  685. "type",
  686. "properties"
  687. ]
  688. },
  689. "Event.lsp.client.diagnostics": {
  690. "type": "object",
  691. "properties": {
  692. "type": {
  693. "type": "string",
  694. "const": "lsp.client.diagnostics"
  695. },
  696. "properties": {
  697. "type": "object",
  698. "properties": {
  699. "serverID": {
  700. "type": "string"
  701. },
  702. "path": {
  703. "type": "string"
  704. }
  705. },
  706. "required": [
  707. "serverID",
  708. "path"
  709. ]
  710. }
  711. },
  712. "required": [
  713. "type",
  714. "properties"
  715. ]
  716. },
  717. "Event.permission.updated": {
  718. "type": "object",
  719. "properties": {
  720. "type": {
  721. "type": "string",
  722. "const": "permission.updated"
  723. },
  724. "properties": {
  725. "$ref": "#/components/schemas/permission.info"
  726. }
  727. },
  728. "required": [
  729. "type",
  730. "properties"
  731. ]
  732. },
  733. "permission.info": {
  734. "type": "object",
  735. "properties": {
  736. "id": {
  737. "type": "string"
  738. },
  739. "sessionID": {
  740. "type": "string"
  741. },
  742. "title": {
  743. "type": "string"
  744. },
  745. "metadata": {
  746. "type": "object",
  747. "additionalProperties": {}
  748. },
  749. "time": {
  750. "type": "object",
  751. "properties": {
  752. "created": {
  753. "type": "number"
  754. }
  755. },
  756. "required": [
  757. "created"
  758. ]
  759. }
  760. },
  761. "required": [
  762. "id",
  763. "sessionID",
  764. "title",
  765. "metadata",
  766. "time"
  767. ]
  768. },
  769. "Event.message.updated": {
  770. "type": "object",
  771. "properties": {
  772. "type": {
  773. "type": "string",
  774. "const": "message.updated"
  775. },
  776. "properties": {
  777. "type": "object",
  778. "properties": {
  779. "info": {
  780. "$ref": "#/components/schemas/Message.Info"
  781. }
  782. },
  783. "required": [
  784. "info"
  785. ]
  786. }
  787. },
  788. "required": [
  789. "type",
  790. "properties"
  791. ]
  792. },
  793. "Message.Info": {
  794. "type": "object",
  795. "properties": {
  796. "id": {
  797. "type": "string"
  798. },
  799. "role": {
  800. "type": "string",
  801. "enum": [
  802. "user",
  803. "assistant"
  804. ]
  805. },
  806. "parts": {
  807. "type": "array",
  808. "items": {
  809. "$ref": "#/components/schemas/Message.Part"
  810. }
  811. },
  812. "metadata": {
  813. "$ref": "#/components/schemas/Message.Metadata"
  814. }
  815. },
  816. "required": [
  817. "id",
  818. "role",
  819. "parts",
  820. "metadata"
  821. ]
  822. },
  823. "Message.Part": {
  824. "oneOf": [
  825. {
  826. "$ref": "#/components/schemas/Message.Part.Text"
  827. },
  828. {
  829. "$ref": "#/components/schemas/Message.Part.Reasoning"
  830. },
  831. {
  832. "$ref": "#/components/schemas/Message.Part.ToolInvocation"
  833. },
  834. {
  835. "$ref": "#/components/schemas/Message.Part.SourceUrl"
  836. },
  837. {
  838. "$ref": "#/components/schemas/Message.Part.File"
  839. },
  840. {
  841. "$ref": "#/components/schemas/Message.Part.StepStart"
  842. }
  843. ],
  844. "discriminator": {
  845. "propertyName": "type",
  846. "mapping": {
  847. "text": "#/components/schemas/Message.Part.Text",
  848. "reasoning": "#/components/schemas/Message.Part.Reasoning",
  849. "tool-invocation": "#/components/schemas/Message.Part.ToolInvocation",
  850. "source-url": "#/components/schemas/Message.Part.SourceUrl",
  851. "file": "#/components/schemas/Message.Part.File",
  852. "step-start": "#/components/schemas/Message.Part.StepStart"
  853. }
  854. }
  855. },
  856. "Message.Part.Text": {
  857. "type": "object",
  858. "properties": {
  859. "type": {
  860. "type": "string",
  861. "const": "text"
  862. },
  863. "text": {
  864. "type": "string"
  865. }
  866. },
  867. "required": [
  868. "type",
  869. "text"
  870. ]
  871. },
  872. "Message.Part.Reasoning": {
  873. "type": "object",
  874. "properties": {
  875. "type": {
  876. "type": "string",
  877. "const": "reasoning"
  878. },
  879. "text": {
  880. "type": "string"
  881. },
  882. "providerMetadata": {
  883. "type": "object",
  884. "additionalProperties": {}
  885. }
  886. },
  887. "required": [
  888. "type",
  889. "text"
  890. ]
  891. },
  892. "Message.Part.ToolInvocation": {
  893. "type": "object",
  894. "properties": {
  895. "type": {
  896. "type": "string",
  897. "const": "tool-invocation"
  898. },
  899. "toolInvocation": {
  900. "$ref": "#/components/schemas/Message.ToolInvocation"
  901. }
  902. },
  903. "required": [
  904. "type",
  905. "toolInvocation"
  906. ]
  907. },
  908. "Message.ToolInvocation": {
  909. "oneOf": [
  910. {
  911. "$ref": "#/components/schemas/Message.ToolInvocation.ToolCall"
  912. },
  913. {
  914. "$ref": "#/components/schemas/Message.ToolInvocation.ToolPartialCall"
  915. },
  916. {
  917. "$ref": "#/components/schemas/Message.ToolInvocation.ToolResult"
  918. }
  919. ],
  920. "discriminator": {
  921. "propertyName": "state",
  922. "mapping": {
  923. "call": "#/components/schemas/Message.ToolInvocation.ToolCall",
  924. "partial-call": "#/components/schemas/Message.ToolInvocation.ToolPartialCall",
  925. "result": "#/components/schemas/Message.ToolInvocation.ToolResult"
  926. }
  927. }
  928. },
  929. "Message.ToolInvocation.ToolCall": {
  930. "type": "object",
  931. "properties": {
  932. "state": {
  933. "type": "string",
  934. "const": "call"
  935. },
  936. "step": {
  937. "type": "number"
  938. },
  939. "toolCallId": {
  940. "type": "string"
  941. },
  942. "toolName": {
  943. "type": "string"
  944. },
  945. "args": {}
  946. },
  947. "required": [
  948. "state",
  949. "toolCallId",
  950. "toolName"
  951. ]
  952. },
  953. "Message.ToolInvocation.ToolPartialCall": {
  954. "type": "object",
  955. "properties": {
  956. "state": {
  957. "type": "string",
  958. "const": "partial-call"
  959. },
  960. "step": {
  961. "type": "number"
  962. },
  963. "toolCallId": {
  964. "type": "string"
  965. },
  966. "toolName": {
  967. "type": "string"
  968. },
  969. "args": {}
  970. },
  971. "required": [
  972. "state",
  973. "toolCallId",
  974. "toolName"
  975. ]
  976. },
  977. "Message.ToolInvocation.ToolResult": {
  978. "type": "object",
  979. "properties": {
  980. "state": {
  981. "type": "string",
  982. "const": "result"
  983. },
  984. "step": {
  985. "type": "number"
  986. },
  987. "toolCallId": {
  988. "type": "string"
  989. },
  990. "toolName": {
  991. "type": "string"
  992. },
  993. "args": {},
  994. "result": {
  995. "type": "string"
  996. }
  997. },
  998. "required": [
  999. "state",
  1000. "toolCallId",
  1001. "toolName",
  1002. "result"
  1003. ]
  1004. },
  1005. "Message.Part.SourceUrl": {
  1006. "type": "object",
  1007. "properties": {
  1008. "type": {
  1009. "type": "string",
  1010. "const": "source-url"
  1011. },
  1012. "sourceId": {
  1013. "type": "string"
  1014. },
  1015. "url": {
  1016. "type": "string"
  1017. },
  1018. "title": {
  1019. "type": "string"
  1020. },
  1021. "providerMetadata": {
  1022. "type": "object",
  1023. "additionalProperties": {}
  1024. }
  1025. },
  1026. "required": [
  1027. "type",
  1028. "sourceId",
  1029. "url"
  1030. ]
  1031. },
  1032. "Message.Part.File": {
  1033. "type": "object",
  1034. "properties": {
  1035. "type": {
  1036. "type": "string",
  1037. "const": "file"
  1038. },
  1039. "mediaType": {
  1040. "type": "string"
  1041. },
  1042. "filename": {
  1043. "type": "string"
  1044. },
  1045. "url": {
  1046. "type": "string"
  1047. }
  1048. },
  1049. "required": [
  1050. "type",
  1051. "mediaType",
  1052. "url"
  1053. ]
  1054. },
  1055. "Message.Part.StepStart": {
  1056. "type": "object",
  1057. "properties": {
  1058. "type": {
  1059. "type": "string",
  1060. "const": "step-start"
  1061. }
  1062. },
  1063. "required": [
  1064. "type"
  1065. ]
  1066. },
  1067. "Message.Metadata": {
  1068. "type": "object",
  1069. "properties": {
  1070. "time": {
  1071. "type": "object",
  1072. "properties": {
  1073. "created": {
  1074. "type": "number"
  1075. },
  1076. "completed": {
  1077. "type": "number"
  1078. }
  1079. },
  1080. "required": [
  1081. "created"
  1082. ]
  1083. },
  1084. "error": {
  1085. "oneOf": [
  1086. {
  1087. "$ref": "#/components/schemas/ProviderAuthError"
  1088. },
  1089. {
  1090. "$ref": "#/components/schemas/UnknownError"
  1091. }
  1092. ],
  1093. "discriminator": {
  1094. "propertyName": "name",
  1095. "mapping": {
  1096. "ProviderAuthError": "#/components/schemas/ProviderAuthError",
  1097. "UnknownError": "#/components/schemas/UnknownError"
  1098. }
  1099. }
  1100. },
  1101. "sessionID": {
  1102. "type": "string"
  1103. },
  1104. "tool": {
  1105. "type": "object",
  1106. "additionalProperties": {
  1107. "type": "object",
  1108. "properties": {
  1109. "title": {
  1110. "type": "string"
  1111. },
  1112. "time": {
  1113. "type": "object",
  1114. "properties": {
  1115. "start": {
  1116. "type": "number"
  1117. },
  1118. "end": {
  1119. "type": "number"
  1120. }
  1121. },
  1122. "required": [
  1123. "start",
  1124. "end"
  1125. ]
  1126. }
  1127. },
  1128. "required": [
  1129. "title",
  1130. "time"
  1131. ],
  1132. "additionalProperties": {}
  1133. }
  1134. },
  1135. "assistant": {
  1136. "type": "object",
  1137. "properties": {
  1138. "system": {
  1139. "type": "array",
  1140. "items": {
  1141. "type": "string"
  1142. }
  1143. },
  1144. "modelID": {
  1145. "type": "string"
  1146. },
  1147. "providerID": {
  1148. "type": "string"
  1149. },
  1150. "path": {
  1151. "type": "object",
  1152. "properties": {
  1153. "cwd": {
  1154. "type": "string"
  1155. },
  1156. "root": {
  1157. "type": "string"
  1158. }
  1159. },
  1160. "required": [
  1161. "cwd",
  1162. "root"
  1163. ]
  1164. },
  1165. "cost": {
  1166. "type": "number"
  1167. },
  1168. "summary": {
  1169. "type": "boolean"
  1170. },
  1171. "tokens": {
  1172. "type": "object",
  1173. "properties": {
  1174. "input": {
  1175. "type": "number"
  1176. },
  1177. "output": {
  1178. "type": "number"
  1179. },
  1180. "reasoning": {
  1181. "type": "number"
  1182. },
  1183. "cache": {
  1184. "type": "object",
  1185. "properties": {
  1186. "read": {
  1187. "type": "number"
  1188. },
  1189. "write": {
  1190. "type": "number"
  1191. }
  1192. },
  1193. "required": [
  1194. "read",
  1195. "write"
  1196. ]
  1197. }
  1198. },
  1199. "required": [
  1200. "input",
  1201. "output",
  1202. "reasoning",
  1203. "cache"
  1204. ]
  1205. }
  1206. },
  1207. "required": [
  1208. "system",
  1209. "modelID",
  1210. "providerID",
  1211. "path",
  1212. "cost",
  1213. "tokens"
  1214. ]
  1215. }
  1216. },
  1217. "required": [
  1218. "time",
  1219. "sessionID",
  1220. "tool"
  1221. ]
  1222. },
  1223. "ProviderAuthError": {
  1224. "type": "object",
  1225. "properties": {
  1226. "name": {
  1227. "type": "string",
  1228. "const": "ProviderAuthError"
  1229. },
  1230. "data": {
  1231. "type": "object",
  1232. "properties": {
  1233. "providerID": {
  1234. "type": "string"
  1235. },
  1236. "message": {
  1237. "type": "string"
  1238. }
  1239. },
  1240. "required": [
  1241. "providerID",
  1242. "message"
  1243. ]
  1244. }
  1245. },
  1246. "required": [
  1247. "name",
  1248. "data"
  1249. ]
  1250. },
  1251. "UnknownError": {
  1252. "type": "object",
  1253. "properties": {
  1254. "name": {
  1255. "type": "string",
  1256. "const": "UnknownError"
  1257. },
  1258. "data": {
  1259. "type": "object",
  1260. "properties": {
  1261. "message": {
  1262. "type": "string"
  1263. }
  1264. },
  1265. "required": [
  1266. "message"
  1267. ]
  1268. }
  1269. },
  1270. "required": [
  1271. "name",
  1272. "data"
  1273. ]
  1274. },
  1275. "Event.message.part.updated": {
  1276. "type": "object",
  1277. "properties": {
  1278. "type": {
  1279. "type": "string",
  1280. "const": "message.part.updated"
  1281. },
  1282. "properties": {
  1283. "type": "object",
  1284. "properties": {
  1285. "part": {
  1286. "$ref": "#/components/schemas/Message.Part"
  1287. },
  1288. "sessionID": {
  1289. "type": "string"
  1290. },
  1291. "messageID": {
  1292. "type": "string"
  1293. }
  1294. },
  1295. "required": [
  1296. "part",
  1297. "sessionID",
  1298. "messageID"
  1299. ]
  1300. }
  1301. },
  1302. "required": [
  1303. "type",
  1304. "properties"
  1305. ]
  1306. },
  1307. "Event.session.updated": {
  1308. "type": "object",
  1309. "properties": {
  1310. "type": {
  1311. "type": "string",
  1312. "const": "session.updated"
  1313. },
  1314. "properties": {
  1315. "type": "object",
  1316. "properties": {
  1317. "info": {
  1318. "$ref": "#/components/schemas/session.info"
  1319. }
  1320. },
  1321. "required": [
  1322. "info"
  1323. ]
  1324. }
  1325. },
  1326. "required": [
  1327. "type",
  1328. "properties"
  1329. ]
  1330. },
  1331. "session.info": {
  1332. "type": "object",
  1333. "properties": {
  1334. "id": {
  1335. "type": "string",
  1336. "pattern": "^ses"
  1337. },
  1338. "parentID": {
  1339. "type": "string",
  1340. "pattern": "^ses"
  1341. },
  1342. "share": {
  1343. "type": "object",
  1344. "properties": {
  1345. "url": {
  1346. "type": "string"
  1347. }
  1348. },
  1349. "required": [
  1350. "url"
  1351. ]
  1352. },
  1353. "title": {
  1354. "type": "string"
  1355. },
  1356. "version": {
  1357. "type": "string"
  1358. },
  1359. "time": {
  1360. "type": "object",
  1361. "properties": {
  1362. "created": {
  1363. "type": "number"
  1364. },
  1365. "updated": {
  1366. "type": "number"
  1367. }
  1368. },
  1369. "required": [
  1370. "created",
  1371. "updated"
  1372. ]
  1373. }
  1374. },
  1375. "required": [
  1376. "id",
  1377. "title",
  1378. "version",
  1379. "time"
  1380. ]
  1381. },
  1382. "Event.session.deleted": {
  1383. "type": "object",
  1384. "properties": {
  1385. "type": {
  1386. "type": "string",
  1387. "const": "session.deleted"
  1388. },
  1389. "properties": {
  1390. "type": "object",
  1391. "properties": {
  1392. "info": {
  1393. "$ref": "#/components/schemas/session.info"
  1394. }
  1395. },
  1396. "required": [
  1397. "info"
  1398. ]
  1399. }
  1400. },
  1401. "required": [
  1402. "type",
  1403. "properties"
  1404. ]
  1405. },
  1406. "Event.session.error": {
  1407. "type": "object",
  1408. "properties": {
  1409. "type": {
  1410. "type": "string",
  1411. "const": "session.error"
  1412. },
  1413. "properties": {
  1414. "type": "object",
  1415. "properties": {
  1416. "error": {
  1417. "oneOf": [
  1418. {
  1419. "$ref": "#/components/schemas/ProviderAuthError"
  1420. },
  1421. {
  1422. "$ref": "#/components/schemas/UnknownError"
  1423. }
  1424. ],
  1425. "discriminator": {
  1426. "propertyName": "name",
  1427. "mapping": {
  1428. "ProviderAuthError": "#/components/schemas/ProviderAuthError",
  1429. "UnknownError": "#/components/schemas/UnknownError"
  1430. }
  1431. }
  1432. }
  1433. }
  1434. }
  1435. },
  1436. "required": [
  1437. "type",
  1438. "properties"
  1439. ]
  1440. },
  1441. "App.Info": {
  1442. "type": "object",
  1443. "properties": {
  1444. "user": {
  1445. "type": "string"
  1446. },
  1447. "git": {
  1448. "type": "boolean"
  1449. },
  1450. "path": {
  1451. "type": "object",
  1452. "properties": {
  1453. "config": {
  1454. "type": "string"
  1455. },
  1456. "data": {
  1457. "type": "string"
  1458. },
  1459. "root": {
  1460. "type": "string"
  1461. },
  1462. "cwd": {
  1463. "type": "string"
  1464. },
  1465. "state": {
  1466. "type": "string"
  1467. }
  1468. },
  1469. "required": [
  1470. "config",
  1471. "data",
  1472. "root",
  1473. "cwd",
  1474. "state"
  1475. ]
  1476. },
  1477. "time": {
  1478. "type": "object",
  1479. "properties": {
  1480. "initialized": {
  1481. "type": "number"
  1482. }
  1483. }
  1484. }
  1485. },
  1486. "required": [
  1487. "user",
  1488. "git",
  1489. "path",
  1490. "time"
  1491. ]
  1492. },
  1493. "Config.Info": {
  1494. "type": "object",
  1495. "properties": {
  1496. "$schema": {
  1497. "type": "string",
  1498. "description": "JSON schema reference for configuration validation"
  1499. },
  1500. "theme": {
  1501. "type": "string",
  1502. "description": "Theme name to use for the interface"
  1503. },
  1504. "keybinds": {
  1505. "$ref": "#/components/schemas/Config.Keybinds",
  1506. "description": "Custom keybind configurations"
  1507. },
  1508. "autoshare": {
  1509. "type": "boolean",
  1510. "description": "Share newly created sessions automatically"
  1511. },
  1512. "autoupdate": {
  1513. "type": "boolean",
  1514. "description": "Automatically update to the latest version"
  1515. },
  1516. "disabled_providers": {
  1517. "type": "array",
  1518. "items": {
  1519. "type": "string"
  1520. },
  1521. "description": "Disable providers that are loaded automatically"
  1522. },
  1523. "model": {
  1524. "type": "string",
  1525. "description": "Model to use in the format of provider/model, eg anthropic/claude-2"
  1526. },
  1527. "provider": {
  1528. "type": "object",
  1529. "additionalProperties": {
  1530. "type": "object",
  1531. "properties": {
  1532. "api": {
  1533. "type": "string"
  1534. },
  1535. "name": {
  1536. "type": "string"
  1537. },
  1538. "env": {
  1539. "type": "array",
  1540. "items": {
  1541. "type": "string"
  1542. }
  1543. },
  1544. "id": {
  1545. "type": "string"
  1546. },
  1547. "npm": {
  1548. "type": "string"
  1549. },
  1550. "models": {
  1551. "type": "object",
  1552. "additionalProperties": {
  1553. "type": "object",
  1554. "properties": {
  1555. "name": {
  1556. "type": "string"
  1557. },
  1558. "attachment": {
  1559. "type": "boolean"
  1560. },
  1561. "reasoning": {
  1562. "type": "boolean"
  1563. },
  1564. "temperature": {
  1565. "type": "boolean"
  1566. },
  1567. "tool_call": {
  1568. "type": "boolean"
  1569. },
  1570. "cost": {
  1571. "type": "object",
  1572. "properties": {
  1573. "input": {
  1574. "type": "number"
  1575. },
  1576. "output": {
  1577. "type": "number"
  1578. },
  1579. "cache_read": {
  1580. "type": "number"
  1581. },
  1582. "cache_write": {
  1583. "type": "number"
  1584. }
  1585. },
  1586. "required": [
  1587. "input",
  1588. "output"
  1589. ]
  1590. },
  1591. "limit": {
  1592. "type": "object",
  1593. "properties": {
  1594. "context": {
  1595. "type": "number"
  1596. },
  1597. "output": {
  1598. "type": "number"
  1599. }
  1600. },
  1601. "required": [
  1602. "context",
  1603. "output"
  1604. ]
  1605. },
  1606. "id": {
  1607. "type": "string"
  1608. },
  1609. "options": {
  1610. "type": "object",
  1611. "additionalProperties": {}
  1612. }
  1613. }
  1614. }
  1615. },
  1616. "options": {
  1617. "type": "object",
  1618. "additionalProperties": {}
  1619. }
  1620. },
  1621. "required": [
  1622. "models"
  1623. ]
  1624. },
  1625. "description": "Custom provider configurations and model overrides"
  1626. },
  1627. "mcp": {
  1628. "type": "object",
  1629. "additionalProperties": {
  1630. "oneOf": [
  1631. {
  1632. "$ref": "#/components/schemas/Config.McpLocal"
  1633. },
  1634. {
  1635. "$ref": "#/components/schemas/Config.McpRemote"
  1636. }
  1637. ],
  1638. "discriminator": {
  1639. "propertyName": "type",
  1640. "mapping": {
  1641. "local": "#/components/schemas/Config.McpLocal",
  1642. "remote": "#/components/schemas/Config.McpRemote"
  1643. }
  1644. }
  1645. },
  1646. "description": "MCP (Model Context Protocol) server configurations"
  1647. }
  1648. },
  1649. "additionalProperties": false
  1650. },
  1651. "Config.Keybinds": {
  1652. "type": "object",
  1653. "properties": {
  1654. "leader": {
  1655. "type": "string",
  1656. "description": "Leader key for keybind combinations"
  1657. },
  1658. "help": {
  1659. "type": "string",
  1660. "description": "Show help dialog"
  1661. },
  1662. "editor_open": {
  1663. "type": "string",
  1664. "description": "Open external editor"
  1665. },
  1666. "session_new": {
  1667. "type": "string",
  1668. "description": "Create a new session"
  1669. },
  1670. "session_list": {
  1671. "type": "string",
  1672. "description": "List all sessions"
  1673. },
  1674. "session_share": {
  1675. "type": "string",
  1676. "description": "Share current session"
  1677. },
  1678. "session_interrupt": {
  1679. "type": "string",
  1680. "description": "Interrupt current session"
  1681. },
  1682. "session_compact": {
  1683. "type": "string",
  1684. "description": "Toggle compact mode for session"
  1685. },
  1686. "tool_details": {
  1687. "type": "string",
  1688. "description": "Show tool details"
  1689. },
  1690. "model_list": {
  1691. "type": "string",
  1692. "description": "List available models"
  1693. },
  1694. "theme_list": {
  1695. "type": "string",
  1696. "description": "List available themes"
  1697. },
  1698. "project_init": {
  1699. "type": "string",
  1700. "description": "Initialize project configuration"
  1701. },
  1702. "input_clear": {
  1703. "type": "string",
  1704. "description": "Clear input field"
  1705. },
  1706. "input_paste": {
  1707. "type": "string",
  1708. "description": "Paste from clipboard"
  1709. },
  1710. "input_submit": {
  1711. "type": "string",
  1712. "description": "Submit input"
  1713. },
  1714. "input_newline": {
  1715. "type": "string",
  1716. "description": "Insert newline in input"
  1717. },
  1718. "history_previous": {
  1719. "type": "string",
  1720. "description": "Navigate to previous history item"
  1721. },
  1722. "history_next": {
  1723. "type": "string",
  1724. "description": "Navigate to next history item"
  1725. },
  1726. "messages_page_up": {
  1727. "type": "string",
  1728. "description": "Scroll messages up by one page"
  1729. },
  1730. "messages_page_down": {
  1731. "type": "string",
  1732. "description": "Scroll messages down by one page"
  1733. },
  1734. "messages_half_page_up": {
  1735. "type": "string",
  1736. "description": "Scroll messages up by half page"
  1737. },
  1738. "messages_half_page_down": {
  1739. "type": "string",
  1740. "description": "Scroll messages down by half page"
  1741. },
  1742. "messages_previous": {
  1743. "type": "string",
  1744. "description": "Navigate to previous message"
  1745. },
  1746. "messages_next": {
  1747. "type": "string",
  1748. "description": "Navigate to next message"
  1749. },
  1750. "messages_first": {
  1751. "type": "string",
  1752. "description": "Navigate to first message"
  1753. },
  1754. "messages_last": {
  1755. "type": "string",
  1756. "description": "Navigate to last message"
  1757. },
  1758. "app_exit": {
  1759. "type": "string",
  1760. "description": "Exit the application"
  1761. }
  1762. },
  1763. "additionalProperties": false
  1764. },
  1765. "Provider.Info": {
  1766. "type": "object",
  1767. "properties": {
  1768. "api": {
  1769. "type": "string"
  1770. },
  1771. "name": {
  1772. "type": "string"
  1773. },
  1774. "env": {
  1775. "type": "array",
  1776. "items": {
  1777. "type": "string"
  1778. }
  1779. },
  1780. "id": {
  1781. "type": "string"
  1782. },
  1783. "npm": {
  1784. "type": "string"
  1785. },
  1786. "models": {
  1787. "type": "object",
  1788. "additionalProperties": {
  1789. "$ref": "#/components/schemas/Model.Info"
  1790. }
  1791. }
  1792. },
  1793. "required": [
  1794. "name",
  1795. "env",
  1796. "id",
  1797. "models"
  1798. ]
  1799. },
  1800. "Model.Info": {
  1801. "type": "object",
  1802. "properties": {
  1803. "name": {
  1804. "type": "string"
  1805. },
  1806. "attachment": {
  1807. "type": "boolean"
  1808. },
  1809. "reasoning": {
  1810. "type": "boolean"
  1811. },
  1812. "temperature": {
  1813. "type": "boolean"
  1814. },
  1815. "tool_call": {
  1816. "type": "boolean"
  1817. },
  1818. "cost": {
  1819. "type": "object",
  1820. "properties": {
  1821. "input": {
  1822. "type": "number"
  1823. },
  1824. "output": {
  1825. "type": "number"
  1826. },
  1827. "cache_read": {
  1828. "type": "number"
  1829. },
  1830. "cache_write": {
  1831. "type": "number"
  1832. }
  1833. },
  1834. "required": [
  1835. "input",
  1836. "output"
  1837. ]
  1838. },
  1839. "limit": {
  1840. "type": "object",
  1841. "properties": {
  1842. "context": {
  1843. "type": "number"
  1844. },
  1845. "output": {
  1846. "type": "number"
  1847. }
  1848. },
  1849. "required": [
  1850. "context",
  1851. "output"
  1852. ]
  1853. },
  1854. "id": {
  1855. "type": "string"
  1856. },
  1857. "options": {
  1858. "type": "object",
  1859. "additionalProperties": {}
  1860. }
  1861. },
  1862. "required": [
  1863. "name",
  1864. "attachment",
  1865. "reasoning",
  1866. "temperature",
  1867. "tool_call",
  1868. "cost",
  1869. "limit",
  1870. "id",
  1871. "options"
  1872. ]
  1873. },
  1874. "Config.McpLocal": {
  1875. "type": "object",
  1876. "properties": {
  1877. "type": {
  1878. "type": "string",
  1879. "const": "local",
  1880. "description": "Type of MCP server connection"
  1881. },
  1882. "command": {
  1883. "type": "array",
  1884. "items": {
  1885. "type": "string"
  1886. },
  1887. "description": "Command and arguments to run the MCP server"
  1888. },
  1889. "environment": {
  1890. "type": "object",
  1891. "additionalProperties": {
  1892. "type": "string"
  1893. },
  1894. "description": "Environment variables to set when running the MCP server"
  1895. }
  1896. },
  1897. "required": [
  1898. "type",
  1899. "command"
  1900. ],
  1901. "additionalProperties": false
  1902. },
  1903. "Config.McpRemote": {
  1904. "type": "object",
  1905. "properties": {
  1906. "type": {
  1907. "type": "string",
  1908. "const": "remote",
  1909. "description": "Type of MCP server connection"
  1910. },
  1911. "url": {
  1912. "type": "string",
  1913. "description": "URL of the remote MCP server"
  1914. }
  1915. },
  1916. "required": [
  1917. "type",
  1918. "url"
  1919. ],
  1920. "additionalProperties": false
  1921. },
  1922. "Error": {
  1923. "type": "object",
  1924. "properties": {
  1925. "data": {
  1926. "type": "object",
  1927. "additionalProperties": {}
  1928. }
  1929. },
  1930. "required": [
  1931. "data"
  1932. ]
  1933. },
  1934. "InstallationInfo": {
  1935. "type": "object",
  1936. "properties": {
  1937. "version": {
  1938. "type": "string"
  1939. },
  1940. "latest": {
  1941. "type": "string"
  1942. }
  1943. },
  1944. "required": [
  1945. "version",
  1946. "latest"
  1947. ]
  1948. }
  1949. }
  1950. }
  1951. }