mtmsdk 0.0.51 → 0.0.52

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 (341) hide show
  1. package/dist/gomtmapi/@tanstack/react-query.gen.d.ts +1 -13
  2. package/dist/gomtmapi/@tanstack/react-query.gen.d.ts.map +1 -1
  3. package/dist/gomtmapi/@tanstack/react-query.gen.js +1 -37
  4. package/dist/gomtmapi/@tanstack/react-query.gen.js.map +1 -1
  5. package/dist/gomtmapi/index.d.ts +2 -2
  6. package/dist/gomtmapi/index.d.ts.map +1 -1
  7. package/dist/gomtmapi/index.js +1 -1
  8. package/dist/gomtmapi/index.js.map +1 -1
  9. package/dist/gomtmapi/schemas.gen.d.ts +0 -57
  10. package/dist/gomtmapi/schemas.gen.d.ts.map +1 -1
  11. package/dist/gomtmapi/schemas.gen.js +0 -60
  12. package/dist/gomtmapi/schemas.gen.js.map +1 -1
  13. package/dist/gomtmapi/sdk.gen.d.ts +1 -13
  14. package/dist/gomtmapi/sdk.gen.d.ts.map +1 -1
  15. package/dist/gomtmapi/sdk.gen.js +0 -26
  16. package/dist/gomtmapi/sdk.gen.js.map +1 -1
  17. package/dist/gomtmapi/types.gen.d.ts +0 -94
  18. package/dist/gomtmapi/types.gen.d.ts.map +1 -1
  19. package/dist/gomtmapi/zod.gen.d.ts +0 -62
  20. package/dist/gomtmapi/zod.gen.d.ts.map +1 -1
  21. package/dist/gomtmapi/zod.gen.js +0 -51
  22. package/dist/gomtmapi/zod.gen.js.map +1 -1
  23. package/dist/index.d.ts +1 -1
  24. package/dist/index.d.ts.map +1 -1
  25. package/dist/index.js +1 -4
  26. package/dist/index.js.map +1 -1
  27. package/dist/lib/schema.d.ts +1 -11
  28. package/dist/lib/schema.d.ts.map +1 -1
  29. package/dist/lib/schema.js +0 -9
  30. package/dist/lib/schema.js.map +1 -1
  31. package/dist/mtgate_api/client.gen.d.ts.map +1 -1
  32. package/dist/mtgate_api/client.gen.js +1 -1
  33. package/dist/mtgate_api/client.gen.js.map +1 -1
  34. package/dist/mtgate_api/index.d.ts +2 -2
  35. package/dist/mtgate_api/index.d.ts.map +1 -1
  36. package/dist/mtgate_api/index.js +1 -1
  37. package/dist/mtgate_api/index.js.map +1 -1
  38. package/dist/mtgate_api/sdk.gen.d.ts +0 -8
  39. package/dist/mtgate_api/sdk.gen.d.ts.map +1 -1
  40. package/dist/mtgate_api/sdk.gen.js +1 -29
  41. package/dist/mtgate_api/sdk.gen.js.map +1 -1
  42. package/dist/mtgate_api/types.gen.d.ts +1 -200
  43. package/dist/mtgate_api/types.gen.d.ts.map +1 -1
  44. package/dist/openclaw/gateway.d.ts.map +1 -1
  45. package/dist/openclaw/gateway.js +1 -1
  46. package/dist/openclaw/gateway.js.map +1 -1
  47. package/dist/sbmng/@tanstack/react-query.gen.d.ts +39 -65
  48. package/dist/sbmng/@tanstack/react-query.gen.d.ts.map +1 -1
  49. package/dist/sbmng/@tanstack/react-query.gen.js +19 -65
  50. package/dist/sbmng/@tanstack/react-query.gen.js.map +1 -1
  51. package/dist/sbmng/index.d.ts +2 -2
  52. package/dist/sbmng/index.d.ts.map +1 -1
  53. package/dist/sbmng/index.js +1 -1
  54. package/dist/sbmng/index.js.map +1 -1
  55. package/dist/sbmng/schemas.gen.d.ts +6 -95
  56. package/dist/sbmng/schemas.gen.d.ts.map +1 -1
  57. package/dist/sbmng/schemas.gen.js +7 -139
  58. package/dist/sbmng/schemas.gen.js.map +1 -1
  59. package/dist/sbmng/sdk.gen.d.ts +7 -17
  60. package/dist/sbmng/sdk.gen.d.ts.map +1 -1
  61. package/dist/sbmng/sdk.gen.js +10 -32
  62. package/dist/sbmng/sdk.gen.js.map +1 -1
  63. package/dist/sbmng/types.gen.d.ts +41 -157
  64. package/dist/sbmng/types.gen.d.ts.map +1 -1
  65. package/dist/supabase/supabase-client.d.ts +85 -181
  66. package/dist/supabase/supabase-client.d.ts.map +1 -1
  67. package/dist/supabase/supabase.d.ts +170 -362
  68. package/dist/supabase/supabase.d.ts.map +1 -1
  69. package/dist/supabase/use-sb-query/build-query-opts.d.ts +6 -2
  70. package/dist/supabase/use-sb-query/build-query-opts.d.ts.map +1 -1
  71. package/dist/supabase/use-sb-query/build-query-opts.js +8 -4
  72. package/dist/supabase/use-sb-query/build-query-opts.js.map +1 -1
  73. package/dist/supabase/use-sb-query/use-query.d.ts +9 -6
  74. package/dist/supabase/use-sb-query/use-query.d.ts.map +1 -1
  75. package/dist/supabase/use-sb-query/use-query.js.map +1 -1
  76. package/dist/supabase/use-sb-query/use-rpc-query.d.ts +25 -17
  77. package/dist/supabase/use-sb-query/use-rpc-query.d.ts.map +1 -1
  78. package/dist/supabase/use-sb-query/use-rpc-query.js +48 -26
  79. package/dist/supabase/use-sb-query/use-rpc-query.js.map +1 -1
  80. package/dist/types/database.schemas.d.ts +129 -222
  81. package/dist/types/database.schemas.d.ts.map +1 -1
  82. package/dist/types/database.schemas.js +112 -124
  83. package/dist/types/database.schemas.js.map +1 -1
  84. package/dist/types/database.types.d.ts +85 -181
  85. package/dist/types/database.types.d.ts.map +1 -1
  86. package/dist/types/database.types.js.map +1 -1
  87. package/dist/types/index.d.ts +30 -59
  88. package/dist/types/index.d.ts.map +1 -1
  89. package/dist/types/index.js +16 -3
  90. package/dist/types/index.js.map +1 -1
  91. package/package.json +105 -110
  92. package/src/cloud-account/platform-configs.ts +73 -73
  93. package/src/gomtmapi/@tanstack/react-query.gen.ts +537 -575
  94. package/src/gomtmapi/client/client.gen.ts +311 -311
  95. package/src/gomtmapi/client/index.ts +25 -25
  96. package/src/gomtmapi/client/types.gen.ts +241 -241
  97. package/src/gomtmapi/client/utils.gen.ts +332 -332
  98. package/src/gomtmapi/client.gen.ts +16 -16
  99. package/src/gomtmapi/core/auth.gen.ts +42 -42
  100. package/src/gomtmapi/core/bodySerializer.gen.ts +100 -100
  101. package/src/gomtmapi/core/params.gen.ts +176 -176
  102. package/src/gomtmapi/core/pathSerializer.gen.ts +181 -181
  103. package/src/gomtmapi/core/queryKeySerializer.gen.ts +136 -136
  104. package/src/gomtmapi/core/serverSentEvents.gen.ts +266 -266
  105. package/src/gomtmapi/core/types.gen.ts +118 -118
  106. package/src/gomtmapi/core/utils.gen.ts +143 -143
  107. package/src/gomtmapi/index.ts +4 -4
  108. package/src/gomtmapi/schemas.gen.ts +532 -596
  109. package/src/gomtmapi/sdk.gen.ts +371 -399
  110. package/src/gomtmapi/types.gen.ts +854 -962
  111. package/src/gomtmapi/zod.gen.ts +448 -507
  112. package/src/index.ts +4 -5
  113. package/src/lib/aisdk/types.ts +7 -7
  114. package/src/lib/logger/index.ts +8 -8
  115. package/src/lib/schema.ts +37 -50
  116. package/src/mtgate_api/client/client.gen.ts +311 -311
  117. package/src/mtgate_api/client/index.ts +25 -25
  118. package/src/mtgate_api/client/types.gen.ts +241 -241
  119. package/src/mtgate_api/client/utils.gen.ts +332 -332
  120. package/src/mtgate_api/client.gen.ts +16 -16
  121. package/src/mtgate_api/core/auth.gen.ts +42 -42
  122. package/src/mtgate_api/core/bodySerializer.gen.ts +100 -100
  123. package/src/mtgate_api/core/params.gen.ts +176 -176
  124. package/src/mtgate_api/core/pathSerializer.gen.ts +181 -181
  125. package/src/mtgate_api/core/queryKeySerializer.gen.ts +136 -136
  126. package/src/mtgate_api/core/serverSentEvents.gen.ts +266 -266
  127. package/src/mtgate_api/core/types.gen.ts +118 -118
  128. package/src/mtgate_api/core/utils.gen.ts +143 -143
  129. package/src/mtgate_api/index.ts +4 -4
  130. package/src/mtgate_api/sdk.gen.ts +17 -54
  131. package/src/mtgate_api/types.gen.ts +5 -239
  132. package/src/openclaw/client-info.ts +54 -54
  133. package/src/openclaw/device-auth-utils.ts +26 -26
  134. package/src/openclaw/device-auth.ts +99 -99
  135. package/src/openclaw/device-identity.ts +108 -108
  136. package/src/openclaw/gateway.ts +392 -392
  137. package/src/openclaw/types.ts +518 -518
  138. package/src/sbmng/@tanstack/react-query.gen.ts +2967 -3017
  139. package/src/sbmng/client/client.gen.ts +311 -311
  140. package/src/sbmng/client/index.ts +25 -25
  141. package/src/sbmng/client/types.gen.ts +241 -241
  142. package/src/sbmng/client/utils.gen.ts +332 -332
  143. package/src/sbmng/client.gen.ts +16 -16
  144. package/src/sbmng/core/auth.gen.ts +42 -42
  145. package/src/sbmng/core/bodySerializer.gen.ts +100 -100
  146. package/src/sbmng/core/params.gen.ts +176 -176
  147. package/src/sbmng/core/pathSerializer.gen.ts +181 -181
  148. package/src/sbmng/core/queryKeySerializer.gen.ts +136 -136
  149. package/src/sbmng/core/serverSentEvents.gen.ts +266 -266
  150. package/src/sbmng/core/types.gen.ts +118 -118
  151. package/src/sbmng/core/utils.gen.ts +143 -143
  152. package/src/sbmng/index.ts +4 -4
  153. package/src/sbmng/schemas.gen.ts +9671 -9805
  154. package/src/sbmng/sdk.gen.ts +1755 -1780
  155. package/src/sbmng/types.gen.ts +7886 -8016
  156. package/src/supabase/auth-provider.tsx +67 -67
  157. package/src/supabase/context.tsx +51 -51
  158. package/src/supabase/cursor-pagination.ts +155 -155
  159. package/src/supabase/schema/browser.ts +44 -44
  160. package/src/supabase/schema/index.ts +25 -25
  161. package/src/supabase/supabase-client.ts +30 -30
  162. package/src/supabase/supabase.ts +67 -67
  163. package/src/supabase/use-sb-query/build-query-opts.ts +68 -56
  164. package/src/supabase/use-sb-query/key.ts +57 -57
  165. package/src/supabase/use-sb-query/use-query.ts +352 -340
  166. package/src/supabase/use-sb-query/use-rpc-mutation.ts +83 -83
  167. package/src/supabase/use-sb-query/use-rpc-query.ts +267 -231
  168. package/src/supabase/utils.ts +75 -75
  169. package/src/types/database.schemas.ts +4359 -4378
  170. package/src/types/database.types.ts +4182 -4288
  171. package/src/types/index.ts +85 -102
  172. package/dist/adk/api/client.d.ts +0 -9
  173. package/dist/adk/api/client.d.ts.map +0 -1
  174. package/dist/adk/api/client.js +0 -39
  175. package/dist/adk/api/client.js.map +0 -1
  176. package/dist/adk/core/constants/tool-icons.d.ts +0 -21
  177. package/dist/adk/core/constants/tool-icons.d.ts.map +0 -1
  178. package/dist/adk/core/constants/tool-icons.js +0 -47
  179. package/dist/adk/core/constants/tool-icons.js.map +0 -1
  180. package/dist/adk/core/models/AgentBuilder.d.ts +0 -77
  181. package/dist/adk/core/models/AgentBuilder.d.ts.map +0 -1
  182. package/dist/adk/core/models/AgentBuilder.js +0 -18
  183. package/dist/adk/core/models/AgentBuilder.js.map +0 -1
  184. package/dist/adk/core/models/AgentRunRequest.d.ts +0 -37
  185. package/dist/adk/core/models/AgentRunRequest.d.ts.map +0 -1
  186. package/dist/adk/core/models/AgentRunRequest.js +0 -18
  187. package/dist/adk/core/models/AgentRunRequest.js.map +0 -1
  188. package/dist/adk/core/models/Eval.d.ts +0 -55
  189. package/dist/adk/core/models/Eval.d.ts.map +0 -1
  190. package/dist/adk/core/models/Eval.js +0 -27
  191. package/dist/adk/core/models/Eval.js.map +0 -1
  192. package/dist/adk/core/models/LiveRequest.d.ts +0 -23
  193. package/dist/adk/core/models/LiveRequest.d.ts.map +0 -1
  194. package/dist/adk/core/models/LiveRequest.js +0 -18
  195. package/dist/adk/core/models/LiveRequest.js.map +0 -1
  196. package/dist/adk/core/models/RuntimeConfig.d.ts +0 -32
  197. package/dist/adk/core/models/RuntimeConfig.d.ts.map +0 -1
  198. package/dist/adk/core/models/RuntimeConfig.js +0 -18
  199. package/dist/adk/core/models/RuntimeConfig.js.map +0 -1
  200. package/dist/adk/core/models/Session.d.ts +0 -117
  201. package/dist/adk/core/models/Session.d.ts.map +0 -1
  202. package/dist/adk/core/models/Session.js +0 -31
  203. package/dist/adk/core/models/Session.js.map +0 -1
  204. package/dist/adk/core/models/Trace.d.ts +0 -40
  205. package/dist/adk/core/models/Trace.d.ts.map +0 -1
  206. package/dist/adk/core/models/Trace.js +0 -2
  207. package/dist/adk/core/models/Trace.js.map +0 -1
  208. package/dist/adk/core/models/types.d.ts +0 -338
  209. package/dist/adk/core/models/types.d.ts.map +0 -1
  210. package/dist/adk/core/models/types.js +0 -189
  211. package/dist/adk/core/models/types.js.map +0 -1
  212. package/dist/lib/utils.d.ts +0 -14
  213. package/dist/lib/utils.d.ts.map +0 -1
  214. package/dist/lib/utils.js +0 -45
  215. package/dist/lib/utils.js.map +0 -1
  216. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts +0 -166
  217. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts.map +0 -1
  218. package/dist/mtgate_api/@tanstack/react-query.gen.js +0 -118
  219. package/dist/mtgate_api/@tanstack/react-query.gen.js.map +0 -1
  220. package/dist/mtgate_api/schemas.gen.d.ts +0 -233
  221. package/dist/mtgate_api/schemas.gen.d.ts.map +0 -1
  222. package/dist/mtgate_api/schemas.gen.js +0 -277
  223. package/dist/mtgate_api/schemas.gen.js.map +0 -1
  224. package/dist/mtgate_api/zod.gen.d.ts +0 -321
  225. package/dist/mtgate_api/zod.gen.d.ts.map +0 -1
  226. package/dist/mtgate_api/zod.gen.js +0 -148
  227. package/dist/mtgate_api/zod.gen.js.map +0 -1
  228. package/dist/mtmai_api/@tanstack/react-query.gen.d.ts +0 -949
  229. package/dist/mtmai_api/@tanstack/react-query.gen.d.ts.map +0 -1
  230. package/dist/mtmai_api/@tanstack/react-query.gen.js +0 -917
  231. package/dist/mtmai_api/@tanstack/react-query.gen.js.map +0 -1
  232. package/dist/mtmai_api/client/client.gen.d.ts +0 -3
  233. package/dist/mtmai_api/client/client.gen.d.ts.map +0 -1
  234. package/dist/mtmai_api/client/client.gen.js +0 -236
  235. package/dist/mtmai_api/client/client.gen.js.map +0 -1
  236. package/dist/mtmai_api/client/index.d.ts +0 -9
  237. package/dist/mtmai_api/client/index.d.ts.map +0 -1
  238. package/dist/mtmai_api/client/index.js +0 -7
  239. package/dist/mtmai_api/client/index.js.map +0 -1
  240. package/dist/mtmai_api/client/types.gen.d.ts +0 -118
  241. package/dist/mtmai_api/client/types.gen.d.ts.map +0 -1
  242. package/dist/mtmai_api/client/types.gen.js +0 -3
  243. package/dist/mtmai_api/client/types.gen.js.map +0 -1
  244. package/dist/mtmai_api/client/utils.gen.d.ts +0 -34
  245. package/dist/mtmai_api/client/utils.gen.d.ts.map +0 -1
  246. package/dist/mtmai_api/client/utils.gen.js +0 -232
  247. package/dist/mtmai_api/client/utils.gen.js.map +0 -1
  248. package/dist/mtmai_api/client.gen.d.ts +0 -13
  249. package/dist/mtmai_api/client.gen.d.ts.map +0 -1
  250. package/dist/mtmai_api/client.gen.js +0 -4
  251. package/dist/mtmai_api/client.gen.js.map +0 -1
  252. package/dist/mtmai_api/core/auth.gen.d.ts +0 -19
  253. package/dist/mtmai_api/core/auth.gen.d.ts.map +0 -1
  254. package/dist/mtmai_api/core/auth.gen.js +0 -15
  255. package/dist/mtmai_api/core/auth.gen.js.map +0 -1
  256. package/dist/mtmai_api/core/bodySerializer.gen.d.ts +0 -26
  257. package/dist/mtmai_api/core/bodySerializer.gen.d.ts.map +0 -1
  258. package/dist/mtmai_api/core/bodySerializer.gen.js +0 -58
  259. package/dist/mtmai_api/core/bodySerializer.gen.js.map +0 -1
  260. package/dist/mtmai_api/core/params.gen.d.ts +0 -44
  261. package/dist/mtmai_api/core/params.gen.d.ts.map +0 -1
  262. package/dist/mtmai_api/core/params.gen.js +0 -101
  263. package/dist/mtmai_api/core/params.gen.js.map +0 -1
  264. package/dist/mtmai_api/core/pathSerializer.gen.d.ts +0 -34
  265. package/dist/mtmai_api/core/pathSerializer.gen.d.ts.map +0 -1
  266. package/dist/mtmai_api/core/pathSerializer.gen.js +0 -115
  267. package/dist/mtmai_api/core/pathSerializer.gen.js.map +0 -1
  268. package/dist/mtmai_api/core/queryKeySerializer.gen.d.ts +0 -19
  269. package/dist/mtmai_api/core/queryKeySerializer.gen.d.ts.map +0 -1
  270. package/dist/mtmai_api/core/queryKeySerializer.gen.js +0 -100
  271. package/dist/mtmai_api/core/queryKeySerializer.gen.js.map +0 -1
  272. package/dist/mtmai_api/core/serverSentEvents.gen.d.ts +0 -72
  273. package/dist/mtmai_api/core/serverSentEvents.gen.d.ts.map +0 -1
  274. package/dist/mtmai_api/core/serverSentEvents.gen.js +0 -138
  275. package/dist/mtmai_api/core/serverSentEvents.gen.js.map +0 -1
  276. package/dist/mtmai_api/core/types.gen.d.ts +0 -79
  277. package/dist/mtmai_api/core/types.gen.d.ts.map +0 -1
  278. package/dist/mtmai_api/core/types.gen.js +0 -3
  279. package/dist/mtmai_api/core/types.gen.js.map +0 -1
  280. package/dist/mtmai_api/core/utils.gen.d.ts +0 -20
  281. package/dist/mtmai_api/core/utils.gen.d.ts.map +0 -1
  282. package/dist/mtmai_api/core/utils.gen.js +0 -88
  283. package/dist/mtmai_api/core/utils.gen.js.map +0 -1
  284. package/dist/mtmai_api/index.d.ts +0 -3
  285. package/dist/mtmai_api/index.d.ts.map +0 -1
  286. package/dist/mtmai_api/index.js +0 -4
  287. package/dist/mtmai_api/index.js.map +0 -1
  288. package/dist/mtmai_api/schemas.gen.d.ts +0 -7721
  289. package/dist/mtmai_api/schemas.gen.d.ts.map +0 -1
  290. package/dist/mtmai_api/schemas.gen.js +0 -9774
  291. package/dist/mtmai_api/schemas.gen.js.map +0 -1
  292. package/dist/mtmai_api/sdk.gen.d.ts +0 -282
  293. package/dist/mtmai_api/sdk.gen.d.ts.map +0 -1
  294. package/dist/mtmai_api/sdk.gen.js +0 -404
  295. package/dist/mtmai_api/sdk.gen.js.map +0 -1
  296. package/dist/mtmai_api/types.gen.d.ts +0 -7152
  297. package/dist/mtmai_api/types.gen.d.ts.map +0 -1
  298. package/dist/mtmai_api/types.gen.js +0 -253
  299. package/dist/mtmai_api/types.gen.js.map +0 -1
  300. package/dist/mtmai_api/zod.gen.d.ts +0 -55827
  301. package/dist/mtmai_api/zod.gen.d.ts.map +0 -1
  302. package/dist/mtmai_api/zod.gen.js +0 -4805
  303. package/dist/mtmai_api/zod.gen.js.map +0 -1
  304. package/dist/supabase/use-sb-query/prefetch.d.ts +0 -10
  305. package/dist/supabase/use-sb-query/prefetch.d.ts.map +0 -1
  306. package/dist/supabase/use-sb-query/prefetch.js +0 -14
  307. package/dist/supabase/use-sb-query/prefetch.js.map +0 -1
  308. package/src/adk/api/client.ts +0 -46
  309. package/src/adk/core/constants/tool-icons.ts +0 -51
  310. package/src/adk/core/models/AgentBuilder.ts +0 -80
  311. package/src/adk/core/models/AgentRunRequest.ts +0 -33
  312. package/src/adk/core/models/Eval.ts +0 -70
  313. package/src/adk/core/models/LiveRequest.ts +0 -23
  314. package/src/adk/core/models/RuntimeConfig.ts +0 -33
  315. package/src/adk/core/models/Session.ts +0 -52
  316. package/src/adk/core/models/Trace.ts +0 -42
  317. package/src/adk/core/models/types.ts +0 -255
  318. package/src/lib/utils.ts +0 -54
  319. package/src/mtgate_api/@tanstack/react-query.gen.ts +0 -142
  320. package/src/mtgate_api/schemas.gen.ts +0 -290
  321. package/src/mtgate_api/zod.gen.ts +0 -176
  322. package/src/mtmai_api/@tanstack/react-query.gen.ts +0 -1010
  323. package/src/mtmai_api/client/client.gen.ts +0 -311
  324. package/src/mtmai_api/client/index.ts +0 -25
  325. package/src/mtmai_api/client/types.gen.ts +0 -241
  326. package/src/mtmai_api/client/utils.gen.ts +0 -332
  327. package/src/mtmai_api/client.gen.ts +0 -16
  328. package/src/mtmai_api/core/auth.gen.ts +0 -42
  329. package/src/mtmai_api/core/bodySerializer.gen.ts +0 -100
  330. package/src/mtmai_api/core/params.gen.ts +0 -176
  331. package/src/mtmai_api/core/pathSerializer.gen.ts +0 -181
  332. package/src/mtmai_api/core/queryKeySerializer.gen.ts +0 -136
  333. package/src/mtmai_api/core/serverSentEvents.gen.ts +0 -266
  334. package/src/mtmai_api/core/types.gen.ts +0 -118
  335. package/src/mtmai_api/core/utils.gen.ts +0 -143
  336. package/src/mtmai_api/index.ts +0 -4
  337. package/src/mtmai_api/schemas.gen.ts +0 -9980
  338. package/src/mtmai_api/sdk.gen.ts +0 -471
  339. package/src/mtmai_api/types.gen.ts +0 -7609
  340. package/src/mtmai_api/zod.gen.ts +0 -5101
  341. package/src/supabase/use-sb-query/prefetch.ts +0 -59
@@ -1,917 +0,0 @@
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';
5
- const createQueryKey = (id, options, infinite, tags) => {
6
- const params = { _id: id, baseUrl: options?.baseUrl || (options?.client ?? client).getConfig().baseUrl };
7
- if (infinite) {
8
- params._infinite = infinite;
9
- }
10
- if (tags) {
11
- params.tags = tags;
12
- }
13
- if (options?.body) {
14
- params.body = options.body;
15
- }
16
- if (options?.headers) {
17
- params.headers = options.headers;
18
- }
19
- if (options?.path) {
20
- params.path = options.path;
21
- }
22
- if (options?.query) {
23
- params.query = options.query;
24
- }
25
- return [params];
26
- };
27
- export const listAppsQueryKey = (options) => createQueryKey('listApps', options);
28
- /**
29
- * List Apps
30
- */
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);
44
- /**
45
- * Get Trace Dict
46
- */
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);
60
- /**
61
- * Get Session Trace
62
- */
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
- });
75
- /**
76
- * Delete Session
77
- */
78
- export const deleteSessionMutation = (options) => {
79
- const mutationOptions = {
80
- mutationFn: async (fnOptions) => {
81
- const { data } = await deleteSession({
82
- ...options,
83
- ...fnOptions,
84
- throwOnError: true
85
- });
86
- return data;
87
- }
88
- };
89
- return mutationOptions;
90
- };
91
- export const getSessionQueryKey = (options) => createQueryKey('getSession', options);
92
- /**
93
- * Get Session
94
- */
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
- });
107
- /**
108
- * Create Session With Id
109
- */
110
- export const createSessionWithIdMutation = (options) => {
111
- const mutationOptions = {
112
- mutationFn: async (fnOptions) => {
113
- const { data } = await createSessionWithId({
114
- ...options,
115
- ...fnOptions,
116
- throwOnError: true
117
- });
118
- return data;
119
- }
120
- };
121
- return mutationOptions;
122
- };
123
- export const listSessionsQueryKey = (options) => createQueryKey('listSessions', options);
124
- /**
125
- * List Sessions
126
- */
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
- });
139
- /**
140
- * Create Session
141
- */
142
- export const createSessionMutation = (options) => {
143
- const mutationOptions = {
144
- mutationFn: async (fnOptions) => {
145
- const { data } = await createSession({
146
- ...options,
147
- ...fnOptions,
148
- throwOnError: true
149
- });
150
- return data;
151
- }
152
- };
153
- return mutationOptions;
154
- };
155
- export const evaluationListEvalSetsQueryKey = (options) => createQueryKey('evaluationListEvalSets', options);
156
- /**
157
- * List Eval Sets
158
- *
159
- * Lists all eval sets for the given app.
160
- */
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
- });
173
- /**
174
- * Create Eval Set
175
- */
176
- export const evaluationCreateEvalSetMutation = (options) => {
177
- const mutationOptions = {
178
- mutationFn: async (fnOptions) => {
179
- const { data } = await evaluationCreateEvalSet({
180
- ...options,
181
- ...fnOptions,
182
- throwOnError: true
183
- });
184
- return data;
185
- }
186
- };
187
- return mutationOptions;
188
- };
189
- /**
190
- * Create Eval Set Legacy
191
- *
192
- * Creates an eval set, given the id.
193
- */
194
- export const evaluationCreateEvalSetLegacyMutation = (options) => {
195
- const mutationOptions = {
196
- mutationFn: async (fnOptions) => {
197
- const { data } = await evaluationCreateEvalSetLegacy({
198
- ...options,
199
- ...fnOptions,
200
- throwOnError: true
201
- });
202
- return data;
203
- }
204
- };
205
- return mutationOptions;
206
- };
207
- export const evaluationListEvalSetsLegacyQueryKey = (options) => createQueryKey('evaluationListEvalSetsLegacy', options);
208
- /**
209
- * List Eval Sets Legacy
210
- */
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
- });
223
- /**
224
- * Add Session To Eval Set
225
- */
226
- export const evaluationAddSessionToEvalSetMutation = (options) => {
227
- const mutationOptions = {
228
- mutationFn: async (fnOptions) => {
229
- const { data } = await evaluationAddSessionToEvalSet({
230
- ...options,
231
- ...fnOptions,
232
- throwOnError: true
233
- });
234
- return data;
235
- }
236
- };
237
- return mutationOptions;
238
- };
239
- export const evaluationListEvalsInEvalSetQueryKey = (options) => createQueryKey('evaluationListEvalsInEvalSet', options);
240
- /**
241
- * List Evals In Eval Set
242
- *
243
- * Lists all evals in an eval set.
244
- */
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
- });
257
- /**
258
- * Delete Eval
259
- */
260
- export const evaluationDeleteEvalMutation = (options) => {
261
- const mutationOptions = {
262
- mutationFn: async (fnOptions) => {
263
- const { data } = await evaluationDeleteEval({
264
- ...options,
265
- ...fnOptions,
266
- throwOnError: true
267
- });
268
- return data;
269
- }
270
- };
271
- return mutationOptions;
272
- };
273
- export const evaluationGetEvalQueryKey = (options) => createQueryKey('evaluationGetEval', options);
274
- /**
275
- * Get Eval
276
- *
277
- * Gets an eval case in an eval set.
278
- */
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
- });
291
- /**
292
- * Update Eval
293
- */
294
- export const evaluationUpdateEvalMutation = (options) => {
295
- const mutationOptions = {
296
- mutationFn: async (fnOptions) => {
297
- const { data } = await evaluationUpdateEval({
298
- ...options,
299
- ...fnOptions,
300
- throwOnError: true
301
- });
302
- return data;
303
- }
304
- };
305
- return mutationOptions;
306
- };
307
- /**
308
- * Run Eval Legacy
309
- */
310
- export const evaluationRunEvalLegacyMutation = (options) => {
311
- const mutationOptions = {
312
- mutationFn: async (fnOptions) => {
313
- const { data } = await evaluationRunEvalLegacy({
314
- ...options,
315
- ...fnOptions,
316
- throwOnError: true
317
- });
318
- return data;
319
- }
320
- };
321
- return mutationOptions;
322
- };
323
- /**
324
- * Run Eval
325
- *
326
- * Runs an eval given the details in the eval request.
327
- */
328
- export const evaluationRunEvalMutation = (options) => {
329
- const mutationOptions = {
330
- mutationFn: async (fnOptions) => {
331
- const { data } = await evaluationRunEval({
332
- ...options,
333
- ...fnOptions,
334
- throwOnError: true
335
- });
336
- return data;
337
- }
338
- };
339
- return mutationOptions;
340
- };
341
- export const evaluationGetEvalResultQueryKey = (options) => createQueryKey('evaluationGetEvalResult', options);
342
- /**
343
- * Get Eval Result
344
- *
345
- * Gets the eval result for the given eval id.
346
- */
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);
360
- /**
361
- * Get Eval Result Legacy
362
- */
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);
376
- /**
377
- * List Eval Results
378
- *
379
- * Lists all eval results for the given app.
380
- */
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);
394
- /**
395
- * List Eval Results Legacy
396
- */
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);
410
- /**
411
- * List Metrics Info
412
- *
413
- * Lists all eval metrics for the given app.
414
- */
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
- });
427
- /**
428
- * Delete Artifact
429
- */
430
- export const deleteArtifactMutation = (options) => {
431
- const mutationOptions = {
432
- mutationFn: async (fnOptions) => {
433
- const { data } = await deleteArtifact({
434
- ...options,
435
- ...fnOptions,
436
- throwOnError: true
437
- });
438
- return data;
439
- }
440
- };
441
- return mutationOptions;
442
- };
443
- export const loadArtifactQueryKey = (options) => createQueryKey('loadArtifact', options);
444
- /**
445
- * Load Artifact
446
- */
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);
460
- /**
461
- * Load Artifact Version
462
- */
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);
476
- /**
477
- * List Artifact Names
478
- */
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);
492
- /**
493
- * List Artifact Versions
494
- */
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
- });
507
- /**
508
- * Run Agent
509
- */
510
- export const runAgentMutation = (options) => {
511
- const mutationOptions = {
512
- mutationFn: async (fnOptions) => {
513
- const { data } = await runAgent({
514
- ...options,
515
- ...fnOptions,
516
- throwOnError: true
517
- });
518
- return data;
519
- }
520
- };
521
- return mutationOptions;
522
- };
523
- /**
524
- * Run Agent Sse
525
- */
526
- export const runAgentSseMutation = (options) => {
527
- const mutationOptions = {
528
- mutationFn: async (fnOptions) => {
529
- const { data } = await runAgentSse({
530
- ...options,
531
- ...fnOptions,
532
- throwOnError: true
533
- });
534
- return data;
535
- }
536
- };
537
- return mutationOptions;
538
- };
539
- export const debugGetEventGraphQueryKey = (options) => createQueryKey('debugGetEventGraph', options);
540
- /**
541
- * Get Event Graph
542
- */
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);
556
- /**
557
- * Redirect Root To Dev Ui
558
- */
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);
572
- /**
573
- * Redirect Dev Ui Add Slash
574
- */
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
- });
587
- /**
588
- * Builder Build
589
- */
590
- export const builderBuildMutation = (options) => {
591
- const mutationOptions = {
592
- mutationFn: async (fnOptions) => {
593
- const { data } = await builderBuild({
594
- ...options,
595
- ...fnOptions,
596
- throwOnError: true
597
- });
598
- return data;
599
- }
600
- };
601
- return mutationOptions;
602
- };
603
- export const getAgentBuilderQueryKey = (options) => createQueryKey('getAgentBuilder', options);
604
- /**
605
- * Get Agent Builder
606
- */
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);
620
- /**
621
- * Get Chat Config
622
- *
623
- * 获取当前聊天配置
624
- */
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
- });
637
- /**
638
- * Update Chat Config
639
- *
640
- * 更新聊天配置
641
- */
642
- export const chatAgentUpdateChatConfigMutation = (options) => {
643
- const mutationOptions = {
644
- mutationFn: async (fnOptions) => {
645
- const { data } = await chatAgentUpdateChatConfig({
646
- ...options,
647
- ...fnOptions,
648
- throwOnError: true
649
- });
650
- return data;
651
- }
652
- };
653
- return mutationOptions;
654
- };
655
- export const chatAgentGetProvidersQueryKey = (options) => createQueryKey('chatAgentGetProviders', options);
656
- /**
657
- * Get Providers
658
- *
659
- * 获取所有可用的AI提供商
660
- */
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
- });
673
- /**
674
- * Validate Api Key
675
- *
676
- * 验证API密钥
677
- */
678
- export const chatAgentValidateApiKeyMutation = (options) => {
679
- const mutationOptions = {
680
- mutationFn: async (fnOptions) => {
681
- const { data } = await chatAgentValidateApiKey({
682
- ...options,
683
- ...fnOptions,
684
- throwOnError: true
685
- });
686
- return data;
687
- }
688
- };
689
- return mutationOptions;
690
- };
691
- export const chatAgentExportConfigQueryKey = (options) => createQueryKey('chatAgentExportConfig', options);
692
- /**
693
- * Export Config
694
- *
695
- * 导出AI配置
696
- */
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
- });
709
- /**
710
- * Import Config
711
- *
712
- * 导入AI配置
713
- */
714
- export const chatAgentImportConfigMutation = (options) => {
715
- const mutationOptions = {
716
- mutationFn: async (fnOptions) => {
717
- const { data } = await chatAgentImportConfig({
718
- ...options,
719
- ...fnOptions,
720
- throwOnError: true
721
- });
722
- return data;
723
- }
724
- };
725
- return mutationOptions;
726
- };
727
- /**
728
- * Chat
729
- *
730
- * 处理聊天请求 - 使用新的Agent架构
731
- */
732
- export const chatAgentChatMutation = (options) => {
733
- const mutationOptions = {
734
- mutationFn: async (fnOptions) => {
735
- const { data } = await chatAgentChat({
736
- ...options,
737
- ...fnOptions,
738
- throwOnError: true
739
- });
740
- return data;
741
- }
742
- };
743
- return mutationOptions;
744
- };
745
- export const listItemsQueryKey = (options) => createQueryKey('listItems', options);
746
- /**
747
- * List Items
748
- *
749
- * List all items in the database.
750
- *
751
- * Returns a list of items, with pagination support.
752
- */
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
- });
765
- /**
766
- * Create Item
767
- *
768
- * Create a new item in the database.
769
- *
770
- * Returns the created item with its assigned ID.
771
- */
772
- export const createItemMutation = (options) => {
773
- const mutationOptions = {
774
- mutationFn: async (fnOptions) => {
775
- const { data } = await createItem({
776
- ...options,
777
- ...fnOptions,
778
- throwOnError: true
779
- });
780
- return data;
781
- }
782
- };
783
- return mutationOptions;
784
- };
785
- /**
786
- * Delete Item
787
- *
788
- * Delete an item from the database.
789
- *
790
- * Raises a 404 error if the item does not exist.
791
- */
792
- export const deleteItemMutation = (options) => {
793
- const mutationOptions = {
794
- mutationFn: async (fnOptions) => {
795
- const { data } = await deleteItem({
796
- ...options,
797
- ...fnOptions,
798
- throwOnError: true
799
- });
800
- return data;
801
- }
802
- };
803
- return mutationOptions;
804
- };
805
- export const getItemQueryKey = (options) => createQueryKey('getItem', options);
806
- /**
807
- * Read Item
808
- *
809
- * Get a specific item by its ID.
810
- *
811
- * Raises a 404 error if the item does not exist.
812
- */
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
- });
825
- /**
826
- * Update Item
827
- *
828
- * Update an existing item.
829
- *
830
- * Raises a 404 error if the item does not exist.
831
- */
832
- export const updateItemMutation = (options) => {
833
- const mutationOptions = {
834
- mutationFn: async (fnOptions) => {
835
- const { data } = await updateItem({
836
- ...options,
837
- ...fnOptions,
838
- throwOnError: true
839
- });
840
- return data;
841
- }
842
- };
843
- return mutationOptions;
844
- };
845
- export const searchItemsQueryKey = (options) => createQueryKey('searchItems', options);
846
- /**
847
- * Search Items
848
- *
849
- * Search for items with various filters.
850
- *
851
- * Returns a list of items that match the search criteria.
852
- */
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
- });
865
- /**
866
- * Agentrun
867
- */
868
- export const agentsAgentrunMutation = (options) => {
869
- const mutationOptions = {
870
- mutationFn: async (fnOptions) => {
871
- const { data } = await agentsAgentrun({
872
- ...options,
873
- ...fnOptions,
874
- throwOnError: true
875
- });
876
- return data;
877
- }
878
- };
879
- return mutationOptions;
880
- };
881
- /**
882
- * Start Napcat Sandbox
883
- *
884
- * 启动 Napcat 沙箱(同步返回结果)
885
- */
886
- export const sandboxStartNapcatSandboxMutation = (options) => {
887
- const mutationOptions = {
888
- mutationFn: async (fnOptions) => {
889
- const { data } = await sandboxStartNapcatSandbox({
890
- ...options,
891
- ...fnOptions,
892
- throwOnError: true
893
- });
894
- return data;
895
- }
896
- };
897
- return mutationOptions;
898
- };
899
- /**
900
- * Check Sandbox Status
901
- *
902
- * 检查指定沙盒的状态
903
- */
904
- export const sandboxCheckSandboxStatusMutation = (options) => {
905
- const mutationOptions = {
906
- mutationFn: async (fnOptions) => {
907
- const { data } = await sandboxCheckSandboxStatus({
908
- ...options,
909
- ...fnOptions,
910
- throwOnError: true
911
- });
912
- return data;
913
- }
914
- };
915
- return mutationOptions;
916
- };
917
- //# sourceMappingURL=react-query.gen.js.map