mtmsdk 0.0.15 → 0.0.16

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/adk/api/client.d.ts +9 -0
  2. package/dist/adk/api/client.d.ts.map +1 -0
  3. package/dist/adk/api/client.js +39 -0
  4. package/dist/adk/api/client.js.map +1 -0
  5. package/dist/adk/core/constants/tool-icons.d.ts +21 -0
  6. package/dist/adk/core/constants/tool-icons.d.ts.map +1 -0
  7. package/dist/adk/core/constants/tool-icons.js +47 -0
  8. package/dist/adk/core/constants/tool-icons.js.map +1 -0
  9. package/dist/adk/core/models/AgentBuilder.d.ts +77 -0
  10. package/dist/adk/core/models/AgentBuilder.d.ts.map +1 -0
  11. package/dist/adk/core/models/AgentBuilder.js +18 -0
  12. package/dist/adk/core/models/AgentBuilder.js.map +1 -0
  13. package/dist/adk/core/models/AgentRunRequest.d.ts +37 -0
  14. package/dist/adk/core/models/AgentRunRequest.d.ts.map +1 -0
  15. package/dist/adk/core/models/AgentRunRequest.js +18 -0
  16. package/dist/adk/core/models/AgentRunRequest.js.map +1 -0
  17. package/dist/adk/core/models/Eval.d.ts +55 -0
  18. package/dist/adk/core/models/Eval.d.ts.map +1 -0
  19. package/dist/adk/core/models/Eval.js +27 -0
  20. package/dist/adk/core/models/Eval.js.map +1 -0
  21. package/dist/adk/core/models/LiveRequest.d.ts +23 -0
  22. package/dist/adk/core/models/LiveRequest.d.ts.map +1 -0
  23. package/dist/adk/core/models/LiveRequest.js +18 -0
  24. package/dist/adk/core/models/LiveRequest.js.map +1 -0
  25. package/dist/adk/core/models/RuntimeConfig.d.ts +32 -0
  26. package/dist/adk/core/models/RuntimeConfig.d.ts.map +1 -0
  27. package/dist/adk/core/models/RuntimeConfig.js +18 -0
  28. package/dist/adk/core/models/RuntimeConfig.js.map +1 -0
  29. package/dist/adk/core/models/Session.d.ts +117 -0
  30. package/dist/adk/core/models/Session.d.ts.map +1 -0
  31. package/dist/adk/core/models/Session.js +31 -0
  32. package/dist/adk/core/models/Session.js.map +1 -0
  33. package/dist/adk/core/models/Trace.d.ts +40 -0
  34. package/dist/adk/core/models/Trace.d.ts.map +1 -0
  35. package/dist/adk/core/models/Trace.js +2 -0
  36. package/dist/adk/core/models/Trace.js.map +1 -0
  37. package/dist/adk/core/models/types.d.ts +338 -0
  38. package/dist/adk/core/models/types.d.ts.map +1 -0
  39. package/dist/adk/core/models/types.js +189 -0
  40. package/dist/adk/core/models/types.js.map +1 -0
  41. package/dist/api_hatchet/@tanstack/react-query.gen.d.ts +3017 -0
  42. package/dist/api_hatchet/@tanstack/react-query.gen.d.ts.map +1 -0
  43. package/dist/api_hatchet/@tanstack/react-query.gen.js +2776 -0
  44. package/dist/api_hatchet/@tanstack/react-query.gen.js.map +1 -0
  45. package/dist/api_hatchet/client/client.gen.d.ts +3 -0
  46. package/dist/api_hatchet/client/client.gen.d.ts.map +1 -0
  47. package/dist/{gomtmapi → api_hatchet}/client/client.gen.js +70 -46
  48. package/dist/api_hatchet/client/client.gen.js.map +1 -0
  49. package/dist/api_hatchet/client/index.d.ts +9 -0
  50. package/dist/api_hatchet/client/index.d.ts.map +1 -0
  51. package/dist/api_hatchet/client/index.js +7 -0
  52. package/dist/api_hatchet/client/index.js.map +1 -0
  53. package/dist/{gomtmapi → api_hatchet}/client/types.gen.d.ts +19 -26
  54. package/dist/api_hatchet/client/types.gen.d.ts.map +1 -0
  55. package/dist/api_hatchet/client/types.gen.js.map +1 -0
  56. package/dist/{gomtmapi → api_hatchet}/client/utils.gen.d.ts +4 -4
  57. package/dist/api_hatchet/client/utils.gen.d.ts.map +1 -0
  58. package/dist/{gomtmapi → api_hatchet}/client/utils.gen.js +41 -40
  59. package/dist/api_hatchet/client/utils.gen.js.map +1 -0
  60. package/dist/{gomtmapi → api_hatchet}/client.gen.d.ts +2 -2
  61. package/dist/api_hatchet/client.gen.d.ts.map +1 -0
  62. package/dist/{gomtmapi → api_hatchet}/client.gen.js +1 -1
  63. package/dist/api_hatchet/client.gen.js.map +1 -0
  64. package/dist/{gomtmapi → api_hatchet}/core/auth.gen.d.ts +3 -3
  65. package/dist/api_hatchet/core/auth.gen.d.ts.map +1 -0
  66. package/dist/{gomtmapi → api_hatchet}/core/auth.gen.js +3 -3
  67. package/dist/api_hatchet/core/auth.gen.js.map +1 -0
  68. package/dist/{gomtmapi → api_hatchet}/core/bodySerializer.gen.d.ts +13 -5
  69. package/dist/api_hatchet/core/bodySerializer.gen.d.ts.map +1 -0
  70. package/dist/{gomtmapi → api_hatchet}/core/bodySerializer.gen.js +3 -3
  71. package/dist/api_hatchet/core/bodySerializer.gen.js.map +1 -0
  72. package/dist/{gomtmapi → api_hatchet}/core/params.gen.d.ts +13 -3
  73. package/dist/api_hatchet/core/params.gen.d.ts.map +1 -0
  74. package/dist/{gomtmapi → api_hatchet}/core/params.gen.js +24 -12
  75. package/dist/api_hatchet/core/params.gen.js.map +1 -0
  76. package/dist/{gomtmapi → api_hatchet}/core/pathSerializer.gen.d.ts +3 -3
  77. package/dist/api_hatchet/core/pathSerializer.gen.d.ts.map +1 -0
  78. package/dist/{gomtmapi → api_hatchet}/core/pathSerializer.gen.js +36 -36
  79. package/dist/api_hatchet/core/pathSerializer.gen.js.map +1 -0
  80. package/dist/api_hatchet/core/queryKeySerializer.gen.d.ts +19 -0
  81. package/dist/api_hatchet/core/queryKeySerializer.gen.d.ts.map +1 -0
  82. package/dist/api_hatchet/core/queryKeySerializer.gen.js +100 -0
  83. package/dist/api_hatchet/core/queryKeySerializer.gen.js.map +1 -0
  84. package/dist/{gomtmapi → api_hatchet}/core/serverSentEvents.gen.d.ts +3 -3
  85. package/dist/api_hatchet/core/serverSentEvents.gen.d.ts.map +1 -0
  86. package/dist/{gomtmapi → api_hatchet}/core/serverSentEvents.gen.js +20 -18
  87. package/dist/api_hatchet/core/serverSentEvents.gen.js.map +1 -0
  88. package/dist/{gomtmapi → api_hatchet}/core/types.gen.d.ts +4 -4
  89. package/dist/api_hatchet/core/types.gen.d.ts.map +1 -0
  90. package/dist/api_hatchet/core/types.gen.js.map +1 -0
  91. package/dist/{gomtmapi → api_hatchet}/core/utils.gen.d.ts +1 -1
  92. package/dist/api_hatchet/core/utils.gen.d.ts.map +1 -0
  93. package/dist/{gomtmapi → api_hatchet}/core/utils.gen.js +17 -17
  94. package/dist/api_hatchet/core/utils.gen.js.map +1 -0
  95. package/dist/api_hatchet/index.d.ts +3 -0
  96. package/dist/api_hatchet/index.d.ts.map +1 -0
  97. package/dist/api_hatchet/index.js +4 -0
  98. package/dist/api_hatchet/index.js.map +1 -0
  99. package/dist/api_hatchet/schemas.gen.d.ts +4068 -0
  100. package/dist/api_hatchet/schemas.gen.d.ts.map +1 -0
  101. package/dist/api_hatchet/schemas.gen.js +4743 -0
  102. package/dist/api_hatchet/schemas.gen.js.map +1 -0
  103. package/dist/api_hatchet/sdk.gen.d.ts +784 -0
  104. package/dist/api_hatchet/sdk.gen.d.ts.map +1 -0
  105. package/dist/api_hatchet/sdk.gen.js +1849 -0
  106. package/dist/api_hatchet/sdk.gen.js.map +1 -0
  107. package/dist/api_hatchet/types.gen.d.ts +6861 -0
  108. package/dist/api_hatchet/types.gen.d.ts.map +1 -0
  109. package/dist/api_hatchet/types.gen.js +209 -0
  110. package/dist/api_hatchet/types.gen.js.map +1 -0
  111. package/dist/api_hatchet/zod.gen.d.ts +10429 -0
  112. package/dist/api_hatchet/zod.gen.d.ts.map +1 -0
  113. package/dist/api_hatchet/zod.gen.js +2766 -0
  114. package/dist/api_hatchet/zod.gen.js.map +1 -0
  115. package/dist/gomtmapi_v2/@tanstack/react-query.gen.d.ts +114 -687
  116. package/dist/gomtmapi_v2/@tanstack/react-query.gen.d.ts.map +1 -1
  117. package/dist/gomtmapi_v2/@tanstack/react-query.gen.js +418 -1026
  118. package/dist/gomtmapi_v2/@tanstack/react-query.gen.js.map +1 -1
  119. package/dist/gomtmapi_v2/client/client.gen.d.ts +1 -1
  120. package/dist/gomtmapi_v2/client/client.gen.d.ts.map +1 -1
  121. package/dist/gomtmapi_v2/client/client.gen.js +70 -46
  122. package/dist/gomtmapi_v2/client/client.gen.js.map +1 -1
  123. package/dist/gomtmapi_v2/client/index.d.ts +8 -8
  124. package/dist/gomtmapi_v2/client/index.d.ts.map +1 -1
  125. package/dist/gomtmapi_v2/client/index.js +5 -5
  126. package/dist/gomtmapi_v2/client/index.js.map +1 -1
  127. package/dist/gomtmapi_v2/client/types.gen.d.ts +19 -26
  128. package/dist/gomtmapi_v2/client/types.gen.d.ts.map +1 -1
  129. package/dist/gomtmapi_v2/client/utils.gen.d.ts +3 -3
  130. package/dist/gomtmapi_v2/client/utils.gen.d.ts.map +1 -1
  131. package/dist/gomtmapi_v2/client/utils.gen.js +34 -34
  132. package/dist/gomtmapi_v2/client/utils.gen.js.map +1 -1
  133. package/dist/gomtmapi_v2/client.gen.d.ts +2 -2
  134. package/dist/gomtmapi_v2/client.gen.d.ts.map +1 -1
  135. package/dist/gomtmapi_v2/client.gen.js +1 -1
  136. package/dist/gomtmapi_v2/client.gen.js.map +1 -1
  137. package/dist/gomtmapi_v2/core/auth.gen.d.ts +3 -3
  138. package/dist/gomtmapi_v2/core/auth.gen.js +3 -3
  139. package/dist/gomtmapi_v2/core/bodySerializer.gen.d.ts +1 -1
  140. package/dist/gomtmapi_v2/core/bodySerializer.gen.js +3 -3
  141. package/dist/gomtmapi_v2/core/params.gen.d.ts +13 -3
  142. package/dist/gomtmapi_v2/core/params.gen.d.ts.map +1 -1
  143. package/dist/gomtmapi_v2/core/params.gen.js +24 -12
  144. package/dist/gomtmapi_v2/core/params.gen.js.map +1 -1
  145. package/dist/gomtmapi_v2/core/pathSerializer.gen.d.ts +3 -3
  146. package/dist/gomtmapi_v2/core/pathSerializer.gen.js +36 -36
  147. package/dist/gomtmapi_v2/core/queryKeySerializer.gen.js +11 -11
  148. package/dist/gomtmapi_v2/core/serverSentEvents.gen.d.ts +3 -3
  149. package/dist/gomtmapi_v2/core/serverSentEvents.gen.d.ts.map +1 -1
  150. package/dist/gomtmapi_v2/core/serverSentEvents.gen.js +20 -18
  151. package/dist/gomtmapi_v2/core/serverSentEvents.gen.js.map +1 -1
  152. package/dist/gomtmapi_v2/core/types.gen.d.ts +4 -4
  153. package/dist/gomtmapi_v2/core/types.gen.d.ts.map +1 -1
  154. package/dist/gomtmapi_v2/core/utils.gen.d.ts +1 -1
  155. package/dist/gomtmapi_v2/core/utils.gen.js +17 -17
  156. package/dist/gomtmapi_v2/index.d.ts +2 -2
  157. package/dist/gomtmapi_v2/index.js +1 -1
  158. package/dist/gomtmapi_v2/schemas.gen.d.ts +51 -727
  159. package/dist/gomtmapi_v2/schemas.gen.d.ts.map +1 -1
  160. package/dist/gomtmapi_v2/schemas.gen.js +752 -1392
  161. package/dist/gomtmapi_v2/schemas.gen.js.map +1 -1
  162. package/dist/gomtmapi_v2/sdk.gen.d.ts +50 -381
  163. package/dist/gomtmapi_v2/sdk.gen.d.ts.map +1 -1
  164. package/dist/gomtmapi_v2/sdk.gen.js +201 -795
  165. package/dist/gomtmapi_v2/sdk.gen.js.map +1 -1
  166. package/dist/gomtmapi_v2/types.gen.d.ts +132 -917
  167. package/dist/gomtmapi_v2/types.gen.d.ts.map +1 -1
  168. package/dist/gomtmapi_v2/zod.gen.d.ts +40 -734
  169. package/dist/gomtmapi_v2/zod.gen.d.ts.map +1 -1
  170. package/dist/gomtmapi_v2/zod.gen.js +191 -651
  171. package/dist/gomtmapi_v2/zod.gen.js.map +1 -1
  172. package/dist/lib/aisdk/types.d.ts +3 -0
  173. package/dist/lib/aisdk/types.d.ts.map +1 -0
  174. package/dist/lib/aisdk/types.js +5 -0
  175. package/dist/lib/aisdk/types.js.map +1 -0
  176. package/dist/lib/logger/index.d.ts +19 -0
  177. package/dist/lib/logger/index.d.ts.map +1 -0
  178. package/dist/lib/logger/index.js +7 -0
  179. package/dist/lib/logger/index.js.map +1 -0
  180. package/dist/lib/schema.d.ts +41 -0
  181. package/dist/lib/schema.d.ts.map +1 -0
  182. package/dist/lib/schema.js +37 -0
  183. package/dist/lib/schema.js.map +1 -0
  184. package/dist/lib/utils.d.ts +14 -0
  185. package/dist/lib/utils.d.ts.map +1 -0
  186. package/dist/lib/utils.js +45 -0
  187. package/dist/lib/utils.js.map +1 -0
  188. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts +145 -1698
  189. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts.map +1 -1
  190. package/dist/mtgate_api/@tanstack/react-query.gen.js +212 -1872
  191. package/dist/mtgate_api/@tanstack/react-query.gen.js.map +1 -1
  192. package/dist/mtgate_api/client/client.gen.d.ts +1 -1
  193. package/dist/mtgate_api/client/client.gen.d.ts.map +1 -1
  194. package/dist/mtgate_api/client/client.gen.js +70 -46
  195. package/dist/mtgate_api/client/client.gen.js.map +1 -1
  196. package/dist/mtgate_api/client/index.d.ts +8 -8
  197. package/dist/mtgate_api/client/index.d.ts.map +1 -1
  198. package/dist/mtgate_api/client/index.js +5 -5
  199. package/dist/mtgate_api/client/index.js.map +1 -1
  200. package/dist/mtgate_api/client/types.gen.d.ts +19 -26
  201. package/dist/mtgate_api/client/types.gen.d.ts.map +1 -1
  202. package/dist/mtgate_api/client/utils.gen.d.ts +3 -3
  203. package/dist/mtgate_api/client/utils.gen.d.ts.map +1 -1
  204. package/dist/mtgate_api/client/utils.gen.js +34 -34
  205. package/dist/mtgate_api/client/utils.gen.js.map +1 -1
  206. package/dist/mtgate_api/client.gen.d.ts +2 -2
  207. package/dist/mtgate_api/client.gen.d.ts.map +1 -1
  208. package/dist/mtgate_api/client.gen.js +2 -4
  209. package/dist/mtgate_api/client.gen.js.map +1 -1
  210. package/dist/mtgate_api/core/auth.gen.d.ts +3 -3
  211. package/dist/mtgate_api/core/auth.gen.js +3 -3
  212. package/dist/mtgate_api/core/bodySerializer.gen.d.ts +1 -1
  213. package/dist/mtgate_api/core/bodySerializer.gen.js +3 -3
  214. package/dist/mtgate_api/core/params.gen.d.ts +13 -3
  215. package/dist/mtgate_api/core/params.gen.d.ts.map +1 -1
  216. package/dist/mtgate_api/core/params.gen.js +24 -12
  217. package/dist/mtgate_api/core/params.gen.js.map +1 -1
  218. package/dist/mtgate_api/core/pathSerializer.gen.d.ts +3 -3
  219. package/dist/mtgate_api/core/pathSerializer.gen.js +36 -36
  220. package/dist/mtgate_api/core/queryKeySerializer.gen.js +11 -11
  221. package/dist/mtgate_api/core/serverSentEvents.gen.d.ts +3 -3
  222. package/dist/mtgate_api/core/serverSentEvents.gen.d.ts.map +1 -1
  223. package/dist/mtgate_api/core/serverSentEvents.gen.js +20 -18
  224. package/dist/mtgate_api/core/serverSentEvents.gen.js.map +1 -1
  225. package/dist/mtgate_api/core/types.gen.d.ts +4 -4
  226. package/dist/mtgate_api/core/types.gen.d.ts.map +1 -1
  227. package/dist/mtgate_api/core/utils.gen.d.ts +1 -1
  228. package/dist/mtgate_api/core/utils.gen.js +17 -17
  229. package/dist/mtgate_api/index.d.ts +2 -2
  230. package/dist/mtgate_api/index.d.ts.map +1 -1
  231. package/dist/mtgate_api/index.js +1 -2
  232. package/dist/mtgate_api/index.js.map +1 -1
  233. package/dist/mtgate_api/schemas.gen.d.ts +377 -3070
  234. package/dist/mtgate_api/schemas.gen.d.ts.map +1 -1
  235. package/dist/mtgate_api/schemas.gen.js +590 -3332
  236. package/dist/mtgate_api/schemas.gen.js.map +1 -1
  237. package/dist/mtgate_api/sdk.gen.d.ts +25 -205
  238. package/dist/mtgate_api/sdk.gen.d.ts.map +1 -1
  239. package/dist/mtgate_api/sdk.gen.js +97 -1097
  240. package/dist/mtgate_api/sdk.gen.js.map +1 -1
  241. package/dist/mtgate_api/types.gen.d.ts +435 -4744
  242. package/dist/mtgate_api/types.gen.d.ts.map +1 -1
  243. package/dist/mtgate_api/types.gen.js +1 -10
  244. package/dist/mtgate_api/types.gen.js.map +1 -1
  245. package/dist/mtgate_api/zod.gen.d.ts +989 -5722
  246. package/dist/mtgate_api/zod.gen.d.ts.map +1 -1
  247. package/dist/mtgate_api/zod.gen.js +340 -2939
  248. package/dist/mtgate_api/zod.gen.js.map +1 -1
  249. package/dist/mtmai_api/@tanstack/react-query.gen.d.ts +82 -82
  250. package/dist/mtmai_api/@tanstack/react-query.gen.d.ts.map +1 -1
  251. package/dist/mtmai_api/@tanstack/react-query.gen.js +416 -475
  252. package/dist/mtmai_api/@tanstack/react-query.gen.js.map +1 -1
  253. package/dist/mtmai_api/client/client.gen.d.ts +1 -1
  254. package/dist/mtmai_api/client/client.gen.d.ts.map +1 -1
  255. package/dist/mtmai_api/client/client.gen.js +70 -46
  256. package/dist/mtmai_api/client/client.gen.js.map +1 -1
  257. package/dist/mtmai_api/client/index.d.ts +8 -8
  258. package/dist/mtmai_api/client/index.d.ts.map +1 -1
  259. package/dist/mtmai_api/client/index.js +5 -5
  260. package/dist/mtmai_api/client/index.js.map +1 -1
  261. package/dist/mtmai_api/client/types.gen.d.ts +19 -26
  262. package/dist/mtmai_api/client/types.gen.d.ts.map +1 -1
  263. package/dist/mtmai_api/client/utils.gen.d.ts +3 -3
  264. package/dist/mtmai_api/client/utils.gen.d.ts.map +1 -1
  265. package/dist/mtmai_api/client/utils.gen.js +34 -34
  266. package/dist/mtmai_api/client/utils.gen.js.map +1 -1
  267. package/dist/mtmai_api/client.gen.d.ts +2 -2
  268. package/dist/mtmai_api/client.gen.d.ts.map +1 -1
  269. package/dist/mtmai_api/client.gen.js +1 -1
  270. package/dist/mtmai_api/client.gen.js.map +1 -1
  271. package/dist/mtmai_api/core/auth.gen.d.ts +3 -3
  272. package/dist/mtmai_api/core/auth.gen.js +3 -3
  273. package/dist/mtmai_api/core/bodySerializer.gen.d.ts +1 -1
  274. package/dist/mtmai_api/core/bodySerializer.gen.js +3 -3
  275. package/dist/mtmai_api/core/params.gen.d.ts +13 -3
  276. package/dist/mtmai_api/core/params.gen.d.ts.map +1 -1
  277. package/dist/mtmai_api/core/params.gen.js +24 -12
  278. package/dist/mtmai_api/core/params.gen.js.map +1 -1
  279. package/dist/mtmai_api/core/pathSerializer.gen.d.ts +3 -3
  280. package/dist/mtmai_api/core/pathSerializer.gen.js +36 -36
  281. package/dist/mtmai_api/core/queryKeySerializer.gen.js +11 -11
  282. package/dist/mtmai_api/core/serverSentEvents.gen.d.ts +3 -3
  283. package/dist/mtmai_api/core/serverSentEvents.gen.d.ts.map +1 -1
  284. package/dist/mtmai_api/core/serverSentEvents.gen.js +20 -18
  285. package/dist/mtmai_api/core/serverSentEvents.gen.js.map +1 -1
  286. package/dist/mtmai_api/core/types.gen.d.ts +4 -4
  287. package/dist/mtmai_api/core/types.gen.d.ts.map +1 -1
  288. package/dist/mtmai_api/core/utils.gen.d.ts +1 -1
  289. package/dist/mtmai_api/core/utils.gen.js +17 -17
  290. package/dist/mtmai_api/index.d.ts +2 -2
  291. package/dist/mtmai_api/index.js +2 -2
  292. package/dist/mtmai_api/schemas.gen.d.ts.map +1 -1
  293. package/dist/mtmai_api/schemas.gen.js +4363 -4616
  294. package/dist/mtmai_api/schemas.gen.js.map +1 -1
  295. package/dist/mtmai_api/sdk.gen.d.ts +2 -2
  296. package/dist/mtmai_api/sdk.gen.d.ts.map +1 -1
  297. package/dist/mtmai_api/sdk.gen.js +188 -391
  298. package/dist/mtmai_api/sdk.gen.js.map +1 -1
  299. package/dist/mtmai_api/types.gen.d.ts +93 -81
  300. package/dist/mtmai_api/types.gen.d.ts.map +1 -1
  301. package/dist/mtmai_api/types.gen.js +97 -103
  302. package/dist/mtmai_api/types.gen.js.map +1 -1
  303. package/dist/mtmai_api/zod.gen.d.ts +794 -794
  304. package/dist/mtmai_api/zod.gen.d.ts.map +1 -1
  305. package/dist/mtmai_api/zod.gen.js +2530 -876
  306. package/dist/mtmai_api/zod.gen.js.map +1 -1
  307. package/dist/sbapi/@tanstack/react-query.gen.d.ts +35 -0
  308. package/dist/sbapi/@tanstack/react-query.gen.d.ts.map +1 -0
  309. package/dist/sbapi/@tanstack/react-query.gen.js +40 -0
  310. package/dist/sbapi/@tanstack/react-query.gen.js.map +1 -0
  311. package/dist/sbapi/client/client.gen.d.ts +3 -0
  312. package/dist/sbapi/client/client.gen.d.ts.map +1 -0
  313. package/dist/sbapi/client/client.gen.js +229 -0
  314. package/dist/sbapi/client/client.gen.js.map +1 -0
  315. package/dist/sbapi/client/index.d.ts +9 -0
  316. package/dist/sbapi/client/index.d.ts.map +1 -0
  317. package/dist/sbapi/client/index.js +7 -0
  318. package/dist/sbapi/client/index.js.map +1 -0
  319. package/dist/sbapi/client/types.gen.d.ts +118 -0
  320. package/dist/sbapi/client/types.gen.d.ts.map +1 -0
  321. package/dist/sbapi/client/types.gen.js +3 -0
  322. package/dist/sbapi/client/types.gen.js.map +1 -0
  323. package/dist/sbapi/client/utils.gen.d.ts +34 -0
  324. package/dist/sbapi/client/utils.gen.d.ts.map +1 -0
  325. package/dist/sbapi/client/utils.gen.js +232 -0
  326. package/dist/sbapi/client/utils.gen.js.map +1 -0
  327. package/dist/sbapi/client.gen.d.ts +13 -0
  328. package/dist/sbapi/client.gen.d.ts.map +1 -0
  329. package/dist/sbapi/client.gen.js +4 -0
  330. package/dist/sbapi/client.gen.js.map +1 -0
  331. package/dist/sbapi/core/auth.gen.d.ts +19 -0
  332. package/dist/sbapi/core/auth.gen.d.ts.map +1 -0
  333. package/dist/sbapi/core/auth.gen.js +15 -0
  334. package/dist/sbapi/core/auth.gen.js.map +1 -0
  335. package/dist/sbapi/core/bodySerializer.gen.d.ts +26 -0
  336. package/dist/sbapi/core/bodySerializer.gen.d.ts.map +1 -0
  337. package/dist/sbapi/core/bodySerializer.gen.js +58 -0
  338. package/dist/sbapi/core/bodySerializer.gen.js.map +1 -0
  339. package/dist/sbapi/core/params.gen.d.ts +44 -0
  340. package/dist/sbapi/core/params.gen.d.ts.map +1 -0
  341. package/dist/sbapi/core/params.gen.js +101 -0
  342. package/dist/sbapi/core/params.gen.js.map +1 -0
  343. package/dist/sbapi/core/pathSerializer.gen.d.ts +34 -0
  344. package/dist/sbapi/core/pathSerializer.gen.d.ts.map +1 -0
  345. package/dist/sbapi/core/pathSerializer.gen.js +115 -0
  346. package/dist/sbapi/core/pathSerializer.gen.js.map +1 -0
  347. package/dist/sbapi/core/queryKeySerializer.gen.d.ts +19 -0
  348. package/dist/sbapi/core/queryKeySerializer.gen.d.ts.map +1 -0
  349. package/dist/sbapi/core/queryKeySerializer.gen.js +100 -0
  350. package/dist/sbapi/core/queryKeySerializer.gen.js.map +1 -0
  351. package/dist/sbapi/core/serverSentEvents.gen.d.ts +72 -0
  352. package/dist/sbapi/core/serverSentEvents.gen.d.ts.map +1 -0
  353. package/dist/sbapi/core/serverSentEvents.gen.js +138 -0
  354. package/dist/sbapi/core/serverSentEvents.gen.js.map +1 -0
  355. package/dist/sbapi/core/types.gen.d.ts +79 -0
  356. package/dist/sbapi/core/types.gen.d.ts.map +1 -0
  357. package/dist/sbapi/core/types.gen.js +3 -0
  358. package/dist/sbapi/core/types.gen.js.map +1 -0
  359. package/dist/sbapi/core/utils.gen.d.ts +20 -0
  360. package/dist/sbapi/core/utils.gen.d.ts.map +1 -0
  361. package/dist/sbapi/core/utils.gen.js +88 -0
  362. package/dist/sbapi/core/utils.gen.js.map +1 -0
  363. package/dist/sbapi/index.d.ts +3 -0
  364. package/dist/sbapi/index.d.ts.map +1 -0
  365. package/dist/sbapi/index.js +3 -0
  366. package/dist/sbapi/index.js.map +1 -0
  367. package/dist/sbapi/schemas.gen.d.ts +38 -0
  368. package/dist/sbapi/schemas.gen.d.ts.map +1 -0
  369. package/dist/sbapi/schemas.gen.js +48 -0
  370. package/dist/sbapi/schemas.gen.js.map +1 -0
  371. package/dist/sbapi/sdk.gen.d.ts +17 -0
  372. package/dist/sbapi/sdk.gen.d.ts.map +1 -0
  373. package/dist/sbapi/sdk.gen.js +4 -0
  374. package/dist/sbapi/sdk.gen.js.map +1 -0
  375. package/dist/sbapi/types.gen.d.ts +54 -0
  376. package/dist/sbapi/types.gen.d.ts.map +1 -0
  377. package/dist/sbapi/types.gen.js +3 -0
  378. package/dist/sbapi/types.gen.js.map +1 -0
  379. package/dist/sbapi/zod.gen.d.ts +39 -0
  380. package/dist/sbapi/zod.gen.d.ts.map +1 -0
  381. package/dist/sbapi/zod.gen.js +31 -0
  382. package/dist/sbapi/zod.gen.js.map +1 -0
  383. package/dist/schema/browser.d.ts +29 -0
  384. package/dist/schema/browser.d.ts.map +1 -0
  385. package/dist/schema/browser.js +41 -0
  386. package/dist/schema/browser.js.map +1 -0
  387. package/dist/supabase/supabase-browser.d.ts +4 -0
  388. package/dist/supabase/supabase-browser.d.ts.map +1 -0
  389. package/dist/supabase/supabase-browser.js +20 -0
  390. package/dist/supabase/supabase-browser.js.map +1 -0
  391. package/dist/supabase/supabase-client.d.ts +1941 -0
  392. package/dist/supabase/supabase-client.d.ts.map +1 -0
  393. package/dist/supabase/supabase-client.js +23 -0
  394. package/dist/supabase/supabase-client.js.map +1 -0
  395. package/dist/supabase/supabase.d.ts +3881 -0
  396. package/dist/supabase/supabase.d.ts.map +1 -0
  397. package/dist/supabase/supabase.js +89 -0
  398. package/dist/supabase/supabase.js.map +1 -0
  399. package/dist/supabase/use-sb-query/build-query-opts.d.ts +6 -0
  400. package/dist/supabase/use-sb-query/build-query-opts.d.ts.map +1 -0
  401. package/dist/supabase/use-sb-query/build-query-opts.js +33 -0
  402. package/dist/supabase/use-sb-query/build-query-opts.js.map +1 -0
  403. package/dist/supabase/use-sb-query/key.d.ts +10 -0
  404. package/dist/supabase/use-sb-query/key.d.ts.map +1 -0
  405. package/dist/supabase/use-sb-query/key.js +46 -0
  406. package/dist/supabase/use-sb-query/key.js.map +1 -0
  407. package/dist/supabase/use-sb-query/prefetch.d.ts +10 -0
  408. package/dist/supabase/use-sb-query/prefetch.d.ts.map +1 -0
  409. package/dist/supabase/use-sb-query/prefetch.js +14 -0
  410. package/dist/supabase/use-sb-query/prefetch.js.map +1 -0
  411. package/dist/supabase/use-sb-query/use-query.d.ts +133 -0
  412. package/dist/supabase/use-sb-query/use-query.d.ts.map +1 -0
  413. package/dist/supabase/use-sb-query/use-query.js +117 -0
  414. package/dist/supabase/use-sb-query/use-query.js.map +1 -0
  415. package/dist/supabase/utils.d.ts +21 -0
  416. package/dist/supabase/utils.d.ts.map +1 -0
  417. package/dist/supabase/utils.js +46 -0
  418. package/dist/supabase/utils.js.map +1 -0
  419. package/dist/types/database.types.d.ts +2018 -0
  420. package/dist/types/database.types.d.ts.map +1 -0
  421. package/dist/types/database.types.js +6 -0
  422. package/dist/types/database.types.js.map +1 -0
  423. package/dist/types/index.d.ts +21 -0
  424. package/dist/types/index.d.ts.map +1 -0
  425. package/dist/types/index.js +2 -0
  426. package/dist/types/index.js.map +1 -0
  427. package/package.json +59 -91
  428. package/dist/gomtmapi/@tanstack/react-query.gen.d.ts +0 -947
  429. package/dist/gomtmapi/@tanstack/react-query.gen.d.ts.map +0 -1
  430. package/dist/gomtmapi/@tanstack/react-query.gen.js +0 -1023
  431. package/dist/gomtmapi/@tanstack/react-query.gen.js.map +0 -1
  432. package/dist/gomtmapi/client/client.gen.d.ts +0 -3
  433. package/dist/gomtmapi/client/client.gen.d.ts.map +0 -1
  434. package/dist/gomtmapi/client/client.gen.js.map +0 -1
  435. package/dist/gomtmapi/client/index.d.ts +0 -8
  436. package/dist/gomtmapi/client/index.d.ts.map +0 -1
  437. package/dist/gomtmapi/client/index.js +0 -6
  438. package/dist/gomtmapi/client/index.js.map +0 -1
  439. package/dist/gomtmapi/client/types.gen.d.ts.map +0 -1
  440. package/dist/gomtmapi/client/types.gen.js.map +0 -1
  441. package/dist/gomtmapi/client/utils.gen.d.ts.map +0 -1
  442. package/dist/gomtmapi/client/utils.gen.js.map +0 -1
  443. package/dist/gomtmapi/client.gen.d.ts.map +0 -1
  444. package/dist/gomtmapi/client.gen.js.map +0 -1
  445. package/dist/gomtmapi/core/auth.gen.d.ts.map +0 -1
  446. package/dist/gomtmapi/core/auth.gen.js.map +0 -1
  447. package/dist/gomtmapi/core/bodySerializer.gen.d.ts.map +0 -1
  448. package/dist/gomtmapi/core/bodySerializer.gen.js.map +0 -1
  449. package/dist/gomtmapi/core/params.gen.d.ts.map +0 -1
  450. package/dist/gomtmapi/core/params.gen.js.map +0 -1
  451. package/dist/gomtmapi/core/pathSerializer.gen.d.ts.map +0 -1
  452. package/dist/gomtmapi/core/pathSerializer.gen.js.map +0 -1
  453. package/dist/gomtmapi/core/serverSentEvents.gen.d.ts.map +0 -1
  454. package/dist/gomtmapi/core/serverSentEvents.gen.js.map +0 -1
  455. package/dist/gomtmapi/core/types.gen.d.ts.map +0 -1
  456. package/dist/gomtmapi/core/types.gen.js.map +0 -1
  457. package/dist/gomtmapi/core/utils.gen.d.ts.map +0 -1
  458. package/dist/gomtmapi/core/utils.gen.js.map +0 -1
  459. package/dist/gomtmapi/index.d.ts +0 -3
  460. package/dist/gomtmapi/index.d.ts.map +0 -1
  461. package/dist/gomtmapi/index.js +0 -4
  462. package/dist/gomtmapi/index.js.map +0 -1
  463. package/dist/gomtmapi/schemas.gen.d.ts +0 -1445
  464. package/dist/gomtmapi/schemas.gen.d.ts.map +0 -1
  465. package/dist/gomtmapi/schemas.gen.js +0 -1474
  466. package/dist/gomtmapi/schemas.gen.js.map +0 -1
  467. package/dist/gomtmapi/sdk.gen.d.ts +0 -271
  468. package/dist/gomtmapi/sdk.gen.d.ts.map +0 -1
  469. package/dist/gomtmapi/sdk.gen.js +0 -974
  470. package/dist/gomtmapi/sdk.gen.js.map +0 -1
  471. package/dist/gomtmapi/types.gen.d.ts +0 -2302
  472. package/dist/gomtmapi/types.gen.d.ts.map +0 -1
  473. package/dist/gomtmapi/types.gen.js +0 -33
  474. package/dist/gomtmapi/types.gen.js.map +0 -1
  475. package/dist/gomtmapi/zod.gen.d.ts +0 -2067
  476. package/dist/gomtmapi/zod.gen.d.ts.map +0 -1
  477. package/dist/gomtmapi/zod.gen.js +0 -875
  478. package/dist/gomtmapi/zod.gen.js.map +0 -1
  479. /package/dist/{gomtmapi → api_hatchet}/client/types.gen.js +0 -0
  480. /package/dist/{gomtmapi → api_hatchet}/core/types.gen.js +0 -0
@@ -1,12 +1,9 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
- import { queryOptions } from "@tanstack/react-query";
3
- import { client } from "../client.gen";
4
- import { agentsAgentrun, builderBuild, chatAgentChat, chatAgentExportConfig, chatAgentGetChatConfig, chatAgentGetProviders, chatAgentImportConfig, chatAgentUpdateChatConfig, chatAgentValidateApiKey, createItem, createSession, createSessionWithId, debugGetEventGraph, debugGetSessionTrace, debugGetTraceDict, deleteArtifact, deleteItem, deleteSession, evaluationAddSessionToEvalSet, evaluationCreateEvalSet, evaluationCreateEvalSetLegacy, evaluationDeleteEval, evaluationGetEval, evaluationGetEvalResult, evaluationGetEvalResultLegacy, evaluationListEvalResults, evaluationListEvalResultsLegacy, evaluationListEvalSets, evaluationListEvalSetsLegacy, evaluationListEvalsInEvalSet, evaluationListMetricsInfo, evaluationRunEval, evaluationRunEvalLegacy, evaluationUpdateEval, getAgentBuilder, getItem, getSession, listApps, listArtifactNames, listArtifactVersions, listItems, listSessions, loadArtifact, loadArtifactVersion, redirectDevUiAddSlash, redirectRootToDevUi, runAgent, runAgentSse, sandboxCheckSandboxStatus, sandboxStartNapcatSandbox, searchItems, updateItem, } from "../sdk.gen";
2
+ import { queryOptions } from '@tanstack/react-query';
3
+ import { client } from '../client.gen';
4
+ import { agentsAgentrun, builderBuild, chatAgentChat, chatAgentExportConfig, chatAgentGetChatConfig, chatAgentGetProviders, chatAgentImportConfig, chatAgentUpdateChatConfig, chatAgentValidateApiKey, createItem, createSession, createSessionWithId, debugGetEventGraph, debugGetSessionTrace, debugGetTraceDict, deleteArtifact, deleteItem, deleteSession, evaluationAddSessionToEvalSet, evaluationCreateEvalSet, evaluationCreateEvalSetLegacy, evaluationDeleteEval, evaluationGetEval, evaluationGetEvalResult, evaluationGetEvalResultLegacy, evaluationListEvalResults, evaluationListEvalResultsLegacy, evaluationListEvalSets, evaluationListEvalSetsLegacy, evaluationListEvalsInEvalSet, evaluationListMetricsInfo, evaluationRunEval, evaluationRunEvalLegacy, evaluationUpdateEval, getAgentBuilder, getItem, getSession, listApps, listArtifactNames, listArtifactVersions, listItems, listSessions, loadArtifact, loadArtifactVersion, redirectDevUiAddSlash, redirectRootToDevUi, runAgent, runAgentSse, sandboxCheckSandboxStatus, sandboxStartNapcatSandbox, searchItems, updateItem } from '../sdk.gen';
5
5
  const createQueryKey = (id, options, infinite, tags) => {
6
- const params = {
7
- _id: id,
8
- baseUrl: options?.baseUrl || (options?.client ?? client).getConfig().baseUrl,
9
- };
6
+ const params = { _id: id, baseUrl: options?.baseUrl || (options?.client ?? client).getConfig().baseUrl };
10
7
  if (infinite) {
11
8
  params._infinite = infinite;
12
9
  }
@@ -27,60 +24,54 @@ const createQueryKey = (id, options, infinite, tags) => {
27
24
  }
28
25
  return [params];
29
26
  };
30
- export const listAppsQueryKey = (options) => createQueryKey("listApps", options);
27
+ export const listAppsQueryKey = (options) => createQueryKey('listApps', options);
31
28
  /**
32
29
  * List Apps
33
30
  */
34
- export const listAppsOptions = (options) => {
35
- return queryOptions({
36
- queryFn: async ({ queryKey, signal }) => {
37
- const { data } = await listApps({
38
- ...options,
39
- ...queryKey[0],
40
- signal,
41
- throwOnError: true,
42
- });
43
- return data;
44
- },
45
- queryKey: listAppsQueryKey(options),
46
- });
47
- };
48
- export const debugGetTraceDictQueryKey = (options) => createQueryKey("debugGetTraceDict", options);
31
+ export const listAppsOptions = (options) => queryOptions({
32
+ queryFn: async ({ queryKey, signal }) => {
33
+ const { data } = await listApps({
34
+ ...options,
35
+ ...queryKey[0],
36
+ signal,
37
+ throwOnError: true
38
+ });
39
+ return data;
40
+ },
41
+ queryKey: listAppsQueryKey(options)
42
+ });
43
+ export const debugGetTraceDictQueryKey = (options) => createQueryKey('debugGetTraceDict', options);
49
44
  /**
50
45
  * Get Trace Dict
51
46
  */
52
- export const debugGetTraceDictOptions = (options) => {
53
- return queryOptions({
54
- queryFn: async ({ queryKey, signal }) => {
55
- const { data } = await debugGetTraceDict({
56
- ...options,
57
- ...queryKey[0],
58
- signal,
59
- throwOnError: true,
60
- });
61
- return data;
62
- },
63
- queryKey: debugGetTraceDictQueryKey(options),
64
- });
65
- };
66
- export const debugGetSessionTraceQueryKey = (options) => createQueryKey("debugGetSessionTrace", options);
47
+ export const debugGetTraceDictOptions = (options) => queryOptions({
48
+ queryFn: async ({ queryKey, signal }) => {
49
+ const { data } = await debugGetTraceDict({
50
+ ...options,
51
+ ...queryKey[0],
52
+ signal,
53
+ throwOnError: true
54
+ });
55
+ return data;
56
+ },
57
+ queryKey: debugGetTraceDictQueryKey(options)
58
+ });
59
+ export const debugGetSessionTraceQueryKey = (options) => createQueryKey('debugGetSessionTrace', options);
67
60
  /**
68
61
  * Get Session Trace
69
62
  */
70
- export const debugGetSessionTraceOptions = (options) => {
71
- return queryOptions({
72
- queryFn: async ({ queryKey, signal }) => {
73
- const { data } = await debugGetSessionTrace({
74
- ...options,
75
- ...queryKey[0],
76
- signal,
77
- throwOnError: true,
78
- });
79
- return data;
80
- },
81
- queryKey: debugGetSessionTraceQueryKey(options),
82
- });
83
- };
63
+ export const debugGetSessionTraceOptions = (options) => queryOptions({
64
+ queryFn: async ({ queryKey, signal }) => {
65
+ const { data } = await debugGetSessionTrace({
66
+ ...options,
67
+ ...queryKey[0],
68
+ signal,
69
+ throwOnError: true
70
+ });
71
+ return data;
72
+ },
73
+ queryKey: debugGetSessionTraceQueryKey(options)
74
+ });
84
75
  /**
85
76
  * Delete Session
86
77
  */
@@ -90,31 +81,29 @@ export const deleteSessionMutation = (options) => {
90
81
  const { data } = await deleteSession({
91
82
  ...options,
92
83
  ...fnOptions,
93
- throwOnError: true,
84
+ throwOnError: true
94
85
  });
95
86
  return data;
96
- },
87
+ }
97
88
  };
98
89
  return mutationOptions;
99
90
  };
100
- export const getSessionQueryKey = (options) => createQueryKey("getSession", options);
91
+ export const getSessionQueryKey = (options) => createQueryKey('getSession', options);
101
92
  /**
102
93
  * Get Session
103
94
  */
104
- export const getSessionOptions = (options) => {
105
- return queryOptions({
106
- queryFn: async ({ queryKey, signal }) => {
107
- const { data } = await getSession({
108
- ...options,
109
- ...queryKey[0],
110
- signal,
111
- throwOnError: true,
112
- });
113
- return data;
114
- },
115
- queryKey: getSessionQueryKey(options),
116
- });
117
- };
95
+ export const getSessionOptions = (options) => queryOptions({
96
+ queryFn: async ({ queryKey, signal }) => {
97
+ const { data } = await getSession({
98
+ ...options,
99
+ ...queryKey[0],
100
+ signal,
101
+ throwOnError: true
102
+ });
103
+ return data;
104
+ },
105
+ queryKey: getSessionQueryKey(options)
106
+ });
118
107
  /**
119
108
  * Create Session With Id
120
109
  */
@@ -124,31 +113,29 @@ export const createSessionWithIdMutation = (options) => {
124
113
  const { data } = await createSessionWithId({
125
114
  ...options,
126
115
  ...fnOptions,
127
- throwOnError: true,
116
+ throwOnError: true
128
117
  });
129
118
  return data;
130
- },
119
+ }
131
120
  };
132
121
  return mutationOptions;
133
122
  };
134
- export const listSessionsQueryKey = (options) => createQueryKey("listSessions", options);
123
+ export const listSessionsQueryKey = (options) => createQueryKey('listSessions', options);
135
124
  /**
136
125
  * List Sessions
137
126
  */
138
- export const listSessionsOptions = (options) => {
139
- return queryOptions({
140
- queryFn: async ({ queryKey, signal }) => {
141
- const { data } = await listSessions({
142
- ...options,
143
- ...queryKey[0],
144
- signal,
145
- throwOnError: true,
146
- });
147
- return data;
148
- },
149
- queryKey: listSessionsQueryKey(options),
150
- });
151
- };
127
+ export const listSessionsOptions = (options) => queryOptions({
128
+ queryFn: async ({ queryKey, signal }) => {
129
+ const { data } = await listSessions({
130
+ ...options,
131
+ ...queryKey[0],
132
+ signal,
133
+ throwOnError: true
134
+ });
135
+ return data;
136
+ },
137
+ queryKey: listSessionsQueryKey(options)
138
+ });
152
139
  /**
153
140
  * Create Session
154
141
  */
@@ -158,33 +145,31 @@ export const createSessionMutation = (options) => {
158
145
  const { data } = await createSession({
159
146
  ...options,
160
147
  ...fnOptions,
161
- throwOnError: true,
148
+ throwOnError: true
162
149
  });
163
150
  return data;
164
- },
151
+ }
165
152
  };
166
153
  return mutationOptions;
167
154
  };
168
- export const evaluationListEvalSetsQueryKey = (options) => createQueryKey("evaluationListEvalSets", options);
155
+ export const evaluationListEvalSetsQueryKey = (options) => createQueryKey('evaluationListEvalSets', options);
169
156
  /**
170
157
  * List Eval Sets
171
158
  *
172
159
  * Lists all eval sets for the given app.
173
160
  */
174
- export const evaluationListEvalSetsOptions = (options) => {
175
- return queryOptions({
176
- queryFn: async ({ queryKey, signal }) => {
177
- const { data } = await evaluationListEvalSets({
178
- ...options,
179
- ...queryKey[0],
180
- signal,
181
- throwOnError: true,
182
- });
183
- return data;
184
- },
185
- queryKey: evaluationListEvalSetsQueryKey(options),
186
- });
187
- };
161
+ export const evaluationListEvalSetsOptions = (options) => queryOptions({
162
+ queryFn: async ({ queryKey, signal }) => {
163
+ const { data } = await evaluationListEvalSets({
164
+ ...options,
165
+ ...queryKey[0],
166
+ signal,
167
+ throwOnError: true
168
+ });
169
+ return data;
170
+ },
171
+ queryKey: evaluationListEvalSetsQueryKey(options)
172
+ });
188
173
  /**
189
174
  * Create Eval Set
190
175
  */
@@ -194,10 +179,10 @@ export const evaluationCreateEvalSetMutation = (options) => {
194
179
  const { data } = await evaluationCreateEvalSet({
195
180
  ...options,
196
181
  ...fnOptions,
197
- throwOnError: true,
182
+ throwOnError: true
198
183
  });
199
184
  return data;
200
- },
185
+ }
201
186
  };
202
187
  return mutationOptions;
203
188
  };
@@ -212,31 +197,29 @@ export const evaluationCreateEvalSetLegacyMutation = (options) => {
212
197
  const { data } = await evaluationCreateEvalSetLegacy({
213
198
  ...options,
214
199
  ...fnOptions,
215
- throwOnError: true,
200
+ throwOnError: true
216
201
  });
217
202
  return data;
218
- },
203
+ }
219
204
  };
220
205
  return mutationOptions;
221
206
  };
222
- export const evaluationListEvalSetsLegacyQueryKey = (options) => createQueryKey("evaluationListEvalSetsLegacy", options);
207
+ export const evaluationListEvalSetsLegacyQueryKey = (options) => createQueryKey('evaluationListEvalSetsLegacy', options);
223
208
  /**
224
209
  * List Eval Sets Legacy
225
210
  */
226
- export const evaluationListEvalSetsLegacyOptions = (options) => {
227
- return queryOptions({
228
- queryFn: async ({ queryKey, signal }) => {
229
- const { data } = await evaluationListEvalSetsLegacy({
230
- ...options,
231
- ...queryKey[0],
232
- signal,
233
- throwOnError: true,
234
- });
235
- return data;
236
- },
237
- queryKey: evaluationListEvalSetsLegacyQueryKey(options),
238
- });
239
- };
211
+ export const evaluationListEvalSetsLegacyOptions = (options) => queryOptions({
212
+ queryFn: async ({ queryKey, signal }) => {
213
+ const { data } = await evaluationListEvalSetsLegacy({
214
+ ...options,
215
+ ...queryKey[0],
216
+ signal,
217
+ throwOnError: true
218
+ });
219
+ return data;
220
+ },
221
+ queryKey: evaluationListEvalSetsLegacyQueryKey(options)
222
+ });
240
223
  /**
241
224
  * Add Session To Eval Set
242
225
  */
@@ -246,33 +229,31 @@ export const evaluationAddSessionToEvalSetMutation = (options) => {
246
229
  const { data } = await evaluationAddSessionToEvalSet({
247
230
  ...options,
248
231
  ...fnOptions,
249
- throwOnError: true,
232
+ throwOnError: true
250
233
  });
251
234
  return data;
252
- },
235
+ }
253
236
  };
254
237
  return mutationOptions;
255
238
  };
256
- export const evaluationListEvalsInEvalSetQueryKey = (options) => createQueryKey("evaluationListEvalsInEvalSet", options);
239
+ export const evaluationListEvalsInEvalSetQueryKey = (options) => createQueryKey('evaluationListEvalsInEvalSet', options);
257
240
  /**
258
241
  * List Evals In Eval Set
259
242
  *
260
243
  * Lists all evals in an eval set.
261
244
  */
262
- export const evaluationListEvalsInEvalSetOptions = (options) => {
263
- return queryOptions({
264
- queryFn: async ({ queryKey, signal }) => {
265
- const { data } = await evaluationListEvalsInEvalSet({
266
- ...options,
267
- ...queryKey[0],
268
- signal,
269
- throwOnError: true,
270
- });
271
- return data;
272
- },
273
- queryKey: evaluationListEvalsInEvalSetQueryKey(options),
274
- });
275
- };
245
+ export const evaluationListEvalsInEvalSetOptions = (options) => queryOptions({
246
+ queryFn: async ({ queryKey, signal }) => {
247
+ const { data } = await evaluationListEvalsInEvalSet({
248
+ ...options,
249
+ ...queryKey[0],
250
+ signal,
251
+ throwOnError: true
252
+ });
253
+ return data;
254
+ },
255
+ queryKey: evaluationListEvalsInEvalSetQueryKey(options)
256
+ });
276
257
  /**
277
258
  * Delete Eval
278
259
  */
@@ -282,33 +263,31 @@ export const evaluationDeleteEvalMutation = (options) => {
282
263
  const { data } = await evaluationDeleteEval({
283
264
  ...options,
284
265
  ...fnOptions,
285
- throwOnError: true,
266
+ throwOnError: true
286
267
  });
287
268
  return data;
288
- },
269
+ }
289
270
  };
290
271
  return mutationOptions;
291
272
  };
292
- export const evaluationGetEvalQueryKey = (options) => createQueryKey("evaluationGetEval", options);
273
+ export const evaluationGetEvalQueryKey = (options) => createQueryKey('evaluationGetEval', options);
293
274
  /**
294
275
  * Get Eval
295
276
  *
296
277
  * Gets an eval case in an eval set.
297
278
  */
298
- export const evaluationGetEvalOptions = (options) => {
299
- return queryOptions({
300
- queryFn: async ({ queryKey, signal }) => {
301
- const { data } = await evaluationGetEval({
302
- ...options,
303
- ...queryKey[0],
304
- signal,
305
- throwOnError: true,
306
- });
307
- return data;
308
- },
309
- queryKey: evaluationGetEvalQueryKey(options),
310
- });
311
- };
279
+ export const evaluationGetEvalOptions = (options) => queryOptions({
280
+ queryFn: async ({ queryKey, signal }) => {
281
+ const { data } = await evaluationGetEval({
282
+ ...options,
283
+ ...queryKey[0],
284
+ signal,
285
+ throwOnError: true
286
+ });
287
+ return data;
288
+ },
289
+ queryKey: evaluationGetEvalQueryKey(options)
290
+ });
312
291
  /**
313
292
  * Update Eval
314
293
  */
@@ -318,10 +297,10 @@ export const evaluationUpdateEvalMutation = (options) => {
318
297
  const { data } = await evaluationUpdateEval({
319
298
  ...options,
320
299
  ...fnOptions,
321
- throwOnError: true,
300
+ throwOnError: true
322
301
  });
323
302
  return data;
324
- },
303
+ }
325
304
  };
326
305
  return mutationOptions;
327
306
  };
@@ -334,10 +313,10 @@ export const evaluationRunEvalLegacyMutation = (options) => {
334
313
  const { data } = await evaluationRunEvalLegacy({
335
314
  ...options,
336
315
  ...fnOptions,
337
- throwOnError: true,
316
+ throwOnError: true
338
317
  });
339
318
  return data;
340
- },
319
+ }
341
320
  };
342
321
  return mutationOptions;
343
322
  };
@@ -352,109 +331,99 @@ export const evaluationRunEvalMutation = (options) => {
352
331
  const { data } = await evaluationRunEval({
353
332
  ...options,
354
333
  ...fnOptions,
355
- throwOnError: true,
334
+ throwOnError: true
356
335
  });
357
336
  return data;
358
- },
337
+ }
359
338
  };
360
339
  return mutationOptions;
361
340
  };
362
- export const evaluationGetEvalResultQueryKey = (options) => createQueryKey("evaluationGetEvalResult", options);
341
+ export const evaluationGetEvalResultQueryKey = (options) => createQueryKey('evaluationGetEvalResult', options);
363
342
  /**
364
343
  * Get Eval Result
365
344
  *
366
345
  * Gets the eval result for the given eval id.
367
346
  */
368
- export const evaluationGetEvalResultOptions = (options) => {
369
- return queryOptions({
370
- queryFn: async ({ queryKey, signal }) => {
371
- const { data } = await evaluationGetEvalResult({
372
- ...options,
373
- ...queryKey[0],
374
- signal,
375
- throwOnError: true,
376
- });
377
- return data;
378
- },
379
- queryKey: evaluationGetEvalResultQueryKey(options),
380
- });
381
- };
382
- export const evaluationGetEvalResultLegacyQueryKey = (options) => createQueryKey("evaluationGetEvalResultLegacy", options);
347
+ export const evaluationGetEvalResultOptions = (options) => queryOptions({
348
+ queryFn: async ({ queryKey, signal }) => {
349
+ const { data } = await evaluationGetEvalResult({
350
+ ...options,
351
+ ...queryKey[0],
352
+ signal,
353
+ throwOnError: true
354
+ });
355
+ return data;
356
+ },
357
+ queryKey: evaluationGetEvalResultQueryKey(options)
358
+ });
359
+ export const evaluationGetEvalResultLegacyQueryKey = (options) => createQueryKey('evaluationGetEvalResultLegacy', options);
383
360
  /**
384
361
  * Get Eval Result Legacy
385
362
  */
386
- export const evaluationGetEvalResultLegacyOptions = (options) => {
387
- return queryOptions({
388
- queryFn: async ({ queryKey, signal }) => {
389
- const { data } = await evaluationGetEvalResultLegacy({
390
- ...options,
391
- ...queryKey[0],
392
- signal,
393
- throwOnError: true,
394
- });
395
- return data;
396
- },
397
- queryKey: evaluationGetEvalResultLegacyQueryKey(options),
398
- });
399
- };
400
- export const evaluationListEvalResultsQueryKey = (options) => createQueryKey("evaluationListEvalResults", options);
363
+ export const evaluationGetEvalResultLegacyOptions = (options) => queryOptions({
364
+ queryFn: async ({ queryKey, signal }) => {
365
+ const { data } = await evaluationGetEvalResultLegacy({
366
+ ...options,
367
+ ...queryKey[0],
368
+ signal,
369
+ throwOnError: true
370
+ });
371
+ return data;
372
+ },
373
+ queryKey: evaluationGetEvalResultLegacyQueryKey(options)
374
+ });
375
+ export const evaluationListEvalResultsQueryKey = (options) => createQueryKey('evaluationListEvalResults', options);
401
376
  /**
402
377
  * List Eval Results
403
378
  *
404
379
  * Lists all eval results for the given app.
405
380
  */
406
- export const evaluationListEvalResultsOptions = (options) => {
407
- return queryOptions({
408
- queryFn: async ({ queryKey, signal }) => {
409
- const { data } = await evaluationListEvalResults({
410
- ...options,
411
- ...queryKey[0],
412
- signal,
413
- throwOnError: true,
414
- });
415
- return data;
416
- },
417
- queryKey: evaluationListEvalResultsQueryKey(options),
418
- });
419
- };
420
- export const evaluationListEvalResultsLegacyQueryKey = (options) => createQueryKey("evaluationListEvalResultsLegacy", options);
381
+ export const evaluationListEvalResultsOptions = (options) => queryOptions({
382
+ queryFn: async ({ queryKey, signal }) => {
383
+ const { data } = await evaluationListEvalResults({
384
+ ...options,
385
+ ...queryKey[0],
386
+ signal,
387
+ throwOnError: true
388
+ });
389
+ return data;
390
+ },
391
+ queryKey: evaluationListEvalResultsQueryKey(options)
392
+ });
393
+ export const evaluationListEvalResultsLegacyQueryKey = (options) => createQueryKey('evaluationListEvalResultsLegacy', options);
421
394
  /**
422
395
  * List Eval Results Legacy
423
396
  */
424
- export const evaluationListEvalResultsLegacyOptions = (options) => {
425
- return queryOptions({
426
- queryFn: async ({ queryKey, signal }) => {
427
- const { data } = await evaluationListEvalResultsLegacy({
428
- ...options,
429
- ...queryKey[0],
430
- signal,
431
- throwOnError: true,
432
- });
433
- return data;
434
- },
435
- queryKey: evaluationListEvalResultsLegacyQueryKey(options),
436
- });
437
- };
438
- export const evaluationListMetricsInfoQueryKey = (options) => createQueryKey("evaluationListMetricsInfo", options);
397
+ export const evaluationListEvalResultsLegacyOptions = (options) => queryOptions({
398
+ queryFn: async ({ queryKey, signal }) => {
399
+ const { data } = await evaluationListEvalResultsLegacy({
400
+ ...options,
401
+ ...queryKey[0],
402
+ signal,
403
+ throwOnError: true
404
+ });
405
+ return data;
406
+ },
407
+ queryKey: evaluationListEvalResultsLegacyQueryKey(options)
408
+ });
409
+ export const evaluationListMetricsInfoQueryKey = (options) => createQueryKey('evaluationListMetricsInfo', options);
439
410
  /**
440
411
  * List Metrics Info
441
412
  *
442
413
  * Lists all eval metrics for the given app.
443
414
  */
444
- export const evaluationListMetricsInfoOptions = (options) => {
445
- return queryOptions({
446
- queryFn: async ({ queryKey, signal }) => {
447
- const { data } = await evaluationListMetricsInfo({
448
- ...options,
449
- ...queryKey[0],
450
- signal,
451
- throwOnError: true,
452
- });
453
- return data;
454
- },
455
- queryKey: evaluationListMetricsInfoQueryKey(options),
456
- });
457
- };
415
+ export const evaluationListMetricsInfoOptions = (options) => queryOptions({
416
+ queryFn: async ({ queryKey, signal }) => {
417
+ const { data } = await evaluationListMetricsInfo({
418
+ ...options,
419
+ ...queryKey[0],
420
+ signal,
421
+ throwOnError: true
422
+ });
423
+ return data;
424
+ },
425
+ queryKey: evaluationListMetricsInfoQueryKey(options)
426
+ });
458
427
  /**
459
428
  * Delete Artifact
460
429
  */
@@ -464,85 +433,77 @@ export const deleteArtifactMutation = (options) => {
464
433
  const { data } = await deleteArtifact({
465
434
  ...options,
466
435
  ...fnOptions,
467
- throwOnError: true,
436
+ throwOnError: true
468
437
  });
469
438
  return data;
470
- },
439
+ }
471
440
  };
472
441
  return mutationOptions;
473
442
  };
474
- export const loadArtifactQueryKey = (options) => createQueryKey("loadArtifact", options);
443
+ export const loadArtifactQueryKey = (options) => createQueryKey('loadArtifact', options);
475
444
  /**
476
445
  * Load Artifact
477
446
  */
478
- export const loadArtifactOptions = (options) => {
479
- return queryOptions({
480
- queryFn: async ({ queryKey, signal }) => {
481
- const { data } = await loadArtifact({
482
- ...options,
483
- ...queryKey[0],
484
- signal,
485
- throwOnError: true,
486
- });
487
- return data;
488
- },
489
- queryKey: loadArtifactQueryKey(options),
490
- });
491
- };
492
- export const loadArtifactVersionQueryKey = (options) => createQueryKey("loadArtifactVersion", options);
447
+ export const loadArtifactOptions = (options) => queryOptions({
448
+ queryFn: async ({ queryKey, signal }) => {
449
+ const { data } = await loadArtifact({
450
+ ...options,
451
+ ...queryKey[0],
452
+ signal,
453
+ throwOnError: true
454
+ });
455
+ return data;
456
+ },
457
+ queryKey: loadArtifactQueryKey(options)
458
+ });
459
+ export const loadArtifactVersionQueryKey = (options) => createQueryKey('loadArtifactVersion', options);
493
460
  /**
494
461
  * Load Artifact Version
495
462
  */
496
- export const loadArtifactVersionOptions = (options) => {
497
- return queryOptions({
498
- queryFn: async ({ queryKey, signal }) => {
499
- const { data } = await loadArtifactVersion({
500
- ...options,
501
- ...queryKey[0],
502
- signal,
503
- throwOnError: true,
504
- });
505
- return data;
506
- },
507
- queryKey: loadArtifactVersionQueryKey(options),
508
- });
509
- };
510
- export const listArtifactNamesQueryKey = (options) => createQueryKey("listArtifactNames", options);
463
+ export const loadArtifactVersionOptions = (options) => queryOptions({
464
+ queryFn: async ({ queryKey, signal }) => {
465
+ const { data } = await loadArtifactVersion({
466
+ ...options,
467
+ ...queryKey[0],
468
+ signal,
469
+ throwOnError: true
470
+ });
471
+ return data;
472
+ },
473
+ queryKey: loadArtifactVersionQueryKey(options)
474
+ });
475
+ export const listArtifactNamesQueryKey = (options) => createQueryKey('listArtifactNames', options);
511
476
  /**
512
477
  * List Artifact Names
513
478
  */
514
- export const listArtifactNamesOptions = (options) => {
515
- return queryOptions({
516
- queryFn: async ({ queryKey, signal }) => {
517
- const { data } = await listArtifactNames({
518
- ...options,
519
- ...queryKey[0],
520
- signal,
521
- throwOnError: true,
522
- });
523
- return data;
524
- },
525
- queryKey: listArtifactNamesQueryKey(options),
526
- });
527
- };
528
- export const listArtifactVersionsQueryKey = (options) => createQueryKey("listArtifactVersions", options);
479
+ export const listArtifactNamesOptions = (options) => queryOptions({
480
+ queryFn: async ({ queryKey, signal }) => {
481
+ const { data } = await listArtifactNames({
482
+ ...options,
483
+ ...queryKey[0],
484
+ signal,
485
+ throwOnError: true
486
+ });
487
+ return data;
488
+ },
489
+ queryKey: listArtifactNamesQueryKey(options)
490
+ });
491
+ export const listArtifactVersionsQueryKey = (options) => createQueryKey('listArtifactVersions', options);
529
492
  /**
530
493
  * List Artifact Versions
531
494
  */
532
- export const listArtifactVersionsOptions = (options) => {
533
- return queryOptions({
534
- queryFn: async ({ queryKey, signal }) => {
535
- const { data } = await listArtifactVersions({
536
- ...options,
537
- ...queryKey[0],
538
- signal,
539
- throwOnError: true,
540
- });
541
- return data;
542
- },
543
- queryKey: listArtifactVersionsQueryKey(options),
544
- });
545
- };
495
+ export const listArtifactVersionsOptions = (options) => queryOptions({
496
+ queryFn: async ({ queryKey, signal }) => {
497
+ const { data } = await listArtifactVersions({
498
+ ...options,
499
+ ...queryKey[0],
500
+ signal,
501
+ throwOnError: true
502
+ });
503
+ return data;
504
+ },
505
+ queryKey: listArtifactVersionsQueryKey(options)
506
+ });
546
507
  /**
547
508
  * Run Agent
548
509
  */
@@ -552,10 +513,10 @@ export const runAgentMutation = (options) => {
552
513
  const { data } = await runAgent({
553
514
  ...options,
554
515
  ...fnOptions,
555
- throwOnError: true,
516
+ throwOnError: true
556
517
  });
557
518
  return data;
558
- },
519
+ }
559
520
  };
560
521
  return mutationOptions;
561
522
  };
@@ -568,67 +529,61 @@ export const runAgentSseMutation = (options) => {
568
529
  const { data } = await runAgentSse({
569
530
  ...options,
570
531
  ...fnOptions,
571
- throwOnError: true,
532
+ throwOnError: true
572
533
  });
573
534
  return data;
574
- },
535
+ }
575
536
  };
576
537
  return mutationOptions;
577
538
  };
578
- export const debugGetEventGraphQueryKey = (options) => createQueryKey("debugGetEventGraph", options);
539
+ export const debugGetEventGraphQueryKey = (options) => createQueryKey('debugGetEventGraph', options);
579
540
  /**
580
541
  * Get Event Graph
581
542
  */
582
- export const debugGetEventGraphOptions = (options) => {
583
- return queryOptions({
584
- queryFn: async ({ queryKey, signal }) => {
585
- const { data } = await debugGetEventGraph({
586
- ...options,
587
- ...queryKey[0],
588
- signal,
589
- throwOnError: true,
590
- });
591
- return data;
592
- },
593
- queryKey: debugGetEventGraphQueryKey(options),
594
- });
595
- };
596
- export const redirectRootToDevUiQueryKey = (options) => createQueryKey("redirectRootToDevUi", options);
543
+ export const debugGetEventGraphOptions = (options) => queryOptions({
544
+ queryFn: async ({ queryKey, signal }) => {
545
+ const { data } = await debugGetEventGraph({
546
+ ...options,
547
+ ...queryKey[0],
548
+ signal,
549
+ throwOnError: true
550
+ });
551
+ return data;
552
+ },
553
+ queryKey: debugGetEventGraphQueryKey(options)
554
+ });
555
+ export const redirectRootToDevUiQueryKey = (options) => createQueryKey('redirectRootToDevUi', options);
597
556
  /**
598
557
  * Redirect Root To Dev Ui
599
558
  */
600
- export const redirectRootToDevUiOptions = (options) => {
601
- return queryOptions({
602
- queryFn: async ({ queryKey, signal }) => {
603
- const { data } = await redirectRootToDevUi({
604
- ...options,
605
- ...queryKey[0],
606
- signal,
607
- throwOnError: true,
608
- });
609
- return data;
610
- },
611
- queryKey: redirectRootToDevUiQueryKey(options),
612
- });
613
- };
614
- export const redirectDevUiAddSlashQueryKey = (options) => createQueryKey("redirectDevUiAddSlash", options);
559
+ export const redirectRootToDevUiOptions = (options) => queryOptions({
560
+ queryFn: async ({ queryKey, signal }) => {
561
+ const { data } = await redirectRootToDevUi({
562
+ ...options,
563
+ ...queryKey[0],
564
+ signal,
565
+ throwOnError: true
566
+ });
567
+ return data;
568
+ },
569
+ queryKey: redirectRootToDevUiQueryKey(options)
570
+ });
571
+ export const redirectDevUiAddSlashQueryKey = (options) => createQueryKey('redirectDevUiAddSlash', options);
615
572
  /**
616
573
  * Redirect Dev Ui Add Slash
617
574
  */
618
- export const redirectDevUiAddSlashOptions = (options) => {
619
- return queryOptions({
620
- queryFn: async ({ queryKey, signal }) => {
621
- const { data } = await redirectDevUiAddSlash({
622
- ...options,
623
- ...queryKey[0],
624
- signal,
625
- throwOnError: true,
626
- });
627
- return data;
628
- },
629
- queryKey: redirectDevUiAddSlashQueryKey(options),
630
- });
631
- };
575
+ export const redirectDevUiAddSlashOptions = (options) => queryOptions({
576
+ queryFn: async ({ queryKey, signal }) => {
577
+ const { data } = await redirectDevUiAddSlash({
578
+ ...options,
579
+ ...queryKey[0],
580
+ signal,
581
+ throwOnError: true
582
+ });
583
+ return data;
584
+ },
585
+ queryKey: redirectDevUiAddSlashQueryKey(options)
586
+ });
632
587
  /**
633
588
  * Builder Build
634
589
  */
@@ -638,51 +593,47 @@ export const builderBuildMutation = (options) => {
638
593
  const { data } = await builderBuild({
639
594
  ...options,
640
595
  ...fnOptions,
641
- throwOnError: true,
596
+ throwOnError: true
642
597
  });
643
598
  return data;
644
- },
599
+ }
645
600
  };
646
601
  return mutationOptions;
647
602
  };
648
- export const getAgentBuilderQueryKey = (options) => createQueryKey("getAgentBuilder", options);
603
+ export const getAgentBuilderQueryKey = (options) => createQueryKey('getAgentBuilder', options);
649
604
  /**
650
605
  * Get Agent Builder
651
606
  */
652
- export const getAgentBuilderOptions = (options) => {
653
- return queryOptions({
654
- queryFn: async ({ queryKey, signal }) => {
655
- const { data } = await getAgentBuilder({
656
- ...options,
657
- ...queryKey[0],
658
- signal,
659
- throwOnError: true,
660
- });
661
- return data;
662
- },
663
- queryKey: getAgentBuilderQueryKey(options),
664
- });
665
- };
666
- export const chatAgentGetChatConfigQueryKey = (options) => createQueryKey("chatAgentGetChatConfig", options);
607
+ export const getAgentBuilderOptions = (options) => queryOptions({
608
+ queryFn: async ({ queryKey, signal }) => {
609
+ const { data } = await getAgentBuilder({
610
+ ...options,
611
+ ...queryKey[0],
612
+ signal,
613
+ throwOnError: true
614
+ });
615
+ return data;
616
+ },
617
+ queryKey: getAgentBuilderQueryKey(options)
618
+ });
619
+ export const chatAgentGetChatConfigQueryKey = (options) => createQueryKey('chatAgentGetChatConfig', options);
667
620
  /**
668
621
  * Get Chat Config
669
622
  *
670
623
  * 获取当前聊天配置
671
624
  */
672
- export const chatAgentGetChatConfigOptions = (options) => {
673
- return queryOptions({
674
- queryFn: async ({ queryKey, signal }) => {
675
- const { data } = await chatAgentGetChatConfig({
676
- ...options,
677
- ...queryKey[0],
678
- signal,
679
- throwOnError: true,
680
- });
681
- return data;
682
- },
683
- queryKey: chatAgentGetChatConfigQueryKey(options),
684
- });
685
- };
625
+ export const chatAgentGetChatConfigOptions = (options) => queryOptions({
626
+ queryFn: async ({ queryKey, signal }) => {
627
+ const { data } = await chatAgentGetChatConfig({
628
+ ...options,
629
+ ...queryKey[0],
630
+ signal,
631
+ throwOnError: true
632
+ });
633
+ return data;
634
+ },
635
+ queryKey: chatAgentGetChatConfigQueryKey(options)
636
+ });
686
637
  /**
687
638
  * Update Chat Config
688
639
  *
@@ -694,33 +645,31 @@ export const chatAgentUpdateChatConfigMutation = (options) => {
694
645
  const { data } = await chatAgentUpdateChatConfig({
695
646
  ...options,
696
647
  ...fnOptions,
697
- throwOnError: true,
648
+ throwOnError: true
698
649
  });
699
650
  return data;
700
- },
651
+ }
701
652
  };
702
653
  return mutationOptions;
703
654
  };
704
- export const chatAgentGetProvidersQueryKey = (options) => createQueryKey("chatAgentGetProviders", options);
655
+ export const chatAgentGetProvidersQueryKey = (options) => createQueryKey('chatAgentGetProviders', options);
705
656
  /**
706
657
  * Get Providers
707
658
  *
708
659
  * 获取所有可用的AI提供商
709
660
  */
710
- export const chatAgentGetProvidersOptions = (options) => {
711
- return queryOptions({
712
- queryFn: async ({ queryKey, signal }) => {
713
- const { data } = await chatAgentGetProviders({
714
- ...options,
715
- ...queryKey[0],
716
- signal,
717
- throwOnError: true,
718
- });
719
- return data;
720
- },
721
- queryKey: chatAgentGetProvidersQueryKey(options),
722
- });
723
- };
661
+ export const chatAgentGetProvidersOptions = (options) => queryOptions({
662
+ queryFn: async ({ queryKey, signal }) => {
663
+ const { data } = await chatAgentGetProviders({
664
+ ...options,
665
+ ...queryKey[0],
666
+ signal,
667
+ throwOnError: true
668
+ });
669
+ return data;
670
+ },
671
+ queryKey: chatAgentGetProvidersQueryKey(options)
672
+ });
724
673
  /**
725
674
  * Validate Api Key
726
675
  *
@@ -732,33 +681,31 @@ export const chatAgentValidateApiKeyMutation = (options) => {
732
681
  const { data } = await chatAgentValidateApiKey({
733
682
  ...options,
734
683
  ...fnOptions,
735
- throwOnError: true,
684
+ throwOnError: true
736
685
  });
737
686
  return data;
738
- },
687
+ }
739
688
  };
740
689
  return mutationOptions;
741
690
  };
742
- export const chatAgentExportConfigQueryKey = (options) => createQueryKey("chatAgentExportConfig", options);
691
+ export const chatAgentExportConfigQueryKey = (options) => createQueryKey('chatAgentExportConfig', options);
743
692
  /**
744
693
  * Export Config
745
694
  *
746
695
  * 导出AI配置
747
696
  */
748
- export const chatAgentExportConfigOptions = (options) => {
749
- return queryOptions({
750
- queryFn: async ({ queryKey, signal }) => {
751
- const { data } = await chatAgentExportConfig({
752
- ...options,
753
- ...queryKey[0],
754
- signal,
755
- throwOnError: true,
756
- });
757
- return data;
758
- },
759
- queryKey: chatAgentExportConfigQueryKey(options),
760
- });
761
- };
697
+ export const chatAgentExportConfigOptions = (options) => queryOptions({
698
+ queryFn: async ({ queryKey, signal }) => {
699
+ const { data } = await chatAgentExportConfig({
700
+ ...options,
701
+ ...queryKey[0],
702
+ signal,
703
+ throwOnError: true
704
+ });
705
+ return data;
706
+ },
707
+ queryKey: chatAgentExportConfigQueryKey(options)
708
+ });
762
709
  /**
763
710
  * Import Config
764
711
  *
@@ -770,10 +717,10 @@ export const chatAgentImportConfigMutation = (options) => {
770
717
  const { data } = await chatAgentImportConfig({
771
718
  ...options,
772
719
  ...fnOptions,
773
- throwOnError: true,
720
+ throwOnError: true
774
721
  });
775
722
  return data;
776
- },
723
+ }
777
724
  };
778
725
  return mutationOptions;
779
726
  };
@@ -788,14 +735,14 @@ export const chatAgentChatMutation = (options) => {
788
735
  const { data } = await chatAgentChat({
789
736
  ...options,
790
737
  ...fnOptions,
791
- throwOnError: true,
738
+ throwOnError: true
792
739
  });
793
740
  return data;
794
- },
741
+ }
795
742
  };
796
743
  return mutationOptions;
797
744
  };
798
- export const listItemsQueryKey = (options) => createQueryKey("listItems", options);
745
+ export const listItemsQueryKey = (options) => createQueryKey('listItems', options);
799
746
  /**
800
747
  * List Items
801
748
  *
@@ -803,20 +750,18 @@ export const listItemsQueryKey = (options) => createQueryKey("listItems", option
803
750
  *
804
751
  * Returns a list of items, with pagination support.
805
752
  */
806
- export const listItemsOptions = (options) => {
807
- return queryOptions({
808
- queryFn: async ({ queryKey, signal }) => {
809
- const { data } = await listItems({
810
- ...options,
811
- ...queryKey[0],
812
- signal,
813
- throwOnError: true,
814
- });
815
- return data;
816
- },
817
- queryKey: listItemsQueryKey(options),
818
- });
819
- };
753
+ export const listItemsOptions = (options) => queryOptions({
754
+ queryFn: async ({ queryKey, signal }) => {
755
+ const { data } = await listItems({
756
+ ...options,
757
+ ...queryKey[0],
758
+ signal,
759
+ throwOnError: true
760
+ });
761
+ return data;
762
+ },
763
+ queryKey: listItemsQueryKey(options)
764
+ });
820
765
  /**
821
766
  * Create Item
822
767
  *
@@ -830,10 +775,10 @@ export const createItemMutation = (options) => {
830
775
  const { data } = await createItem({
831
776
  ...options,
832
777
  ...fnOptions,
833
- throwOnError: true,
778
+ throwOnError: true
834
779
  });
835
780
  return data;
836
- },
781
+ }
837
782
  };
838
783
  return mutationOptions;
839
784
  };
@@ -850,14 +795,14 @@ export const deleteItemMutation = (options) => {
850
795
  const { data } = await deleteItem({
851
796
  ...options,
852
797
  ...fnOptions,
853
- throwOnError: true,
798
+ throwOnError: true
854
799
  });
855
800
  return data;
856
- },
801
+ }
857
802
  };
858
803
  return mutationOptions;
859
804
  };
860
- export const getItemQueryKey = (options) => createQueryKey("getItem", options);
805
+ export const getItemQueryKey = (options) => createQueryKey('getItem', options);
861
806
  /**
862
807
  * Read Item
863
808
  *
@@ -865,20 +810,18 @@ export const getItemQueryKey = (options) => createQueryKey("getItem", options);
865
810
  *
866
811
  * Raises a 404 error if the item does not exist.
867
812
  */
868
- export const getItemOptions = (options) => {
869
- return queryOptions({
870
- queryFn: async ({ queryKey, signal }) => {
871
- const { data } = await getItem({
872
- ...options,
873
- ...queryKey[0],
874
- signal,
875
- throwOnError: true,
876
- });
877
- return data;
878
- },
879
- queryKey: getItemQueryKey(options),
880
- });
881
- };
813
+ export const getItemOptions = (options) => queryOptions({
814
+ queryFn: async ({ queryKey, signal }) => {
815
+ const { data } = await getItem({
816
+ ...options,
817
+ ...queryKey[0],
818
+ signal,
819
+ throwOnError: true
820
+ });
821
+ return data;
822
+ },
823
+ queryKey: getItemQueryKey(options)
824
+ });
882
825
  /**
883
826
  * Update Item
884
827
  *
@@ -892,14 +835,14 @@ export const updateItemMutation = (options) => {
892
835
  const { data } = await updateItem({
893
836
  ...options,
894
837
  ...fnOptions,
895
- throwOnError: true,
838
+ throwOnError: true
896
839
  });
897
840
  return data;
898
- },
841
+ }
899
842
  };
900
843
  return mutationOptions;
901
844
  };
902
- export const searchItemsQueryKey = (options) => createQueryKey("searchItems", options);
845
+ export const searchItemsQueryKey = (options) => createQueryKey('searchItems', options);
903
846
  /**
904
847
  * Search Items
905
848
  *
@@ -907,20 +850,18 @@ export const searchItemsQueryKey = (options) => createQueryKey("searchItems", op
907
850
  *
908
851
  * Returns a list of items that match the search criteria.
909
852
  */
910
- export const searchItemsOptions = (options) => {
911
- return queryOptions({
912
- queryFn: async ({ queryKey, signal }) => {
913
- const { data } = await searchItems({
914
- ...options,
915
- ...queryKey[0],
916
- signal,
917
- throwOnError: true,
918
- });
919
- return data;
920
- },
921
- queryKey: searchItemsQueryKey(options),
922
- });
923
- };
853
+ export const searchItemsOptions = (options) => queryOptions({
854
+ queryFn: async ({ queryKey, signal }) => {
855
+ const { data } = await searchItems({
856
+ ...options,
857
+ ...queryKey[0],
858
+ signal,
859
+ throwOnError: true
860
+ });
861
+ return data;
862
+ },
863
+ queryKey: searchItemsQueryKey(options)
864
+ });
924
865
  /**
925
866
  * Agentrun
926
867
  */
@@ -930,10 +871,10 @@ export const agentsAgentrunMutation = (options) => {
930
871
  const { data } = await agentsAgentrun({
931
872
  ...options,
932
873
  ...fnOptions,
933
- throwOnError: true,
874
+ throwOnError: true
934
875
  });
935
876
  return data;
936
- },
877
+ }
937
878
  };
938
879
  return mutationOptions;
939
880
  };
@@ -948,10 +889,10 @@ export const sandboxStartNapcatSandboxMutation = (options) => {
948
889
  const { data } = await sandboxStartNapcatSandbox({
949
890
  ...options,
950
891
  ...fnOptions,
951
- throwOnError: true,
892
+ throwOnError: true
952
893
  });
953
894
  return data;
954
- },
895
+ }
955
896
  };
956
897
  return mutationOptions;
957
898
  };
@@ -966,10 +907,10 @@ export const sandboxCheckSandboxStatusMutation = (options) => {
966
907
  const { data } = await sandboxCheckSandboxStatus({
967
908
  ...options,
968
909
  ...fnOptions,
969
- throwOnError: true,
910
+ throwOnError: true
970
911
  });
971
912
  return data;
972
- },
913
+ }
973
914
  };
974
915
  return mutationOptions;
975
916
  };