mtmsdk 0.0.50 → 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,33 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Google LLC
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
-
18
- /**
19
- * Runtime configuration for the ADK web app. Corresponds to the JSON file
20
- * read by the web app at runtime (runtime-config.json).
21
- */
22
- export declare interface RuntimeConfig {
23
- backendUrl: string;
24
- logo?: LogoConfig;
25
- }
26
-
27
- /**
28
- * Logo configuration for the ADK web app.
29
- */
30
- export declare interface LogoConfig {
31
- text: string;
32
- imageUrl: string;
33
- }
@@ -1,52 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Google LLC
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import z from "zod";
18
- import { type Event, zAdkEvent } from "./types";
19
-
20
- /**
21
- * Interface representing the state of a Session.
22
- */
23
- export type SessionState = {
24
- [key: string]: unknown;
25
- };
26
-
27
- /**
28
- * Interface representing a Session.
29
- */
30
- export declare interface Session {
31
- id?: string;
32
- appName?: string;
33
- userId?: string;
34
- state?: SessionState;
35
- events?: Event[];
36
- lastUpdateTime?: number;
37
- }
38
-
39
- export const zAdkSessionState = z.any();
40
-
41
- export const zAdkSession = z.object({
42
- id: z.string().optional(),
43
- appName: z.string().optional(),
44
- userId: z.string().optional(),
45
- state: zAdkSessionState,
46
- events: z.array(zAdkEvent).optional(),
47
- // lastUpdateTime: z.number(), //删除
48
- updateAt: z.iso.datetime().optional(), //新增
49
- // updateAt: z.coerce.date(),
50
- // updateAt: z.date().optional(), //新增
51
- });
52
-
@@ -1,42 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Google LLC
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- export declare interface Span {
18
- name: string;
19
- start_time: number;
20
- end_time: number;
21
- span_id: string;
22
- parent_span_id?: string;
23
- trace_id: string;
24
- attributes?: any;
25
- children?: Span[];
26
- invoc_id?: string;
27
- // For backward compatibility.
28
- 'gcp.vertex.agent.llm_request'?: string;
29
- 'gcp.vertex.agent.llm_response'?: string;
30
- }
31
-
32
- export declare interface SpanNode extends Span {
33
- children: SpanNode[];
34
- depth: number;
35
- duration: number;
36
- id: string; // Using span_id as string ID
37
- }
38
-
39
- export declare interface TimeTick {
40
- position: number;
41
- label: string;
42
- }
@@ -1,255 +0,0 @@
1
- import z from "zod";
2
-
3
- // 修复拼写错误: mimtType -> mimeType
4
- export const zAdkBlob = z.object({
5
- mimeType: z.string().optional(),
6
- data: z.string(),
7
- }).meta({ref:"AdkBlob"})
8
-
9
- export type Blob = z.infer<typeof zAdkBlob>
10
-
11
- export const zAdkFunctionCall = z.object({
12
- id: z.string().optional(),
13
- name: z.string(),
14
- // 明确 args 为任意键值对
15
- args: z.record(z.string(), z.any()),
16
- }).meta({ref: "AdkFunctionCall"})
17
-
18
- export type FunctionCall = z.infer<typeof zAdkFunctionCall>
19
-
20
- export const zAdkFunctionResp = z.object({
21
- id: z.string().optional(),
22
- name: z.string(),
23
- response: z.record(z.string(),z.any()),
24
- }).meta({ref: "AdkFunctionResp"})
25
-
26
- export type FunctionResponse = z.infer<typeof zAdkFunctionResp>
27
-
28
- export const zAdkFileData = z.object({
29
- mimeType: z.string(),
30
- fileUri: z.string(),
31
- }).meta({ref: "AdkFileData"})
32
-
33
- export type FileData = z.infer<typeof zAdkFileData>
34
-
35
- export const zAdkExecutableCode = z.object({
36
- language: z.enum(["UNKNOWN","PYTHON"]),
37
- code: z.string(),
38
- }).meta({ref:"AdkExecutableCode"})
39
-
40
- export type ExecutableCode = z.infer<typeof zAdkExecutableCode>
41
-
42
- export const zAdkCodeExecutionResult = z.object({
43
- outcome: z.enum(['UNKNOWN','OK','FAILED','DEADLINE_EXCEEDED']),
44
- output: z.string(),
45
- }).meta({ref:"AdkCodeExecutionResult"})
46
-
47
- export type CodeExecutionResult = z.infer<typeof zAdkCodeExecutionResult>
48
-
49
- // Part 是递归结构的一部分,但在 Zod 中通常不需要显式递归定义,除非 Part 包含 GenAiContent
50
- export const zAdkPart = z.object({
51
- text: z.string().optional(),
52
- inlineData: zAdkBlob.optional(),
53
- functionCall: zAdkFunctionCall.optional(),
54
- functionResponse: zAdkFunctionResp.optional(),
55
- thought: z.boolean().optional(),
56
- fileData: zAdkFileData.optional(),
57
- executableCode: zAdkExecutableCode.optional(),
58
- codeExecutionResult: zAdkCodeExecutionResult.optional(),
59
- }).meta({ref:"AdkPart"})
60
-
61
- export type Part = z.infer<typeof zAdkPart>
62
-
63
- export declare interface GenAiContent {
64
- role: string;
65
- parts: Part[];
66
- }
67
-
68
- export const zGenaiContent = z.object({
69
- role: z.string(),
70
- parts: z.array(zAdkPart),
71
- }).meta({ref:"GenaiContent"})
72
-
73
- export declare interface LlmRequest {
74
- contents: GenAiContent[];
75
- }
76
-
77
- export const zAdkLlmRequest = z.object({
78
- contents: z.array(zGenaiContent)
79
- }).meta({ref:"AdkLlmRequest"})
80
-
81
- export const zAdkEventActions = z.object({
82
- message: z.string().optional(),
83
- artifactDelta: z.any().optional(),
84
- functionCall: zAdkFunctionCall.optional(),
85
- functionResponse: zAdkFunctionResp.optional(),
86
- finishReason: z.string().optional(),
87
- }).meta({ref:"AdkEventActions"})
88
-
89
- export type EventActions = z.infer<typeof zAdkEventActions>
90
-
91
- // 注意: 为了避免类型混淆和 'llmResponse' 不存在的错误,
92
- // 这里我们将 Event 定义为扁平结构,直接包含 Content 和 Metadata。
93
- // 这也是 Google ADK Event Python 对象的实际结构。
94
- export const zAdkEvent = z.object({
95
- // 基础字段
96
- id: z.string().optional(),
97
- author: z.string().optional(),
98
- invocationId: z.string().optional(),
99
- actions: zAdkEventActions.optional(),
100
- longRunningToolIds: z.array(z.string()).optional(),
101
- branch: z.string().optional(),
102
- timestamp: z.number().optional(), // 对应 Unix Timestamp (seconds or millis)
103
-
104
- // LLM Response 字段 (扁平化)
105
- content: zGenaiContent.optional(),
106
- error: z.string().optional(),
107
- errorMessage: z.string().optional(),
108
- errorCode: z.string().optional(),
109
-
110
- // Metadata
111
- groundingMetadata: z.any().optional(), // 暂时使用 any,如有具体结构可细化
112
- usageMetadata: z.any().optional(),
113
- citationMetadata: z.any().optional(),
114
- customMetadata: z.any().optional(),
115
-
116
- // 状态
117
- turnComplete: z.boolean().optional(),
118
- interrupted: z.boolean().optional(),
119
- }).meta({ref:"AdkEvent"})
120
-
121
- export type Event = z.infer<typeof zAdkEvent>
122
-
123
- /**
124
- * 数据库对应的 Event 结构,通常与 API Event 结构一致
125
- */
126
- export const zDbAdkEvent = zAdkEvent.meta({ref:"DbAdkEvent"})
127
- // import z from "zod";
128
-
129
- // export const zAdkBlob = z.object({
130
- // mimtType: z.string().optional(),
131
- // data: z.string(),
132
- // }).meta({ref:"AdkBlob"})
133
-
134
- // export type Blob = z.infer<typeof zAdkBlob>
135
-
136
- // export const zAdkFunctionCall = z.object({
137
- // id: z.string().optional(),
138
- // name: z.string(),
139
- // args: z.record(z.string(), z.any()), // 最终的类型应该是: {[key: string]: any}
140
- // }).meta({ref: "AdkFunctionCall"})
141
- // export type FunctionCall = z.infer<typeof zAdkFunctionCall>
142
-
143
- // export const zAdkFunctionResp =z.object({
144
- // id: z.string().optional(),
145
- // name: z.string(),
146
- // response: z.record(z.string(),z.any()),
147
- // }).meta({ref: "AdkFunctionResp"})
148
-
149
- // export type FunctionResponse = z.infer<typeof zAdkFunctionResp>
150
-
151
- // export const zAdkFileData = z.object({
152
- // mimeType: z.string(),
153
- // fileUri: z.string(),
154
- // }).meta({ref: "AdkFileData"})
155
-
156
- // export type FileData = z.infer<typeof zAdkFileData>
157
-
158
- // export const zAdkExecutableCode = z.object({
159
- // language: z.enum(["UNKNOWN","PYTHON"]),
160
- // code: z.string(),
161
- // }).meta({ref:"AdkExecutableCode"})
162
-
163
- // export type ExecutableCode= z.infer<typeof zAdkExecutableCode>
164
-
165
- // export const zAdkCodeExecutionResult = z.object({
166
- // outcome: z.enum(['UNKNOWN','OK','FAILED','DEADLINE_EXCEEDED']),
167
- // output:z.string(),
168
- // }).meta({ref:"AdkCodeExecutionResult"})
169
-
170
- // export type CodeExecutionResult = z.infer<typeof zAdkCodeExecutionResult>
171
-
172
- // export const zAdkPart = z.object(
173
- // {
174
- // text: z.string().optional(),
175
- // inlineData: zAdkBlob.optional(),
176
- // functionCall: zAdkFunctionCall.optional(),
177
- // functionResponse: zAdkFunctionResp.optional(),
178
- // thought: z.boolean().optional(),
179
- // fileData: zAdkFileData.optional(),
180
- // executableCode:zAdkExecutableCode.optional(),
181
- // codeExecutionResult: zAdkCodeExecutionResult.optional(),
182
- // }
183
- // ).meta({ref:"AdkPart"})
184
-
185
- // export type Part = z.infer<typeof zAdkPart>
186
-
187
- // export declare interface GenAiContent {
188
- // role: string;
189
- // parts: Part[];
190
- // }
191
- // export const zGenaiContent = z.object({
192
- // role: z.string(),
193
- // parts:z.array(zAdkPart),
194
- // }).meta({ref:"GenaiContent"})
195
-
196
-
197
- // export declare interface LlmRequest {
198
- // contents: GenAiContent[];
199
- // }
200
-
201
- // export const zAdkLlmRequest = z.object({
202
- // contents: z.array(zGenaiContent)
203
- // }).meta({ref:"AdkLlmRequest"})
204
-
205
- // export declare interface LlmResponse {
206
- // content: GenAiContent;
207
- // error?: string;
208
- // errorMessage?: string;
209
- // errorCode?: string;
210
- // longRunningToolIds?: string[];
211
- // }
212
-
213
- // export const zLLmResponse = z.object({
214
- // content: zGenaiContent,
215
- // error:z.string().optional(),
216
- // errorMessage: z.string().optional(),
217
- // errorCode: z.string().optional(),
218
- // longRunningToolIds: z.array(z.string()).optional()
219
- // }).meta({ref:"LLmResponse"})
220
-
221
- // export const zAdkEventActions = z.object({
222
- // message: z.string().optional(),
223
- // artifactDelta: z.any().optional(),
224
- // functionCall: zAdkFunctionCall.optional(),
225
- // functionResponse:zAdkFunctionResp.optional(),
226
- // finishReason:z.string().optional(),
227
- // }).meta({ref:"AdkEventActions"})
228
-
229
- // export type EventActions = z.infer<typeof zAdkEventActions>
230
-
231
- // export const zAdkEvent = zLLmResponse.extend({
232
- // id: z.string().optional(),
233
- // author: z.string().optional(),
234
- // invocationId: z.string().optional(),
235
- // actions: zAdkEventActions.optional(),
236
- // longRunningToolIds: z.array(z.string()).optional(),
237
- // branch:z.string().optional(),
238
- // timestamp:z.number().optional(),
239
- // }).meta({ref:"AdkEvent"})
240
-
241
- // export type Event = z.infer<typeof zAdkEvent>
242
-
243
- // /**
244
- // * 跟数据库结构对应
245
- // */
246
- // export const zDbAdkEvent = zLLmResponse.extend({
247
- // id: z.string().optional(),
248
- // author: z.string().optional(),
249
- // invocationId: z.string().optional(),
250
- // actions: zAdkEventActions.optional(),
251
- // longRunningToolIds: z.array(z.string()).optional(),
252
- // branch:z.string().optional(),
253
- // timestamp:z.number().optional(),
254
- // }).meta({ref:"DbAdkEvent"})
255
-
package/src/lib/utils.ts DELETED
@@ -1,54 +0,0 @@
1
- // import type { Json } from "../types/database.types";
2
-
3
- /**
4
- * 提交到 supabase的参数,自动添加前缀'p_', 因为约定所有的后端的 postgresql function的参数都使用"p_"前缀.
5
- * @param params Das ursprüngliche Objekt, dessen Schlüssel transformiert werden sollen.
6
- * @returns Ein neues Objekt mit den präfigierten Schlüsseln.
7
- *
8
- * @example
9
- * {arg1: "value", arg2: "value2"} => {p_arg1:"value", p_arg2:"value2"}
10
- */
11
- export const normalFuncParams_old = <T extends Record<string, any>>(
12
- params: T,
13
- ): { [K in keyof T as `p_${string & K}`]: T[K] } => {
14
- const finalParams = {} as { [K in keyof T as `p_${string & K}`]: T[K] };
15
- for (const key in params) {
16
- if (Object.hasOwn(params, key)) {
17
- (finalParams as any)[`p_${key}`] = params[key];
18
- }
19
- }
20
- return finalParams;
21
- };
22
-
23
- export const normalFuncParams = <T extends Record<string, any>>(
24
- params: T,
25
- ): { [K in keyof T as `p_${string & K}`]: Exclude<T[K], null> } => {
26
- const finalParams = {} as { [K in keyof T as `p_${string & K}`]: Exclude<T[K], null> };
27
-
28
- for (const key in params) {
29
- if (Object.hasOwn(params, key)) {
30
- const value = params[key];
31
- // Wandelt den Wert zur Laufzeit um: null wird zu undefined
32
- (finalParams as any)[`p_${key}`] = value === null ? undefined : value;
33
- }
34
- }
35
- return finalParams;
36
- };
37
-
38
- /**
39
- * 将可能为null值的字段转换为undefined
40
- */
41
- // export const fieldNullToUndefined = <T extends Record<string, any>>(
42
- // obj: T,
43
- // ): { [K in keyof T]: T[K] extends null ? undefined : T[K] } => {
44
- // const newObj = { ...obj }; // Erstellt eine flache Kopie, um das Originalobjekt nicht zu verändern
45
-
46
- // for (const key in newObj) {
47
- // if (Object.hasOwn(newObj, key) && newObj[key] === null) {
48
- // // TypeScript versteht hier, dass der Typ zu 'undefined' geändert wird
49
- // (newObj as any)[key] = undefined;
50
- // }
51
- // }
52
-
53
- // return newObj as { [K in keyof T]: T[K] extends null ? undefined : T[K] };
54
- // };
@@ -1,142 +0,0 @@
1
- // This file is auto-generated by @hey-api/openapi-ts
2
-
3
- import { type DefaultError, queryOptions, type UseMutationOptions } from '@tanstack/react-query';
4
-
5
- import { client } from '../client.gen';
6
- import { adkAgentRun, agentChatList, agentQuickAction, agentRun, browserOpen, humanTasksList, mcpApiHello, type Options } from '../sdk.gen';
7
- import type { AdkAgentRunData, AdkAgentRunResponse, AgentChatListData, AgentChatListResponse, AgentQuickActionData, AgentQuickActionResponse, AgentRunData, AgentRunResponse, BrowserOpenData, BrowserOpenResponse, HumanTasksListData, HumanTasksListResponse, McpApiHelloData } from '../types.gen';
8
-
9
- export const adkAgentRunMutation = (options?: Partial<Options<AdkAgentRunData>>): UseMutationOptions<AdkAgentRunResponse, DefaultError, Options<AdkAgentRunData>> => {
10
- const mutationOptions: UseMutationOptions<AdkAgentRunResponse, DefaultError, Options<AdkAgentRunData>> = {
11
- mutationFn: async (fnOptions) => {
12
- const { data } = await adkAgentRun({
13
- ...options,
14
- ...fnOptions,
15
- throwOnError: true
16
- });
17
- return data;
18
- }
19
- };
20
- return mutationOptions;
21
- };
22
-
23
- export const browserOpenMutation = (options?: Partial<Options<BrowserOpenData>>): UseMutationOptions<BrowserOpenResponse, DefaultError, Options<BrowserOpenData>> => {
24
- const mutationOptions: UseMutationOptions<BrowserOpenResponse, DefaultError, Options<BrowserOpenData>> = {
25
- mutationFn: async (fnOptions) => {
26
- const { data } = await browserOpen({
27
- ...options,
28
- ...fnOptions,
29
- throwOnError: true
30
- });
31
- return data;
32
- }
33
- };
34
- return mutationOptions;
35
- };
36
-
37
- export type QueryKey<TOptions extends Options> = [
38
- Pick<TOptions, 'baseUrl' | 'body' | 'headers' | 'path' | 'query'> & {
39
- _id: string;
40
- _infinite?: boolean;
41
- tags?: ReadonlyArray<string>;
42
- }
43
- ];
44
-
45
- const createQueryKey = <TOptions extends Options>(id: string, options?: TOptions, infinite?: boolean, tags?: ReadonlyArray<string>): [
46
- QueryKey<TOptions>[0]
47
- ] => {
48
- const params: QueryKey<TOptions>[0] = { _id: id, baseUrl: options?.baseUrl || (options?.client ?? client).getConfig().baseUrl } as QueryKey<TOptions>[0];
49
- if (infinite) {
50
- params._infinite = infinite;
51
- }
52
- if (tags) {
53
- params.tags = tags;
54
- }
55
- if (options?.body) {
56
- params.body = options.body;
57
- }
58
- if (options?.headers) {
59
- params.headers = options.headers;
60
- }
61
- if (options?.path) {
62
- params.path = options.path;
63
- }
64
- if (options?.query) {
65
- params.query = options.query;
66
- }
67
- return [params];
68
- };
69
-
70
- export const agentChatListQueryKey = (options?: Options<AgentChatListData>) => createQueryKey('agentChatList', options);
71
-
72
- export const agentChatListOptions = (options?: Options<AgentChatListData>) => queryOptions<AgentChatListResponse, DefaultError, AgentChatListResponse, ReturnType<typeof agentChatListQueryKey>>({
73
- queryFn: async ({ queryKey, signal }) => {
74
- const { data } = await agentChatList({
75
- ...options,
76
- ...queryKey[0],
77
- signal,
78
- throwOnError: true
79
- });
80
- return data;
81
- },
82
- queryKey: agentChatListQueryKey(options)
83
- });
84
-
85
- export const agentRunMutation = (options?: Partial<Options<AgentRunData>>): UseMutationOptions<AgentRunResponse, DefaultError, Options<AgentRunData>> => {
86
- const mutationOptions: UseMutationOptions<AgentRunResponse, DefaultError, Options<AgentRunData>> = {
87
- mutationFn: async (fnOptions) => {
88
- const { data } = await agentRun({
89
- ...options,
90
- ...fnOptions,
91
- throwOnError: true
92
- });
93
- return data;
94
- }
95
- };
96
- return mutationOptions;
97
- };
98
-
99
- export const agentQuickActionQueryKey = (options?: Options<AgentQuickActionData>) => createQueryKey('agentQuickAction', options);
100
-
101
- export const agentQuickActionOptions = (options?: Options<AgentQuickActionData>) => queryOptions<AgentQuickActionResponse, DefaultError, AgentQuickActionResponse, ReturnType<typeof agentQuickActionQueryKey>>({
102
- queryFn: async ({ queryKey, signal }) => {
103
- const { data } = await agentQuickAction({
104
- ...options,
105
- ...queryKey[0],
106
- signal,
107
- throwOnError: true
108
- });
109
- return data;
110
- },
111
- queryKey: agentQuickActionQueryKey(options)
112
- });
113
-
114
- export const humanTasksListQueryKey = (options?: Options<HumanTasksListData>) => createQueryKey('humanTasksList', options);
115
-
116
- export const humanTasksListOptions = (options?: Options<HumanTasksListData>) => queryOptions<HumanTasksListResponse, DefaultError, HumanTasksListResponse, ReturnType<typeof humanTasksListQueryKey>>({
117
- queryFn: async ({ queryKey, signal }) => {
118
- const { data } = await humanTasksList({
119
- ...options,
120
- ...queryKey[0],
121
- signal,
122
- throwOnError: true
123
- });
124
- return data;
125
- },
126
- queryKey: humanTasksListQueryKey(options)
127
- });
128
-
129
- export const mcpApiHelloQueryKey = (options: Options<McpApiHelloData>) => createQueryKey('mcpApiHello', options);
130
-
131
- export const mcpApiHelloOptions = (options: Options<McpApiHelloData>) => queryOptions<unknown, DefaultError, unknown, ReturnType<typeof mcpApiHelloQueryKey>>({
132
- queryFn: async ({ queryKey, signal }) => {
133
- const { data } = await mcpApiHello({
134
- ...options,
135
- ...queryKey[0],
136
- signal,
137
- throwOnError: true
138
- });
139
- return data;
140
- },
141
- queryKey: mcpApiHelloQueryKey(options)
142
- });