mtmsdk 0.0.42 → 0.0.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (480) hide show
  1. package/dist/cloud-account/platform-configs.d.ts +64 -0
  2. package/dist/cloud-account/platform-configs.d.ts.map +1 -0
  3. package/dist/cloud-account/platform-configs.js +44 -0
  4. package/dist/cloud-account/platform-configs.js.map +1 -0
  5. package/dist/{gomtmapi_v2 → gomtmapi}/@tanstack/react-query.gen.d.ts +202 -8
  6. package/dist/gomtmapi/@tanstack/react-query.gen.d.ts.map +1 -0
  7. package/dist/{gomtmapi_v2 → gomtmapi}/@tanstack/react-query.gen.js +300 -10
  8. package/dist/gomtmapi/@tanstack/react-query.gen.js.map +1 -0
  9. package/dist/{opencode → gomtmapi}/client/client.gen.d.ts.map +1 -1
  10. package/dist/{opencode → gomtmapi}/client/client.gen.js.map +1 -1
  11. package/dist/{opencode → gomtmapi}/client/index.d.ts.map +1 -1
  12. package/dist/{opencode → gomtmapi}/client/index.js.map +1 -1
  13. package/dist/{opencode → gomtmapi}/client/types.gen.d.ts.map +1 -1
  14. package/dist/gomtmapi/client/types.gen.js.map +1 -0
  15. package/dist/{opencode → gomtmapi}/client/utils.gen.d.ts.map +1 -1
  16. package/dist/{opencode → gomtmapi}/client/utils.gen.js.map +1 -1
  17. package/dist/{opencode → gomtmapi}/client.gen.d.ts.map +1 -1
  18. package/dist/{opencode → gomtmapi}/client.gen.js.map +1 -1
  19. package/dist/{opencode → gomtmapi}/core/auth.gen.d.ts.map +1 -1
  20. package/dist/{opencode → gomtmapi}/core/auth.gen.js.map +1 -1
  21. package/dist/{opencode → gomtmapi}/core/bodySerializer.gen.d.ts.map +1 -1
  22. package/dist/{opencode → gomtmapi}/core/bodySerializer.gen.js.map +1 -1
  23. package/dist/{opencode → gomtmapi}/core/params.gen.d.ts.map +1 -1
  24. package/dist/{opencode → gomtmapi}/core/params.gen.js.map +1 -1
  25. package/dist/{opencode → gomtmapi}/core/pathSerializer.gen.d.ts.map +1 -1
  26. package/dist/{opencode → gomtmapi}/core/pathSerializer.gen.js.map +1 -1
  27. package/dist/{opencode → gomtmapi}/core/queryKeySerializer.gen.d.ts.map +1 -1
  28. package/dist/{opencode → gomtmapi}/core/queryKeySerializer.gen.js.map +1 -1
  29. package/dist/{opencode → gomtmapi}/core/serverSentEvents.gen.d.ts.map +1 -1
  30. package/dist/{opencode → gomtmapi}/core/serverSentEvents.gen.js.map +1 -1
  31. package/dist/{opencode → gomtmapi}/core/types.gen.d.ts.map +1 -1
  32. package/dist/gomtmapi/core/types.gen.js.map +1 -0
  33. package/dist/{opencode → gomtmapi}/core/utils.gen.d.ts.map +1 -1
  34. package/dist/{opencode → gomtmapi}/core/utils.gen.js.map +1 -1
  35. package/dist/gomtmapi/index.d.ts +3 -0
  36. package/dist/gomtmapi/index.d.ts.map +1 -0
  37. package/dist/gomtmapi/index.js +3 -0
  38. package/dist/gomtmapi/index.js.map +1 -0
  39. package/dist/{gomtmapi_v2 → gomtmapi}/schemas.gen.d.ts +337 -50
  40. package/dist/gomtmapi/schemas.gen.d.ts.map +1 -0
  41. package/dist/{gomtmapi_v2 → gomtmapi}/schemas.gen.js +355 -50
  42. package/dist/gomtmapi/schemas.gen.js.map +1 -0
  43. package/dist/gomtmapi/sdk.gen.d.ts +378 -0
  44. package/dist/gomtmapi/sdk.gen.d.ts.map +1 -0
  45. package/dist/{gomtmapi_v2 → gomtmapi}/sdk.gen.js +234 -15
  46. package/dist/gomtmapi/sdk.gen.js.map +1 -0
  47. package/dist/{gomtmapi_v2 → gomtmapi}/types.gen.d.ts +494 -50
  48. package/dist/gomtmapi/types.gen.d.ts.map +1 -0
  49. package/dist/gomtmapi/types.gen.js.map +1 -0
  50. package/dist/{gomtmapi_v2 → gomtmapi}/zod.gen.d.ts +391 -45
  51. package/dist/gomtmapi/zod.gen.d.ts.map +1 -0
  52. package/dist/{gomtmapi_v2 → gomtmapi}/zod.gen.js +270 -31
  53. package/dist/gomtmapi/zod.gen.js.map +1 -0
  54. package/dist/lib/logger/index.d.ts +3 -0
  55. package/dist/lib/logger/index.d.ts.map +1 -1
  56. package/dist/lib/schema.d.ts +14 -2
  57. package/dist/lib/schema.d.ts.map +1 -1
  58. package/dist/lib/schema.js +1 -1
  59. package/dist/lib/schema.js.map +1 -1
  60. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts +29 -1
  61. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts.map +1 -1
  62. package/dist/mtgate_api/@tanstack/react-query.gen.js +17 -1
  63. package/dist/mtgate_api/@tanstack/react-query.gen.js.map +1 -1
  64. package/dist/mtgate_api/index.d.ts +2 -2
  65. package/dist/mtgate_api/index.d.ts.map +1 -1
  66. package/dist/mtgate_api/index.js +1 -1
  67. package/dist/mtgate_api/index.js.map +1 -1
  68. package/dist/mtgate_api/schemas.gen.d.ts +1 -0
  69. package/dist/mtgate_api/schemas.gen.d.ts.map +1 -1
  70. package/dist/mtgate_api/schemas.gen.js +8 -1
  71. package/dist/mtgate_api/schemas.gen.js.map +1 -1
  72. package/dist/mtgate_api/sdk.gen.d.ts +5 -1
  73. package/dist/mtgate_api/sdk.gen.d.ts.map +1 -1
  74. package/dist/mtgate_api/sdk.gen.js +4 -0
  75. package/dist/mtgate_api/sdk.gen.js.map +1 -1
  76. package/dist/mtgate_api/types.gen.d.ts +7 -1
  77. package/dist/mtgate_api/types.gen.d.ts.map +1 -1
  78. package/dist/mtgate_api/zod.gen.d.ts +26 -3
  79. package/dist/mtgate_api/zod.gen.d.ts.map +1 -1
  80. package/dist/mtgate_api/zod.gen.js +12 -1
  81. package/dist/mtgate_api/zod.gen.js.map +1 -1
  82. package/dist/openclaw/client-info.d.ts +56 -0
  83. package/dist/openclaw/client-info.d.ts.map +1 -0
  84. package/dist/openclaw/client-info.js +44 -0
  85. package/dist/openclaw/client-info.js.map +1 -0
  86. package/dist/openclaw/device-auth-utils.d.ts +13 -0
  87. package/dist/openclaw/device-auth-utils.d.ts.map +1 -0
  88. package/dist/openclaw/device-auth-utils.js +20 -0
  89. package/dist/openclaw/device-auth-utils.js.map +1 -0
  90. package/dist/openclaw/device-auth.d.ts +21 -0
  91. package/dist/openclaw/device-auth.d.ts.map +1 -0
  92. package/dist/openclaw/device-auth.js +84 -0
  93. package/dist/openclaw/device-auth.js.map +1 -0
  94. package/dist/openclaw/device-identity.d.ts +8 -0
  95. package/dist/openclaw/device-identity.d.ts.map +1 -0
  96. package/dist/openclaw/device-identity.js +87 -0
  97. package/dist/openclaw/device-identity.js.map +1 -0
  98. package/dist/openclaw/gateway.d.ts +86 -0
  99. package/dist/openclaw/gateway.d.ts.map +1 -0
  100. package/dist/openclaw/gateway.js +268 -0
  101. package/dist/openclaw/gateway.js.map +1 -0
  102. package/dist/openclaw/types.d.ts +473 -0
  103. package/dist/openclaw/types.d.ts.map +1 -0
  104. package/dist/openclaw/types.js +2 -0
  105. package/dist/openclaw/types.js.map +1 -0
  106. package/dist/openclaw/uuid.d.ts +6 -0
  107. package/dist/openclaw/uuid.d.ts.map +1 -0
  108. package/dist/openclaw/uuid.js +39 -0
  109. package/dist/openclaw/uuid.js.map +1 -0
  110. package/dist/sbapi/@tanstack/react-query.gen.d.ts +3251 -6
  111. package/dist/sbapi/@tanstack/react-query.gen.d.ts.map +1 -1
  112. package/dist/sbapi/@tanstack/react-query.gen.js +6050 -6
  113. package/dist/sbapi/@tanstack/react-query.gen.js.map +1 -1
  114. package/dist/sbapi/client.gen.d.ts.map +1 -1
  115. package/dist/sbapi/client.gen.js +1 -1
  116. package/dist/sbapi/client.gen.js.map +1 -1
  117. package/dist/sbapi/index.d.ts +2 -2
  118. package/dist/sbapi/index.d.ts.map +1 -1
  119. package/dist/sbapi/index.js +1 -1
  120. package/dist/sbapi/index.js.map +1 -1
  121. package/dist/sbapi/schemas.gen.d.ts +2320 -36
  122. package/dist/sbapi/schemas.gen.d.ts.map +1 -1
  123. package/dist/sbapi/schemas.gen.js +2593 -45
  124. package/dist/sbapi/schemas.gen.js.map +1 -1
  125. package/dist/sbapi/sdk.gen.d.ts +819 -2
  126. package/dist/sbapi/sdk.gen.d.ts.map +1 -1
  127. package/dist/sbapi/sdk.gen.js +2463 -1
  128. package/dist/sbapi/sdk.gen.js.map +1 -1
  129. package/dist/sbapi/types.gen.d.ts +11701 -29
  130. package/dist/sbapi/types.gen.d.ts.map +1 -1
  131. package/dist/sbapi/zod.gen.d.ts +8134 -26
  132. package/dist/sbapi/zod.gen.d.ts.map +1 -1
  133. package/dist/sbapi/zod.gen.js +6572 -18
  134. package/dist/sbapi/zod.gen.js.map +1 -1
  135. package/dist/sbmng/@tanstack/react-query.gen.d.ts +253 -157
  136. package/dist/sbmng/@tanstack/react-query.gen.d.ts.map +1 -1
  137. package/dist/sbmng/@tanstack/react-query.gen.js +241 -145
  138. package/dist/sbmng/@tanstack/react-query.gen.js.map +1 -1
  139. package/dist/sbmng/index.d.ts +2 -2
  140. package/dist/sbmng/index.d.ts.map +1 -1
  141. package/dist/sbmng/index.js +1 -1
  142. package/dist/sbmng/index.js.map +1 -1
  143. package/dist/sbmng/schemas.gen.d.ts +1035 -917
  144. package/dist/sbmng/schemas.gen.d.ts.map +1 -1
  145. package/dist/sbmng/schemas.gen.js +1219 -1067
  146. package/dist/sbmng/schemas.gen.js.map +1 -1
  147. package/dist/sbmng/sdk.gen.d.ts +62 -38
  148. package/dist/sbmng/sdk.gen.d.ts.map +1 -1
  149. package/dist/sbmng/sdk.gen.js +140 -84
  150. package/dist/sbmng/sdk.gen.js.map +1 -1
  151. package/dist/sbmng/types.gen.d.ts +1214 -991
  152. package/dist/sbmng/types.gen.d.ts.map +1 -1
  153. package/dist/supabase/auth-provider.d.ts +4 -0
  154. package/dist/supabase/auth-provider.d.ts.map +1 -0
  155. package/dist/supabase/auth-provider.js +45 -0
  156. package/dist/supabase/auth-provider.js.map +1 -0
  157. package/dist/supabase/cursor-pagination.d.ts +92 -0
  158. package/dist/supabase/cursor-pagination.d.ts.map +1 -0
  159. package/dist/supabase/cursor-pagination.js +116 -0
  160. package/dist/supabase/cursor-pagination.js.map +1 -0
  161. package/dist/supabase/schema/browser.d.ts.map +1 -0
  162. package/dist/supabase/schema/browser.js.map +1 -0
  163. package/dist/supabase/schema/index.d.ts +29 -0
  164. package/dist/supabase/schema/index.d.ts.map +1 -0
  165. package/dist/supabase/schema/index.js +38 -0
  166. package/dist/supabase/schema/index.js.map +1 -0
  167. package/dist/supabase/supabase-client.d.ts +1912 -1128
  168. package/dist/supabase/supabase-client.d.ts.map +1 -1
  169. package/dist/supabase/supabase.d.ts +4466 -2898
  170. package/dist/supabase/supabase.d.ts.map +1 -1
  171. package/dist/supabase/supabase.js +7 -4
  172. package/dist/supabase/supabase.js.map +1 -1
  173. package/dist/supabase/use-sb-query/use-query.d.ts +1 -1
  174. package/dist/supabase/use-sb-query/use-query.d.ts.map +1 -1
  175. package/dist/supabase/use-sb-query/use-query.js +2 -6
  176. package/dist/supabase/use-sb-query/use-query.js.map +1 -1
  177. package/dist/supabase/use-sb-query/use-rpc-mutation.d.ts +61 -0
  178. package/dist/supabase/use-sb-query/use-rpc-mutation.d.ts.map +1 -0
  179. package/dist/supabase/use-sb-query/use-rpc-mutation.js +63 -0
  180. package/dist/supabase/use-sb-query/use-rpc-mutation.js.map +1 -0
  181. package/dist/supabase/use-sb-query/use-rpc-query.d.ts +124 -0
  182. package/dist/supabase/use-sb-query/use-rpc-query.d.ts.map +1 -0
  183. package/dist/supabase/use-sb-query/use-rpc-query.js +91 -0
  184. package/dist/supabase/use-sb-query/use-rpc-query.js.map +1 -0
  185. package/dist/supabase/utils.d.ts +1 -1
  186. package/dist/supabase/utils.d.ts.map +1 -1
  187. package/dist/types/database.schemas.d.ts +3911 -0
  188. package/dist/types/database.schemas.d.ts.map +1 -0
  189. package/dist/types/database.schemas.js +3180 -0
  190. package/dist/types/database.schemas.js.map +1 -0
  191. package/dist/types/database.types.d.ts +1923 -1134
  192. package/dist/types/database.types.d.ts.map +1 -1
  193. package/dist/types/database.types.js +24 -0
  194. package/dist/types/database.types.js.map +1 -1
  195. package/dist/types/index.d.ts +47 -6
  196. package/dist/types/index.d.ts.map +1 -1
  197. package/dist/types/index.js +27 -1
  198. package/dist/types/index.js.map +1 -1
  199. package/dist/types/rpc.schemas.d.ts +64 -0
  200. package/dist/types/rpc.schemas.d.ts.map +1 -0
  201. package/dist/types/rpc.schemas.js +122 -0
  202. package/dist/types/rpc.schemas.js.map +1 -0
  203. package/package.json +48 -39
  204. package/src/adk/api/client.ts +46 -0
  205. package/src/adk/core/constants/tool-icons.ts +51 -0
  206. package/src/adk/core/models/AgentBuilder.ts +80 -0
  207. package/src/adk/core/models/AgentRunRequest.ts +33 -0
  208. package/src/adk/core/models/Eval.ts +70 -0
  209. package/src/adk/core/models/LiveRequest.ts +23 -0
  210. package/src/adk/core/models/RuntimeConfig.ts +33 -0
  211. package/src/adk/core/models/Session.ts +52 -0
  212. package/src/adk/core/models/Trace.ts +42 -0
  213. package/src/adk/core/models/types.ts +255 -0
  214. package/src/api_hatchet/@tanstack/react-query.gen.ts +3025 -0
  215. package/src/api_hatchet/client/client.gen.ts +311 -0
  216. package/src/api_hatchet/client/index.ts +25 -0
  217. package/src/api_hatchet/client/types.gen.ts +241 -0
  218. package/src/api_hatchet/client/utils.gen.ts +332 -0
  219. package/{dist/opencode/client.gen.d.ts → src/api_hatchet/client.gen.ts} +6 -3
  220. package/src/api_hatchet/core/auth.gen.ts +42 -0
  221. package/src/api_hatchet/core/bodySerializer.gen.ts +100 -0
  222. package/src/api_hatchet/core/params.gen.ts +176 -0
  223. package/src/api_hatchet/core/pathSerializer.gen.ts +181 -0
  224. package/src/api_hatchet/core/queryKeySerializer.gen.ts +136 -0
  225. package/src/api_hatchet/core/serverSentEvents.gen.ts +266 -0
  226. package/src/api_hatchet/core/types.gen.ts +118 -0
  227. package/src/api_hatchet/core/utils.gen.ts +143 -0
  228. package/src/api_hatchet/index.ts +4 -0
  229. package/src/api_hatchet/schemas.gen.ts +4961 -0
  230. package/src/api_hatchet/sdk.gen.ts +1994 -0
  231. package/src/api_hatchet/types.gen.ts +7688 -0
  232. package/src/api_hatchet/zod.gen.ts +3230 -0
  233. package/src/cloud-account/platform-configs.ts +73 -0
  234. package/src/gomtmapi/@tanstack/react-query.gen.ts +757 -0
  235. package/src/gomtmapi/client/client.gen.ts +311 -0
  236. package/src/gomtmapi/client/index.ts +25 -0
  237. package/src/gomtmapi/client/types.gen.ts +241 -0
  238. package/src/gomtmapi/client/utils.gen.ts +332 -0
  239. package/src/gomtmapi/client.gen.ts +16 -0
  240. package/src/gomtmapi/core/auth.gen.ts +42 -0
  241. package/src/gomtmapi/core/bodySerializer.gen.ts +100 -0
  242. package/src/gomtmapi/core/params.gen.ts +176 -0
  243. package/src/gomtmapi/core/pathSerializer.gen.ts +181 -0
  244. package/src/gomtmapi/core/queryKeySerializer.gen.ts +136 -0
  245. package/src/gomtmapi/core/serverSentEvents.gen.ts +266 -0
  246. package/src/gomtmapi/core/types.gen.ts +118 -0
  247. package/src/gomtmapi/core/utils.gen.ts +143 -0
  248. package/src/gomtmapi/index.ts +4 -0
  249. package/src/gomtmapi/schemas.gen.ts +904 -0
  250. package/src/gomtmapi/sdk.gen.ts +541 -0
  251. package/src/gomtmapi/types.gen.ts +1456 -0
  252. package/src/gomtmapi/zod.gen.ts +758 -0
  253. package/src/index.ts +5 -0
  254. package/src/lib/aisdk/types.ts +8 -0
  255. package/src/lib/logger/index.ts +8 -0
  256. package/src/lib/schema.ts +50 -0
  257. package/src/lib/utils.ts +54 -0
  258. package/src/mtgate_api/@tanstack/react-query.gen.ts +175 -0
  259. package/src/mtgate_api/client/client.gen.ts +311 -0
  260. package/src/mtgate_api/client/index.ts +25 -0
  261. package/src/mtgate_api/client/types.gen.ts +241 -0
  262. package/src/mtgate_api/client/utils.gen.ts +332 -0
  263. package/src/mtgate_api/client.gen.ts +16 -0
  264. package/src/mtgate_api/core/auth.gen.ts +42 -0
  265. package/src/mtgate_api/core/bodySerializer.gen.ts +100 -0
  266. package/src/mtgate_api/core/params.gen.ts +176 -0
  267. package/src/mtgate_api/core/pathSerializer.gen.ts +181 -0
  268. package/src/mtgate_api/core/queryKeySerializer.gen.ts +136 -0
  269. package/src/mtgate_api/core/serverSentEvents.gen.ts +266 -0
  270. package/src/mtgate_api/core/types.gen.ts +118 -0
  271. package/src/mtgate_api/core/utils.gen.ts +143 -0
  272. package/src/mtgate_api/index.ts +4 -0
  273. package/src/mtgate_api/schemas.gen.ts +337 -0
  274. package/src/mtgate_api/sdk.gen.ts +61 -0
  275. package/src/mtgate_api/types.gen.ts +324 -0
  276. package/src/mtgate_api/zod.gen.ts +234 -0
  277. package/src/mtmai_api/@tanstack/react-query.gen.ts +1010 -0
  278. package/src/mtmai_api/client/client.gen.ts +311 -0
  279. package/src/mtmai_api/client/index.ts +25 -0
  280. package/src/mtmai_api/client/types.gen.ts +241 -0
  281. package/src/mtmai_api/client/utils.gen.ts +332 -0
  282. package/src/mtmai_api/client.gen.ts +16 -0
  283. package/src/mtmai_api/core/auth.gen.ts +42 -0
  284. package/src/mtmai_api/core/bodySerializer.gen.ts +100 -0
  285. package/src/mtmai_api/core/params.gen.ts +176 -0
  286. package/src/mtmai_api/core/pathSerializer.gen.ts +181 -0
  287. package/src/mtmai_api/core/queryKeySerializer.gen.ts +136 -0
  288. package/src/mtmai_api/core/serverSentEvents.gen.ts +266 -0
  289. package/src/mtmai_api/core/types.gen.ts +118 -0
  290. package/src/mtmai_api/core/utils.gen.ts +143 -0
  291. package/src/mtmai_api/index.ts +4 -0
  292. package/src/mtmai_api/schemas.gen.ts +9980 -0
  293. package/src/mtmai_api/sdk.gen.ts +471 -0
  294. package/src/mtmai_api/types.gen.ts +7609 -0
  295. package/src/mtmai_api/zod.gen.ts +5101 -0
  296. package/src/openclaw/client-info.ts +63 -0
  297. package/src/openclaw/device-auth-utils.ts +31 -0
  298. package/src/openclaw/device-auth.ts +96 -0
  299. package/src/openclaw/device-identity.ts +108 -0
  300. package/src/openclaw/gateway.ts +351 -0
  301. package/src/openclaw/types.ts +518 -0
  302. package/src/openclaw/uuid.ts +48 -0
  303. package/src/sbapi/@tanstack/react-query.gen.ts +6591 -0
  304. package/src/sbapi/client/client.gen.ts +311 -0
  305. package/src/sbapi/client/index.ts +25 -0
  306. package/src/sbapi/client/types.gen.ts +241 -0
  307. package/src/sbapi/client/utils.gen.ts +332 -0
  308. package/src/sbapi/client.gen.ts +16 -0
  309. package/src/sbapi/core/auth.gen.ts +42 -0
  310. package/src/sbapi/core/bodySerializer.gen.ts +100 -0
  311. package/src/sbapi/core/params.gen.ts +176 -0
  312. package/src/sbapi/core/pathSerializer.gen.ts +181 -0
  313. package/src/sbapi/core/queryKeySerializer.gen.ts +136 -0
  314. package/src/sbapi/core/serverSentEvents.gen.ts +266 -0
  315. package/src/sbapi/core/types.gen.ts +118 -0
  316. package/src/sbapi/core/utils.gen.ts +143 -0
  317. package/src/sbapi/index.ts +4 -0
  318. package/src/sbapi/schemas.gen.ts +2643 -0
  319. package/src/sbapi/sdk.gen.ts +2822 -0
  320. package/src/sbapi/types.gen.ts +12503 -0
  321. package/src/sbapi/zod.gen.ts +7021 -0
  322. package/src/sbmng/@tanstack/react-query.gen.ts +2999 -0
  323. package/src/sbmng/client/client.gen.ts +311 -0
  324. package/src/sbmng/client/index.ts +25 -0
  325. package/src/sbmng/client/types.gen.ts +241 -0
  326. package/src/sbmng/client/utils.gen.ts +332 -0
  327. package/src/sbmng/client.gen.ts +16 -0
  328. package/src/sbmng/core/auth.gen.ts +42 -0
  329. package/src/sbmng/core/bodySerializer.gen.ts +100 -0
  330. package/src/sbmng/core/params.gen.ts +176 -0
  331. package/src/sbmng/core/pathSerializer.gen.ts +181 -0
  332. package/src/sbmng/core/queryKeySerializer.gen.ts +136 -0
  333. package/src/sbmng/core/serverSentEvents.gen.ts +266 -0
  334. package/src/sbmng/core/types.gen.ts +118 -0
  335. package/src/sbmng/core/utils.gen.ts +143 -0
  336. package/src/sbmng/index.ts +4 -0
  337. package/src/sbmng/schemas.gen.ts +9680 -0
  338. package/src/sbmng/sdk.gen.ts +1771 -0
  339. package/src/sbmng/types.gen.ts +7956 -0
  340. package/src/supabase/auth-provider.tsx +67 -0
  341. package/src/supabase/context.tsx +51 -0
  342. package/src/supabase/cursor-pagination.ts +155 -0
  343. package/src/supabase/schema/browser.ts +45 -0
  344. package/src/supabase/schema/index.ts +50 -0
  345. package/src/supabase/supabase-client.ts +30 -0
  346. package/src/supabase/supabase.ts +65 -0
  347. package/src/supabase/use-sb-query/build-query-opts.ts +56 -0
  348. package/src/supabase/use-sb-query/key.ts +57 -0
  349. package/src/supabase/use-sb-query/prefetch.ts +59 -0
  350. package/src/supabase/use-sb-query/use-query.ts +340 -0
  351. package/src/supabase/use-sb-query/use-rpc-mutation.ts +83 -0
  352. package/src/supabase/use-sb-query/use-rpc-query.ts +230 -0
  353. package/src/supabase/utils.ts +75 -0
  354. package/src/types/database.schemas.ts +3804 -0
  355. package/src/types/database.types.ts +3828 -0
  356. package/src/types/index.ts +119 -0
  357. package/src/types/rpc.schemas.ts +157 -0
  358. package/dist/gomtmapi_v2/@tanstack/react-query.gen.d.ts.map +0 -1
  359. package/dist/gomtmapi_v2/@tanstack/react-query.gen.js.map +0 -1
  360. package/dist/gomtmapi_v2/client/client.gen.d.ts.map +0 -1
  361. package/dist/gomtmapi_v2/client/client.gen.js.map +0 -1
  362. package/dist/gomtmapi_v2/client/index.d.ts.map +0 -1
  363. package/dist/gomtmapi_v2/client/index.js.map +0 -1
  364. package/dist/gomtmapi_v2/client/types.gen.d.ts.map +0 -1
  365. package/dist/gomtmapi_v2/client/types.gen.js.map +0 -1
  366. package/dist/gomtmapi_v2/client/utils.gen.d.ts.map +0 -1
  367. package/dist/gomtmapi_v2/client/utils.gen.js.map +0 -1
  368. package/dist/gomtmapi_v2/client.gen.d.ts.map +0 -1
  369. package/dist/gomtmapi_v2/client.gen.js.map +0 -1
  370. package/dist/gomtmapi_v2/core/auth.gen.d.ts.map +0 -1
  371. package/dist/gomtmapi_v2/core/auth.gen.js.map +0 -1
  372. package/dist/gomtmapi_v2/core/bodySerializer.gen.d.ts.map +0 -1
  373. package/dist/gomtmapi_v2/core/bodySerializer.gen.js.map +0 -1
  374. package/dist/gomtmapi_v2/core/params.gen.d.ts.map +0 -1
  375. package/dist/gomtmapi_v2/core/params.gen.js.map +0 -1
  376. package/dist/gomtmapi_v2/core/pathSerializer.gen.d.ts.map +0 -1
  377. package/dist/gomtmapi_v2/core/pathSerializer.gen.js.map +0 -1
  378. package/dist/gomtmapi_v2/core/queryKeySerializer.gen.d.ts.map +0 -1
  379. package/dist/gomtmapi_v2/core/queryKeySerializer.gen.js.map +0 -1
  380. package/dist/gomtmapi_v2/core/serverSentEvents.gen.d.ts.map +0 -1
  381. package/dist/gomtmapi_v2/core/serverSentEvents.gen.js.map +0 -1
  382. package/dist/gomtmapi_v2/core/types.gen.d.ts.map +0 -1
  383. package/dist/gomtmapi_v2/core/types.gen.js.map +0 -1
  384. package/dist/gomtmapi_v2/core/utils.gen.d.ts.map +0 -1
  385. package/dist/gomtmapi_v2/core/utils.gen.js.map +0 -1
  386. package/dist/gomtmapi_v2/index.d.ts +0 -3
  387. package/dist/gomtmapi_v2/index.d.ts.map +0 -1
  388. package/dist/gomtmapi_v2/index.js +0 -3
  389. package/dist/gomtmapi_v2/index.js.map +0 -1
  390. package/dist/gomtmapi_v2/schemas.gen.d.ts.map +0 -1
  391. package/dist/gomtmapi_v2/schemas.gen.js.map +0 -1
  392. package/dist/gomtmapi_v2/sdk.gen.d.ts +0 -208
  393. package/dist/gomtmapi_v2/sdk.gen.d.ts.map +0 -1
  394. package/dist/gomtmapi_v2/sdk.gen.js.map +0 -1
  395. package/dist/gomtmapi_v2/types.gen.d.ts.map +0 -1
  396. package/dist/gomtmapi_v2/types.gen.js.map +0 -1
  397. package/dist/gomtmapi_v2/zod.gen.d.ts.map +0 -1
  398. package/dist/gomtmapi_v2/zod.gen.js.map +0 -1
  399. package/dist/opencode/@tanstack/react-query.gen.d.ts +0 -1903
  400. package/dist/opencode/@tanstack/react-query.gen.d.ts.map +0 -1
  401. package/dist/opencode/@tanstack/react-query.gen.js +0 -1696
  402. package/dist/opencode/@tanstack/react-query.gen.js.map +0 -1
  403. package/dist/opencode/client/client.gen.d.ts +0 -3
  404. package/dist/opencode/client/client.gen.js +0 -236
  405. package/dist/opencode/client/index.d.ts +0 -9
  406. package/dist/opencode/client/index.js +0 -7
  407. package/dist/opencode/client/types.gen.d.ts +0 -118
  408. package/dist/opencode/client/types.gen.js +0 -3
  409. package/dist/opencode/client/types.gen.js.map +0 -1
  410. package/dist/opencode/client/utils.gen.d.ts +0 -34
  411. package/dist/opencode/client/utils.gen.js +0 -232
  412. package/dist/opencode/client.gen.js +0 -4
  413. package/dist/opencode/core/auth.gen.d.ts +0 -19
  414. package/dist/opencode/core/auth.gen.js +0 -15
  415. package/dist/opencode/core/bodySerializer.gen.d.ts +0 -26
  416. package/dist/opencode/core/bodySerializer.gen.js +0 -58
  417. package/dist/opencode/core/params.gen.d.ts +0 -44
  418. package/dist/opencode/core/params.gen.js +0 -101
  419. package/dist/opencode/core/pathSerializer.gen.d.ts +0 -34
  420. package/dist/opencode/core/pathSerializer.gen.js +0 -115
  421. package/dist/opencode/core/queryKeySerializer.gen.d.ts +0 -19
  422. package/dist/opencode/core/queryKeySerializer.gen.js +0 -100
  423. package/dist/opencode/core/serverSentEvents.gen.d.ts +0 -72
  424. package/dist/opencode/core/serverSentEvents.gen.js +0 -138
  425. package/dist/opencode/core/types.gen.d.ts +0 -79
  426. package/dist/opencode/core/types.gen.js +0 -3
  427. package/dist/opencode/core/types.gen.js.map +0 -1
  428. package/dist/opencode/core/utils.gen.d.ts +0 -20
  429. package/dist/opencode/core/utils.gen.js +0 -88
  430. package/dist/opencode/index.d.ts +0 -3
  431. package/dist/opencode/index.d.ts.map +0 -1
  432. package/dist/opencode/index.js +0 -4
  433. package/dist/opencode/index.js.map +0 -1
  434. package/dist/opencode/schemas.gen.d.ts +0 -4823
  435. package/dist/opencode/schemas.gen.d.ts.map +0 -1
  436. package/dist/opencode/schemas.gen.js +0 -5816
  437. package/dist/opencode/schemas.gen.js.map +0 -1
  438. package/dist/opencode/sdk.gen.d.ts +0 -562
  439. package/dist/opencode/sdk.gen.d.ts.map +0 -1
  440. package/dist/opencode/sdk.gen.js +0 -766
  441. package/dist/opencode/sdk.gen.js.map +0 -1
  442. package/dist/opencode/types.gen.d.ts +0 -4213
  443. package/dist/opencode/types.gen.d.ts.map +0 -1
  444. package/dist/opencode/types.gen.js +0 -25
  445. package/dist/opencode/types.gen.js.map +0 -1
  446. package/dist/opencode/zod.gen.d.ts +0 -17243
  447. package/dist/opencode/zod.gen.d.ts.map +0 -1
  448. package/dist/opencode/zod.gen.js +0 -2876
  449. package/dist/opencode/zod.gen.js.map +0 -1
  450. package/dist/schema/browser.d.ts.map +0 -1
  451. package/dist/schema/browser.js.map +0 -1
  452. /package/dist/{gomtmapi_v2 → gomtmapi}/client/client.gen.d.ts +0 -0
  453. /package/dist/{gomtmapi_v2 → gomtmapi}/client/client.gen.js +0 -0
  454. /package/dist/{gomtmapi_v2 → gomtmapi}/client/index.d.ts +0 -0
  455. /package/dist/{gomtmapi_v2 → gomtmapi}/client/index.js +0 -0
  456. /package/dist/{gomtmapi_v2 → gomtmapi}/client/types.gen.d.ts +0 -0
  457. /package/dist/{gomtmapi_v2 → gomtmapi}/client/types.gen.js +0 -0
  458. /package/dist/{gomtmapi_v2 → gomtmapi}/client/utils.gen.d.ts +0 -0
  459. /package/dist/{gomtmapi_v2 → gomtmapi}/client/utils.gen.js +0 -0
  460. /package/dist/{gomtmapi_v2 → gomtmapi}/client.gen.d.ts +0 -0
  461. /package/dist/{gomtmapi_v2 → gomtmapi}/client.gen.js +0 -0
  462. /package/dist/{gomtmapi_v2 → gomtmapi}/core/auth.gen.d.ts +0 -0
  463. /package/dist/{gomtmapi_v2 → gomtmapi}/core/auth.gen.js +0 -0
  464. /package/dist/{gomtmapi_v2 → gomtmapi}/core/bodySerializer.gen.d.ts +0 -0
  465. /package/dist/{gomtmapi_v2 → gomtmapi}/core/bodySerializer.gen.js +0 -0
  466. /package/dist/{gomtmapi_v2 → gomtmapi}/core/params.gen.d.ts +0 -0
  467. /package/dist/{gomtmapi_v2 → gomtmapi}/core/params.gen.js +0 -0
  468. /package/dist/{gomtmapi_v2 → gomtmapi}/core/pathSerializer.gen.d.ts +0 -0
  469. /package/dist/{gomtmapi_v2 → gomtmapi}/core/pathSerializer.gen.js +0 -0
  470. /package/dist/{gomtmapi_v2 → gomtmapi}/core/queryKeySerializer.gen.d.ts +0 -0
  471. /package/dist/{gomtmapi_v2 → gomtmapi}/core/queryKeySerializer.gen.js +0 -0
  472. /package/dist/{gomtmapi_v2 → gomtmapi}/core/serverSentEvents.gen.d.ts +0 -0
  473. /package/dist/{gomtmapi_v2 → gomtmapi}/core/serverSentEvents.gen.js +0 -0
  474. /package/dist/{gomtmapi_v2 → gomtmapi}/core/types.gen.d.ts +0 -0
  475. /package/dist/{gomtmapi_v2 → gomtmapi}/core/types.gen.js +0 -0
  476. /package/dist/{gomtmapi_v2 → gomtmapi}/core/utils.gen.d.ts +0 -0
  477. /package/dist/{gomtmapi_v2 → gomtmapi}/core/utils.gen.js +0 -0
  478. /package/dist/{gomtmapi_v2 → gomtmapi}/types.gen.js +0 -0
  479. /package/dist/{schema → supabase/schema}/browser.d.ts +0 -0
  480. /package/dist/{schema → supabase/schema}/browser.js +0 -0
@@ -1,1696 +0,0 @@
1
- // This file is auto-generated by @hey-api/openapi-ts
2
- import { infiniteQueryOptions, queryOptions } from '@tanstack/react-query';
3
- import { client } from '../client.gen';
4
- import { appAgents, appLog, authSet, commandList, configGet, configProviders, configUpdate, experimentalResourceList, fileList, fileRead, fileStatus, findFiles, findSymbols, findText, formatterStatus, globalDispose, globalHealth, instanceDispose, lspStatus, mcpAdd, mcpAuthAuthenticate, mcpAuthCallback, mcpAuthRemove, mcpAuthStart, mcpConnect, mcpDisconnect, mcpStatus, partDelete, partUpdate, pathGet, permissionList, permissionReply, permissionRespond, projectCurrent, projectList, projectUpdate, providerAuth, providerList, providerOauthAuthorize, providerOauthCallback, ptyConnect, ptyCreate, ptyGet, ptyList, ptyRemove, ptyUpdate, questionList, questionReject, questionReply, sessionAbort, sessionChildren, sessionCommand, sessionCreate, sessionDelete, sessionDiff, sessionFork, sessionGet, sessionInit, sessionList, sessionMessage, sessionMessages, sessionPrompt, sessionPromptAsync, sessionRevert, sessionShare, sessionShell, sessionStatus, sessionSummarize, sessionTodo, sessionUnrevert, sessionUnshare, sessionUpdate, toolIds, toolList, tuiAppendPrompt, tuiClearPrompt, tuiControlNext, tuiControlResponse, tuiExecuteCommand, tuiOpenHelp, tuiOpenModels, tuiOpenSessions, tuiOpenThemes, tuiPublish, tuiSelectSession, tuiShowToast, tuiSubmitPrompt, vcsGet, worktreeCreate, worktreeList } from '../sdk.gen';
5
- const createQueryKey = (id, options, infinite, tags) => {
6
- const params = { _id: id, baseUrl: options?.baseUrl || (options?.client ?? client).getConfig().baseUrl };
7
- if (infinite) {
8
- params._infinite = infinite;
9
- }
10
- if (tags) {
11
- params.tags = tags;
12
- }
13
- if (options?.body) {
14
- params.body = options.body;
15
- }
16
- if (options?.headers) {
17
- params.headers = options.headers;
18
- }
19
- if (options?.path) {
20
- params.path = options.path;
21
- }
22
- if (options?.query) {
23
- params.query = options.query;
24
- }
25
- return [params];
26
- };
27
- export const globalHealthQueryKey = (options) => createQueryKey('globalHealth', options);
28
- /**
29
- * Get health
30
- *
31
- * Get health information about the OpenCode server.
32
- */
33
- export const globalHealthOptions = (options) => queryOptions({
34
- queryFn: async ({ queryKey, signal }) => {
35
- const { data } = await globalHealth({
36
- ...options,
37
- ...queryKey[0],
38
- signal,
39
- throwOnError: true
40
- });
41
- return data;
42
- },
43
- queryKey: globalHealthQueryKey(options)
44
- });
45
- /**
46
- * Dispose instance
47
- *
48
- * Clean up and dispose all OpenCode instances, releasing all resources.
49
- */
50
- export const globalDisposeMutation = (options) => {
51
- const mutationOptions = {
52
- mutationFn: async (fnOptions) => {
53
- const { data } = await globalDispose({
54
- ...options,
55
- ...fnOptions,
56
- throwOnError: true
57
- });
58
- return data;
59
- }
60
- };
61
- return mutationOptions;
62
- };
63
- export const projectListQueryKey = (options) => createQueryKey('projectList', options);
64
- /**
65
- * List all projects
66
- *
67
- * Get a list of projects that have been opened with OpenCode.
68
- */
69
- export const projectListOptions = (options) => queryOptions({
70
- queryFn: async ({ queryKey, signal }) => {
71
- const { data } = await projectList({
72
- ...options,
73
- ...queryKey[0],
74
- signal,
75
- throwOnError: true
76
- });
77
- return data;
78
- },
79
- queryKey: projectListQueryKey(options)
80
- });
81
- export const projectCurrentQueryKey = (options) => createQueryKey('projectCurrent', options);
82
- /**
83
- * Get current project
84
- *
85
- * Retrieve the currently active project that OpenCode is working with.
86
- */
87
- export const projectCurrentOptions = (options) => queryOptions({
88
- queryFn: async ({ queryKey, signal }) => {
89
- const { data } = await projectCurrent({
90
- ...options,
91
- ...queryKey[0],
92
- signal,
93
- throwOnError: true
94
- });
95
- return data;
96
- },
97
- queryKey: projectCurrentQueryKey(options)
98
- });
99
- /**
100
- * Update project
101
- *
102
- * Update project properties such as name, icon and color.
103
- */
104
- export const projectUpdateMutation = (options) => {
105
- const mutationOptions = {
106
- mutationFn: async (fnOptions) => {
107
- const { data } = await projectUpdate({
108
- ...options,
109
- ...fnOptions,
110
- throwOnError: true
111
- });
112
- return data;
113
- }
114
- };
115
- return mutationOptions;
116
- };
117
- export const ptyListQueryKey = (options) => createQueryKey('ptyList', options);
118
- /**
119
- * List PTY sessions
120
- *
121
- * Get a list of all active pseudo-terminal (PTY) sessions managed by OpenCode.
122
- */
123
- export const ptyListOptions = (options) => queryOptions({
124
- queryFn: async ({ queryKey, signal }) => {
125
- const { data } = await ptyList({
126
- ...options,
127
- ...queryKey[0],
128
- signal,
129
- throwOnError: true
130
- });
131
- return data;
132
- },
133
- queryKey: ptyListQueryKey(options)
134
- });
135
- /**
136
- * Create PTY session
137
- *
138
- * Create a new pseudo-terminal (PTY) session for running shell commands and processes.
139
- */
140
- export const ptyCreateMutation = (options) => {
141
- const mutationOptions = {
142
- mutationFn: async (fnOptions) => {
143
- const { data } = await ptyCreate({
144
- ...options,
145
- ...fnOptions,
146
- throwOnError: true
147
- });
148
- return data;
149
- }
150
- };
151
- return mutationOptions;
152
- };
153
- /**
154
- * Remove PTY session
155
- *
156
- * Remove and terminate a specific pseudo-terminal (PTY) session.
157
- */
158
- export const ptyRemoveMutation = (options) => {
159
- const mutationOptions = {
160
- mutationFn: async (fnOptions) => {
161
- const { data } = await ptyRemove({
162
- ...options,
163
- ...fnOptions,
164
- throwOnError: true
165
- });
166
- return data;
167
- }
168
- };
169
- return mutationOptions;
170
- };
171
- export const ptyGetQueryKey = (options) => createQueryKey('ptyGet', options);
172
- /**
173
- * Get PTY session
174
- *
175
- * Retrieve detailed information about a specific pseudo-terminal (PTY) session.
176
- */
177
- export const ptyGetOptions = (options) => queryOptions({
178
- queryFn: async ({ queryKey, signal }) => {
179
- const { data } = await ptyGet({
180
- ...options,
181
- ...queryKey[0],
182
- signal,
183
- throwOnError: true
184
- });
185
- return data;
186
- },
187
- queryKey: ptyGetQueryKey(options)
188
- });
189
- /**
190
- * Update PTY session
191
- *
192
- * Update properties of an existing pseudo-terminal (PTY) session.
193
- */
194
- export const ptyUpdateMutation = (options) => {
195
- const mutationOptions = {
196
- mutationFn: async (fnOptions) => {
197
- const { data } = await ptyUpdate({
198
- ...options,
199
- ...fnOptions,
200
- throwOnError: true
201
- });
202
- return data;
203
- }
204
- };
205
- return mutationOptions;
206
- };
207
- export const ptyConnectQueryKey = (options) => createQueryKey('ptyConnect', options);
208
- /**
209
- * Connect to PTY session
210
- *
211
- * Establish a WebSocket connection to interact with a pseudo-terminal (PTY) session in real-time.
212
- */
213
- export const ptyConnectOptions = (options) => queryOptions({
214
- queryFn: async ({ queryKey, signal }) => {
215
- const { data } = await ptyConnect({
216
- ...options,
217
- ...queryKey[0],
218
- signal,
219
- throwOnError: true
220
- });
221
- return data;
222
- },
223
- queryKey: ptyConnectQueryKey(options)
224
- });
225
- export const configGetQueryKey = (options) => createQueryKey('configGet', options);
226
- /**
227
- * Get configuration
228
- *
229
- * Retrieve the current OpenCode configuration settings and preferences.
230
- */
231
- export const configGetOptions = (options) => queryOptions({
232
- queryFn: async ({ queryKey, signal }) => {
233
- const { data } = await configGet({
234
- ...options,
235
- ...queryKey[0],
236
- signal,
237
- throwOnError: true
238
- });
239
- return data;
240
- },
241
- queryKey: configGetQueryKey(options)
242
- });
243
- /**
244
- * Update configuration
245
- *
246
- * Update OpenCode configuration settings and preferences.
247
- */
248
- export const configUpdateMutation = (options) => {
249
- const mutationOptions = {
250
- mutationFn: async (fnOptions) => {
251
- const { data } = await configUpdate({
252
- ...options,
253
- ...fnOptions,
254
- throwOnError: true
255
- });
256
- return data;
257
- }
258
- };
259
- return mutationOptions;
260
- };
261
- export const toolIdsQueryKey = (options) => createQueryKey('toolIds', options);
262
- /**
263
- * List tool IDs
264
- *
265
- * Get a list of all available tool IDs, including both built-in tools and dynamically registered tools.
266
- */
267
- export const toolIdsOptions = (options) => queryOptions({
268
- queryFn: async ({ queryKey, signal }) => {
269
- const { data } = await toolIds({
270
- ...options,
271
- ...queryKey[0],
272
- signal,
273
- throwOnError: true
274
- });
275
- return data;
276
- },
277
- queryKey: toolIdsQueryKey(options)
278
- });
279
- export const toolListQueryKey = (options) => createQueryKey('toolList', options);
280
- /**
281
- * List tools
282
- *
283
- * Get a list of available tools with their JSON schema parameters for a specific provider and model combination.
284
- */
285
- export const toolListOptions = (options) => queryOptions({
286
- queryFn: async ({ queryKey, signal }) => {
287
- const { data } = await toolList({
288
- ...options,
289
- ...queryKey[0],
290
- signal,
291
- throwOnError: true
292
- });
293
- return data;
294
- },
295
- queryKey: toolListQueryKey(options)
296
- });
297
- /**
298
- * Dispose instance
299
- *
300
- * Clean up and dispose the current OpenCode instance, releasing all resources.
301
- */
302
- export const instanceDisposeMutation = (options) => {
303
- const mutationOptions = {
304
- mutationFn: async (fnOptions) => {
305
- const { data } = await instanceDispose({
306
- ...options,
307
- ...fnOptions,
308
- throwOnError: true
309
- });
310
- return data;
311
- }
312
- };
313
- return mutationOptions;
314
- };
315
- export const pathGetQueryKey = (options) => createQueryKey('pathGet', options);
316
- /**
317
- * Get paths
318
- *
319
- * Retrieve the current working directory and related path information for the OpenCode instance.
320
- */
321
- export const pathGetOptions = (options) => queryOptions({
322
- queryFn: async ({ queryKey, signal }) => {
323
- const { data } = await pathGet({
324
- ...options,
325
- ...queryKey[0],
326
- signal,
327
- throwOnError: true
328
- });
329
- return data;
330
- },
331
- queryKey: pathGetQueryKey(options)
332
- });
333
- export const worktreeListQueryKey = (options) => createQueryKey('worktreeList', options);
334
- /**
335
- * List worktrees
336
- *
337
- * List all sandbox worktrees for the current project.
338
- */
339
- export const worktreeListOptions = (options) => queryOptions({
340
- queryFn: async ({ queryKey, signal }) => {
341
- const { data } = await worktreeList({
342
- ...options,
343
- ...queryKey[0],
344
- signal,
345
- throwOnError: true
346
- });
347
- return data;
348
- },
349
- queryKey: worktreeListQueryKey(options)
350
- });
351
- /**
352
- * Create worktree
353
- *
354
- * Create a new git worktree for the current project.
355
- */
356
- export const worktreeCreateMutation = (options) => {
357
- const mutationOptions = {
358
- mutationFn: async (fnOptions) => {
359
- const { data } = await worktreeCreate({
360
- ...options,
361
- ...fnOptions,
362
- throwOnError: true
363
- });
364
- return data;
365
- }
366
- };
367
- return mutationOptions;
368
- };
369
- export const vcsGetQueryKey = (options) => createQueryKey('vcsGet', options);
370
- /**
371
- * Get VCS info
372
- *
373
- * Retrieve version control system (VCS) information for the current project, such as git branch.
374
- */
375
- export const vcsGetOptions = (options) => queryOptions({
376
- queryFn: async ({ queryKey, signal }) => {
377
- const { data } = await vcsGet({
378
- ...options,
379
- ...queryKey[0],
380
- signal,
381
- throwOnError: true
382
- });
383
- return data;
384
- },
385
- queryKey: vcsGetQueryKey(options)
386
- });
387
- export const sessionListQueryKey = (options) => createQueryKey('sessionList', options);
388
- /**
389
- * List sessions
390
- *
391
- * Get a list of all OpenCode sessions, sorted by most recently updated.
392
- */
393
- export const sessionListOptions = (options) => queryOptions({
394
- queryFn: async ({ queryKey, signal }) => {
395
- const { data } = await sessionList({
396
- ...options,
397
- ...queryKey[0],
398
- signal,
399
- throwOnError: true
400
- });
401
- return data;
402
- },
403
- queryKey: sessionListQueryKey(options)
404
- });
405
- const createInfiniteParams = (queryKey, page) => {
406
- const params = { ...queryKey[0] };
407
- if (page.body) {
408
- params.body = {
409
- ...queryKey[0].body,
410
- ...page.body
411
- };
412
- }
413
- if (page.headers) {
414
- params.headers = {
415
- ...queryKey[0].headers,
416
- ...page.headers
417
- };
418
- }
419
- if (page.path) {
420
- params.path = {
421
- ...queryKey[0].path,
422
- ...page.path
423
- };
424
- }
425
- if (page.query) {
426
- params.query = {
427
- ...queryKey[0].query,
428
- ...page.query
429
- };
430
- }
431
- return params;
432
- };
433
- export const sessionListInfiniteQueryKey = (options) => createQueryKey('sessionList', options, true);
434
- /**
435
- * List sessions
436
- *
437
- * Get a list of all OpenCode sessions, sorted by most recently updated.
438
- */
439
- export const sessionListInfiniteOptions = (options) => infiniteQueryOptions(
440
- // @ts-ignore
441
- {
442
- queryFn: async ({ pageParam, queryKey, signal }) => {
443
- // @ts-ignore
444
- const page = typeof pageParam === 'object' ? pageParam : {
445
- query: {
446
- start: pageParam
447
- }
448
- };
449
- const params = createInfiniteParams(queryKey, page);
450
- const { data } = await sessionList({
451
- ...options,
452
- ...params,
453
- signal,
454
- throwOnError: true
455
- });
456
- return data;
457
- },
458
- queryKey: sessionListInfiniteQueryKey(options)
459
- });
460
- /**
461
- * Create session
462
- *
463
- * Create a new OpenCode session for interacting with AI assistants and managing conversations.
464
- */
465
- export const sessionCreateMutation = (options) => {
466
- const mutationOptions = {
467
- mutationFn: async (fnOptions) => {
468
- const { data } = await sessionCreate({
469
- ...options,
470
- ...fnOptions,
471
- throwOnError: true
472
- });
473
- return data;
474
- }
475
- };
476
- return mutationOptions;
477
- };
478
- export const sessionStatusQueryKey = (options) => createQueryKey('sessionStatus', options);
479
- /**
480
- * Get session status
481
- *
482
- * Retrieve the current status of all sessions, including active, idle, and completed states.
483
- */
484
- export const sessionStatusOptions = (options) => queryOptions({
485
- queryFn: async ({ queryKey, signal }) => {
486
- const { data } = await sessionStatus({
487
- ...options,
488
- ...queryKey[0],
489
- signal,
490
- throwOnError: true
491
- });
492
- return data;
493
- },
494
- queryKey: sessionStatusQueryKey(options)
495
- });
496
- /**
497
- * Delete session
498
- *
499
- * Delete a session and permanently remove all associated data, including messages and history.
500
- */
501
- export const sessionDeleteMutation = (options) => {
502
- const mutationOptions = {
503
- mutationFn: async (fnOptions) => {
504
- const { data } = await sessionDelete({
505
- ...options,
506
- ...fnOptions,
507
- throwOnError: true
508
- });
509
- return data;
510
- }
511
- };
512
- return mutationOptions;
513
- };
514
- export const sessionGetQueryKey = (options) => createQueryKey('sessionGet', options);
515
- /**
516
- * Get session
517
- *
518
- * Retrieve detailed information about a specific OpenCode session.
519
- */
520
- export const sessionGetOptions = (options) => queryOptions({
521
- queryFn: async ({ queryKey, signal }) => {
522
- const { data } = await sessionGet({
523
- ...options,
524
- ...queryKey[0],
525
- signal,
526
- throwOnError: true
527
- });
528
- return data;
529
- },
530
- queryKey: sessionGetQueryKey(options)
531
- });
532
- /**
533
- * Update session
534
- *
535
- * Update properties of an existing session, such as title or other metadata.
536
- */
537
- export const sessionUpdateMutation = (options) => {
538
- const mutationOptions = {
539
- mutationFn: async (fnOptions) => {
540
- const { data } = await sessionUpdate({
541
- ...options,
542
- ...fnOptions,
543
- throwOnError: true
544
- });
545
- return data;
546
- }
547
- };
548
- return mutationOptions;
549
- };
550
- export const sessionChildrenQueryKey = (options) => createQueryKey('sessionChildren', options);
551
- /**
552
- * Get session children
553
- *
554
- * Retrieve all child sessions that were forked from the specified parent session.
555
- */
556
- export const sessionChildrenOptions = (options) => queryOptions({
557
- queryFn: async ({ queryKey, signal }) => {
558
- const { data } = await sessionChildren({
559
- ...options,
560
- ...queryKey[0],
561
- signal,
562
- throwOnError: true
563
- });
564
- return data;
565
- },
566
- queryKey: sessionChildrenQueryKey(options)
567
- });
568
- export const sessionTodoQueryKey = (options) => createQueryKey('sessionTodo', options);
569
- /**
570
- * Get session todos
571
- *
572
- * Retrieve the todo list associated with a specific session, showing tasks and action items.
573
- */
574
- export const sessionTodoOptions = (options) => queryOptions({
575
- queryFn: async ({ queryKey, signal }) => {
576
- const { data } = await sessionTodo({
577
- ...options,
578
- ...queryKey[0],
579
- signal,
580
- throwOnError: true
581
- });
582
- return data;
583
- },
584
- queryKey: sessionTodoQueryKey(options)
585
- });
586
- /**
587
- * Initialize session
588
- *
589
- * Analyze the current application and create an AGENTS.md file with project-specific agent configurations.
590
- */
591
- export const sessionInitMutation = (options) => {
592
- const mutationOptions = {
593
- mutationFn: async (fnOptions) => {
594
- const { data } = await sessionInit({
595
- ...options,
596
- ...fnOptions,
597
- throwOnError: true
598
- });
599
- return data;
600
- }
601
- };
602
- return mutationOptions;
603
- };
604
- /**
605
- * Fork session
606
- *
607
- * Create a new session by forking an existing session at a specific message point.
608
- */
609
- export const sessionForkMutation = (options) => {
610
- const mutationOptions = {
611
- mutationFn: async (fnOptions) => {
612
- const { data } = await sessionFork({
613
- ...options,
614
- ...fnOptions,
615
- throwOnError: true
616
- });
617
- return data;
618
- }
619
- };
620
- return mutationOptions;
621
- };
622
- /**
623
- * Abort session
624
- *
625
- * Abort an active session and stop any ongoing AI processing or command execution.
626
- */
627
- export const sessionAbortMutation = (options) => {
628
- const mutationOptions = {
629
- mutationFn: async (fnOptions) => {
630
- const { data } = await sessionAbort({
631
- ...options,
632
- ...fnOptions,
633
- throwOnError: true
634
- });
635
- return data;
636
- }
637
- };
638
- return mutationOptions;
639
- };
640
- /**
641
- * Unshare session
642
- *
643
- * Remove the shareable link for a session, making it private again.
644
- */
645
- export const sessionUnshareMutation = (options) => {
646
- const mutationOptions = {
647
- mutationFn: async (fnOptions) => {
648
- const { data } = await sessionUnshare({
649
- ...options,
650
- ...fnOptions,
651
- throwOnError: true
652
- });
653
- return data;
654
- }
655
- };
656
- return mutationOptions;
657
- };
658
- /**
659
- * Share session
660
- *
661
- * Create a shareable link for a session, allowing others to view the conversation.
662
- */
663
- export const sessionShareMutation = (options) => {
664
- const mutationOptions = {
665
- mutationFn: async (fnOptions) => {
666
- const { data } = await sessionShare({
667
- ...options,
668
- ...fnOptions,
669
- throwOnError: true
670
- });
671
- return data;
672
- }
673
- };
674
- return mutationOptions;
675
- };
676
- export const sessionDiffQueryKey = (options) => createQueryKey('sessionDiff', options);
677
- /**
678
- * Get session diff
679
- *
680
- * Get all file changes (diffs) made during this session.
681
- */
682
- export const sessionDiffOptions = (options) => queryOptions({
683
- queryFn: async ({ queryKey, signal }) => {
684
- const { data } = await sessionDiff({
685
- ...options,
686
- ...queryKey[0],
687
- signal,
688
- throwOnError: true
689
- });
690
- return data;
691
- },
692
- queryKey: sessionDiffQueryKey(options)
693
- });
694
- /**
695
- * Summarize session
696
- *
697
- * Generate a concise summary of the session using AI compaction to preserve key information.
698
- */
699
- export const sessionSummarizeMutation = (options) => {
700
- const mutationOptions = {
701
- mutationFn: async (fnOptions) => {
702
- const { data } = await sessionSummarize({
703
- ...options,
704
- ...fnOptions,
705
- throwOnError: true
706
- });
707
- return data;
708
- }
709
- };
710
- return mutationOptions;
711
- };
712
- export const sessionMessagesQueryKey = (options) => createQueryKey('sessionMessages', options);
713
- /**
714
- * Get session messages
715
- *
716
- * Retrieve all messages in a session, including user prompts and AI responses.
717
- */
718
- export const sessionMessagesOptions = (options) => queryOptions({
719
- queryFn: async ({ queryKey, signal }) => {
720
- const { data } = await sessionMessages({
721
- ...options,
722
- ...queryKey[0],
723
- signal,
724
- throwOnError: true
725
- });
726
- return data;
727
- },
728
- queryKey: sessionMessagesQueryKey(options)
729
- });
730
- /**
731
- * Send message
732
- *
733
- * Create and send a new message to a session, streaming the AI response.
734
- */
735
- export const sessionPromptMutation = (options) => {
736
- const mutationOptions = {
737
- mutationFn: async (fnOptions) => {
738
- const { data } = await sessionPrompt({
739
- ...options,
740
- ...fnOptions,
741
- throwOnError: true
742
- });
743
- return data;
744
- }
745
- };
746
- return mutationOptions;
747
- };
748
- export const sessionMessageQueryKey = (options) => createQueryKey('sessionMessage', options);
749
- /**
750
- * Get message
751
- *
752
- * Retrieve a specific message from a session by its message ID.
753
- */
754
- export const sessionMessageOptions = (options) => queryOptions({
755
- queryFn: async ({ queryKey, signal }) => {
756
- const { data } = await sessionMessage({
757
- ...options,
758
- ...queryKey[0],
759
- signal,
760
- throwOnError: true
761
- });
762
- return data;
763
- },
764
- queryKey: sessionMessageQueryKey(options)
765
- });
766
- /**
767
- * Delete a part from a message
768
- */
769
- export const partDeleteMutation = (options) => {
770
- const mutationOptions = {
771
- mutationFn: async (fnOptions) => {
772
- const { data } = await partDelete({
773
- ...options,
774
- ...fnOptions,
775
- throwOnError: true
776
- });
777
- return data;
778
- }
779
- };
780
- return mutationOptions;
781
- };
782
- /**
783
- * Update a part in a message
784
- */
785
- export const partUpdateMutation = (options) => {
786
- const mutationOptions = {
787
- mutationFn: async (fnOptions) => {
788
- const { data } = await partUpdate({
789
- ...options,
790
- ...fnOptions,
791
- throwOnError: true
792
- });
793
- return data;
794
- }
795
- };
796
- return mutationOptions;
797
- };
798
- /**
799
- * Send async message
800
- *
801
- * Create and send a new message to a session asynchronously, starting the session if needed and returning immediately.
802
- */
803
- export const sessionPromptAsyncMutation = (options) => {
804
- const mutationOptions = {
805
- mutationFn: async (fnOptions) => {
806
- const { data } = await sessionPromptAsync({
807
- ...options,
808
- ...fnOptions,
809
- throwOnError: true
810
- });
811
- return data;
812
- }
813
- };
814
- return mutationOptions;
815
- };
816
- /**
817
- * Send command
818
- *
819
- * Send a new command to a session for execution by the AI assistant.
820
- */
821
- export const sessionCommandMutation = (options) => {
822
- const mutationOptions = {
823
- mutationFn: async (fnOptions) => {
824
- const { data } = await sessionCommand({
825
- ...options,
826
- ...fnOptions,
827
- throwOnError: true
828
- });
829
- return data;
830
- }
831
- };
832
- return mutationOptions;
833
- };
834
- /**
835
- * Run shell command
836
- *
837
- * Execute a shell command within the session context and return the AI's response.
838
- */
839
- export const sessionShellMutation = (options) => {
840
- const mutationOptions = {
841
- mutationFn: async (fnOptions) => {
842
- const { data } = await sessionShell({
843
- ...options,
844
- ...fnOptions,
845
- throwOnError: true
846
- });
847
- return data;
848
- }
849
- };
850
- return mutationOptions;
851
- };
852
- /**
853
- * Revert message
854
- *
855
- * Revert a specific message in a session, undoing its effects and restoring the previous state.
856
- */
857
- export const sessionRevertMutation = (options) => {
858
- const mutationOptions = {
859
- mutationFn: async (fnOptions) => {
860
- const { data } = await sessionRevert({
861
- ...options,
862
- ...fnOptions,
863
- throwOnError: true
864
- });
865
- return data;
866
- }
867
- };
868
- return mutationOptions;
869
- };
870
- /**
871
- * Restore reverted messages
872
- *
873
- * Restore all previously reverted messages in a session.
874
- */
875
- export const sessionUnrevertMutation = (options) => {
876
- const mutationOptions = {
877
- mutationFn: async (fnOptions) => {
878
- const { data } = await sessionUnrevert({
879
- ...options,
880
- ...fnOptions,
881
- throwOnError: true
882
- });
883
- return data;
884
- }
885
- };
886
- return mutationOptions;
887
- };
888
- /**
889
- * Respond to permission
890
- *
891
- * Approve or deny a permission request from the AI assistant.
892
- *
893
- * @deprecated
894
- */
895
- export const permissionRespondMutation = (options) => {
896
- const mutationOptions = {
897
- mutationFn: async (fnOptions) => {
898
- const { data } = await permissionRespond({
899
- ...options,
900
- ...fnOptions,
901
- throwOnError: true
902
- });
903
- return data;
904
- }
905
- };
906
- return mutationOptions;
907
- };
908
- /**
909
- * Respond to permission request
910
- *
911
- * Approve or deny a permission request from the AI assistant.
912
- */
913
- export const permissionReplyMutation = (options) => {
914
- const mutationOptions = {
915
- mutationFn: async (fnOptions) => {
916
- const { data } = await permissionReply({
917
- ...options,
918
- ...fnOptions,
919
- throwOnError: true
920
- });
921
- return data;
922
- }
923
- };
924
- return mutationOptions;
925
- };
926
- export const permissionListQueryKey = (options) => createQueryKey('permissionList', options);
927
- /**
928
- * List pending permissions
929
- *
930
- * Get all pending permission requests across all sessions.
931
- */
932
- export const permissionListOptions = (options) => queryOptions({
933
- queryFn: async ({ queryKey, signal }) => {
934
- const { data } = await permissionList({
935
- ...options,
936
- ...queryKey[0],
937
- signal,
938
- throwOnError: true
939
- });
940
- return data;
941
- },
942
- queryKey: permissionListQueryKey(options)
943
- });
944
- export const questionListQueryKey = (options) => createQueryKey('questionList', options);
945
- /**
946
- * List pending questions
947
- *
948
- * Get all pending question requests across all sessions.
949
- */
950
- export const questionListOptions = (options) => queryOptions({
951
- queryFn: async ({ queryKey, signal }) => {
952
- const { data } = await questionList({
953
- ...options,
954
- ...queryKey[0],
955
- signal,
956
- throwOnError: true
957
- });
958
- return data;
959
- },
960
- queryKey: questionListQueryKey(options)
961
- });
962
- /**
963
- * Reply to question request
964
- *
965
- * Provide answers to a question request from the AI assistant.
966
- */
967
- export const questionReplyMutation = (options) => {
968
- const mutationOptions = {
969
- mutationFn: async (fnOptions) => {
970
- const { data } = await questionReply({
971
- ...options,
972
- ...fnOptions,
973
- throwOnError: true
974
- });
975
- return data;
976
- }
977
- };
978
- return mutationOptions;
979
- };
980
- /**
981
- * Reject question request
982
- *
983
- * Reject a question request from the AI assistant.
984
- */
985
- export const questionRejectMutation = (options) => {
986
- const mutationOptions = {
987
- mutationFn: async (fnOptions) => {
988
- const { data } = await questionReject({
989
- ...options,
990
- ...fnOptions,
991
- throwOnError: true
992
- });
993
- return data;
994
- }
995
- };
996
- return mutationOptions;
997
- };
998
- export const commandListQueryKey = (options) => createQueryKey('commandList', options);
999
- /**
1000
- * List commands
1001
- *
1002
- * Get a list of all available commands in the OpenCode system.
1003
- */
1004
- export const commandListOptions = (options) => queryOptions({
1005
- queryFn: async ({ queryKey, signal }) => {
1006
- const { data } = await commandList({
1007
- ...options,
1008
- ...queryKey[0],
1009
- signal,
1010
- throwOnError: true
1011
- });
1012
- return data;
1013
- },
1014
- queryKey: commandListQueryKey(options)
1015
- });
1016
- export const configProvidersQueryKey = (options) => createQueryKey('configProviders', options);
1017
- /**
1018
- * List config providers
1019
- *
1020
- * Get a list of all configured AI providers and their default models.
1021
- */
1022
- export const configProvidersOptions = (options) => queryOptions({
1023
- queryFn: async ({ queryKey, signal }) => {
1024
- const { data } = await configProviders({
1025
- ...options,
1026
- ...queryKey[0],
1027
- signal,
1028
- throwOnError: true
1029
- });
1030
- return data;
1031
- },
1032
- queryKey: configProvidersQueryKey(options)
1033
- });
1034
- export const providerListQueryKey = (options) => createQueryKey('providerList', options);
1035
- /**
1036
- * List providers
1037
- *
1038
- * Get a list of all available AI providers, including both available and connected ones.
1039
- */
1040
- export const providerListOptions = (options) => queryOptions({
1041
- queryFn: async ({ queryKey, signal }) => {
1042
- const { data } = await providerList({
1043
- ...options,
1044
- ...queryKey[0],
1045
- signal,
1046
- throwOnError: true
1047
- });
1048
- return data;
1049
- },
1050
- queryKey: providerListQueryKey(options)
1051
- });
1052
- export const providerAuthQueryKey = (options) => createQueryKey('providerAuth', options);
1053
- /**
1054
- * Get provider auth methods
1055
- *
1056
- * Retrieve available authentication methods for all AI providers.
1057
- */
1058
- export const providerAuthOptions = (options) => queryOptions({
1059
- queryFn: async ({ queryKey, signal }) => {
1060
- const { data } = await providerAuth({
1061
- ...options,
1062
- ...queryKey[0],
1063
- signal,
1064
- throwOnError: true
1065
- });
1066
- return data;
1067
- },
1068
- queryKey: providerAuthQueryKey(options)
1069
- });
1070
- /**
1071
- * OAuth authorize
1072
- *
1073
- * Initiate OAuth authorization for a specific AI provider to get an authorization URL.
1074
- */
1075
- export const providerOauthAuthorizeMutation = (options) => {
1076
- const mutationOptions = {
1077
- mutationFn: async (fnOptions) => {
1078
- const { data } = await providerOauthAuthorize({
1079
- ...options,
1080
- ...fnOptions,
1081
- throwOnError: true
1082
- });
1083
- return data;
1084
- }
1085
- };
1086
- return mutationOptions;
1087
- };
1088
- /**
1089
- * OAuth callback
1090
- *
1091
- * Handle the OAuth callback from a provider after user authorization.
1092
- */
1093
- export const providerOauthCallbackMutation = (options) => {
1094
- const mutationOptions = {
1095
- mutationFn: async (fnOptions) => {
1096
- const { data } = await providerOauthCallback({
1097
- ...options,
1098
- ...fnOptions,
1099
- throwOnError: true
1100
- });
1101
- return data;
1102
- }
1103
- };
1104
- return mutationOptions;
1105
- };
1106
- export const findTextQueryKey = (options) => createQueryKey('findText', options);
1107
- /**
1108
- * Find text
1109
- *
1110
- * Search for text patterns across files in the project using ripgrep.
1111
- */
1112
- export const findTextOptions = (options) => queryOptions({
1113
- queryFn: async ({ queryKey, signal }) => {
1114
- const { data } = await findText({
1115
- ...options,
1116
- ...queryKey[0],
1117
- signal,
1118
- throwOnError: true
1119
- });
1120
- return data;
1121
- },
1122
- queryKey: findTextQueryKey(options)
1123
- });
1124
- export const findFilesQueryKey = (options) => createQueryKey('findFiles', options);
1125
- /**
1126
- * Find files
1127
- *
1128
- * Search for files or directories by name or pattern in the project directory.
1129
- */
1130
- export const findFilesOptions = (options) => queryOptions({
1131
- queryFn: async ({ queryKey, signal }) => {
1132
- const { data } = await findFiles({
1133
- ...options,
1134
- ...queryKey[0],
1135
- signal,
1136
- throwOnError: true
1137
- });
1138
- return data;
1139
- },
1140
- queryKey: findFilesQueryKey(options)
1141
- });
1142
- export const findSymbolsQueryKey = (options) => createQueryKey('findSymbols', options);
1143
- /**
1144
- * Find symbols
1145
- *
1146
- * Search for workspace symbols like functions, classes, and variables using LSP.
1147
- */
1148
- export const findSymbolsOptions = (options) => queryOptions({
1149
- queryFn: async ({ queryKey, signal }) => {
1150
- const { data } = await findSymbols({
1151
- ...options,
1152
- ...queryKey[0],
1153
- signal,
1154
- throwOnError: true
1155
- });
1156
- return data;
1157
- },
1158
- queryKey: findSymbolsQueryKey(options)
1159
- });
1160
- export const fileListQueryKey = (options) => createQueryKey('fileList', options);
1161
- /**
1162
- * List files
1163
- *
1164
- * List files and directories in a specified path.
1165
- */
1166
- export const fileListOptions = (options) => queryOptions({
1167
- queryFn: async ({ queryKey, signal }) => {
1168
- const { data } = await fileList({
1169
- ...options,
1170
- ...queryKey[0],
1171
- signal,
1172
- throwOnError: true
1173
- });
1174
- return data;
1175
- },
1176
- queryKey: fileListQueryKey(options)
1177
- });
1178
- export const fileReadQueryKey = (options) => createQueryKey('fileRead', options);
1179
- /**
1180
- * Read file
1181
- *
1182
- * Read the content of a specified file.
1183
- */
1184
- export const fileReadOptions = (options) => queryOptions({
1185
- queryFn: async ({ queryKey, signal }) => {
1186
- const { data } = await fileRead({
1187
- ...options,
1188
- ...queryKey[0],
1189
- signal,
1190
- throwOnError: true
1191
- });
1192
- return data;
1193
- },
1194
- queryKey: fileReadQueryKey(options)
1195
- });
1196
- export const fileStatusQueryKey = (options) => createQueryKey('fileStatus', options);
1197
- /**
1198
- * Get file status
1199
- *
1200
- * Get the git status of all files in the project.
1201
- */
1202
- export const fileStatusOptions = (options) => queryOptions({
1203
- queryFn: async ({ queryKey, signal }) => {
1204
- const { data } = await fileStatus({
1205
- ...options,
1206
- ...queryKey[0],
1207
- signal,
1208
- throwOnError: true
1209
- });
1210
- return data;
1211
- },
1212
- queryKey: fileStatusQueryKey(options)
1213
- });
1214
- /**
1215
- * Write log
1216
- *
1217
- * Write a log entry to the server logs with specified level and metadata.
1218
- */
1219
- export const appLogMutation = (options) => {
1220
- const mutationOptions = {
1221
- mutationFn: async (fnOptions) => {
1222
- const { data } = await appLog({
1223
- ...options,
1224
- ...fnOptions,
1225
- throwOnError: true
1226
- });
1227
- return data;
1228
- }
1229
- };
1230
- return mutationOptions;
1231
- };
1232
- export const appAgentsQueryKey = (options) => createQueryKey('appAgents', options);
1233
- /**
1234
- * List agents
1235
- *
1236
- * Get a list of all available AI agents in the OpenCode system.
1237
- */
1238
- export const appAgentsOptions = (options) => queryOptions({
1239
- queryFn: async ({ queryKey, signal }) => {
1240
- const { data } = await appAgents({
1241
- ...options,
1242
- ...queryKey[0],
1243
- signal,
1244
- throwOnError: true
1245
- });
1246
- return data;
1247
- },
1248
- queryKey: appAgentsQueryKey(options)
1249
- });
1250
- export const mcpStatusQueryKey = (options) => createQueryKey('mcpStatus', options);
1251
- /**
1252
- * Get MCP status
1253
- *
1254
- * Get the status of all Model Context Protocol (MCP) servers.
1255
- */
1256
- export const mcpStatusOptions = (options) => queryOptions({
1257
- queryFn: async ({ queryKey, signal }) => {
1258
- const { data } = await mcpStatus({
1259
- ...options,
1260
- ...queryKey[0],
1261
- signal,
1262
- throwOnError: true
1263
- });
1264
- return data;
1265
- },
1266
- queryKey: mcpStatusQueryKey(options)
1267
- });
1268
- /**
1269
- * Add MCP server
1270
- *
1271
- * Dynamically add a new Model Context Protocol (MCP) server to the system.
1272
- */
1273
- export const mcpAddMutation = (options) => {
1274
- const mutationOptions = {
1275
- mutationFn: async (fnOptions) => {
1276
- const { data } = await mcpAdd({
1277
- ...options,
1278
- ...fnOptions,
1279
- throwOnError: true
1280
- });
1281
- return data;
1282
- }
1283
- };
1284
- return mutationOptions;
1285
- };
1286
- /**
1287
- * Remove MCP OAuth
1288
- *
1289
- * Remove OAuth credentials for an MCP server
1290
- */
1291
- export const mcpAuthRemoveMutation = (options) => {
1292
- const mutationOptions = {
1293
- mutationFn: async (fnOptions) => {
1294
- const { data } = await mcpAuthRemove({
1295
- ...options,
1296
- ...fnOptions,
1297
- throwOnError: true
1298
- });
1299
- return data;
1300
- }
1301
- };
1302
- return mutationOptions;
1303
- };
1304
- /**
1305
- * Start MCP OAuth
1306
- *
1307
- * Start OAuth authentication flow for a Model Context Protocol (MCP) server.
1308
- */
1309
- export const mcpAuthStartMutation = (options) => {
1310
- const mutationOptions = {
1311
- mutationFn: async (fnOptions) => {
1312
- const { data } = await mcpAuthStart({
1313
- ...options,
1314
- ...fnOptions,
1315
- throwOnError: true
1316
- });
1317
- return data;
1318
- }
1319
- };
1320
- return mutationOptions;
1321
- };
1322
- /**
1323
- * Complete MCP OAuth
1324
- *
1325
- * Complete OAuth authentication for a Model Context Protocol (MCP) server using the authorization code.
1326
- */
1327
- export const mcpAuthCallbackMutation = (options) => {
1328
- const mutationOptions = {
1329
- mutationFn: async (fnOptions) => {
1330
- const { data } = await mcpAuthCallback({
1331
- ...options,
1332
- ...fnOptions,
1333
- throwOnError: true
1334
- });
1335
- return data;
1336
- }
1337
- };
1338
- return mutationOptions;
1339
- };
1340
- /**
1341
- * Authenticate MCP OAuth
1342
- *
1343
- * Start OAuth flow and wait for callback (opens browser)
1344
- */
1345
- export const mcpAuthAuthenticateMutation = (options) => {
1346
- const mutationOptions = {
1347
- mutationFn: async (fnOptions) => {
1348
- const { data } = await mcpAuthAuthenticate({
1349
- ...options,
1350
- ...fnOptions,
1351
- throwOnError: true
1352
- });
1353
- return data;
1354
- }
1355
- };
1356
- return mutationOptions;
1357
- };
1358
- /**
1359
- * Connect an MCP server
1360
- */
1361
- export const mcpConnectMutation = (options) => {
1362
- const mutationOptions = {
1363
- mutationFn: async (fnOptions) => {
1364
- const { data } = await mcpConnect({
1365
- ...options,
1366
- ...fnOptions,
1367
- throwOnError: true
1368
- });
1369
- return data;
1370
- }
1371
- };
1372
- return mutationOptions;
1373
- };
1374
- /**
1375
- * Disconnect an MCP server
1376
- */
1377
- export const mcpDisconnectMutation = (options) => {
1378
- const mutationOptions = {
1379
- mutationFn: async (fnOptions) => {
1380
- const { data } = await mcpDisconnect({
1381
- ...options,
1382
- ...fnOptions,
1383
- throwOnError: true
1384
- });
1385
- return data;
1386
- }
1387
- };
1388
- return mutationOptions;
1389
- };
1390
- export const experimentalResourceListQueryKey = (options) => createQueryKey('experimentalResourceList', options);
1391
- /**
1392
- * Get MCP resources
1393
- *
1394
- * Get all available MCP resources from connected servers. Optionally filter by name.
1395
- */
1396
- export const experimentalResourceListOptions = (options) => queryOptions({
1397
- queryFn: async ({ queryKey, signal }) => {
1398
- const { data } = await experimentalResourceList({
1399
- ...options,
1400
- ...queryKey[0],
1401
- signal,
1402
- throwOnError: true
1403
- });
1404
- return data;
1405
- },
1406
- queryKey: experimentalResourceListQueryKey(options)
1407
- });
1408
- export const lspStatusQueryKey = (options) => createQueryKey('lspStatus', options);
1409
- /**
1410
- * Get LSP status
1411
- *
1412
- * Get LSP server status
1413
- */
1414
- export const lspStatusOptions = (options) => queryOptions({
1415
- queryFn: async ({ queryKey, signal }) => {
1416
- const { data } = await lspStatus({
1417
- ...options,
1418
- ...queryKey[0],
1419
- signal,
1420
- throwOnError: true
1421
- });
1422
- return data;
1423
- },
1424
- queryKey: lspStatusQueryKey(options)
1425
- });
1426
- export const formatterStatusQueryKey = (options) => createQueryKey('formatterStatus', options);
1427
- /**
1428
- * Get formatter status
1429
- *
1430
- * Get formatter status
1431
- */
1432
- export const formatterStatusOptions = (options) => queryOptions({
1433
- queryFn: async ({ queryKey, signal }) => {
1434
- const { data } = await formatterStatus({
1435
- ...options,
1436
- ...queryKey[0],
1437
- signal,
1438
- throwOnError: true
1439
- });
1440
- return data;
1441
- },
1442
- queryKey: formatterStatusQueryKey(options)
1443
- });
1444
- /**
1445
- * Append TUI prompt
1446
- *
1447
- * Append prompt to the TUI
1448
- */
1449
- export const tuiAppendPromptMutation = (options) => {
1450
- const mutationOptions = {
1451
- mutationFn: async (fnOptions) => {
1452
- const { data } = await tuiAppendPrompt({
1453
- ...options,
1454
- ...fnOptions,
1455
- throwOnError: true
1456
- });
1457
- return data;
1458
- }
1459
- };
1460
- return mutationOptions;
1461
- };
1462
- /**
1463
- * Open help dialog
1464
- *
1465
- * Open the help dialog in the TUI to display user assistance information.
1466
- */
1467
- export const tuiOpenHelpMutation = (options) => {
1468
- const mutationOptions = {
1469
- mutationFn: async (fnOptions) => {
1470
- const { data } = await tuiOpenHelp({
1471
- ...options,
1472
- ...fnOptions,
1473
- throwOnError: true
1474
- });
1475
- return data;
1476
- }
1477
- };
1478
- return mutationOptions;
1479
- };
1480
- /**
1481
- * Open sessions dialog
1482
- *
1483
- * Open the session dialog
1484
- */
1485
- export const tuiOpenSessionsMutation = (options) => {
1486
- const mutationOptions = {
1487
- mutationFn: async (fnOptions) => {
1488
- const { data } = await tuiOpenSessions({
1489
- ...options,
1490
- ...fnOptions,
1491
- throwOnError: true
1492
- });
1493
- return data;
1494
- }
1495
- };
1496
- return mutationOptions;
1497
- };
1498
- /**
1499
- * Open themes dialog
1500
- *
1501
- * Open the theme dialog
1502
- */
1503
- export const tuiOpenThemesMutation = (options) => {
1504
- const mutationOptions = {
1505
- mutationFn: async (fnOptions) => {
1506
- const { data } = await tuiOpenThemes({
1507
- ...options,
1508
- ...fnOptions,
1509
- throwOnError: true
1510
- });
1511
- return data;
1512
- }
1513
- };
1514
- return mutationOptions;
1515
- };
1516
- /**
1517
- * Open models dialog
1518
- *
1519
- * Open the model dialog
1520
- */
1521
- export const tuiOpenModelsMutation = (options) => {
1522
- const mutationOptions = {
1523
- mutationFn: async (fnOptions) => {
1524
- const { data } = await tuiOpenModels({
1525
- ...options,
1526
- ...fnOptions,
1527
- throwOnError: true
1528
- });
1529
- return data;
1530
- }
1531
- };
1532
- return mutationOptions;
1533
- };
1534
- /**
1535
- * Submit TUI prompt
1536
- *
1537
- * Submit the prompt
1538
- */
1539
- export const tuiSubmitPromptMutation = (options) => {
1540
- const mutationOptions = {
1541
- mutationFn: async (fnOptions) => {
1542
- const { data } = await tuiSubmitPrompt({
1543
- ...options,
1544
- ...fnOptions,
1545
- throwOnError: true
1546
- });
1547
- return data;
1548
- }
1549
- };
1550
- return mutationOptions;
1551
- };
1552
- /**
1553
- * Clear TUI prompt
1554
- *
1555
- * Clear the prompt
1556
- */
1557
- export const tuiClearPromptMutation = (options) => {
1558
- const mutationOptions = {
1559
- mutationFn: async (fnOptions) => {
1560
- const { data } = await tuiClearPrompt({
1561
- ...options,
1562
- ...fnOptions,
1563
- throwOnError: true
1564
- });
1565
- return data;
1566
- }
1567
- };
1568
- return mutationOptions;
1569
- };
1570
- /**
1571
- * Execute TUI command
1572
- *
1573
- * Execute a TUI command (e.g. agent_cycle)
1574
- */
1575
- export const tuiExecuteCommandMutation = (options) => {
1576
- const mutationOptions = {
1577
- mutationFn: async (fnOptions) => {
1578
- const { data } = await tuiExecuteCommand({
1579
- ...options,
1580
- ...fnOptions,
1581
- throwOnError: true
1582
- });
1583
- return data;
1584
- }
1585
- };
1586
- return mutationOptions;
1587
- };
1588
- /**
1589
- * Show TUI toast
1590
- *
1591
- * Show a toast notification in the TUI
1592
- */
1593
- export const tuiShowToastMutation = (options) => {
1594
- const mutationOptions = {
1595
- mutationFn: async (fnOptions) => {
1596
- const { data } = await tuiShowToast({
1597
- ...options,
1598
- ...fnOptions,
1599
- throwOnError: true
1600
- });
1601
- return data;
1602
- }
1603
- };
1604
- return mutationOptions;
1605
- };
1606
- /**
1607
- * Publish TUI event
1608
- *
1609
- * Publish a TUI event
1610
- */
1611
- export const tuiPublishMutation = (options) => {
1612
- const mutationOptions = {
1613
- mutationFn: async (fnOptions) => {
1614
- const { data } = await tuiPublish({
1615
- ...options,
1616
- ...fnOptions,
1617
- throwOnError: true
1618
- });
1619
- return data;
1620
- }
1621
- };
1622
- return mutationOptions;
1623
- };
1624
- /**
1625
- * Select session
1626
- *
1627
- * Navigate the TUI to display the specified session.
1628
- */
1629
- export const tuiSelectSessionMutation = (options) => {
1630
- const mutationOptions = {
1631
- mutationFn: async (fnOptions) => {
1632
- const { data } = await tuiSelectSession({
1633
- ...options,
1634
- ...fnOptions,
1635
- throwOnError: true
1636
- });
1637
- return data;
1638
- }
1639
- };
1640
- return mutationOptions;
1641
- };
1642
- export const tuiControlNextQueryKey = (options) => createQueryKey('tuiControlNext', options);
1643
- /**
1644
- * Get next TUI request
1645
- *
1646
- * Retrieve the next TUI (Terminal User Interface) request from the queue for processing.
1647
- */
1648
- export const tuiControlNextOptions = (options) => queryOptions({
1649
- queryFn: async ({ queryKey, signal }) => {
1650
- const { data } = await tuiControlNext({
1651
- ...options,
1652
- ...queryKey[0],
1653
- signal,
1654
- throwOnError: true
1655
- });
1656
- return data;
1657
- },
1658
- queryKey: tuiControlNextQueryKey(options)
1659
- });
1660
- /**
1661
- * Submit TUI response
1662
- *
1663
- * Submit a response to the TUI request queue to complete a pending request.
1664
- */
1665
- export const tuiControlResponseMutation = (options) => {
1666
- const mutationOptions = {
1667
- mutationFn: async (fnOptions) => {
1668
- const { data } = await tuiControlResponse({
1669
- ...options,
1670
- ...fnOptions,
1671
- throwOnError: true
1672
- });
1673
- return data;
1674
- }
1675
- };
1676
- return mutationOptions;
1677
- };
1678
- /**
1679
- * Set auth credentials
1680
- *
1681
- * Set authentication credentials
1682
- */
1683
- export const authSetMutation = (options) => {
1684
- const mutationOptions = {
1685
- mutationFn: async (fnOptions) => {
1686
- const { data } = await authSet({
1687
- ...options,
1688
- ...fnOptions,
1689
- throwOnError: true
1690
- });
1691
- return data;
1692
- }
1693
- };
1694
- return mutationOptions;
1695
- };
1696
- //# sourceMappingURL=react-query.gen.js.map