mtmsdk 0.0.11 → 0.0.13

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 (410) hide show
  1. package/dist/components/MustAdmin.d.ts +14 -0
  2. package/dist/components/MustAdmin.d.ts.map +1 -0
  3. package/dist/components/MustAdmin.js +37 -0
  4. package/dist/components/MustAdmin.js.map +1 -0
  5. package/dist/gomtmapi/@tanstack/react-query.gen.d.ts +137 -2073
  6. package/dist/gomtmapi/@tanstack/react-query.gen.d.ts.map +1 -1
  7. package/dist/gomtmapi/@tanstack/react-query.gen.js +118 -2085
  8. package/dist/gomtmapi/@tanstack/react-query.gen.js.map +1 -1
  9. package/dist/gomtmapi/client/client.gen.d.ts +3 -0
  10. package/dist/gomtmapi/client/client.gen.d.ts.map +1 -0
  11. package/dist/{gomtmapi_v2/client/client.js → gomtmapi/client/client.gen.js} +82 -23
  12. package/dist/gomtmapi/client/client.gen.js.map +1 -0
  13. package/dist/gomtmapi/client/index.d.ts +7 -7
  14. package/dist/gomtmapi/client/index.d.ts.map +1 -1
  15. package/dist/gomtmapi/client/index.js +5 -4
  16. package/dist/gomtmapi/client/index.js.map +1 -1
  17. package/dist/gomtmapi/client/{types.d.ts → types.gen.d.ts} +19 -14
  18. package/dist/gomtmapi/client/types.gen.d.ts.map +1 -0
  19. package/dist/gomtmapi/client/types.gen.js +3 -0
  20. package/dist/gomtmapi/client/types.gen.js.map +1 -0
  21. package/dist/gomtmapi/client/{utils.d.ts → utils.gen.d.ts} +9 -21
  22. package/dist/gomtmapi/client/utils.gen.d.ts.map +1 -0
  23. package/dist/{gomtmapi_v2/client/utils.js → gomtmapi/client/utils.gen.js} +56 -110
  24. package/dist/gomtmapi/client/utils.gen.js.map +1 -0
  25. package/dist/gomtmapi/client.gen.d.ts +3 -3
  26. package/dist/gomtmapi/client.gen.d.ts.map +1 -1
  27. package/dist/gomtmapi/client.gen.js.map +1 -1
  28. package/dist/gomtmapi/core/{auth.d.ts → auth.gen.d.ts} +1 -1
  29. package/dist/gomtmapi/core/auth.gen.d.ts.map +1 -0
  30. package/dist/gomtmapi/core/{auth.js → auth.gen.js} +2 -1
  31. package/dist/gomtmapi/core/auth.gen.js.map +1 -0
  32. package/dist/{mtgate_api/core/bodySerializer.d.ts → gomtmapi/core/bodySerializer.gen.d.ts} +2 -2
  33. package/dist/gomtmapi/core/bodySerializer.gen.d.ts.map +1 -0
  34. package/dist/{mtgate_api/core/bodySerializer.js → gomtmapi/core/bodySerializer.gen.js} +5 -1
  35. package/dist/gomtmapi/core/bodySerializer.gen.js.map +1 -0
  36. package/dist/{mtgate_api/core/params.d.ts → gomtmapi/core/params.gen.d.ts} +11 -1
  37. package/dist/gomtmapi/core/params.gen.d.ts.map +1 -0
  38. package/dist/gomtmapi/core/{params.js → params.gen.js} +2 -1
  39. package/dist/gomtmapi/core/params.gen.js.map +1 -0
  40. package/dist/{mtgate_api/core/pathSerializer.d.ts → gomtmapi/core/pathSerializer.gen.d.ts} +1 -1
  41. package/dist/gomtmapi/core/pathSerializer.gen.d.ts.map +1 -0
  42. package/dist/gomtmapi/core/{pathSerializer.js → pathSerializer.gen.js} +2 -1
  43. package/dist/gomtmapi/core/pathSerializer.gen.js.map +1 -0
  44. package/dist/gomtmapi/core/serverSentEvents.gen.d.ts +72 -0
  45. package/dist/gomtmapi/core/serverSentEvents.gen.d.ts.map +1 -0
  46. package/dist/gomtmapi/core/serverSentEvents.gen.js +136 -0
  47. package/dist/gomtmapi/core/serverSentEvents.gen.js.map +1 -0
  48. package/dist/{mtgate_api/core/types.d.ts → gomtmapi/core/types.gen.d.ts} +20 -15
  49. package/dist/gomtmapi/core/types.gen.d.ts.map +1 -0
  50. package/dist/gomtmapi/core/types.gen.js +3 -0
  51. package/dist/gomtmapi/core/types.gen.js.map +1 -0
  52. package/dist/gomtmapi/core/utils.gen.d.ts +20 -0
  53. package/dist/gomtmapi/core/utils.gen.d.ts.map +1 -0
  54. package/dist/gomtmapi/core/utils.gen.js +88 -0
  55. package/dist/gomtmapi/core/utils.gen.js.map +1 -0
  56. package/dist/gomtmapi/index.d.ts.map +1 -1
  57. package/dist/gomtmapi/index.js.map +1 -1
  58. package/dist/gomtmapi/schemas.gen.d.ts +806 -3746
  59. package/dist/gomtmapi/schemas.gen.d.ts.map +1 -1
  60. package/dist/gomtmapi/schemas.gen.js +780 -3827
  61. package/dist/gomtmapi/schemas.gen.js.map +1 -1
  62. package/dist/gomtmapi/sdk.gen.d.ts +3 -306
  63. package/dist/gomtmapi/sdk.gen.d.ts.map +1 -1
  64. package/dist/gomtmapi/sdk.gen.js +53 -1338
  65. package/dist/gomtmapi/sdk.gen.js.map +1 -1
  66. package/dist/gomtmapi/types.gen.d.ts +1186 -5364
  67. package/dist/gomtmapi/types.gen.d.ts.map +1 -1
  68. package/dist/gomtmapi/types.gen.js +8 -45
  69. package/dist/gomtmapi/types.gen.js.map +1 -1
  70. package/dist/gomtmapi/zod.gen.d.ts +1371 -4628
  71. package/dist/gomtmapi/zod.gen.d.ts.map +1 -1
  72. package/dist/gomtmapi/zod.gen.js +565 -2224
  73. package/dist/gomtmapi/zod.gen.js.map +1 -1
  74. package/dist/gomtmapi_v2/@tanstack/react-query.gen.d.ts +286 -823
  75. package/dist/gomtmapi_v2/@tanstack/react-query.gen.d.ts.map +1 -1
  76. package/dist/gomtmapi_v2/@tanstack/react-query.gen.js +226 -787
  77. package/dist/gomtmapi_v2/@tanstack/react-query.gen.js.map +1 -1
  78. package/dist/gomtmapi_v2/client/client.gen.d.ts +3 -0
  79. package/dist/gomtmapi_v2/client/client.gen.d.ts.map +1 -0
  80. package/dist/{mtgate_api/client/client.js → gomtmapi_v2/client/client.gen.js} +82 -23
  81. package/dist/gomtmapi_v2/client/client.gen.js.map +1 -0
  82. package/dist/gomtmapi_v2/client/index.d.ts +7 -7
  83. package/dist/gomtmapi_v2/client/index.d.ts.map +1 -1
  84. package/dist/gomtmapi_v2/client/index.js +5 -4
  85. package/dist/gomtmapi_v2/client/index.js.map +1 -1
  86. package/dist/{mtgate_api/client/types.d.ts → gomtmapi_v2/client/types.gen.d.ts} +19 -14
  87. package/dist/gomtmapi_v2/client/types.gen.d.ts.map +1 -0
  88. package/dist/gomtmapi_v2/client/types.gen.js +3 -0
  89. package/dist/gomtmapi_v2/client/types.gen.js.map +1 -0
  90. package/dist/{mtgate_api/client/utils.d.ts → gomtmapi_v2/client/utils.gen.d.ts} +9 -21
  91. package/dist/gomtmapi_v2/client/utils.gen.d.ts.map +1 -0
  92. package/dist/{gomtmapi/client/utils.js → gomtmapi_v2/client/utils.gen.js} +56 -110
  93. package/dist/gomtmapi_v2/client/utils.gen.js.map +1 -0
  94. package/dist/gomtmapi_v2/client.gen.d.ts +3 -3
  95. package/dist/gomtmapi_v2/client.gen.d.ts.map +1 -1
  96. package/dist/gomtmapi_v2/client.gen.js.map +1 -1
  97. package/dist/{mtmai_api/core/auth.d.ts → gomtmapi_v2/core/auth.gen.d.ts} +1 -1
  98. package/dist/gomtmapi_v2/core/auth.gen.d.ts.map +1 -0
  99. package/dist/{mtmai_api/core/auth.js → gomtmapi_v2/core/auth.gen.js} +2 -1
  100. package/dist/gomtmapi_v2/core/auth.gen.js.map +1 -0
  101. package/dist/gomtmapi_v2/core/{bodySerializer.d.ts → bodySerializer.gen.d.ts} +2 -2
  102. package/dist/gomtmapi_v2/core/bodySerializer.gen.d.ts.map +1 -0
  103. package/dist/{gomtmapi/core/bodySerializer.js → gomtmapi_v2/core/bodySerializer.gen.js} +5 -1
  104. package/dist/gomtmapi_v2/core/bodySerializer.gen.js.map +1 -0
  105. package/dist/gomtmapi_v2/core/{params.d.ts → params.gen.d.ts} +11 -1
  106. package/dist/gomtmapi_v2/core/params.gen.d.ts.map +1 -0
  107. package/dist/{mtgate_api/core/params.js → gomtmapi_v2/core/params.gen.js} +2 -1
  108. package/dist/gomtmapi_v2/core/params.gen.js.map +1 -0
  109. package/dist/{mtmai_api/core/pathSerializer.d.ts → gomtmapi_v2/core/pathSerializer.gen.d.ts} +1 -1
  110. package/dist/gomtmapi_v2/core/pathSerializer.gen.d.ts.map +1 -0
  111. package/dist/{mtgate_api/core/pathSerializer.js → gomtmapi_v2/core/pathSerializer.gen.js} +2 -1
  112. package/dist/gomtmapi_v2/core/pathSerializer.gen.js.map +1 -0
  113. package/dist/gomtmapi_v2/core/serverSentEvents.gen.d.ts +72 -0
  114. package/dist/gomtmapi_v2/core/serverSentEvents.gen.d.ts.map +1 -0
  115. package/dist/gomtmapi_v2/core/serverSentEvents.gen.js +136 -0
  116. package/dist/gomtmapi_v2/core/serverSentEvents.gen.js.map +1 -0
  117. package/dist/{mtmai_api/core/types.d.ts → gomtmapi_v2/core/types.gen.d.ts} +20 -15
  118. package/dist/gomtmapi_v2/core/types.gen.d.ts.map +1 -0
  119. package/dist/gomtmapi_v2/core/types.gen.js +3 -0
  120. package/dist/gomtmapi_v2/core/types.gen.js.map +1 -0
  121. package/dist/gomtmapi_v2/core/utils.gen.d.ts +20 -0
  122. package/dist/gomtmapi_v2/core/utils.gen.d.ts.map +1 -0
  123. package/dist/gomtmapi_v2/core/utils.gen.js +88 -0
  124. package/dist/gomtmapi_v2/core/utils.gen.js.map +1 -0
  125. package/dist/gomtmapi_v2/index.d.ts +1 -1
  126. package/dist/gomtmapi_v2/index.d.ts.map +1 -1
  127. package/dist/gomtmapi_v2/index.js +0 -1
  128. package/dist/gomtmapi_v2/index.js.map +1 -1
  129. package/dist/gomtmapi_v2/schemas.gen.d.ts +317 -222
  130. package/dist/gomtmapi_v2/schemas.gen.d.ts.map +1 -1
  131. package/dist/gomtmapi_v2/schemas.gen.js +317 -222
  132. package/dist/gomtmapi_v2/schemas.gen.js.map +1 -1
  133. package/dist/gomtmapi_v2/sdk.gen.d.ts +142 -156
  134. package/dist/gomtmapi_v2/sdk.gen.d.ts.map +1 -1
  135. package/dist/gomtmapi_v2/sdk.gen.js +210 -233
  136. package/dist/gomtmapi_v2/sdk.gen.js.map +1 -1
  137. package/dist/gomtmapi_v2/types.gen.d.ts +188 -195
  138. package/dist/gomtmapi_v2/types.gen.d.ts.map +1 -1
  139. package/dist/gomtmapi_v2/zod.gen.d.ts +474 -428
  140. package/dist/gomtmapi_v2/zod.gen.d.ts.map +1 -1
  141. package/dist/gomtmapi_v2/zod.gen.js +892 -1054
  142. package/dist/gomtmapi_v2/zod.gen.js.map +1 -1
  143. package/dist/lib/adk-utils.d.ts +0 -5
  144. package/dist/lib/adk-utils.d.ts.map +1 -1
  145. package/dist/lib/adk-utils.js +31 -32
  146. package/dist/lib/adk-utils.js.map +1 -1
  147. package/dist/lib/auth-client.d.ts +5965 -0
  148. package/dist/lib/auth-client.d.ts.map +1 -0
  149. package/dist/lib/auth-client.js +29 -0
  150. package/dist/lib/auth-client.js.map +1 -0
  151. package/dist/lib/get-query-client.d.ts.map +1 -1
  152. package/dist/lib/get-query-client.js +1 -21
  153. package/dist/lib/get-query-client.js.map +1 -1
  154. package/dist/lib/mtgate_client_ss.d.ts +10 -0
  155. package/dist/lib/mtgate_client_ss.d.ts.map +1 -0
  156. package/dist/lib/mtgate_client_ss.js +24 -0
  157. package/dist/lib/mtgate_client_ss.js.map +1 -0
  158. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts +367 -2123
  159. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts.map +1 -1
  160. package/dist/mtgate_api/@tanstack/react-query.gen.js +142 -1018
  161. package/dist/mtgate_api/@tanstack/react-query.gen.js.map +1 -1
  162. package/dist/mtgate_api/client/client.gen.d.ts +3 -0
  163. package/dist/mtgate_api/client/client.gen.d.ts.map +1 -0
  164. package/dist/{gomtmapi/client/client.js → mtgate_api/client/client.gen.js} +82 -23
  165. package/dist/mtgate_api/client/client.gen.js.map +1 -0
  166. package/dist/mtgate_api/client/index.d.ts +7 -7
  167. package/dist/mtgate_api/client/index.d.ts.map +1 -1
  168. package/dist/mtgate_api/client/index.js +5 -4
  169. package/dist/mtgate_api/client/index.js.map +1 -1
  170. package/dist/{gomtmapi_v2/client/types.d.ts → mtgate_api/client/types.gen.d.ts} +19 -14
  171. package/dist/mtgate_api/client/types.gen.d.ts.map +1 -0
  172. package/dist/mtgate_api/client/types.gen.js +3 -0
  173. package/dist/mtgate_api/client/types.gen.js.map +1 -0
  174. package/dist/{mtmai_api/client/utils.d.ts → mtgate_api/client/utils.gen.d.ts} +9 -21
  175. package/dist/mtgate_api/client/utils.gen.d.ts.map +1 -0
  176. package/dist/mtgate_api/client/{utils.js → utils.gen.js} +56 -110
  177. package/dist/mtgate_api/client/utils.gen.js.map +1 -0
  178. package/dist/mtgate_api/client.gen.d.ts +3 -3
  179. package/dist/mtgate_api/client.gen.d.ts.map +1 -1
  180. package/dist/mtgate_api/client.gen.js.map +1 -1
  181. package/dist/{gomtmapi_v2/core/auth.d.ts → mtgate_api/core/auth.gen.d.ts} +1 -1
  182. package/dist/mtgate_api/core/auth.gen.d.ts.map +1 -0
  183. package/dist/mtgate_api/core/{auth.js → auth.gen.js} +2 -1
  184. package/dist/mtgate_api/core/auth.gen.js.map +1 -0
  185. package/dist/{gomtmapi/core/bodySerializer.d.ts → mtgate_api/core/bodySerializer.gen.d.ts} +2 -2
  186. package/dist/mtgate_api/core/bodySerializer.gen.d.ts.map +1 -0
  187. package/dist/{mtmai_api/core/bodySerializer.js → mtgate_api/core/bodySerializer.gen.js} +5 -1
  188. package/dist/mtgate_api/core/bodySerializer.gen.js.map +1 -0
  189. package/dist/{mtmai_api/core/params.d.ts → mtgate_api/core/params.gen.d.ts} +11 -1
  190. package/dist/mtgate_api/core/params.gen.d.ts.map +1 -0
  191. package/dist/{gomtmapi_v2/core/params.js → mtgate_api/core/params.gen.js} +2 -1
  192. package/dist/mtgate_api/core/params.gen.js.map +1 -0
  193. package/dist/{gomtmapi_v2/core/pathSerializer.d.ts → mtgate_api/core/pathSerializer.gen.d.ts} +1 -1
  194. package/dist/mtgate_api/core/pathSerializer.gen.d.ts.map +1 -0
  195. package/dist/{gomtmapi_v2/core/pathSerializer.js → mtgate_api/core/pathSerializer.gen.js} +2 -1
  196. package/dist/mtgate_api/core/pathSerializer.gen.js.map +1 -0
  197. package/dist/mtgate_api/core/serverSentEvents.gen.d.ts +72 -0
  198. package/dist/mtgate_api/core/serverSentEvents.gen.d.ts.map +1 -0
  199. package/dist/mtgate_api/core/serverSentEvents.gen.js +136 -0
  200. package/dist/mtgate_api/core/serverSentEvents.gen.js.map +1 -0
  201. package/dist/{gomtmapi/core/types.d.ts → mtgate_api/core/types.gen.d.ts} +20 -15
  202. package/dist/mtgate_api/core/types.gen.d.ts.map +1 -0
  203. package/dist/mtgate_api/core/types.gen.js +3 -0
  204. package/dist/mtgate_api/core/types.gen.js.map +1 -0
  205. package/dist/mtgate_api/core/utils.gen.d.ts +20 -0
  206. package/dist/mtgate_api/core/utils.gen.d.ts.map +1 -0
  207. package/dist/mtgate_api/core/utils.gen.js +88 -0
  208. package/dist/mtgate_api/core/utils.gen.js.map +1 -0
  209. package/dist/mtgate_api/index.d.ts.map +1 -1
  210. package/dist/mtgate_api/index.js.map +1 -1
  211. package/dist/mtgate_api/schemas.gen.d.ts +206 -289
  212. package/dist/mtgate_api/schemas.gen.d.ts.map +1 -1
  213. package/dist/mtgate_api/schemas.gen.js +230 -307
  214. package/dist/mtgate_api/schemas.gen.js.map +1 -1
  215. package/dist/mtgate_api/sdk.gen.d.ts +20 -43
  216. package/dist/mtgate_api/sdk.gen.d.ts.map +1 -1
  217. package/dist/mtgate_api/sdk.gen.js +88 -234
  218. package/dist/mtgate_api/sdk.gen.js.map +1 -1
  219. package/dist/mtgate_api/types.gen.d.ts +383 -862
  220. package/dist/mtgate_api/types.gen.d.ts.map +1 -1
  221. package/dist/mtgate_api/types.gen.js.map +1 -1
  222. package/dist/mtgate_api/zod.gen.d.ts +607 -978
  223. package/dist/mtgate_api/zod.gen.d.ts.map +1 -1
  224. package/dist/mtgate_api/zod.gen.js +718 -1215
  225. package/dist/mtgate_api/zod.gen.js.map +1 -1
  226. package/dist/mtmai_api/@tanstack/react-query.gen.d.ts +115 -475
  227. package/dist/mtmai_api/@tanstack/react-query.gen.d.ts.map +1 -1
  228. package/dist/mtmai_api/@tanstack/react-query.gen.js +55 -423
  229. package/dist/mtmai_api/@tanstack/react-query.gen.js.map +1 -1
  230. package/dist/mtmai_api/client/client.gen.d.ts +3 -0
  231. package/dist/mtmai_api/client/client.gen.d.ts.map +1 -0
  232. package/dist/mtmai_api/client/{client.js → client.gen.js} +82 -23
  233. package/dist/mtmai_api/client/client.gen.js.map +1 -0
  234. package/dist/mtmai_api/client/index.d.ts +7 -7
  235. package/dist/mtmai_api/client/index.d.ts.map +1 -1
  236. package/dist/mtmai_api/client/index.js +5 -4
  237. package/dist/mtmai_api/client/index.js.map +1 -1
  238. package/dist/mtmai_api/client/{types.d.ts → types.gen.d.ts} +19 -14
  239. package/dist/mtmai_api/client/types.gen.d.ts.map +1 -0
  240. package/dist/mtmai_api/client/types.gen.js +3 -0
  241. package/dist/mtmai_api/client/types.gen.js.map +1 -0
  242. package/dist/{gomtmapi_v2/client/utils.d.ts → mtmai_api/client/utils.gen.d.ts} +9 -21
  243. package/dist/mtmai_api/client/utils.gen.d.ts.map +1 -0
  244. package/dist/mtmai_api/client/{utils.js → utils.gen.js} +56 -110
  245. package/dist/mtmai_api/client/utils.gen.js.map +1 -0
  246. package/dist/mtmai_api/client.gen.d.ts +3 -3
  247. package/dist/mtmai_api/client.gen.d.ts.map +1 -1
  248. package/dist/mtmai_api/client.gen.js.map +1 -1
  249. package/dist/{mtgate_api/core/auth.d.ts → mtmai_api/core/auth.gen.d.ts} +1 -1
  250. package/dist/mtmai_api/core/auth.gen.d.ts.map +1 -0
  251. package/dist/{gomtmapi_v2/core/auth.js → mtmai_api/core/auth.gen.js} +2 -1
  252. package/dist/mtmai_api/core/auth.gen.js.map +1 -0
  253. package/dist/mtmai_api/core/{bodySerializer.d.ts → bodySerializer.gen.d.ts} +2 -2
  254. package/dist/mtmai_api/core/bodySerializer.gen.d.ts.map +1 -0
  255. package/dist/{gomtmapi_v2/core/bodySerializer.js → mtmai_api/core/bodySerializer.gen.js} +5 -1
  256. package/dist/mtmai_api/core/bodySerializer.gen.js.map +1 -0
  257. package/dist/{gomtmapi/core/params.d.ts → mtmai_api/core/params.gen.d.ts} +11 -1
  258. package/dist/mtmai_api/core/params.gen.d.ts.map +1 -0
  259. package/dist/mtmai_api/core/{params.js → params.gen.js} +2 -1
  260. package/dist/mtmai_api/core/params.gen.js.map +1 -0
  261. package/dist/{gomtmapi/core/pathSerializer.d.ts → mtmai_api/core/pathSerializer.gen.d.ts} +1 -1
  262. package/dist/mtmai_api/core/pathSerializer.gen.d.ts.map +1 -0
  263. package/dist/mtmai_api/core/{pathSerializer.js → pathSerializer.gen.js} +2 -1
  264. package/dist/mtmai_api/core/pathSerializer.gen.js.map +1 -0
  265. package/dist/mtmai_api/core/serverSentEvents.gen.d.ts +72 -0
  266. package/dist/mtmai_api/core/serverSentEvents.gen.d.ts.map +1 -0
  267. package/dist/mtmai_api/core/serverSentEvents.gen.js +136 -0
  268. package/dist/mtmai_api/core/serverSentEvents.gen.js.map +1 -0
  269. package/dist/{gomtmapi_v2/core/types.d.ts → mtmai_api/core/types.gen.d.ts} +20 -15
  270. package/dist/mtmai_api/core/types.gen.d.ts.map +1 -0
  271. package/dist/mtmai_api/core/types.gen.js +3 -0
  272. package/dist/mtmai_api/core/types.gen.js.map +1 -0
  273. package/dist/mtmai_api/core/utils.gen.d.ts +20 -0
  274. package/dist/mtmai_api/core/utils.gen.d.ts.map +1 -0
  275. package/dist/mtmai_api/core/utils.gen.js +88 -0
  276. package/dist/mtmai_api/core/utils.gen.js.map +1 -0
  277. package/dist/mtmai_api/index.d.ts.map +1 -1
  278. package/dist/mtmai_api/index.js.map +1 -1
  279. package/dist/mtmai_api/schemas.gen.d.ts +447 -90
  280. package/dist/mtmai_api/schemas.gen.d.ts.map +1 -1
  281. package/dist/mtmai_api/schemas.gen.js +561 -108
  282. package/dist/mtmai_api/schemas.gen.js.map +1 -1
  283. package/dist/mtmai_api/sdk.gen.d.ts +3 -8
  284. package/dist/mtmai_api/sdk.gen.d.ts.map +1 -1
  285. package/dist/mtmai_api/sdk.gen.js +53 -67
  286. package/dist/mtmai_api/sdk.gen.js.map +1 -1
  287. package/dist/mtmai_api/types.gen.d.ts +420 -208
  288. package/dist/mtmai_api/types.gen.d.ts.map +1 -1
  289. package/dist/mtmai_api/types.gen.js.map +1 -1
  290. package/dist/mtmai_api/zod.gen.d.ts +26092 -5524
  291. package/dist/mtmai_api/zod.gen.d.ts.map +1 -1
  292. package/dist/mtmai_api/zod.gen.js +1391 -1362
  293. package/dist/mtmai_api/zod.gen.js.map +1 -1
  294. package/dist/store/AuthProviders.d.ts +8 -0
  295. package/dist/store/AuthProviders.d.ts.map +1 -0
  296. package/dist/store/AuthProviders.js +34 -0
  297. package/dist/store/AuthProviders.js.map +1 -0
  298. package/dist/store/{ReactQueryApiV2Provider.d.ts → GomtmProvider.d.ts} +1 -1
  299. package/dist/store/GomtmProvider.d.ts.map +1 -0
  300. package/dist/store/{ReactQueryApiV2Provider.js → GomtmProvider.js} +2 -2
  301. package/dist/store/GomtmProvider.js.map +1 -0
  302. package/dist/store/{ReactQueryProvider.d.ts → GomtmV1Provider.d.ts} +1 -1
  303. package/dist/store/GomtmV1Provider.d.ts.map +1 -0
  304. package/dist/store/{ReactQueryProvider.js → GomtmV1Provider.js} +2 -2
  305. package/dist/store/GomtmV1Provider.js.map +1 -0
  306. package/dist/store/MtgateProvider.d.ts +6015 -0
  307. package/dist/store/MtgateProvider.d.ts.map +1 -0
  308. package/dist/store/MtgateProvider.js +76 -0
  309. package/dist/store/MtgateProvider.js.map +1 -0
  310. package/dist/store/MtmsdkProvider.d.ts +1 -0
  311. package/dist/store/MtmsdkProvider.d.ts.map +1 -1
  312. package/dist/store/MtmsdkProvider.js +10 -13
  313. package/dist/store/MtmsdkProvider.js.map +1 -1
  314. package/package.json +68 -72
  315. package/dist/gomtmapi/client/client.d.ts +0 -3
  316. package/dist/gomtmapi/client/client.d.ts.map +0 -1
  317. package/dist/gomtmapi/client/client.js.map +0 -1
  318. package/dist/gomtmapi/client/types.d.ts.map +0 -1
  319. package/dist/gomtmapi/client/types.js +0 -2
  320. package/dist/gomtmapi/client/types.js.map +0 -1
  321. package/dist/gomtmapi/client/utils.d.ts.map +0 -1
  322. package/dist/gomtmapi/client/utils.js.map +0 -1
  323. package/dist/gomtmapi/core/auth.d.ts.map +0 -1
  324. package/dist/gomtmapi/core/auth.js.map +0 -1
  325. package/dist/gomtmapi/core/bodySerializer.d.ts.map +0 -1
  326. package/dist/gomtmapi/core/bodySerializer.js.map +0 -1
  327. package/dist/gomtmapi/core/params.d.ts.map +0 -1
  328. package/dist/gomtmapi/core/params.js.map +0 -1
  329. package/dist/gomtmapi/core/pathSerializer.d.ts.map +0 -1
  330. package/dist/gomtmapi/core/pathSerializer.js.map +0 -1
  331. package/dist/gomtmapi/core/types.d.ts.map +0 -1
  332. package/dist/gomtmapi/core/types.js +0 -2
  333. package/dist/gomtmapi/core/types.js.map +0 -1
  334. package/dist/gomtmapi_v2/client/client.d.ts +0 -3
  335. package/dist/gomtmapi_v2/client/client.d.ts.map +0 -1
  336. package/dist/gomtmapi_v2/client/client.js.map +0 -1
  337. package/dist/gomtmapi_v2/client/types.d.ts.map +0 -1
  338. package/dist/gomtmapi_v2/client/types.js +0 -2
  339. package/dist/gomtmapi_v2/client/types.js.map +0 -1
  340. package/dist/gomtmapi_v2/client/utils.d.ts.map +0 -1
  341. package/dist/gomtmapi_v2/client/utils.js.map +0 -1
  342. package/dist/gomtmapi_v2/core/auth.d.ts.map +0 -1
  343. package/dist/gomtmapi_v2/core/auth.js.map +0 -1
  344. package/dist/gomtmapi_v2/core/bodySerializer.d.ts.map +0 -1
  345. package/dist/gomtmapi_v2/core/bodySerializer.js.map +0 -1
  346. package/dist/gomtmapi_v2/core/params.d.ts.map +0 -1
  347. package/dist/gomtmapi_v2/core/params.js.map +0 -1
  348. package/dist/gomtmapi_v2/core/pathSerializer.d.ts.map +0 -1
  349. package/dist/gomtmapi_v2/core/pathSerializer.js.map +0 -1
  350. package/dist/gomtmapi_v2/core/types.d.ts.map +0 -1
  351. package/dist/gomtmapi_v2/core/types.js +0 -2
  352. package/dist/gomtmapi_v2/core/types.js.map +0 -1
  353. package/dist/lib/constants.d.ts +0 -40
  354. package/dist/lib/constants.d.ts.map +0 -1
  355. package/dist/lib/constants.js +0 -40
  356. package/dist/lib/constants.js.map +0 -1
  357. package/dist/lib/d1-utils.d.ts +0 -5
  358. package/dist/lib/d1-utils.d.ts.map +0 -1
  359. package/dist/lib/d1-utils.js +0 -36
  360. package/dist/lib/d1-utils.js.map +0 -1
  361. package/dist/lib/mtmutils.d.ts +0 -2
  362. package/dist/lib/mtmutils.d.ts.map +0 -1
  363. package/dist/lib/mtmutils.js +0 -9
  364. package/dist/lib/mtmutils.js.map +0 -1
  365. package/dist/mtgate_api/client/client.d.ts +0 -3
  366. package/dist/mtgate_api/client/client.d.ts.map +0 -1
  367. package/dist/mtgate_api/client/client.js.map +0 -1
  368. package/dist/mtgate_api/client/types.d.ts.map +0 -1
  369. package/dist/mtgate_api/client/types.js +0 -2
  370. package/dist/mtgate_api/client/types.js.map +0 -1
  371. package/dist/mtgate_api/client/utils.d.ts.map +0 -1
  372. package/dist/mtgate_api/client/utils.js.map +0 -1
  373. package/dist/mtgate_api/core/auth.d.ts.map +0 -1
  374. package/dist/mtgate_api/core/auth.js.map +0 -1
  375. package/dist/mtgate_api/core/bodySerializer.d.ts.map +0 -1
  376. package/dist/mtgate_api/core/bodySerializer.js.map +0 -1
  377. package/dist/mtgate_api/core/params.d.ts.map +0 -1
  378. package/dist/mtgate_api/core/params.js.map +0 -1
  379. package/dist/mtgate_api/core/pathSerializer.d.ts.map +0 -1
  380. package/dist/mtgate_api/core/pathSerializer.js.map +0 -1
  381. package/dist/mtgate_api/core/types.d.ts.map +0 -1
  382. package/dist/mtgate_api/core/types.js +0 -2
  383. package/dist/mtgate_api/core/types.js.map +0 -1
  384. package/dist/mtmai_api/client/client.d.ts +0 -3
  385. package/dist/mtmai_api/client/client.d.ts.map +0 -1
  386. package/dist/mtmai_api/client/client.js.map +0 -1
  387. package/dist/mtmai_api/client/types.d.ts.map +0 -1
  388. package/dist/mtmai_api/client/types.js +0 -2
  389. package/dist/mtmai_api/client/types.js.map +0 -1
  390. package/dist/mtmai_api/client/utils.d.ts.map +0 -1
  391. package/dist/mtmai_api/client/utils.js.map +0 -1
  392. package/dist/mtmai_api/core/auth.d.ts.map +0 -1
  393. package/dist/mtmai_api/core/auth.js.map +0 -1
  394. package/dist/mtmai_api/core/bodySerializer.d.ts.map +0 -1
  395. package/dist/mtmai_api/core/bodySerializer.js.map +0 -1
  396. package/dist/mtmai_api/core/params.d.ts.map +0 -1
  397. package/dist/mtmai_api/core/params.js.map +0 -1
  398. package/dist/mtmai_api/core/pathSerializer.d.ts.map +0 -1
  399. package/dist/mtmai_api/core/pathSerializer.js.map +0 -1
  400. package/dist/mtmai_api/core/types.d.ts.map +0 -1
  401. package/dist/mtmai_api/core/types.js +0 -2
  402. package/dist/mtmai_api/core/types.js.map +0 -1
  403. package/dist/store/ReactQueryApiV2Provider.d.ts.map +0 -1
  404. package/dist/store/ReactQueryApiV2Provider.js.map +0 -1
  405. package/dist/store/ReactQueryCfApiProvider.d.ts +0 -9
  406. package/dist/store/ReactQueryCfApiProvider.d.ts.map +0 -1
  407. package/dist/store/ReactQueryCfApiProvider.js +0 -26
  408. package/dist/store/ReactQueryCfApiProvider.js.map +0 -1
  409. package/dist/store/ReactQueryProvider.d.ts.map +0 -1
  410. package/dist/store/ReactQueryProvider.js.map +0 -1
@@ -1,15 +1,18 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
- import { listApps, debugGetTraceDict, debugGetSessionTrace, deleteSession, getSession, createSessionWithId, listSessions, createSession, evaluationListEvalSets, evaluationCreateEvalSet, evaluationCreateEvalSetLegacy, evaluationListEvalSetsLegacy, evaluationAddSessionToEvalSet, evaluationListEvalsInEvalSet, evaluationDeleteEval, evaluationGetEval, evaluationUpdateEval, evaluationRunEvalLegacy, evaluationRunEval, evaluationGetEvalResult, evaluationGetEvalResultLegacy, evaluationListEvalResults, evaluationListEvalResultsLegacy, evaluationListMetricsInfo, deleteArtifact, loadArtifact, loadArtifactVersion, listArtifactNames, listArtifactVersions, runAgent, runAgentSse, debugGetEventGraph, redirectRootToDevUi, redirectDevUiAddSlash, builderBuild, getAgentBuilder, chatAgentGetChatConfig, chatAgentUpdateChatConfig, chatAgentGetProviders, chatAgentValidateApiKey, chatAgentExportConfig, chatAgentImportConfig, chatAgentChat, listItems, createItem, deleteItem, getItem, updateItem, searchItems, agentsAgentrun, demoDemo1, sandboxStartNapcatSandbox, sandboxCheckSandboxStatus, } from "../sdk.gen";
3
2
  import { queryOptions } from "@tanstack/react-query";
4
- import { client as _heyApiClient } from "../client.gen";
5
- const createQueryKey = (id, options, infinite) => {
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
+ const createQueryKey = (id, options, infinite, tags) => {
6
6
  const params = {
7
7
  _id: id,
8
- baseUrl: (options?.client ?? _heyApiClient).getConfig().baseUrl,
8
+ baseUrl: options?.baseUrl || (options?.client ?? client).getConfig().baseUrl,
9
9
  };
10
10
  if (infinite) {
11
11
  params._infinite = infinite;
12
12
  }
13
+ if (tags) {
14
+ params.tags = tags;
15
+ }
13
16
  if (options?.body) {
14
17
  params.body = options.body;
15
18
  }
@@ -83,10 +86,10 @@ export const debugGetSessionTraceOptions = (options) => {
83
86
  */
84
87
  export const deleteSessionMutation = (options) => {
85
88
  const mutationOptions = {
86
- mutationFn: async (localOptions) => {
89
+ mutationFn: async (fnOptions) => {
87
90
  const { data } = await deleteSession({
88
91
  ...options,
89
- ...localOptions,
92
+ ...fnOptions,
90
93
  throwOnError: true,
91
94
  });
92
95
  return data;
@@ -112,33 +115,15 @@ export const getSessionOptions = (options) => {
112
115
  queryKey: getSessionQueryKey(options),
113
116
  });
114
117
  };
115
- export const createSessionWithIdQueryKey = (options) => createQueryKey("createSessionWithId", options);
116
- /**
117
- * Create Session With Id
118
- */
119
- export const createSessionWithIdOptions = (options) => {
120
- return queryOptions({
121
- queryFn: async ({ queryKey, signal }) => {
122
- const { data } = await createSessionWithId({
123
- ...options,
124
- ...queryKey[0],
125
- signal,
126
- throwOnError: true,
127
- });
128
- return data;
129
- },
130
- queryKey: createSessionWithIdQueryKey(options),
131
- });
132
- };
133
118
  /**
134
119
  * Create Session With Id
135
120
  */
136
121
  export const createSessionWithIdMutation = (options) => {
137
122
  const mutationOptions = {
138
- mutationFn: async (localOptions) => {
123
+ mutationFn: async (fnOptions) => {
139
124
  const { data } = await createSessionWithId({
140
125
  ...options,
141
- ...localOptions,
126
+ ...fnOptions,
142
127
  throwOnError: true,
143
128
  });
144
129
  return data;
@@ -164,33 +149,15 @@ export const listSessionsOptions = (options) => {
164
149
  queryKey: listSessionsQueryKey(options),
165
150
  });
166
151
  };
167
- export const createSessionQueryKey = (options) => createQueryKey("createSession", options);
168
- /**
169
- * Create Session
170
- */
171
- export const createSessionOptions = (options) => {
172
- return queryOptions({
173
- queryFn: async ({ queryKey, signal }) => {
174
- const { data } = await createSession({
175
- ...options,
176
- ...queryKey[0],
177
- signal,
178
- throwOnError: true,
179
- });
180
- return data;
181
- },
182
- queryKey: createSessionQueryKey(options),
183
- });
184
- };
185
152
  /**
186
153
  * Create Session
187
154
  */
188
155
  export const createSessionMutation = (options) => {
189
156
  const mutationOptions = {
190
- mutationFn: async (localOptions) => {
157
+ mutationFn: async (fnOptions) => {
191
158
  const { data } = await createSession({
192
159
  ...options,
193
- ...localOptions,
160
+ ...fnOptions,
194
161
  throwOnError: true,
195
162
  });
196
163
  return data;
@@ -217,33 +184,15 @@ export const evaluationListEvalSetsOptions = (options) => {
217
184
  queryKey: evaluationListEvalSetsQueryKey(options),
218
185
  });
219
186
  };
220
- export const evaluationCreateEvalSetQueryKey = (options) => createQueryKey("evaluationCreateEvalSet", options);
221
- /**
222
- * Create Eval Set
223
- */
224
- export const evaluationCreateEvalSetOptions = (options) => {
225
- return queryOptions({
226
- queryFn: async ({ queryKey, signal }) => {
227
- const { data } = await evaluationCreateEvalSet({
228
- ...options,
229
- ...queryKey[0],
230
- signal,
231
- throwOnError: true,
232
- });
233
- return data;
234
- },
235
- queryKey: evaluationCreateEvalSetQueryKey(options),
236
- });
237
- };
238
187
  /**
239
188
  * Create Eval Set
240
189
  */
241
190
  export const evaluationCreateEvalSetMutation = (options) => {
242
191
  const mutationOptions = {
243
- mutationFn: async (localOptions) => {
192
+ mutationFn: async (fnOptions) => {
244
193
  const { data } = await evaluationCreateEvalSet({
245
194
  ...options,
246
- ...localOptions,
195
+ ...fnOptions,
247
196
  throwOnError: true,
248
197
  });
249
198
  return data;
@@ -251,35 +200,16 @@ export const evaluationCreateEvalSetMutation = (options) => {
251
200
  };
252
201
  return mutationOptions;
253
202
  };
254
- export const evaluationCreateEvalSetLegacyQueryKey = (options) => createQueryKey("evaluationCreateEvalSetLegacy", options);
255
- /**
256
- * Create Eval Set Legacy
257
- * Creates an eval set, given the id.
258
- */
259
- export const evaluationCreateEvalSetLegacyOptions = (options) => {
260
- return queryOptions({
261
- queryFn: async ({ queryKey, signal }) => {
262
- const { data } = await evaluationCreateEvalSetLegacy({
263
- ...options,
264
- ...queryKey[0],
265
- signal,
266
- throwOnError: true,
267
- });
268
- return data;
269
- },
270
- queryKey: evaluationCreateEvalSetLegacyQueryKey(options),
271
- });
272
- };
273
203
  /**
274
204
  * Create Eval Set Legacy
275
205
  * Creates an eval set, given the id.
276
206
  */
277
207
  export const evaluationCreateEvalSetLegacyMutation = (options) => {
278
208
  const mutationOptions = {
279
- mutationFn: async (localOptions) => {
209
+ mutationFn: async (fnOptions) => {
280
210
  const { data } = await evaluationCreateEvalSetLegacy({
281
211
  ...options,
282
- ...localOptions,
212
+ ...fnOptions,
283
213
  throwOnError: true,
284
214
  });
285
215
  return data;
@@ -305,33 +235,15 @@ export const evaluationListEvalSetsLegacyOptions = (options) => {
305
235
  queryKey: evaluationListEvalSetsLegacyQueryKey(options),
306
236
  });
307
237
  };
308
- export const evaluationAddSessionToEvalSetQueryKey = (options) => createQueryKey("evaluationAddSessionToEvalSet", options);
309
- /**
310
- * Add Session To Eval Set
311
- */
312
- export const evaluationAddSessionToEvalSetOptions = (options) => {
313
- return queryOptions({
314
- queryFn: async ({ queryKey, signal }) => {
315
- const { data } = await evaluationAddSessionToEvalSet({
316
- ...options,
317
- ...queryKey[0],
318
- signal,
319
- throwOnError: true,
320
- });
321
- return data;
322
- },
323
- queryKey: evaluationAddSessionToEvalSetQueryKey(options),
324
- });
325
- };
326
238
  /**
327
239
  * Add Session To Eval Set
328
240
  */
329
241
  export const evaluationAddSessionToEvalSetMutation = (options) => {
330
242
  const mutationOptions = {
331
- mutationFn: async (localOptions) => {
243
+ mutationFn: async (fnOptions) => {
332
244
  const { data } = await evaluationAddSessionToEvalSet({
333
245
  ...options,
334
- ...localOptions,
246
+ ...fnOptions,
335
247
  throwOnError: true,
336
248
  });
337
249
  return data;
@@ -363,10 +275,10 @@ export const evaluationListEvalsInEvalSetOptions = (options) => {
363
275
  */
364
276
  export const evaluationDeleteEvalMutation = (options) => {
365
277
  const mutationOptions = {
366
- mutationFn: async (localOptions) => {
278
+ mutationFn: async (fnOptions) => {
367
279
  const { data } = await evaluationDeleteEval({
368
280
  ...options,
369
- ...localOptions,
281
+ ...fnOptions,
370
282
  throwOnError: true,
371
283
  });
372
284
  return data;
@@ -398,10 +310,10 @@ export const evaluationGetEvalOptions = (options) => {
398
310
  */
399
311
  export const evaluationUpdateEvalMutation = (options) => {
400
312
  const mutationOptions = {
401
- mutationFn: async (localOptions) => {
313
+ mutationFn: async (fnOptions) => {
402
314
  const { data } = await evaluationUpdateEval({
403
315
  ...options,
404
- ...localOptions,
316
+ ...fnOptions,
405
317
  throwOnError: true,
406
318
  });
407
319
  return data;
@@ -409,33 +321,15 @@ export const evaluationUpdateEvalMutation = (options) => {
409
321
  };
410
322
  return mutationOptions;
411
323
  };
412
- export const evaluationRunEvalLegacyQueryKey = (options) => createQueryKey("evaluationRunEvalLegacy", options);
413
- /**
414
- * Run Eval Legacy
415
- */
416
- export const evaluationRunEvalLegacyOptions = (options) => {
417
- return queryOptions({
418
- queryFn: async ({ queryKey, signal }) => {
419
- const { data } = await evaluationRunEvalLegacy({
420
- ...options,
421
- ...queryKey[0],
422
- signal,
423
- throwOnError: true,
424
- });
425
- return data;
426
- },
427
- queryKey: evaluationRunEvalLegacyQueryKey(options),
428
- });
429
- };
430
324
  /**
431
325
  * Run Eval Legacy
432
326
  */
433
327
  export const evaluationRunEvalLegacyMutation = (options) => {
434
328
  const mutationOptions = {
435
- mutationFn: async (localOptions) => {
329
+ mutationFn: async (fnOptions) => {
436
330
  const { data } = await evaluationRunEvalLegacy({
437
331
  ...options,
438
- ...localOptions,
332
+ ...fnOptions,
439
333
  throwOnError: true,
440
334
  });
441
335
  return data;
@@ -443,35 +337,16 @@ export const evaluationRunEvalLegacyMutation = (options) => {
443
337
  };
444
338
  return mutationOptions;
445
339
  };
446
- export const evaluationRunEvalQueryKey = (options) => createQueryKey("evaluationRunEval", options);
447
- /**
448
- * Run Eval
449
- * Runs an eval given the details in the eval request.
450
- */
451
- export const evaluationRunEvalOptions = (options) => {
452
- return queryOptions({
453
- queryFn: async ({ queryKey, signal }) => {
454
- const { data } = await evaluationRunEval({
455
- ...options,
456
- ...queryKey[0],
457
- signal,
458
- throwOnError: true,
459
- });
460
- return data;
461
- },
462
- queryKey: evaluationRunEvalQueryKey(options),
463
- });
464
- };
465
340
  /**
466
341
  * Run Eval
467
342
  * Runs an eval given the details in the eval request.
468
343
  */
469
344
  export const evaluationRunEvalMutation = (options) => {
470
345
  const mutationOptions = {
471
- mutationFn: async (localOptions) => {
346
+ mutationFn: async (fnOptions) => {
472
347
  const { data } = await evaluationRunEval({
473
348
  ...options,
474
- ...localOptions,
349
+ ...fnOptions,
475
350
  throwOnError: true,
476
351
  });
477
352
  return data;
@@ -577,10 +452,10 @@ export const evaluationListMetricsInfoOptions = (options) => {
577
452
  */
578
453
  export const deleteArtifactMutation = (options) => {
579
454
  const mutationOptions = {
580
- mutationFn: async (localOptions) => {
455
+ mutationFn: async (fnOptions) => {
581
456
  const { data } = await deleteArtifact({
582
457
  ...options,
583
- ...localOptions,
458
+ ...fnOptions,
584
459
  throwOnError: true,
585
460
  });
586
461
  return data;
@@ -660,33 +535,15 @@ export const listArtifactVersionsOptions = (options) => {
660
535
  queryKey: listArtifactVersionsQueryKey(options),
661
536
  });
662
537
  };
663
- export const runAgentQueryKey = (options) => createQueryKey("runAgent", options);
664
- /**
665
- * Run Agent
666
- */
667
- export const runAgentOptions = (options) => {
668
- return queryOptions({
669
- queryFn: async ({ queryKey, signal }) => {
670
- const { data } = await runAgent({
671
- ...options,
672
- ...queryKey[0],
673
- signal,
674
- throwOnError: true,
675
- });
676
- return data;
677
- },
678
- queryKey: runAgentQueryKey(options),
679
- });
680
- };
681
538
  /**
682
539
  * Run Agent
683
540
  */
684
541
  export const runAgentMutation = (options) => {
685
542
  const mutationOptions = {
686
- mutationFn: async (localOptions) => {
543
+ mutationFn: async (fnOptions) => {
687
544
  const { data } = await runAgent({
688
545
  ...options,
689
- ...localOptions,
546
+ ...fnOptions,
690
547
  throwOnError: true,
691
548
  });
692
549
  return data;
@@ -694,33 +551,15 @@ export const runAgentMutation = (options) => {
694
551
  };
695
552
  return mutationOptions;
696
553
  };
697
- export const runAgentSseQueryKey = (options) => createQueryKey("runAgentSse", options);
698
- /**
699
- * Run Agent Sse
700
- */
701
- export const runAgentSseOptions = (options) => {
702
- return queryOptions({
703
- queryFn: async ({ queryKey, signal }) => {
704
- const { data } = await runAgentSse({
705
- ...options,
706
- ...queryKey[0],
707
- signal,
708
- throwOnError: true,
709
- });
710
- return data;
711
- },
712
- queryKey: runAgentSseQueryKey(options),
713
- });
714
- };
715
554
  /**
716
555
  * Run Agent Sse
717
556
  */
718
557
  export const runAgentSseMutation = (options) => {
719
558
  const mutationOptions = {
720
- mutationFn: async (localOptions) => {
559
+ mutationFn: async (fnOptions) => {
721
560
  const { data } = await runAgentSse({
722
561
  ...options,
723
- ...localOptions,
562
+ ...fnOptions,
724
563
  throwOnError: true,
725
564
  });
726
565
  return data;
@@ -782,33 +621,15 @@ export const redirectDevUiAddSlashOptions = (options) => {
782
621
  queryKey: redirectDevUiAddSlashQueryKey(options),
783
622
  });
784
623
  };
785
- export const builderBuildQueryKey = (options) => createQueryKey("builderBuild", options);
786
- /**
787
- * Builder Build
788
- */
789
- export const builderBuildOptions = (options) => {
790
- return queryOptions({
791
- queryFn: async ({ queryKey, signal }) => {
792
- const { data } = await builderBuild({
793
- ...options,
794
- ...queryKey[0],
795
- signal,
796
- throwOnError: true,
797
- });
798
- return data;
799
- },
800
- queryKey: builderBuildQueryKey(options),
801
- });
802
- };
803
624
  /**
804
625
  * Builder Build
805
626
  */
806
627
  export const builderBuildMutation = (options) => {
807
628
  const mutationOptions = {
808
- mutationFn: async (localOptions) => {
629
+ mutationFn: async (fnOptions) => {
809
630
  const { data } = await builderBuild({
810
631
  ...options,
811
- ...localOptions,
632
+ ...fnOptions,
812
633
  throwOnError: true,
813
634
  });
814
635
  return data;
@@ -853,35 +674,16 @@ export const chatAgentGetChatConfigOptions = (options) => {
853
674
  queryKey: chatAgentGetChatConfigQueryKey(options),
854
675
  });
855
676
  };
856
- export const chatAgentUpdateChatConfigQueryKey = (options) => createQueryKey("chatAgentUpdateChatConfig", options);
857
- /**
858
- * Update Chat Config
859
- * 更新聊天配置
860
- */
861
- export const chatAgentUpdateChatConfigOptions = (options) => {
862
- return queryOptions({
863
- queryFn: async ({ queryKey, signal }) => {
864
- const { data } = await chatAgentUpdateChatConfig({
865
- ...options,
866
- ...queryKey[0],
867
- signal,
868
- throwOnError: true,
869
- });
870
- return data;
871
- },
872
- queryKey: chatAgentUpdateChatConfigQueryKey(options),
873
- });
874
- };
875
677
  /**
876
678
  * Update Chat Config
877
679
  * 更新聊天配置
878
680
  */
879
681
  export const chatAgentUpdateChatConfigMutation = (options) => {
880
682
  const mutationOptions = {
881
- mutationFn: async (localOptions) => {
683
+ mutationFn: async (fnOptions) => {
882
684
  const { data } = await chatAgentUpdateChatConfig({
883
685
  ...options,
884
- ...localOptions,
686
+ ...fnOptions,
885
687
  throwOnError: true,
886
688
  });
887
689
  return data;
@@ -908,35 +710,16 @@ export const chatAgentGetProvidersOptions = (options) => {
908
710
  queryKey: chatAgentGetProvidersQueryKey(options),
909
711
  });
910
712
  };
911
- export const chatAgentValidateApiKeyQueryKey = (options) => createQueryKey("chatAgentValidateApiKey", options);
912
- /**
913
- * Validate Api Key
914
- * 验证API密钥
915
- */
916
- export const chatAgentValidateApiKeyOptions = (options) => {
917
- return queryOptions({
918
- queryFn: async ({ queryKey, signal }) => {
919
- const { data } = await chatAgentValidateApiKey({
920
- ...options,
921
- ...queryKey[0],
922
- signal,
923
- throwOnError: true,
924
- });
925
- return data;
926
- },
927
- queryKey: chatAgentValidateApiKeyQueryKey(options),
928
- });
929
- };
930
713
  /**
931
714
  * Validate Api Key
932
715
  * 验证API密钥
933
716
  */
934
717
  export const chatAgentValidateApiKeyMutation = (options) => {
935
718
  const mutationOptions = {
936
- mutationFn: async (localOptions) => {
719
+ mutationFn: async (fnOptions) => {
937
720
  const { data } = await chatAgentValidateApiKey({
938
721
  ...options,
939
- ...localOptions,
722
+ ...fnOptions,
940
723
  throwOnError: true,
941
724
  });
942
725
  return data;
@@ -963,35 +746,16 @@ export const chatAgentExportConfigOptions = (options) => {
963
746
  queryKey: chatAgentExportConfigQueryKey(options),
964
747
  });
965
748
  };
966
- export const chatAgentImportConfigQueryKey = (options) => createQueryKey("chatAgentImportConfig", options);
967
- /**
968
- * Import Config
969
- * 导入AI配置
970
- */
971
- export const chatAgentImportConfigOptions = (options) => {
972
- return queryOptions({
973
- queryFn: async ({ queryKey, signal }) => {
974
- const { data } = await chatAgentImportConfig({
975
- ...options,
976
- ...queryKey[0],
977
- signal,
978
- throwOnError: true,
979
- });
980
- return data;
981
- },
982
- queryKey: chatAgentImportConfigQueryKey(options),
983
- });
984
- };
985
749
  /**
986
750
  * Import Config
987
751
  * 导入AI配置
988
752
  */
989
753
  export const chatAgentImportConfigMutation = (options) => {
990
754
  const mutationOptions = {
991
- mutationFn: async (localOptions) => {
755
+ mutationFn: async (fnOptions) => {
992
756
  const { data } = await chatAgentImportConfig({
993
757
  ...options,
994
- ...localOptions,
758
+ ...fnOptions,
995
759
  throwOnError: true,
996
760
  });
997
761
  return data;
@@ -999,35 +763,16 @@ export const chatAgentImportConfigMutation = (options) => {
999
763
  };
1000
764
  return mutationOptions;
1001
765
  };
1002
- export const chatAgentChatQueryKey = (options) => createQueryKey("chatAgentChat", options);
1003
- /**
1004
- * Chat
1005
- * 处理聊天请求 - 使用新的Agent架构
1006
- */
1007
- export const chatAgentChatOptions = (options) => {
1008
- return queryOptions({
1009
- queryFn: async ({ queryKey, signal }) => {
1010
- const { data } = await chatAgentChat({
1011
- ...options,
1012
- ...queryKey[0],
1013
- signal,
1014
- throwOnError: true,
1015
- });
1016
- return data;
1017
- },
1018
- queryKey: chatAgentChatQueryKey(options),
1019
- });
1020
- };
1021
766
  /**
1022
767
  * Chat
1023
768
  * 处理聊天请求 - 使用新的Agent架构
1024
769
  */
1025
770
  export const chatAgentChatMutation = (options) => {
1026
771
  const mutationOptions = {
1027
- mutationFn: async (localOptions) => {
772
+ mutationFn: async (fnOptions) => {
1028
773
  const { data } = await chatAgentChat({
1029
774
  ...options,
1030
- ...localOptions,
775
+ ...fnOptions,
1031
776
  throwOnError: true,
1032
777
  });
1033
778
  return data;
@@ -1056,27 +801,6 @@ export const listItemsOptions = (options) => {
1056
801
  queryKey: listItemsQueryKey(options),
1057
802
  });
1058
803
  };
1059
- export const createItemQueryKey = (options) => createQueryKey("createItem", options);
1060
- /**
1061
- * Create Item
1062
- * Create a new item in the database.
1063
- *
1064
- * Returns the created item with its assigned ID.
1065
- */
1066
- export const createItemOptions = (options) => {
1067
- return queryOptions({
1068
- queryFn: async ({ queryKey, signal }) => {
1069
- const { data } = await createItem({
1070
- ...options,
1071
- ...queryKey[0],
1072
- signal,
1073
- throwOnError: true,
1074
- });
1075
- return data;
1076
- },
1077
- queryKey: createItemQueryKey(options),
1078
- });
1079
- };
1080
804
  /**
1081
805
  * Create Item
1082
806
  * Create a new item in the database.
@@ -1085,10 +809,10 @@ export const createItemOptions = (options) => {
1085
809
  */
1086
810
  export const createItemMutation = (options) => {
1087
811
  const mutationOptions = {
1088
- mutationFn: async (localOptions) => {
812
+ mutationFn: async (fnOptions) => {
1089
813
  const { data } = await createItem({
1090
814
  ...options,
1091
- ...localOptions,
815
+ ...fnOptions,
1092
816
  throwOnError: true,
1093
817
  });
1094
818
  return data;
@@ -1104,10 +828,10 @@ export const createItemMutation = (options) => {
1104
828
  */
1105
829
  export const deleteItemMutation = (options) => {
1106
830
  const mutationOptions = {
1107
- mutationFn: async (localOptions) => {
831
+ mutationFn: async (fnOptions) => {
1108
832
  const { data } = await deleteItem({
1109
833
  ...options,
1110
- ...localOptions,
834
+ ...fnOptions,
1111
835
  throwOnError: true,
1112
836
  });
1113
837
  return data;
@@ -1144,10 +868,10 @@ export const getItemOptions = (options) => {
1144
868
  */
1145
869
  export const updateItemMutation = (options) => {
1146
870
  const mutationOptions = {
1147
- mutationFn: async (localOptions) => {
871
+ mutationFn: async (fnOptions) => {
1148
872
  const { data } = await updateItem({
1149
873
  ...options,
1150
- ...localOptions,
874
+ ...fnOptions,
1151
875
  throwOnError: true,
1152
876
  });
1153
877
  return data;
@@ -1176,69 +900,15 @@ export const searchItemsOptions = (options) => {
1176
900
  queryKey: searchItemsQueryKey(options),
1177
901
  });
1178
902
  };
1179
- export const agentsAgentrunQueryKey = (options) => createQueryKey("agentsAgentrun", options);
1180
- /**
1181
- * Agentrun
1182
- */
1183
- export const agentsAgentrunOptions = (options) => {
1184
- return queryOptions({
1185
- queryFn: async ({ queryKey, signal }) => {
1186
- const { data } = await agentsAgentrun({
1187
- ...options,
1188
- ...queryKey[0],
1189
- signal,
1190
- throwOnError: true,
1191
- });
1192
- return data;
1193
- },
1194
- queryKey: agentsAgentrunQueryKey(options),
1195
- });
1196
- };
1197
903
  /**
1198
904
  * Agentrun
1199
905
  */
1200
906
  export const agentsAgentrunMutation = (options) => {
1201
907
  const mutationOptions = {
1202
- mutationFn: async (localOptions) => {
908
+ mutationFn: async (fnOptions) => {
1203
909
  const { data } = await agentsAgentrun({
1204
910
  ...options,
1205
- ...localOptions,
1206
- throwOnError: true,
1207
- });
1208
- return data;
1209
- },
1210
- };
1211
- return mutationOptions;
1212
- };
1213
- export const demoDemo1QueryKey = (options) => createQueryKey("demoDemo1", options);
1214
- /**
1215
- * Demo1
1216
- * 演示: 调用 honoapi (使用 HonoClient)
1217
- */
1218
- export const demoDemo1Options = (options) => {
1219
- return queryOptions({
1220
- queryFn: async ({ queryKey, signal }) => {
1221
- const { data } = await demoDemo1({
1222
- ...options,
1223
- ...queryKey[0],
1224
- signal,
1225
- throwOnError: true,
1226
- });
1227
- return data;
1228
- },
1229
- queryKey: demoDemo1QueryKey(options),
1230
- });
1231
- };
1232
- /**
1233
- * Demo1
1234
- * 演示: 调用 honoapi (使用 HonoClient)
1235
- */
1236
- export const demoDemo1Mutation = (options) => {
1237
- const mutationOptions = {
1238
- mutationFn: async (localOptions) => {
1239
- const { data } = await demoDemo1({
1240
- ...options,
1241
- ...localOptions,
911
+ ...fnOptions,
1242
912
  throwOnError: true,
1243
913
  });
1244
914
  return data;
@@ -1246,35 +916,16 @@ export const demoDemo1Mutation = (options) => {
1246
916
  };
1247
917
  return mutationOptions;
1248
918
  };
1249
- export const sandboxStartNapcatSandboxQueryKey = (options) => createQueryKey("sandboxStartNapcatSandbox", options);
1250
- /**
1251
- * Start Napcat Sandbox
1252
- * 启动 Napcat 沙箱(同步返回结果)
1253
- */
1254
- export const sandboxStartNapcatSandboxOptions = (options) => {
1255
- return queryOptions({
1256
- queryFn: async ({ queryKey, signal }) => {
1257
- const { data } = await sandboxStartNapcatSandbox({
1258
- ...options,
1259
- ...queryKey[0],
1260
- signal,
1261
- throwOnError: true,
1262
- });
1263
- return data;
1264
- },
1265
- queryKey: sandboxStartNapcatSandboxQueryKey(options),
1266
- });
1267
- };
1268
919
  /**
1269
920
  * Start Napcat Sandbox
1270
921
  * 启动 Napcat 沙箱(同步返回结果)
1271
922
  */
1272
923
  export const sandboxStartNapcatSandboxMutation = (options) => {
1273
924
  const mutationOptions = {
1274
- mutationFn: async (localOptions) => {
925
+ mutationFn: async (fnOptions) => {
1275
926
  const { data } = await sandboxStartNapcatSandbox({
1276
927
  ...options,
1277
- ...localOptions,
928
+ ...fnOptions,
1278
929
  throwOnError: true,
1279
930
  });
1280
931
  return data;
@@ -1282,35 +933,16 @@ export const sandboxStartNapcatSandboxMutation = (options) => {
1282
933
  };
1283
934
  return mutationOptions;
1284
935
  };
1285
- export const sandboxCheckSandboxStatusQueryKey = (options) => createQueryKey("sandboxCheckSandboxStatus", options);
1286
- /**
1287
- * Check Sandbox Status
1288
- * 检查指定沙盒的状态
1289
- */
1290
- export const sandboxCheckSandboxStatusOptions = (options) => {
1291
- return queryOptions({
1292
- queryFn: async ({ queryKey, signal }) => {
1293
- const { data } = await sandboxCheckSandboxStatus({
1294
- ...options,
1295
- ...queryKey[0],
1296
- signal,
1297
- throwOnError: true,
1298
- });
1299
- return data;
1300
- },
1301
- queryKey: sandboxCheckSandboxStatusQueryKey(options),
1302
- });
1303
- };
1304
936
  /**
1305
937
  * Check Sandbox Status
1306
938
  * 检查指定沙盒的状态
1307
939
  */
1308
940
  export const sandboxCheckSandboxStatusMutation = (options) => {
1309
941
  const mutationOptions = {
1310
- mutationFn: async (localOptions) => {
942
+ mutationFn: async (fnOptions) => {
1311
943
  const { data } = await sandboxCheckSandboxStatus({
1312
944
  ...options,
1313
- ...localOptions,
945
+ ...fnOptions,
1314
946
  throwOnError: true,
1315
947
  });
1316
948
  return data;