mtmsdk 0.0.41 → 0.0.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (480) hide show
  1. package/dist/cloud-account/platform-configs.d.ts +64 -0
  2. package/dist/cloud-account/platform-configs.d.ts.map +1 -0
  3. package/dist/cloud-account/platform-configs.js +44 -0
  4. package/dist/cloud-account/platform-configs.js.map +1 -0
  5. package/dist/{gomtmapi_v2 → gomtmapi}/@tanstack/react-query.gen.d.ts +202 -8
  6. package/dist/gomtmapi/@tanstack/react-query.gen.d.ts.map +1 -0
  7. package/dist/{gomtmapi_v2 → gomtmapi}/@tanstack/react-query.gen.js +300 -10
  8. package/dist/gomtmapi/@tanstack/react-query.gen.js.map +1 -0
  9. package/dist/{opencode → gomtmapi}/client/client.gen.d.ts.map +1 -1
  10. package/dist/{opencode → gomtmapi}/client/client.gen.js.map +1 -1
  11. package/dist/{opencode → gomtmapi}/client/index.d.ts.map +1 -1
  12. package/dist/{opencode → gomtmapi}/client/index.js.map +1 -1
  13. package/dist/{opencode → gomtmapi}/client/types.gen.d.ts.map +1 -1
  14. package/dist/gomtmapi/client/types.gen.js.map +1 -0
  15. package/dist/{opencode → gomtmapi}/client/utils.gen.d.ts.map +1 -1
  16. package/dist/{opencode → gomtmapi}/client/utils.gen.js.map +1 -1
  17. package/dist/{opencode → gomtmapi}/client.gen.d.ts.map +1 -1
  18. package/dist/{opencode → gomtmapi}/client.gen.js.map +1 -1
  19. package/dist/{opencode → gomtmapi}/core/auth.gen.d.ts.map +1 -1
  20. package/dist/{opencode → gomtmapi}/core/auth.gen.js.map +1 -1
  21. package/dist/{opencode → gomtmapi}/core/bodySerializer.gen.d.ts.map +1 -1
  22. package/dist/{opencode → gomtmapi}/core/bodySerializer.gen.js.map +1 -1
  23. package/dist/{opencode → gomtmapi}/core/params.gen.d.ts.map +1 -1
  24. package/dist/{opencode → gomtmapi}/core/params.gen.js.map +1 -1
  25. package/dist/{opencode → gomtmapi}/core/pathSerializer.gen.d.ts.map +1 -1
  26. package/dist/{opencode → gomtmapi}/core/pathSerializer.gen.js.map +1 -1
  27. package/dist/{opencode → gomtmapi}/core/queryKeySerializer.gen.d.ts.map +1 -1
  28. package/dist/{opencode → gomtmapi}/core/queryKeySerializer.gen.js.map +1 -1
  29. package/dist/{opencode → gomtmapi}/core/serverSentEvents.gen.d.ts.map +1 -1
  30. package/dist/{opencode → gomtmapi}/core/serverSentEvents.gen.js.map +1 -1
  31. package/dist/{opencode → gomtmapi}/core/types.gen.d.ts.map +1 -1
  32. package/dist/gomtmapi/core/types.gen.js.map +1 -0
  33. package/dist/{opencode → gomtmapi}/core/utils.gen.d.ts.map +1 -1
  34. package/dist/{opencode → gomtmapi}/core/utils.gen.js.map +1 -1
  35. package/dist/gomtmapi/index.d.ts +3 -0
  36. package/dist/gomtmapi/index.d.ts.map +1 -0
  37. package/dist/gomtmapi/index.js +3 -0
  38. package/dist/gomtmapi/index.js.map +1 -0
  39. package/dist/{gomtmapi_v2 → gomtmapi}/schemas.gen.d.ts +337 -50
  40. package/dist/gomtmapi/schemas.gen.d.ts.map +1 -0
  41. package/dist/{gomtmapi_v2 → gomtmapi}/schemas.gen.js +355 -50
  42. package/dist/gomtmapi/schemas.gen.js.map +1 -0
  43. package/dist/gomtmapi/sdk.gen.d.ts +378 -0
  44. package/dist/gomtmapi/sdk.gen.d.ts.map +1 -0
  45. package/dist/{gomtmapi_v2 → gomtmapi}/sdk.gen.js +234 -15
  46. package/dist/gomtmapi/sdk.gen.js.map +1 -0
  47. package/dist/{gomtmapi_v2 → gomtmapi}/types.gen.d.ts +494 -50
  48. package/dist/gomtmapi/types.gen.d.ts.map +1 -0
  49. package/dist/gomtmapi/types.gen.js.map +1 -0
  50. package/dist/{gomtmapi_v2 → gomtmapi}/zod.gen.d.ts +391 -45
  51. package/dist/gomtmapi/zod.gen.d.ts.map +1 -0
  52. package/dist/{gomtmapi_v2 → gomtmapi}/zod.gen.js +270 -31
  53. package/dist/gomtmapi/zod.gen.js.map +1 -0
  54. package/dist/lib/logger/index.d.ts +3 -0
  55. package/dist/lib/logger/index.d.ts.map +1 -1
  56. package/dist/lib/schema.d.ts +14 -2
  57. package/dist/lib/schema.d.ts.map +1 -1
  58. package/dist/lib/schema.js +1 -1
  59. package/dist/lib/schema.js.map +1 -1
  60. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts +29 -1
  61. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts.map +1 -1
  62. package/dist/mtgate_api/@tanstack/react-query.gen.js +17 -1
  63. package/dist/mtgate_api/@tanstack/react-query.gen.js.map +1 -1
  64. package/dist/mtgate_api/index.d.ts +2 -2
  65. package/dist/mtgate_api/index.d.ts.map +1 -1
  66. package/dist/mtgate_api/index.js +1 -1
  67. package/dist/mtgate_api/index.js.map +1 -1
  68. package/dist/mtgate_api/schemas.gen.d.ts +1 -0
  69. package/dist/mtgate_api/schemas.gen.d.ts.map +1 -1
  70. package/dist/mtgate_api/schemas.gen.js +8 -1
  71. package/dist/mtgate_api/schemas.gen.js.map +1 -1
  72. package/dist/mtgate_api/sdk.gen.d.ts +5 -1
  73. package/dist/mtgate_api/sdk.gen.d.ts.map +1 -1
  74. package/dist/mtgate_api/sdk.gen.js +4 -0
  75. package/dist/mtgate_api/sdk.gen.js.map +1 -1
  76. package/dist/mtgate_api/types.gen.d.ts +7 -1
  77. package/dist/mtgate_api/types.gen.d.ts.map +1 -1
  78. package/dist/mtgate_api/zod.gen.d.ts +26 -3
  79. package/dist/mtgate_api/zod.gen.d.ts.map +1 -1
  80. package/dist/mtgate_api/zod.gen.js +12 -1
  81. package/dist/mtgate_api/zod.gen.js.map +1 -1
  82. package/dist/openclaw/client-info.d.ts +56 -0
  83. package/dist/openclaw/client-info.d.ts.map +1 -0
  84. package/dist/openclaw/client-info.js +44 -0
  85. package/dist/openclaw/client-info.js.map +1 -0
  86. package/dist/openclaw/device-auth-utils.d.ts +13 -0
  87. package/dist/openclaw/device-auth-utils.d.ts.map +1 -0
  88. package/dist/openclaw/device-auth-utils.js +20 -0
  89. package/dist/openclaw/device-auth-utils.js.map +1 -0
  90. package/dist/openclaw/device-auth.d.ts +21 -0
  91. package/dist/openclaw/device-auth.d.ts.map +1 -0
  92. package/dist/openclaw/device-auth.js +84 -0
  93. package/dist/openclaw/device-auth.js.map +1 -0
  94. package/dist/openclaw/device-identity.d.ts +8 -0
  95. package/dist/openclaw/device-identity.d.ts.map +1 -0
  96. package/dist/openclaw/device-identity.js +87 -0
  97. package/dist/openclaw/device-identity.js.map +1 -0
  98. package/dist/openclaw/gateway.d.ts +86 -0
  99. package/dist/openclaw/gateway.d.ts.map +1 -0
  100. package/dist/openclaw/gateway.js +268 -0
  101. package/dist/openclaw/gateway.js.map +1 -0
  102. package/dist/openclaw/types.d.ts +473 -0
  103. package/dist/openclaw/types.d.ts.map +1 -0
  104. package/dist/openclaw/types.js +2 -0
  105. package/dist/openclaw/types.js.map +1 -0
  106. package/dist/openclaw/uuid.d.ts +6 -0
  107. package/dist/openclaw/uuid.d.ts.map +1 -0
  108. package/dist/openclaw/uuid.js +39 -0
  109. package/dist/openclaw/uuid.js.map +1 -0
  110. package/dist/sbapi/@tanstack/react-query.gen.d.ts +3251 -6
  111. package/dist/sbapi/@tanstack/react-query.gen.d.ts.map +1 -1
  112. package/dist/sbapi/@tanstack/react-query.gen.js +6050 -6
  113. package/dist/sbapi/@tanstack/react-query.gen.js.map +1 -1
  114. package/dist/sbapi/client.gen.d.ts.map +1 -1
  115. package/dist/sbapi/client.gen.js +1 -1
  116. package/dist/sbapi/client.gen.js.map +1 -1
  117. package/dist/sbapi/index.d.ts +2 -2
  118. package/dist/sbapi/index.d.ts.map +1 -1
  119. package/dist/sbapi/index.js +1 -1
  120. package/dist/sbapi/index.js.map +1 -1
  121. package/dist/sbapi/schemas.gen.d.ts +2320 -36
  122. package/dist/sbapi/schemas.gen.d.ts.map +1 -1
  123. package/dist/sbapi/schemas.gen.js +2593 -45
  124. package/dist/sbapi/schemas.gen.js.map +1 -1
  125. package/dist/sbapi/sdk.gen.d.ts +819 -2
  126. package/dist/sbapi/sdk.gen.d.ts.map +1 -1
  127. package/dist/sbapi/sdk.gen.js +2463 -1
  128. package/dist/sbapi/sdk.gen.js.map +1 -1
  129. package/dist/sbapi/types.gen.d.ts +11701 -29
  130. package/dist/sbapi/types.gen.d.ts.map +1 -1
  131. package/dist/sbapi/zod.gen.d.ts +8134 -26
  132. package/dist/sbapi/zod.gen.d.ts.map +1 -1
  133. package/dist/sbapi/zod.gen.js +6572 -18
  134. package/dist/sbapi/zod.gen.js.map +1 -1
  135. package/dist/sbmng/@tanstack/react-query.gen.d.ts +253 -157
  136. package/dist/sbmng/@tanstack/react-query.gen.d.ts.map +1 -1
  137. package/dist/sbmng/@tanstack/react-query.gen.js +241 -145
  138. package/dist/sbmng/@tanstack/react-query.gen.js.map +1 -1
  139. package/dist/sbmng/index.d.ts +2 -2
  140. package/dist/sbmng/index.d.ts.map +1 -1
  141. package/dist/sbmng/index.js +1 -1
  142. package/dist/sbmng/index.js.map +1 -1
  143. package/dist/sbmng/schemas.gen.d.ts +1035 -917
  144. package/dist/sbmng/schemas.gen.d.ts.map +1 -1
  145. package/dist/sbmng/schemas.gen.js +1219 -1067
  146. package/dist/sbmng/schemas.gen.js.map +1 -1
  147. package/dist/sbmng/sdk.gen.d.ts +62 -38
  148. package/dist/sbmng/sdk.gen.d.ts.map +1 -1
  149. package/dist/sbmng/sdk.gen.js +140 -84
  150. package/dist/sbmng/sdk.gen.js.map +1 -1
  151. package/dist/sbmng/types.gen.d.ts +1214 -991
  152. package/dist/sbmng/types.gen.d.ts.map +1 -1
  153. package/dist/supabase/auth-provider.d.ts +4 -0
  154. package/dist/supabase/auth-provider.d.ts.map +1 -0
  155. package/dist/supabase/auth-provider.js +45 -0
  156. package/dist/supabase/auth-provider.js.map +1 -0
  157. package/dist/supabase/cursor-pagination.d.ts +92 -0
  158. package/dist/supabase/cursor-pagination.d.ts.map +1 -0
  159. package/dist/supabase/cursor-pagination.js +116 -0
  160. package/dist/supabase/cursor-pagination.js.map +1 -0
  161. package/dist/supabase/schema/browser.d.ts.map +1 -0
  162. package/dist/supabase/schema/browser.js.map +1 -0
  163. package/dist/supabase/schema/index.d.ts +29 -0
  164. package/dist/supabase/schema/index.d.ts.map +1 -0
  165. package/dist/supabase/schema/index.js +38 -0
  166. package/dist/supabase/schema/index.js.map +1 -0
  167. package/dist/supabase/supabase-client.d.ts +1912 -1128
  168. package/dist/supabase/supabase-client.d.ts.map +1 -1
  169. package/dist/supabase/supabase.d.ts +4466 -2898
  170. package/dist/supabase/supabase.d.ts.map +1 -1
  171. package/dist/supabase/supabase.js +7 -4
  172. package/dist/supabase/supabase.js.map +1 -1
  173. package/dist/supabase/use-sb-query/use-query.d.ts +1 -1
  174. package/dist/supabase/use-sb-query/use-query.d.ts.map +1 -1
  175. package/dist/supabase/use-sb-query/use-query.js +2 -6
  176. package/dist/supabase/use-sb-query/use-query.js.map +1 -1
  177. package/dist/supabase/use-sb-query/use-rpc-mutation.d.ts +61 -0
  178. package/dist/supabase/use-sb-query/use-rpc-mutation.d.ts.map +1 -0
  179. package/dist/supabase/use-sb-query/use-rpc-mutation.js +63 -0
  180. package/dist/supabase/use-sb-query/use-rpc-mutation.js.map +1 -0
  181. package/dist/supabase/use-sb-query/use-rpc-query.d.ts +124 -0
  182. package/dist/supabase/use-sb-query/use-rpc-query.d.ts.map +1 -0
  183. package/dist/supabase/use-sb-query/use-rpc-query.js +91 -0
  184. package/dist/supabase/use-sb-query/use-rpc-query.js.map +1 -0
  185. package/dist/supabase/utils.d.ts +1 -1
  186. package/dist/supabase/utils.d.ts.map +1 -1
  187. package/dist/types/database.schemas.d.ts +3911 -0
  188. package/dist/types/database.schemas.d.ts.map +1 -0
  189. package/dist/types/database.schemas.js +3180 -0
  190. package/dist/types/database.schemas.js.map +1 -0
  191. package/dist/types/database.types.d.ts +1923 -1134
  192. package/dist/types/database.types.d.ts.map +1 -1
  193. package/dist/types/database.types.js +24 -0
  194. package/dist/types/database.types.js.map +1 -1
  195. package/dist/types/index.d.ts +47 -6
  196. package/dist/types/index.d.ts.map +1 -1
  197. package/dist/types/index.js +27 -1
  198. package/dist/types/index.js.map +1 -1
  199. package/dist/types/rpc.schemas.d.ts +64 -0
  200. package/dist/types/rpc.schemas.d.ts.map +1 -0
  201. package/dist/types/rpc.schemas.js +122 -0
  202. package/dist/types/rpc.schemas.js.map +1 -0
  203. package/package.json +48 -39
  204. package/src/adk/api/client.ts +46 -0
  205. package/src/adk/core/constants/tool-icons.ts +51 -0
  206. package/src/adk/core/models/AgentBuilder.ts +80 -0
  207. package/src/adk/core/models/AgentRunRequest.ts +33 -0
  208. package/src/adk/core/models/Eval.ts +70 -0
  209. package/src/adk/core/models/LiveRequest.ts +23 -0
  210. package/src/adk/core/models/RuntimeConfig.ts +33 -0
  211. package/src/adk/core/models/Session.ts +52 -0
  212. package/src/adk/core/models/Trace.ts +42 -0
  213. package/src/adk/core/models/types.ts +255 -0
  214. package/src/api_hatchet/@tanstack/react-query.gen.ts +3025 -0
  215. package/src/api_hatchet/client/client.gen.ts +311 -0
  216. package/src/api_hatchet/client/index.ts +25 -0
  217. package/src/api_hatchet/client/types.gen.ts +241 -0
  218. package/src/api_hatchet/client/utils.gen.ts +332 -0
  219. package/{dist/opencode/client.gen.d.ts → src/api_hatchet/client.gen.ts} +6 -3
  220. package/src/api_hatchet/core/auth.gen.ts +42 -0
  221. package/src/api_hatchet/core/bodySerializer.gen.ts +100 -0
  222. package/src/api_hatchet/core/params.gen.ts +176 -0
  223. package/src/api_hatchet/core/pathSerializer.gen.ts +181 -0
  224. package/src/api_hatchet/core/queryKeySerializer.gen.ts +136 -0
  225. package/src/api_hatchet/core/serverSentEvents.gen.ts +266 -0
  226. package/src/api_hatchet/core/types.gen.ts +118 -0
  227. package/src/api_hatchet/core/utils.gen.ts +143 -0
  228. package/src/api_hatchet/index.ts +4 -0
  229. package/src/api_hatchet/schemas.gen.ts +4961 -0
  230. package/src/api_hatchet/sdk.gen.ts +1994 -0
  231. package/src/api_hatchet/types.gen.ts +7688 -0
  232. package/src/api_hatchet/zod.gen.ts +3230 -0
  233. package/src/cloud-account/platform-configs.ts +73 -0
  234. package/src/gomtmapi/@tanstack/react-query.gen.ts +757 -0
  235. package/src/gomtmapi/client/client.gen.ts +311 -0
  236. package/src/gomtmapi/client/index.ts +25 -0
  237. package/src/gomtmapi/client/types.gen.ts +241 -0
  238. package/src/gomtmapi/client/utils.gen.ts +332 -0
  239. package/src/gomtmapi/client.gen.ts +16 -0
  240. package/src/gomtmapi/core/auth.gen.ts +42 -0
  241. package/src/gomtmapi/core/bodySerializer.gen.ts +100 -0
  242. package/src/gomtmapi/core/params.gen.ts +176 -0
  243. package/src/gomtmapi/core/pathSerializer.gen.ts +181 -0
  244. package/src/gomtmapi/core/queryKeySerializer.gen.ts +136 -0
  245. package/src/gomtmapi/core/serverSentEvents.gen.ts +266 -0
  246. package/src/gomtmapi/core/types.gen.ts +118 -0
  247. package/src/gomtmapi/core/utils.gen.ts +143 -0
  248. package/src/gomtmapi/index.ts +4 -0
  249. package/src/gomtmapi/schemas.gen.ts +904 -0
  250. package/src/gomtmapi/sdk.gen.ts +541 -0
  251. package/src/gomtmapi/types.gen.ts +1456 -0
  252. package/src/gomtmapi/zod.gen.ts +758 -0
  253. package/src/index.ts +5 -0
  254. package/src/lib/aisdk/types.ts +8 -0
  255. package/src/lib/logger/index.ts +8 -0
  256. package/src/lib/schema.ts +50 -0
  257. package/src/lib/utils.ts +54 -0
  258. package/src/mtgate_api/@tanstack/react-query.gen.ts +175 -0
  259. package/src/mtgate_api/client/client.gen.ts +311 -0
  260. package/src/mtgate_api/client/index.ts +25 -0
  261. package/src/mtgate_api/client/types.gen.ts +241 -0
  262. package/src/mtgate_api/client/utils.gen.ts +332 -0
  263. package/src/mtgate_api/client.gen.ts +16 -0
  264. package/src/mtgate_api/core/auth.gen.ts +42 -0
  265. package/src/mtgate_api/core/bodySerializer.gen.ts +100 -0
  266. package/src/mtgate_api/core/params.gen.ts +176 -0
  267. package/src/mtgate_api/core/pathSerializer.gen.ts +181 -0
  268. package/src/mtgate_api/core/queryKeySerializer.gen.ts +136 -0
  269. package/src/mtgate_api/core/serverSentEvents.gen.ts +266 -0
  270. package/src/mtgate_api/core/types.gen.ts +118 -0
  271. package/src/mtgate_api/core/utils.gen.ts +143 -0
  272. package/src/mtgate_api/index.ts +4 -0
  273. package/src/mtgate_api/schemas.gen.ts +337 -0
  274. package/src/mtgate_api/sdk.gen.ts +61 -0
  275. package/src/mtgate_api/types.gen.ts +324 -0
  276. package/src/mtgate_api/zod.gen.ts +234 -0
  277. package/src/mtmai_api/@tanstack/react-query.gen.ts +1010 -0
  278. package/src/mtmai_api/client/client.gen.ts +311 -0
  279. package/src/mtmai_api/client/index.ts +25 -0
  280. package/src/mtmai_api/client/types.gen.ts +241 -0
  281. package/src/mtmai_api/client/utils.gen.ts +332 -0
  282. package/src/mtmai_api/client.gen.ts +16 -0
  283. package/src/mtmai_api/core/auth.gen.ts +42 -0
  284. package/src/mtmai_api/core/bodySerializer.gen.ts +100 -0
  285. package/src/mtmai_api/core/params.gen.ts +176 -0
  286. package/src/mtmai_api/core/pathSerializer.gen.ts +181 -0
  287. package/src/mtmai_api/core/queryKeySerializer.gen.ts +136 -0
  288. package/src/mtmai_api/core/serverSentEvents.gen.ts +266 -0
  289. package/src/mtmai_api/core/types.gen.ts +118 -0
  290. package/src/mtmai_api/core/utils.gen.ts +143 -0
  291. package/src/mtmai_api/index.ts +4 -0
  292. package/src/mtmai_api/schemas.gen.ts +9980 -0
  293. package/src/mtmai_api/sdk.gen.ts +471 -0
  294. package/src/mtmai_api/types.gen.ts +7609 -0
  295. package/src/mtmai_api/zod.gen.ts +5101 -0
  296. package/src/openclaw/client-info.ts +63 -0
  297. package/src/openclaw/device-auth-utils.ts +31 -0
  298. package/src/openclaw/device-auth.ts +96 -0
  299. package/src/openclaw/device-identity.ts +108 -0
  300. package/src/openclaw/gateway.ts +351 -0
  301. package/src/openclaw/types.ts +518 -0
  302. package/src/openclaw/uuid.ts +48 -0
  303. package/src/sbapi/@tanstack/react-query.gen.ts +6591 -0
  304. package/src/sbapi/client/client.gen.ts +311 -0
  305. package/src/sbapi/client/index.ts +25 -0
  306. package/src/sbapi/client/types.gen.ts +241 -0
  307. package/src/sbapi/client/utils.gen.ts +332 -0
  308. package/src/sbapi/client.gen.ts +16 -0
  309. package/src/sbapi/core/auth.gen.ts +42 -0
  310. package/src/sbapi/core/bodySerializer.gen.ts +100 -0
  311. package/src/sbapi/core/params.gen.ts +176 -0
  312. package/src/sbapi/core/pathSerializer.gen.ts +181 -0
  313. package/src/sbapi/core/queryKeySerializer.gen.ts +136 -0
  314. package/src/sbapi/core/serverSentEvents.gen.ts +266 -0
  315. package/src/sbapi/core/types.gen.ts +118 -0
  316. package/src/sbapi/core/utils.gen.ts +143 -0
  317. package/src/sbapi/index.ts +4 -0
  318. package/src/sbapi/schemas.gen.ts +2643 -0
  319. package/src/sbapi/sdk.gen.ts +2822 -0
  320. package/src/sbapi/types.gen.ts +12503 -0
  321. package/src/sbapi/zod.gen.ts +7021 -0
  322. package/src/sbmng/@tanstack/react-query.gen.ts +2999 -0
  323. package/src/sbmng/client/client.gen.ts +311 -0
  324. package/src/sbmng/client/index.ts +25 -0
  325. package/src/sbmng/client/types.gen.ts +241 -0
  326. package/src/sbmng/client/utils.gen.ts +332 -0
  327. package/src/sbmng/client.gen.ts +16 -0
  328. package/src/sbmng/core/auth.gen.ts +42 -0
  329. package/src/sbmng/core/bodySerializer.gen.ts +100 -0
  330. package/src/sbmng/core/params.gen.ts +176 -0
  331. package/src/sbmng/core/pathSerializer.gen.ts +181 -0
  332. package/src/sbmng/core/queryKeySerializer.gen.ts +136 -0
  333. package/src/sbmng/core/serverSentEvents.gen.ts +266 -0
  334. package/src/sbmng/core/types.gen.ts +118 -0
  335. package/src/sbmng/core/utils.gen.ts +143 -0
  336. package/src/sbmng/index.ts +4 -0
  337. package/src/sbmng/schemas.gen.ts +9680 -0
  338. package/src/sbmng/sdk.gen.ts +1771 -0
  339. package/src/sbmng/types.gen.ts +7956 -0
  340. package/src/supabase/auth-provider.tsx +67 -0
  341. package/src/supabase/context.tsx +51 -0
  342. package/src/supabase/cursor-pagination.ts +155 -0
  343. package/src/supabase/schema/browser.ts +45 -0
  344. package/src/supabase/schema/index.ts +50 -0
  345. package/src/supabase/supabase-client.ts +30 -0
  346. package/src/supabase/supabase.ts +65 -0
  347. package/src/supabase/use-sb-query/build-query-opts.ts +56 -0
  348. package/src/supabase/use-sb-query/key.ts +57 -0
  349. package/src/supabase/use-sb-query/prefetch.ts +59 -0
  350. package/src/supabase/use-sb-query/use-query.ts +340 -0
  351. package/src/supabase/use-sb-query/use-rpc-mutation.ts +83 -0
  352. package/src/supabase/use-sb-query/use-rpc-query.ts +230 -0
  353. package/src/supabase/utils.ts +75 -0
  354. package/src/types/database.schemas.ts +3804 -0
  355. package/src/types/database.types.ts +3828 -0
  356. package/src/types/index.ts +119 -0
  357. package/src/types/rpc.schemas.ts +157 -0
  358. package/dist/gomtmapi_v2/@tanstack/react-query.gen.d.ts.map +0 -1
  359. package/dist/gomtmapi_v2/@tanstack/react-query.gen.js.map +0 -1
  360. package/dist/gomtmapi_v2/client/client.gen.d.ts.map +0 -1
  361. package/dist/gomtmapi_v2/client/client.gen.js.map +0 -1
  362. package/dist/gomtmapi_v2/client/index.d.ts.map +0 -1
  363. package/dist/gomtmapi_v2/client/index.js.map +0 -1
  364. package/dist/gomtmapi_v2/client/types.gen.d.ts.map +0 -1
  365. package/dist/gomtmapi_v2/client/types.gen.js.map +0 -1
  366. package/dist/gomtmapi_v2/client/utils.gen.d.ts.map +0 -1
  367. package/dist/gomtmapi_v2/client/utils.gen.js.map +0 -1
  368. package/dist/gomtmapi_v2/client.gen.d.ts.map +0 -1
  369. package/dist/gomtmapi_v2/client.gen.js.map +0 -1
  370. package/dist/gomtmapi_v2/core/auth.gen.d.ts.map +0 -1
  371. package/dist/gomtmapi_v2/core/auth.gen.js.map +0 -1
  372. package/dist/gomtmapi_v2/core/bodySerializer.gen.d.ts.map +0 -1
  373. package/dist/gomtmapi_v2/core/bodySerializer.gen.js.map +0 -1
  374. package/dist/gomtmapi_v2/core/params.gen.d.ts.map +0 -1
  375. package/dist/gomtmapi_v2/core/params.gen.js.map +0 -1
  376. package/dist/gomtmapi_v2/core/pathSerializer.gen.d.ts.map +0 -1
  377. package/dist/gomtmapi_v2/core/pathSerializer.gen.js.map +0 -1
  378. package/dist/gomtmapi_v2/core/queryKeySerializer.gen.d.ts.map +0 -1
  379. package/dist/gomtmapi_v2/core/queryKeySerializer.gen.js.map +0 -1
  380. package/dist/gomtmapi_v2/core/serverSentEvents.gen.d.ts.map +0 -1
  381. package/dist/gomtmapi_v2/core/serverSentEvents.gen.js.map +0 -1
  382. package/dist/gomtmapi_v2/core/types.gen.d.ts.map +0 -1
  383. package/dist/gomtmapi_v2/core/types.gen.js.map +0 -1
  384. package/dist/gomtmapi_v2/core/utils.gen.d.ts.map +0 -1
  385. package/dist/gomtmapi_v2/core/utils.gen.js.map +0 -1
  386. package/dist/gomtmapi_v2/index.d.ts +0 -3
  387. package/dist/gomtmapi_v2/index.d.ts.map +0 -1
  388. package/dist/gomtmapi_v2/index.js +0 -3
  389. package/dist/gomtmapi_v2/index.js.map +0 -1
  390. package/dist/gomtmapi_v2/schemas.gen.d.ts.map +0 -1
  391. package/dist/gomtmapi_v2/schemas.gen.js.map +0 -1
  392. package/dist/gomtmapi_v2/sdk.gen.d.ts +0 -208
  393. package/dist/gomtmapi_v2/sdk.gen.d.ts.map +0 -1
  394. package/dist/gomtmapi_v2/sdk.gen.js.map +0 -1
  395. package/dist/gomtmapi_v2/types.gen.d.ts.map +0 -1
  396. package/dist/gomtmapi_v2/types.gen.js.map +0 -1
  397. package/dist/gomtmapi_v2/zod.gen.d.ts.map +0 -1
  398. package/dist/gomtmapi_v2/zod.gen.js.map +0 -1
  399. package/dist/opencode/@tanstack/react-query.gen.d.ts +0 -1903
  400. package/dist/opencode/@tanstack/react-query.gen.d.ts.map +0 -1
  401. package/dist/opencode/@tanstack/react-query.gen.js +0 -1696
  402. package/dist/opencode/@tanstack/react-query.gen.js.map +0 -1
  403. package/dist/opencode/client/client.gen.d.ts +0 -3
  404. package/dist/opencode/client/client.gen.js +0 -236
  405. package/dist/opencode/client/index.d.ts +0 -9
  406. package/dist/opencode/client/index.js +0 -7
  407. package/dist/opencode/client/types.gen.d.ts +0 -118
  408. package/dist/opencode/client/types.gen.js +0 -3
  409. package/dist/opencode/client/types.gen.js.map +0 -1
  410. package/dist/opencode/client/utils.gen.d.ts +0 -34
  411. package/dist/opencode/client/utils.gen.js +0 -232
  412. package/dist/opencode/client.gen.js +0 -4
  413. package/dist/opencode/core/auth.gen.d.ts +0 -19
  414. package/dist/opencode/core/auth.gen.js +0 -15
  415. package/dist/opencode/core/bodySerializer.gen.d.ts +0 -26
  416. package/dist/opencode/core/bodySerializer.gen.js +0 -58
  417. package/dist/opencode/core/params.gen.d.ts +0 -44
  418. package/dist/opencode/core/params.gen.js +0 -101
  419. package/dist/opencode/core/pathSerializer.gen.d.ts +0 -34
  420. package/dist/opencode/core/pathSerializer.gen.js +0 -115
  421. package/dist/opencode/core/queryKeySerializer.gen.d.ts +0 -19
  422. package/dist/opencode/core/queryKeySerializer.gen.js +0 -100
  423. package/dist/opencode/core/serverSentEvents.gen.d.ts +0 -72
  424. package/dist/opencode/core/serverSentEvents.gen.js +0 -138
  425. package/dist/opencode/core/types.gen.d.ts +0 -79
  426. package/dist/opencode/core/types.gen.js +0 -3
  427. package/dist/opencode/core/types.gen.js.map +0 -1
  428. package/dist/opencode/core/utils.gen.d.ts +0 -20
  429. package/dist/opencode/core/utils.gen.js +0 -88
  430. package/dist/opencode/index.d.ts +0 -3
  431. package/dist/opencode/index.d.ts.map +0 -1
  432. package/dist/opencode/index.js +0 -4
  433. package/dist/opencode/index.js.map +0 -1
  434. package/dist/opencode/schemas.gen.d.ts +0 -4823
  435. package/dist/opencode/schemas.gen.d.ts.map +0 -1
  436. package/dist/opencode/schemas.gen.js +0 -5816
  437. package/dist/opencode/schemas.gen.js.map +0 -1
  438. package/dist/opencode/sdk.gen.d.ts +0 -562
  439. package/dist/opencode/sdk.gen.d.ts.map +0 -1
  440. package/dist/opencode/sdk.gen.js +0 -766
  441. package/dist/opencode/sdk.gen.js.map +0 -1
  442. package/dist/opencode/types.gen.d.ts +0 -4213
  443. package/dist/opencode/types.gen.d.ts.map +0 -1
  444. package/dist/opencode/types.gen.js +0 -25
  445. package/dist/opencode/types.gen.js.map +0 -1
  446. package/dist/opencode/zod.gen.d.ts +0 -17243
  447. package/dist/opencode/zod.gen.d.ts.map +0 -1
  448. package/dist/opencode/zod.gen.js +0 -2876
  449. package/dist/opencode/zod.gen.js.map +0 -1
  450. package/dist/schema/browser.d.ts.map +0 -1
  451. package/dist/schema/browser.js.map +0 -1
  452. /package/dist/{gomtmapi_v2 → gomtmapi}/client/client.gen.d.ts +0 -0
  453. /package/dist/{gomtmapi_v2 → gomtmapi}/client/client.gen.js +0 -0
  454. /package/dist/{gomtmapi_v2 → gomtmapi}/client/index.d.ts +0 -0
  455. /package/dist/{gomtmapi_v2 → gomtmapi}/client/index.js +0 -0
  456. /package/dist/{gomtmapi_v2 → gomtmapi}/client/types.gen.d.ts +0 -0
  457. /package/dist/{gomtmapi_v2 → gomtmapi}/client/types.gen.js +0 -0
  458. /package/dist/{gomtmapi_v2 → gomtmapi}/client/utils.gen.d.ts +0 -0
  459. /package/dist/{gomtmapi_v2 → gomtmapi}/client/utils.gen.js +0 -0
  460. /package/dist/{gomtmapi_v2 → gomtmapi}/client.gen.d.ts +0 -0
  461. /package/dist/{gomtmapi_v2 → gomtmapi}/client.gen.js +0 -0
  462. /package/dist/{gomtmapi_v2 → gomtmapi}/core/auth.gen.d.ts +0 -0
  463. /package/dist/{gomtmapi_v2 → gomtmapi}/core/auth.gen.js +0 -0
  464. /package/dist/{gomtmapi_v2 → gomtmapi}/core/bodySerializer.gen.d.ts +0 -0
  465. /package/dist/{gomtmapi_v2 → gomtmapi}/core/bodySerializer.gen.js +0 -0
  466. /package/dist/{gomtmapi_v2 → gomtmapi}/core/params.gen.d.ts +0 -0
  467. /package/dist/{gomtmapi_v2 → gomtmapi}/core/params.gen.js +0 -0
  468. /package/dist/{gomtmapi_v2 → gomtmapi}/core/pathSerializer.gen.d.ts +0 -0
  469. /package/dist/{gomtmapi_v2 → gomtmapi}/core/pathSerializer.gen.js +0 -0
  470. /package/dist/{gomtmapi_v2 → gomtmapi}/core/queryKeySerializer.gen.d.ts +0 -0
  471. /package/dist/{gomtmapi_v2 → gomtmapi}/core/queryKeySerializer.gen.js +0 -0
  472. /package/dist/{gomtmapi_v2 → gomtmapi}/core/serverSentEvents.gen.d.ts +0 -0
  473. /package/dist/{gomtmapi_v2 → gomtmapi}/core/serverSentEvents.gen.js +0 -0
  474. /package/dist/{gomtmapi_v2 → gomtmapi}/core/types.gen.d.ts +0 -0
  475. /package/dist/{gomtmapi_v2 → gomtmapi}/core/types.gen.js +0 -0
  476. /package/dist/{gomtmapi_v2 → gomtmapi}/core/utils.gen.d.ts +0 -0
  477. /package/dist/{gomtmapi_v2 → gomtmapi}/core/utils.gen.js +0 -0
  478. /package/dist/{gomtmapi_v2 → gomtmapi}/types.gen.js +0 -0
  479. /package/dist/{schema → supabase/schema}/browser.d.ts +0 -0
  480. /package/dist/{schema → supabase/schema}/browser.js +0 -0
@@ -1,48 +1,2596 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
- export const EventsPullRespSchema = {
3
- description: 'EventsPullResp',
4
- type: 'object',
5
- properties: {
6
- paginate: {
7
- type: 'object',
8
- properties: {
9
- total: {
10
- description: 'Total number of records',
11
- type: 'number'
12
- },
13
- page: {
14
- description: 'Current page number',
15
- type: 'number'
16
- },
17
- pageSize: {
18
- description: 'Number of records per page',
19
- type: 'number'
20
- },
21
- totalPages: {
22
- description: 'Total number of pages',
23
- type: 'number'
24
- },
25
- hasNext: {
26
- description: 'Whether there is a next page',
27
- type: 'boolean'
28
- }
29
- },
30
- required: [
31
- 'total',
32
- 'page',
33
- 'pageSize',
34
- 'totalPages',
35
- 'hasNext'
36
- ]
37
- },
38
- rows: {
39
- type: 'array',
40
- items: {}
41
- }
42
- },
43
- required: [
44
- 'paginate',
45
- 'rows'
46
- ]
2
+ export const worker_tasksSchema = {
3
+ required: [
4
+ 'id',
5
+ 'created_at',
6
+ 'updated_at',
7
+ 'type',
8
+ 'payload'
9
+ ],
10
+ properties: {
11
+ id: {
12
+ default: 'gen_random_uuid()',
13
+ description: 'Note:\nThis is a Primary Key.<pk/>',
14
+ format: 'uuid',
15
+ type: 'string'
16
+ },
17
+ created_at: {
18
+ default: 'now()',
19
+ format: 'timestamp with time zone',
20
+ type: 'string'
21
+ },
22
+ updated_at: {
23
+ default: 'now()',
24
+ format: 'timestamp with time zone',
25
+ type: 'string'
26
+ },
27
+ worker_id: {
28
+ description: '定点投递:指定执行该任务的 Worker ID',
29
+ format: 'text',
30
+ type: 'string'
31
+ },
32
+ type: {
33
+ format: 'text',
34
+ type: 'string'
35
+ },
36
+ status: {
37
+ default: 'pending',
38
+ format: 'text',
39
+ type: 'string'
40
+ },
41
+ payload: {
42
+ format: 'jsonb'
43
+ },
44
+ result: {
45
+ format: 'jsonb'
46
+ },
47
+ error: {
48
+ format: 'text',
49
+ type: 'string'
50
+ },
51
+ session_id: {
52
+ description: '关联的会话ID,用于任务完成后的回调通知',
53
+ format: 'text',
54
+ type: 'string'
55
+ },
56
+ user_id: {
57
+ format: 'uuid',
58
+ type: 'string'
59
+ }
60
+ },
61
+ type: 'object'
62
+ };
63
+ export const linked_accountsSchema = {
64
+ required: [
65
+ 'id',
66
+ 'created_at',
67
+ 'user_id'
68
+ ],
69
+ properties: {
70
+ id: {
71
+ default: 'gen_random_uuid()',
72
+ description: 'Note:\nThis is a Primary Key.<pk/>',
73
+ format: 'uuid',
74
+ type: 'string'
75
+ },
76
+ created_at: {
77
+ default: 'now()',
78
+ format: 'timestamp with time zone',
79
+ type: 'string'
80
+ },
81
+ updated_at: {
82
+ default: 'now()',
83
+ format: 'timestamp with time zone',
84
+ type: 'string'
85
+ },
86
+ user_id: {
87
+ format: 'uuid',
88
+ type: 'string'
89
+ },
90
+ platform_id: {
91
+ description: 'Note:\nThis is a Foreign Key to `platforms.id`.<fk table=\'platforms\' column=\'id\'/>',
92
+ format: 'uuid',
93
+ type: 'string'
94
+ },
95
+ name: {
96
+ format: 'text',
97
+ type: 'string'
98
+ },
99
+ credentials: {
100
+ format: 'jsonb'
101
+ },
102
+ session_data: {
103
+ format: 'jsonb'
104
+ },
105
+ status: {
106
+ default: 'active',
107
+ format: 'text',
108
+ type: 'string'
109
+ },
110
+ last_used_at: {
111
+ format: 'timestamp with time zone',
112
+ type: 'string'
113
+ }
114
+ },
115
+ type: 'object'
116
+ };
117
+ export const audit_assetsSchema = {
118
+ required: [
119
+ 'id',
120
+ 'created_at',
121
+ 'updated_at',
122
+ 'project_id',
123
+ 'type',
124
+ 'content'
125
+ ],
126
+ properties: {
127
+ id: {
128
+ default: 'extensions.uuid_generate_v4()',
129
+ description: 'Note:\nThis is a Primary Key.<pk/>',
130
+ format: 'uuid',
131
+ type: 'string'
132
+ },
133
+ created_at: {
134
+ default: 'now()',
135
+ format: 'timestamp with time zone',
136
+ type: 'string'
137
+ },
138
+ updated_at: {
139
+ default: 'now()',
140
+ format: 'timestamp with time zone',
141
+ type: 'string'
142
+ },
143
+ project_id: {
144
+ description: 'Note:\nThis is a Foreign Key to `audit_projects.id`.<fk table=\'audit_projects\' column=\'id\'/>',
145
+ format: 'uuid',
146
+ type: 'string'
147
+ },
148
+ type: {
149
+ format: 'text',
150
+ type: 'string'
151
+ },
152
+ content: {
153
+ format: 'text',
154
+ type: 'string'
155
+ },
156
+ metadata: {
157
+ format: 'jsonb'
158
+ },
159
+ status: {
160
+ default: 'discovered',
161
+ format: 'text',
162
+ type: 'string'
163
+ }
164
+ },
165
+ type: 'object'
166
+ };
167
+ export const gomtm_modelsSchema = {
168
+ description: 'AI 模型配置表,支持直接 API Key 配置或通过 linked_accounts 关联 OAuth 凭据',
169
+ required: [
170
+ 'id',
171
+ 'created_at',
172
+ 'updated_at',
173
+ 'user_id',
174
+ 'name',
175
+ 'provider',
176
+ 'model',
177
+ 'is_active'
178
+ ],
179
+ properties: {
180
+ id: {
181
+ default: 'gen_random_uuid()',
182
+ description: '主键ID\n\nNote:\nThis is a Primary Key.<pk/>',
183
+ format: 'uuid',
184
+ type: 'string'
185
+ },
186
+ created_at: {
187
+ default: 'now()',
188
+ description: '创建时间',
189
+ format: 'timestamp with time zone',
190
+ type: 'string'
191
+ },
192
+ updated_at: {
193
+ default: 'now()',
194
+ description: '更新时间',
195
+ format: 'timestamp with time zone',
196
+ type: 'string'
197
+ },
198
+ user_id: {
199
+ description: '用户ID',
200
+ format: 'uuid',
201
+ type: 'string'
202
+ },
203
+ name: {
204
+ description: '模型显示名称',
205
+ format: 'character varying',
206
+ maxLength: 100,
207
+ type: 'string'
208
+ },
209
+ provider: {
210
+ description: '提供商(如 openai, qwen, anthropic)',
211
+ format: 'character varying',
212
+ maxLength: 50,
213
+ type: 'string'
214
+ },
215
+ model: {
216
+ description: '模型名称(如 gpt-4o, qwen-plus)',
217
+ format: 'character varying',
218
+ maxLength: 100,
219
+ type: 'string'
220
+ },
221
+ api_base: {
222
+ description: 'API 基础 URL',
223
+ format: 'character varying',
224
+ maxLength: 500,
225
+ type: 'string'
226
+ },
227
+ api_key: {
228
+ description: 'API 密钥(直接认证时使用)',
229
+ format: 'character varying',
230
+ maxLength: 500,
231
+ type: 'string'
232
+ },
233
+ linked_account_id: {
234
+ description: '关联的 OAuth 账号 ID(OAuth 认证时使用)\n\nNote:\nThis is a Foreign Key to `linked_accounts.id`.<fk table=\'linked_accounts\' column=\'id\'/>',
235
+ format: 'uuid',
236
+ type: 'string'
237
+ },
238
+ is_active: {
239
+ default: true,
240
+ description: '是否启用',
241
+ format: 'boolean',
242
+ type: 'boolean'
243
+ },
244
+ config: {
245
+ description: '其他配置信息(JSON 格式)',
246
+ format: 'jsonb'
247
+ }
248
+ },
249
+ type: 'object'
250
+ };
251
+ export const workflow_instancesSchema = {
252
+ required: [
253
+ 'id',
254
+ 'user_id'
255
+ ],
256
+ properties: {
257
+ id: {
258
+ default: 'gen_random_uuid()',
259
+ description: 'Note:\nThis is a Primary Key.<pk/>',
260
+ format: 'uuid',
261
+ type: 'string'
262
+ },
263
+ user_id: {
264
+ format: 'uuid',
265
+ type: 'string'
266
+ },
267
+ title: {
268
+ format: 'text',
269
+ type: 'string'
270
+ },
271
+ description: {
272
+ format: 'text',
273
+ type: 'string'
274
+ },
275
+ code_content: {
276
+ format: 'text',
277
+ type: 'string'
278
+ },
279
+ status: {
280
+ default: 'pending',
281
+ format: 'text',
282
+ type: 'string'
283
+ },
284
+ result: {
285
+ format: 'jsonb'
286
+ },
287
+ error_message: {
288
+ format: 'text',
289
+ type: 'string'
290
+ },
291
+ created_at: {
292
+ default: 'now()',
293
+ format: 'timestamp with time zone',
294
+ type: 'string'
295
+ },
296
+ updated_at: {
297
+ default: 'now()',
298
+ format: 'timestamp with time zone',
299
+ type: 'string'
300
+ },
301
+ notebook_json: {
302
+ format: 'jsonb'
303
+ }
304
+ },
305
+ type: 'object'
306
+ };
307
+ export const serversSchema = {
308
+ description: '以http api提供的服务',
309
+ required: [
310
+ 'id',
311
+ 'created_at',
312
+ 'updated_at',
313
+ 'service_type',
314
+ 'is_health'
315
+ ],
316
+ properties: {
317
+ id: {
318
+ default: 'gen_random_uuid()',
319
+ description: 'Note:\nThis is a Primary Key.<pk/>',
320
+ format: 'uuid',
321
+ type: 'string'
322
+ },
323
+ created_at: {
324
+ default: 'now()',
325
+ format: 'timestamp with time zone',
326
+ type: 'string'
327
+ },
328
+ updated_at: {
329
+ default: 'now()',
330
+ format: 'timestamp with time zone',
331
+ type: 'string'
332
+ },
333
+ service_type: {
334
+ format: 'text',
335
+ type: 'string'
336
+ },
337
+ local_url: {
338
+ format: 'text',
339
+ type: 'string'
340
+ },
341
+ public_url: {
342
+ format: 'text',
343
+ type: 'string'
344
+ },
345
+ worker_id: {
346
+ format: 'uuid',
347
+ type: 'string'
348
+ },
349
+ user_id: {
350
+ format: 'uuid',
351
+ type: 'string'
352
+ },
353
+ is_health: {
354
+ default: false,
355
+ format: 'boolean',
356
+ type: 'boolean'
357
+ }
358
+ },
359
+ type: 'object'
360
+ };
361
+ export const proxiesSchema = {
362
+ description: '网络代理配置',
363
+ required: [
364
+ 'id',
365
+ 'created_at',
366
+ 'url',
367
+ 'enabled'
368
+ ],
369
+ properties: {
370
+ id: {
371
+ default: 'gen_random_uuid()',
372
+ description: 'Note:\nThis is a Primary Key.<pk/>',
373
+ format: 'uuid',
374
+ type: 'string'
375
+ },
376
+ created_at: {
377
+ default: 'now()',
378
+ format: 'timestamp with time zone',
379
+ type: 'string'
380
+ },
381
+ updated_at: {
382
+ default: 'now()',
383
+ format: 'timestamp with time zone',
384
+ type: 'string'
385
+ },
386
+ name: {
387
+ description: '显示名称',
388
+ format: 'text',
389
+ type: 'string'
390
+ },
391
+ description: {
392
+ description: '描述',
393
+ format: 'text',
394
+ type: 'string'
395
+ },
396
+ url: {
397
+ description: '完整代理URL',
398
+ format: 'text',
399
+ type: 'string'
400
+ },
401
+ type: {
402
+ description: '代理协议(类型)',
403
+ format: 'text',
404
+ type: 'string'
405
+ },
406
+ enabled: {
407
+ default: true,
408
+ description: '是否启用',
409
+ format: 'boolean',
410
+ type: 'boolean'
411
+ },
412
+ user_id: {
413
+ format: 'uuid',
414
+ type: 'string'
415
+ }
416
+ },
417
+ type: 'object'
418
+ };
419
+ export const dash_navitemsSchema = {
420
+ description: '用户后台侧边栏导航菜单',
421
+ required: [
422
+ 'id',
423
+ 'created_at',
424
+ 'label'
425
+ ],
426
+ properties: {
427
+ id: {
428
+ default: 'gen_random_uuid()',
429
+ description: 'Note:\nThis is a Primary Key.<pk/>',
430
+ format: 'uuid',
431
+ type: 'string'
432
+ },
433
+ created_at: {
434
+ default: 'now()',
435
+ format: 'timestamp with time zone',
436
+ type: 'string'
437
+ },
438
+ label: {
439
+ format: 'text',
440
+ type: 'string'
441
+ },
442
+ icon: {
443
+ format: 'text',
444
+ type: 'string'
445
+ },
446
+ url: {
447
+ format: 'text',
448
+ type: 'string'
449
+ },
450
+ ord: {
451
+ default: 100,
452
+ format: 'integer',
453
+ type: 'integer'
454
+ },
455
+ tooltip: {
456
+ format: 'text',
457
+ type: 'string'
458
+ },
459
+ badge: {
460
+ format: 'text',
461
+ type: 'string'
462
+ },
463
+ enabled: {
464
+ default: true,
465
+ format: 'boolean',
466
+ type: 'boolean'
467
+ },
468
+ required_role: {
469
+ enum: [
470
+ 'admin',
471
+ 'moderator',
472
+ 'member'
473
+ ],
474
+ format: 'public.app_role',
475
+ type: 'string'
476
+ },
477
+ parent_id: {
478
+ description: 'Note:\nThis is a Foreign Key to `dash_navitems.id`.<fk table=\'dash_navitems\' column=\'id\'/>',
479
+ format: 'uuid',
480
+ type: 'string'
481
+ },
482
+ location: {
483
+ default: 'sidebar_main',
484
+ format: 'text',
485
+ type: 'string'
486
+ }
487
+ },
488
+ type: 'object'
489
+ };
490
+ export const chat_messagesSchema = {
491
+ description: '聊天消息',
492
+ required: [
493
+ 'id',
494
+ 'created_at',
495
+ 'updated_at',
496
+ 'chat_id',
497
+ 'role',
498
+ 'parts'
499
+ ],
500
+ properties: {
501
+ id: {
502
+ default: 'gen_random_uuid()',
503
+ description: 'Note:\nThis is a Primary Key.<pk/>',
504
+ format: 'uuid',
505
+ type: 'string'
506
+ },
507
+ created_at: {
508
+ default: 'now()',
509
+ format: 'timestamp with time zone',
510
+ type: 'string'
511
+ },
512
+ updated_at: {
513
+ default: 'now()',
514
+ format: 'timestamp with time zone',
515
+ type: 'string'
516
+ },
517
+ chat_id: {
518
+ description: 'Note:\nThis is a Foreign Key to `chats.id`.<fk table=\'chats\' column=\'id\'/>',
519
+ format: 'uuid',
520
+ type: 'string'
521
+ },
522
+ role: {
523
+ default: 'user',
524
+ enum: [
525
+ 'system',
526
+ 'user',
527
+ 'assistant',
528
+ 'model',
529
+ 'error',
530
+ 'tool'
531
+ ],
532
+ format: 'public.chat_role',
533
+ type: 'string'
534
+ },
535
+ parts: {
536
+ format: 'jsonb'
537
+ },
538
+ attachments: {
539
+ format: 'jsonb'
540
+ },
541
+ user_id: {
542
+ format: 'uuid',
543
+ type: 'string'
544
+ },
545
+ grounding_metadata: {
546
+ description: 'Google Search Grounding 元数据',
547
+ format: 'jsonb'
548
+ }
549
+ },
550
+ type: 'object'
551
+ };
552
+ export const chatsSchema = {
553
+ description: '聊天主表',
554
+ required: [
555
+ 'id',
556
+ 'created_at',
557
+ 'title',
558
+ 'visibility',
559
+ 'agent_id',
560
+ 'type'
561
+ ],
562
+ properties: {
563
+ id: {
564
+ default: 'gen_random_uuid()',
565
+ description: 'Note:\nThis is a Primary Key.<pk/>',
566
+ format: 'uuid',
567
+ type: 'string'
568
+ },
569
+ created_at: {
570
+ default: 'now()',
571
+ format: 'timestamp with time zone',
572
+ type: 'string'
573
+ },
574
+ updated_at: {
575
+ format: 'timestamp with time zone',
576
+ type: 'string'
577
+ },
578
+ title: {
579
+ format: 'text',
580
+ type: 'string'
581
+ },
582
+ user_id: {
583
+ format: 'uuid',
584
+ type: 'string'
585
+ },
586
+ visibility: {
587
+ default: 'private',
588
+ description: 'Chat visibility: private or public',
589
+ enum: [
590
+ 'private',
591
+ 'public'
592
+ ],
593
+ format: 'public.chat_visibility',
594
+ type: 'string'
595
+ },
596
+ lastContext: {
597
+ description: 'type: AppUsage',
598
+ format: 'jsonb'
599
+ },
600
+ agent_id: {
601
+ format: 'text',
602
+ type: 'string'
603
+ },
604
+ state: {
605
+ format: 'jsonb'
606
+ },
607
+ type: {
608
+ default: 'standard',
609
+ description: '对话类型: standard (普通对话), inbox (用户系统收件箱/主会话)',
610
+ format: 'text',
611
+ type: 'string'
612
+ }
613
+ },
614
+ type: 'object'
615
+ };
616
+ export const services_lajiSchema = {
617
+ description: '以http api提供的服务',
618
+ required: [
619
+ 'id',
620
+ 'created_at',
621
+ 'updated_at',
622
+ 'service_type',
623
+ 'is_health'
624
+ ],
625
+ properties: {
626
+ id: {
627
+ default: 'gen_random_uuid()',
628
+ description: 'Note:\nThis is a Primary Key.<pk/>',
629
+ format: 'uuid',
630
+ type: 'string'
631
+ },
632
+ created_at: {
633
+ default: 'now()',
634
+ format: 'timestamp with time zone',
635
+ type: 'string'
636
+ },
637
+ updated_at: {
638
+ default: 'now()',
639
+ format: 'timestamp with time zone',
640
+ type: 'string'
641
+ },
642
+ service_type: {
643
+ format: 'text',
644
+ type: 'string'
645
+ },
646
+ local_url: {
647
+ format: 'text',
648
+ type: 'string'
649
+ },
650
+ public_url: {
651
+ format: 'text',
652
+ type: 'string'
653
+ },
654
+ worker_id: {
655
+ format: 'text',
656
+ type: 'string'
657
+ },
658
+ user_id: {
659
+ default: 'gen_random_uuid()',
660
+ format: 'uuid',
661
+ type: 'string'
662
+ },
663
+ is_health: {
664
+ default: false,
665
+ format: 'boolean',
666
+ type: 'boolean'
667
+ }
668
+ },
669
+ type: 'object'
670
+ };
671
+ export const user_logsSchema = {
672
+ required: [
673
+ 'id',
674
+ 'user_id',
675
+ 'event_type',
676
+ 'level'
677
+ ],
678
+ properties: {
679
+ id: {
680
+ default: 'gen_random_uuid()',
681
+ description: 'Note:\nThis is a Primary Key.<pk/>',
682
+ format: 'uuid',
683
+ type: 'string'
684
+ },
685
+ user_id: {
686
+ default: 'auth.uid()',
687
+ format: 'uuid',
688
+ type: 'string'
689
+ },
690
+ event_type: {
691
+ format: 'text',
692
+ type: 'string'
693
+ },
694
+ level: {
695
+ format: 'text',
696
+ type: 'string'
697
+ },
698
+ content: {
699
+ format: 'text',
700
+ type: 'string'
701
+ },
702
+ meta: {
703
+ format: 'jsonb'
704
+ },
705
+ resource_type: {
706
+ format: 'text',
707
+ type: 'string'
708
+ },
709
+ resource_id: {
710
+ format: 'uuid',
711
+ type: 'string'
712
+ },
713
+ created_at: {
714
+ default: 'now()',
715
+ format: 'timestamp with time zone',
716
+ type: 'string'
717
+ }
718
+ },
719
+ type: 'object'
720
+ };
721
+ export const browsersSchema = {
722
+ description: '浏览器',
723
+ required: [
724
+ 'id',
725
+ 'created_at'
726
+ ],
727
+ properties: {
728
+ id: {
729
+ default: 'gen_random_uuid()',
730
+ description: 'Note:\nThis is a Primary Key.<pk/>',
731
+ format: 'uuid',
732
+ type: 'string'
733
+ },
734
+ created_at: {
735
+ default: 'now()',
736
+ format: 'timestamp with time zone',
737
+ type: 'string'
738
+ },
739
+ updated_at: {
740
+ default: 'now()',
741
+ format: 'timestamp with time zone',
742
+ type: 'string'
743
+ },
744
+ sandbox_id: {
745
+ description: '运行的sandbox实例ID',
746
+ format: 'text',
747
+ type: 'string'
748
+ },
749
+ title: {
750
+ description: '标题',
751
+ format: 'text',
752
+ type: 'string'
753
+ },
754
+ description: {
755
+ description: '描述',
756
+ format: 'text',
757
+ type: 'string'
758
+ },
759
+ cdpUrl: {
760
+ description: 'cdp 端点',
761
+ format: 'text',
762
+ type: 'string'
763
+ },
764
+ user_id: {
765
+ format: 'uuid',
766
+ type: 'string'
767
+ },
768
+ profile_id: {
769
+ description: 'profile_id',
770
+ format: 'text',
771
+ type: 'string'
772
+ },
773
+ provider: {
774
+ format: 'text',
775
+ type: 'string'
776
+ },
777
+ provider_config: {
778
+ format: 'jsonb'
779
+ },
780
+ config: {
781
+ description: '存储浏览器配置及持久化状态(如Cookies)',
782
+ format: 'jsonb'
783
+ }
784
+ },
785
+ type: 'object'
786
+ };
787
+ export const request_trackerSchema = {
788
+ properties: {
789
+ method: {
790
+ format: 'text',
791
+ type: 'string'
792
+ },
793
+ url: {
794
+ format: 'text',
795
+ type: 'string'
796
+ },
797
+ params: {
798
+ format: 'jsonb'
799
+ },
800
+ body: {
801
+ format: 'jsonb'
802
+ },
803
+ headers: {
804
+ format: 'jsonb'
805
+ },
806
+ request_id: {
807
+ format: 'bigint',
808
+ type: 'integer'
809
+ },
810
+ type: {
811
+ description: '服务类型',
812
+ format: 'text',
813
+ type: 'string'
814
+ }
815
+ },
816
+ type: 'object'
817
+ };
818
+ export const workersSchema = {
819
+ description: 'Cleanup: Removed legacy on_worker_ready trigger that relied on deprecated config->publicUrl.',
820
+ required: [
821
+ 'id',
822
+ 'created_at',
823
+ 'updated_at',
824
+ 'host_id'
825
+ ],
826
+ properties: {
827
+ id: {
828
+ description: 'Note:\nThis is a Primary Key.<pk/>',
829
+ format: 'text',
830
+ type: 'string'
831
+ },
832
+ created_at: {
833
+ default: 'now()',
834
+ format: 'timestamp with time zone',
835
+ type: 'string'
836
+ },
837
+ updated_at: {
838
+ default: 'now()',
839
+ format: 'timestamp with time zone',
840
+ type: 'string'
841
+ },
842
+ name: {
843
+ format: 'text',
844
+ type: 'string'
845
+ },
846
+ user_id: {
847
+ default: 'auth.uid()',
848
+ format: 'uuid',
849
+ type: 'string'
850
+ },
851
+ state: {
852
+ format: 'jsonb'
853
+ },
854
+ latest_pull_at: {
855
+ format: 'timestamp with time zone',
856
+ type: 'string'
857
+ },
858
+ config: {
859
+ description: 'worker config (配置信息)',
860
+ format: 'jsonb'
861
+ },
862
+ host_id: {
863
+ description: '所属计算节点ID, 不能为空\n\nNote:\nThis is a Foreign Key to `compute_nodes.id`.<fk table=\'compute_nodes\' column=\'id\'/>',
864
+ format: 'uuid',
865
+ type: 'string'
866
+ },
867
+ container_id: {
868
+ format: 'text',
869
+ type: 'string'
870
+ },
871
+ status: {
872
+ default: 'offline',
873
+ description: 'created, pending, starting, running, offlining, offline, error',
874
+ enum: [
875
+ 'starting',
876
+ 'running',
877
+ 'stopping',
878
+ 'stopped',
879
+ 'offline'
880
+ ],
881
+ format: 'public.worker_status',
882
+ type: 'string'
883
+ },
884
+ is_managed: {
885
+ default: false,
886
+ description: 'Whether the worker is managed by the system (e.g. Docker container)',
887
+ format: 'boolean',
888
+ type: 'boolean'
889
+ },
890
+ public_domain: {
891
+ description: 'Worker 节点的公网访问域名',
892
+ format: 'text',
893
+ type: 'string'
894
+ }
895
+ },
896
+ type: 'object'
897
+ };
898
+ export const resourcesSchema = {
899
+ description: '通用列表视图',
900
+ required: [
901
+ 'id',
902
+ 'created_at'
903
+ ],
904
+ properties: {
905
+ id: {
906
+ default: 'gen_random_uuid()',
907
+ description: 'Note:\nThis is a Primary Key.<pk/>',
908
+ format: 'uuid',
909
+ type: 'string'
910
+ },
911
+ created_at: {
912
+ default: 'now()',
913
+ format: 'timestamp with time zone',
914
+ type: 'string'
915
+ },
916
+ updated_at: {
917
+ default: 'now()',
918
+ format: 'timestamp with time zone',
919
+ type: 'string'
920
+ },
921
+ user_id: {
922
+ default: 'gen_random_uuid()',
923
+ format: 'uuid',
924
+ type: 'string'
925
+ },
926
+ title: {
927
+ format: 'text',
928
+ type: 'string'
929
+ },
930
+ description: {
931
+ format: 'text',
932
+ type: 'string'
933
+ },
934
+ icon: {
935
+ format: 'text',
936
+ type: 'string'
937
+ },
938
+ is_public: {
939
+ default: false,
940
+ format: 'boolean',
941
+ type: 'boolean'
942
+ },
943
+ target_id: {
944
+ format: 'uuid',
945
+ type: 'string'
946
+ },
947
+ type: {
948
+ format: 'text',
949
+ type: 'string'
950
+ },
951
+ data: {
952
+ format: 'jsonb'
953
+ },
954
+ meta: {
955
+ format: 'jsonb'
956
+ },
957
+ hash1: {
958
+ description: '基于hash的唯一识别码',
959
+ format: 'text',
960
+ type: 'string'
961
+ }
962
+ },
963
+ type: 'object'
964
+ };
965
+ export const profilesSchema = {
966
+ description: '用户详细资料',
967
+ required: [
968
+ 'id'
969
+ ],
970
+ properties: {
971
+ id: {
972
+ description: 'Note:\nThis is a Primary Key.<pk/>',
973
+ format: 'uuid',
974
+ type: 'string'
975
+ },
976
+ updated_at: {
977
+ format: 'timestamp with time zone',
978
+ type: 'string'
979
+ },
980
+ username: {
981
+ format: 'text',
982
+ type: 'string'
983
+ },
984
+ full_name: {
985
+ format: 'text',
986
+ type: 'string'
987
+ },
988
+ avatar_url: {
989
+ format: 'text',
990
+ type: 'string'
991
+ },
992
+ website: {
993
+ format: 'text',
994
+ type: 'string'
995
+ }
996
+ },
997
+ type: 'object'
998
+ };
999
+ export const adk_quick_startsSchema = {
1000
+ description: 'Agent 快捷启动指令模板',
1001
+ required: [
1002
+ 'id',
1003
+ 'title',
1004
+ 'prompt',
1005
+ 'agent_name'
1006
+ ],
1007
+ properties: {
1008
+ id: {
1009
+ default: 'gen_random_uuid()',
1010
+ description: 'Note:\nThis is a Primary Key.<pk/>',
1011
+ format: 'uuid',
1012
+ type: 'string'
1013
+ },
1014
+ title: {
1015
+ format: 'text',
1016
+ type: 'string'
1017
+ },
1018
+ description: {
1019
+ format: 'text',
1020
+ type: 'string'
1021
+ },
1022
+ prompt: {
1023
+ format: 'text',
1024
+ type: 'string'
1025
+ },
1026
+ agent_name: {
1027
+ default: 'simple_chat',
1028
+ format: 'text',
1029
+ type: 'string'
1030
+ },
1031
+ is_active: {
1032
+ default: true,
1033
+ format: 'boolean',
1034
+ type: 'boolean'
1035
+ },
1036
+ ord: {
1037
+ default: 0,
1038
+ format: 'integer',
1039
+ type: 'integer'
1040
+ },
1041
+ created_at: {
1042
+ default: 'now()',
1043
+ format: 'timestamp with time zone',
1044
+ type: 'string'
1045
+ },
1046
+ updated_at: {
1047
+ default: 'now()',
1048
+ format: 'timestamp with time zone',
1049
+ type: 'string'
1050
+ }
1051
+ },
1052
+ type: 'object'
1053
+ };
1054
+ export const voltagent_memory_workflow_statesSchema = {
1055
+ required: [
1056
+ 'id',
1057
+ 'workflow_id',
1058
+ 'workflow_name',
1059
+ 'status',
1060
+ 'created_at',
1061
+ 'updated_at'
1062
+ ],
1063
+ properties: {
1064
+ id: {
1065
+ description: 'Note:\nThis is a Primary Key.<pk/>',
1066
+ format: 'text',
1067
+ type: 'string'
1068
+ },
1069
+ workflow_id: {
1070
+ format: 'text',
1071
+ type: 'string'
1072
+ },
1073
+ workflow_name: {
1074
+ format: 'text',
1075
+ type: 'string'
1076
+ },
1077
+ status: {
1078
+ format: 'text',
1079
+ type: 'string'
1080
+ },
1081
+ suspension: {
1082
+ format: 'jsonb'
1083
+ },
1084
+ events: {
1085
+ format: 'jsonb'
1086
+ },
1087
+ output: {
1088
+ format: 'jsonb'
1089
+ },
1090
+ cancellation: {
1091
+ format: 'jsonb'
1092
+ },
1093
+ user_id: {
1094
+ format: 'text',
1095
+ type: 'string'
1096
+ },
1097
+ conversation_id: {
1098
+ format: 'text',
1099
+ type: 'string'
1100
+ },
1101
+ metadata: {
1102
+ format: 'jsonb'
1103
+ },
1104
+ created_at: {
1105
+ format: 'timestamp with time zone',
1106
+ type: 'string'
1107
+ },
1108
+ updated_at: {
1109
+ format: 'timestamp with time zone',
1110
+ type: 'string'
1111
+ }
1112
+ },
1113
+ type: 'object'
1114
+ };
1115
+ export const user_api_keysSchema = {
1116
+ description: '用户 API Key 管理表,存储 token 元数据',
1117
+ required: [
1118
+ 'id',
1119
+ 'user_id',
1120
+ 'name',
1121
+ 'prefix',
1122
+ 'jti',
1123
+ 'created_at'
1124
+ ],
1125
+ properties: {
1126
+ id: {
1127
+ default: 'gen_random_uuid()',
1128
+ description: 'Note:\nThis is a Primary Key.<pk/>',
1129
+ format: 'uuid',
1130
+ type: 'string'
1131
+ },
1132
+ user_id: {
1133
+ format: 'uuid',
1134
+ type: 'string'
1135
+ },
1136
+ name: {
1137
+ format: 'text',
1138
+ type: 'string'
1139
+ },
1140
+ prefix: {
1141
+ description: 'Token 前 8 字符,用于 UI 显示和识别',
1142
+ format: 'text',
1143
+ type: 'string'
1144
+ },
1145
+ jti: {
1146
+ description: 'JWT ID,用于验证和撤销 token',
1147
+ format: 'uuid',
1148
+ type: 'string'
1149
+ },
1150
+ expires_at: {
1151
+ description: 'Token 过期时间,null 表示永不过期',
1152
+ format: 'timestamp with time zone',
1153
+ type: 'string'
1154
+ },
1155
+ created_at: {
1156
+ default: 'now()',
1157
+ format: 'timestamp with time zone',
1158
+ type: 'string'
1159
+ },
1160
+ last_used_at: {
1161
+ format: 'timestamp with time zone',
1162
+ type: 'string'
1163
+ }
1164
+ },
1165
+ type: 'object'
1166
+ };
1167
+ export const system_config_publicSchema = {
1168
+ description: '系统公开配置表,存储可公开访问的配置项(如主域名规则)',
1169
+ required: [
1170
+ 'key',
1171
+ 'value'
1172
+ ],
1173
+ properties: {
1174
+ key: {
1175
+ description: '配置项唯一键名\n\nNote:\nThis is a Primary Key.<pk/>',
1176
+ format: 'text',
1177
+ type: 'string'
1178
+ },
1179
+ value: {
1180
+ description: '配置项的 JSONB 值',
1181
+ format: 'jsonb'
1182
+ },
1183
+ description: {
1184
+ description: '配置项描述',
1185
+ format: 'text',
1186
+ type: 'string'
1187
+ },
1188
+ created_at: {
1189
+ default: 'now()',
1190
+ format: 'timestamp with time zone',
1191
+ type: 'string'
1192
+ },
1193
+ updated_at: {
1194
+ default: 'now()',
1195
+ format: 'timestamp with time zone',
1196
+ type: 'string'
1197
+ }
1198
+ },
1199
+ type: 'object'
1200
+ };
1201
+ export const mitm_rulesSchema = {
1202
+ required: [
1203
+ 'id'
1204
+ ],
1205
+ properties: {
1206
+ id: {
1207
+ default: 'gen_random_uuid()',
1208
+ description: 'Note:\nThis is a Primary Key.<pk/>',
1209
+ format: 'uuid',
1210
+ type: 'string'
1211
+ },
1212
+ user_id: {
1213
+ format: 'uuid',
1214
+ type: 'string'
1215
+ },
1216
+ resource_id: {
1217
+ description: 'Note:\nThis is a Foreign Key to `resources.id`.<fk table=\'resources\' column=\'id\'/>',
1218
+ format: 'uuid',
1219
+ type: 'string'
1220
+ },
1221
+ name: {
1222
+ format: 'text',
1223
+ type: 'string'
1224
+ },
1225
+ match_pattern: {
1226
+ format: 'text',
1227
+ type: 'string'
1228
+ },
1229
+ action_type: {
1230
+ format: 'text',
1231
+ type: 'string'
1232
+ },
1233
+ action_config: {
1234
+ format: 'jsonb'
1235
+ },
1236
+ is_active: {
1237
+ default: true,
1238
+ format: 'boolean',
1239
+ type: 'boolean'
1240
+ },
1241
+ created_at: {
1242
+ default: 'now()',
1243
+ format: 'timestamp with time zone',
1244
+ type: 'string'
1245
+ }
1246
+ },
1247
+ type: 'object'
1248
+ };
1249
+ export const audit_skillsSchema = {
1250
+ required: [
1251
+ 'id',
1252
+ 'created_at',
1253
+ 'updated_at',
1254
+ 'project_id',
1255
+ 'name'
1256
+ ],
1257
+ properties: {
1258
+ id: {
1259
+ default: 'extensions.uuid_generate_v4()',
1260
+ description: 'Note:\nThis is a Primary Key.<pk/>',
1261
+ format: 'uuid',
1262
+ type: 'string'
1263
+ },
1264
+ created_at: {
1265
+ default: 'now()',
1266
+ format: 'timestamp with time zone',
1267
+ type: 'string'
1268
+ },
1269
+ updated_at: {
1270
+ default: 'now()',
1271
+ format: 'timestamp with time zone',
1272
+ type: 'string'
1273
+ },
1274
+ project_id: {
1275
+ description: 'Note:\nThis is a Foreign Key to `audit_projects.id`.<fk table=\'audit_projects\' column=\'id\'/>',
1276
+ format: 'uuid',
1277
+ type: 'string'
1278
+ },
1279
+ name: {
1280
+ format: 'text',
1281
+ type: 'string'
1282
+ },
1283
+ description: {
1284
+ format: 'text',
1285
+ type: 'string'
1286
+ },
1287
+ source_path: {
1288
+ format: 'text',
1289
+ type: 'string'
1290
+ },
1291
+ params_schema: {
1292
+ format: 'jsonb'
1293
+ },
1294
+ dependencies: {
1295
+ format: 'jsonb'
1296
+ },
1297
+ version: {
1298
+ format: 'text',
1299
+ type: 'string'
1300
+ }
1301
+ },
1302
+ type: 'object'
1303
+ };
1304
+ export const audit_tasksSchema = {
1305
+ required: [
1306
+ 'id',
1307
+ 'created_at',
1308
+ 'updated_at',
1309
+ 'project_id'
1310
+ ],
1311
+ properties: {
1312
+ id: {
1313
+ default: 'extensions.uuid_generate_v4()',
1314
+ description: 'Note:\nThis is a Primary Key.<pk/>',
1315
+ format: 'uuid',
1316
+ type: 'string'
1317
+ },
1318
+ created_at: {
1319
+ default: 'now()',
1320
+ format: 'timestamp with time zone',
1321
+ type: 'string'
1322
+ },
1323
+ updated_at: {
1324
+ default: 'now()',
1325
+ format: 'timestamp with time zone',
1326
+ type: 'string'
1327
+ },
1328
+ project_id: {
1329
+ description: 'Note:\nThis is a Foreign Key to `audit_projects.id`.<fk table=\'audit_projects\' column=\'id\'/>',
1330
+ format: 'uuid',
1331
+ type: 'string'
1332
+ },
1333
+ user_id: {
1334
+ format: 'uuid',
1335
+ type: 'string'
1336
+ },
1337
+ instructions: {
1338
+ format: 'text',
1339
+ type: 'string'
1340
+ },
1341
+ skill_id: {
1342
+ description: 'Note:\nThis is a Foreign Key to `audit_skills.id`.<fk table=\'audit_skills\' column=\'id\'/>',
1343
+ format: 'uuid',
1344
+ type: 'string'
1345
+ },
1346
+ sandbox_id: {
1347
+ description: 'Note:\nThis is a Foreign Key to `resources.id`.<fk table=\'resources\' column=\'id\'/>',
1348
+ format: 'uuid',
1349
+ type: 'string'
1350
+ },
1351
+ status: {
1352
+ default: 'pending',
1353
+ format: 'text',
1354
+ type: 'string'
1355
+ },
1356
+ result_summary: {
1357
+ format: 'text',
1358
+ type: 'string'
1359
+ },
1360
+ logs_url: {
1361
+ format: 'text',
1362
+ type: 'string'
1363
+ }
1364
+ },
1365
+ type: 'object'
1366
+ };
1367
+ export const audit_pocsSchema = {
1368
+ required: [
1369
+ 'id',
1370
+ 'created_at',
1371
+ 'updated_at',
1372
+ 'project_id',
1373
+ 'name'
1374
+ ],
1375
+ properties: {
1376
+ id: {
1377
+ default: 'extensions.uuid_generate_v4()',
1378
+ description: 'Note:\nThis is a Primary Key.<pk/>',
1379
+ format: 'uuid',
1380
+ type: 'string'
1381
+ },
1382
+ created_at: {
1383
+ default: 'now()',
1384
+ format: 'timestamp with time zone',
1385
+ type: 'string'
1386
+ },
1387
+ updated_at: {
1388
+ default: 'now()',
1389
+ format: 'timestamp with time zone',
1390
+ type: 'string'
1391
+ },
1392
+ project_id: {
1393
+ description: 'Note:\nThis is a Foreign Key to `audit_projects.id`.<fk table=\'audit_projects\' column=\'id\'/>',
1394
+ format: 'uuid',
1395
+ type: 'string'
1396
+ },
1397
+ name: {
1398
+ format: 'text',
1399
+ type: 'string'
1400
+ },
1401
+ cve_id: {
1402
+ format: 'text',
1403
+ type: 'string'
1404
+ },
1405
+ severity: {
1406
+ format: 'text',
1407
+ type: 'string'
1408
+ },
1409
+ path: {
1410
+ format: 'text',
1411
+ type: 'string'
1412
+ },
1413
+ status: {
1414
+ default: 'draft',
1415
+ format: 'text',
1416
+ type: 'string'
1417
+ }
1418
+ },
1419
+ type: 'object'
1420
+ };
1421
+ export const voltagent_memory_stepsSchema = {
1422
+ required: [
1423
+ 'id',
1424
+ 'conversation_id',
1425
+ 'user_id',
1426
+ 'agent_id',
1427
+ 'step_index',
1428
+ 'type',
1429
+ 'role',
1430
+ 'created_at'
1431
+ ],
1432
+ properties: {
1433
+ id: {
1434
+ description: 'Note:\nThis is a Primary Key.<pk/>',
1435
+ format: 'text',
1436
+ type: 'string'
1437
+ },
1438
+ conversation_id: {
1439
+ description: 'Note:\nThis is a Foreign Key to `voltagent_memory_conversations.id`.<fk table=\'voltagent_memory_conversations\' column=\'id\'/>',
1440
+ format: 'text',
1441
+ type: 'string'
1442
+ },
1443
+ user_id: {
1444
+ format: 'text',
1445
+ type: 'string'
1446
+ },
1447
+ agent_id: {
1448
+ format: 'text',
1449
+ type: 'string'
1450
+ },
1451
+ agent_name: {
1452
+ format: 'text',
1453
+ type: 'string'
1454
+ },
1455
+ operation_id: {
1456
+ format: 'text',
1457
+ type: 'string'
1458
+ },
1459
+ step_index: {
1460
+ format: 'integer',
1461
+ type: 'integer'
1462
+ },
1463
+ type: {
1464
+ format: 'text',
1465
+ type: 'string'
1466
+ },
1467
+ role: {
1468
+ format: 'text',
1469
+ type: 'string'
1470
+ },
1471
+ content: {
1472
+ format: 'text',
1473
+ type: 'string'
1474
+ },
1475
+ arguments: {
1476
+ format: 'jsonb'
1477
+ },
1478
+ result: {
1479
+ format: 'jsonb'
1480
+ },
1481
+ usage: {
1482
+ format: 'jsonb'
1483
+ },
1484
+ sub_agent_id: {
1485
+ format: 'text',
1486
+ type: 'string'
1487
+ },
1488
+ sub_agent_name: {
1489
+ format: 'text',
1490
+ type: 'string'
1491
+ },
1492
+ created_at: {
1493
+ default: 'timezone(\'utc\'::text, now())',
1494
+ format: 'timestamp with time zone',
1495
+ type: 'string'
1496
+ }
1497
+ },
1498
+ type: 'object'
1499
+ };
1500
+ export const audit_findingsSchema = {
1501
+ required: [
1502
+ 'id',
1503
+ 'created_at',
1504
+ 'updated_at',
1505
+ 'project_id',
1506
+ 'title'
1507
+ ],
1508
+ properties: {
1509
+ id: {
1510
+ default: 'extensions.uuid_generate_v4()',
1511
+ description: 'Note:\nThis is a Primary Key.<pk/>',
1512
+ format: 'uuid',
1513
+ type: 'string'
1514
+ },
1515
+ created_at: {
1516
+ default: 'now()',
1517
+ format: 'timestamp with time zone',
1518
+ type: 'string'
1519
+ },
1520
+ updated_at: {
1521
+ default: 'now()',
1522
+ format: 'timestamp with time zone',
1523
+ type: 'string'
1524
+ },
1525
+ project_id: {
1526
+ description: 'Note:\nThis is a Foreign Key to `audit_projects.id`.<fk table=\'audit_projects\' column=\'id\'/>',
1527
+ format: 'uuid',
1528
+ type: 'string'
1529
+ },
1530
+ task_id: {
1531
+ description: 'Note:\nThis is a Foreign Key to `audit_tasks.id`.<fk table=\'audit_tasks\' column=\'id\'/>',
1532
+ format: 'uuid',
1533
+ type: 'string'
1534
+ },
1535
+ severity: {
1536
+ description: 'Finding severity level: critical, high, medium, low, info',
1537
+ enum: [
1538
+ 'critical',
1539
+ 'high',
1540
+ 'medium',
1541
+ 'low',
1542
+ 'info'
1543
+ ],
1544
+ format: 'public.audit_finding_severity',
1545
+ type: 'string'
1546
+ },
1547
+ title: {
1548
+ format: 'text',
1549
+ type: 'string'
1550
+ },
1551
+ description: {
1552
+ format: 'text',
1553
+ type: 'string'
1554
+ },
1555
+ remediation: {
1556
+ format: 'text',
1557
+ type: 'string'
1558
+ },
1559
+ proof_poc: {
1560
+ format: 'text',
1561
+ type: 'string'
1562
+ },
1563
+ ai_analysis: {
1564
+ format: 'text',
1565
+ type: 'string'
1566
+ },
1567
+ status: {
1568
+ default: 'open',
1569
+ format: 'text',
1570
+ type: 'string'
1571
+ }
1572
+ },
1573
+ type: 'object'
1574
+ };
1575
+ export const worker_summarySchema = {
1576
+ properties: {
1577
+ id: {
1578
+ description: 'Note:\nThis is a Primary Key.<pk/>',
1579
+ format: 'text',
1580
+ type: 'string'
1581
+ },
1582
+ name: {
1583
+ format: 'text',
1584
+ type: 'string'
1585
+ },
1586
+ status: {
1587
+ enum: [
1588
+ 'starting',
1589
+ 'running',
1590
+ 'stopping',
1591
+ 'stopped',
1592
+ 'offline'
1593
+ ],
1594
+ format: 'public.worker_status',
1595
+ type: 'string'
1596
+ },
1597
+ host_id: {
1598
+ description: 'Note:\nThis is a Foreign Key to `compute_nodes.id`.<fk table=\'compute_nodes\' column=\'id\'/>',
1599
+ format: 'uuid',
1600
+ type: 'string'
1601
+ },
1602
+ user_id: {
1603
+ format: 'uuid',
1604
+ type: 'string'
1605
+ },
1606
+ public_url: {
1607
+ format: 'text',
1608
+ type: 'string'
1609
+ },
1610
+ latest_pull_at: {
1611
+ format: 'timestamp with time zone',
1612
+ type: 'string'
1613
+ },
1614
+ created_at: {
1615
+ format: 'timestamp with time zone',
1616
+ type: 'string'
1617
+ },
1618
+ is_online: {
1619
+ format: 'boolean',
1620
+ type: 'boolean'
1621
+ },
1622
+ latest_task: {
1623
+ format: 'jsonb'
1624
+ }
1625
+ },
1626
+ type: 'object'
1627
+ };
1628
+ export const event_streamsSchema = {
1629
+ required: [
1630
+ 'id',
1631
+ 'session_id',
1632
+ 'user_id',
1633
+ 'event',
1634
+ 'data'
1635
+ ],
1636
+ properties: {
1637
+ id: {
1638
+ description: 'Note:\nThis is a Primary Key.<pk/>',
1639
+ format: 'text',
1640
+ type: 'string'
1641
+ },
1642
+ session_id: {
1643
+ format: 'text',
1644
+ type: 'string'
1645
+ },
1646
+ user_id: {
1647
+ default: 'auth.uid()',
1648
+ format: 'uuid',
1649
+ type: 'string'
1650
+ },
1651
+ event: {
1652
+ default: 'adk_event',
1653
+ format: 'text',
1654
+ type: 'string'
1655
+ },
1656
+ data: {
1657
+ format: 'jsonb'
1658
+ },
1659
+ created_at: {
1660
+ default: 'now()',
1661
+ format: 'timestamp with time zone',
1662
+ type: 'string'
1663
+ },
1664
+ updated_at: {
1665
+ default: 'now()',
1666
+ format: 'timestamp with time zone',
1667
+ type: 'string'
1668
+ }
1669
+ },
1670
+ type: 'object'
1671
+ };
1672
+ export const endpointsSchema = {
1673
+ description: '服务端点信息',
1674
+ required: [
1675
+ 'id',
1676
+ 'created_at'
1677
+ ],
1678
+ properties: {
1679
+ id: {
1680
+ default: 'gen_random_uuid()',
1681
+ description: 'Note:\nThis is a Primary Key.<pk/>',
1682
+ format: 'uuid',
1683
+ type: 'string'
1684
+ },
1685
+ created_at: {
1686
+ default: 'now()',
1687
+ format: 'timestamp with time zone',
1688
+ type: 'string'
1689
+ },
1690
+ updated_at: {
1691
+ format: 'timestamp with time zone',
1692
+ type: 'string'
1693
+ },
1694
+ type: {
1695
+ format: 'text',
1696
+ type: 'string'
1697
+ },
1698
+ host_id: {
1699
+ format: 'uuid',
1700
+ type: 'string'
1701
+ },
1702
+ is_heal: {
1703
+ default: true,
1704
+ format: 'boolean',
1705
+ type: 'boolean'
1706
+ },
1707
+ state: {
1708
+ format: 'jsonb'
1709
+ },
1710
+ hostname: {
1711
+ format: 'text',
1712
+ type: 'string'
1713
+ },
1714
+ url: {
1715
+ format: 'text',
1716
+ type: 'string'
1717
+ },
1718
+ user_id: {
1719
+ format: 'uuid',
1720
+ type: 'string'
1721
+ }
1722
+ },
1723
+ type: 'object'
1724
+ };
1725
+ export const compute_nodesSchema = {
1726
+ description: '计算资源节点 (VPS, HuggingFace Spaces, Local Docker, etc.)',
1727
+ required: [
1728
+ 'id',
1729
+ 'created_at',
1730
+ 'updated_at',
1731
+ 'name',
1732
+ 'host',
1733
+ 'port',
1734
+ 'provider',
1735
+ 'user_id'
1736
+ ],
1737
+ properties: {
1738
+ id: {
1739
+ default: 'gen_random_uuid()',
1740
+ description: 'Note:\nThis is a Primary Key.<pk/>',
1741
+ format: 'uuid',
1742
+ type: 'string'
1743
+ },
1744
+ created_at: {
1745
+ default: 'now()',
1746
+ format: 'timestamp with time zone',
1747
+ type: 'string'
1748
+ },
1749
+ updated_at: {
1750
+ default: 'now()',
1751
+ format: 'timestamp with time zone',
1752
+ type: 'string'
1753
+ },
1754
+ name: {
1755
+ format: 'text',
1756
+ type: 'string'
1757
+ },
1758
+ host: {
1759
+ description: 'Host domain or IP address',
1760
+ format: 'text',
1761
+ type: 'string'
1762
+ },
1763
+ port: {
1764
+ default: 22,
1765
+ format: 'integer',
1766
+ type: 'integer'
1767
+ },
1768
+ username: {
1769
+ default: 'root',
1770
+ format: 'text',
1771
+ type: 'string'
1772
+ },
1773
+ auth_secret: {
1774
+ description: 'SSH 私钥 或 API Token',
1775
+ format: 'text',
1776
+ type: 'string'
1777
+ },
1778
+ status: {
1779
+ default: 'offline',
1780
+ description: 'Status of the compute node',
1781
+ enum: [
1782
+ 'online',
1783
+ 'offline'
1784
+ ],
1785
+ format: 'public.compute_node_status',
1786
+ type: 'string'
1787
+ },
1788
+ provider: {
1789
+ default: 'ssh',
1790
+ description: '资源提供方类型: ssh (VPS), huggingface, local',
1791
+ format: 'text',
1792
+ type: 'string'
1793
+ },
1794
+ user_id: {
1795
+ default: 'auth.uid()',
1796
+ format: 'uuid',
1797
+ type: 'string'
1798
+ },
1799
+ is_public: {
1800
+ default: false,
1801
+ description: 'Whether this node is shared public access',
1802
+ format: 'boolean',
1803
+ type: 'boolean'
1804
+ }
1805
+ },
1806
+ type: 'object'
1807
+ };
1808
+ export const sys_configSchema = {
1809
+ description: 'System-level configurations, e.g., GitHub App secrets',
1810
+ required: [
1811
+ 'key',
1812
+ 'value'
1813
+ ],
1814
+ properties: {
1815
+ key: {
1816
+ description: 'Note:\nThis is a Primary Key.<pk/>',
1817
+ format: 'text',
1818
+ type: 'string'
1819
+ },
1820
+ value: {
1821
+ format: 'jsonb'
1822
+ },
1823
+ description: {
1824
+ format: 'text',
1825
+ type: 'string'
1826
+ },
1827
+ created_at: {
1828
+ default: 'now()',
1829
+ format: 'timestamp with time zone',
1830
+ type: 'string'
1831
+ },
1832
+ updated_at: {
1833
+ default: 'now()',
1834
+ format: 'timestamp with time zone',
1835
+ type: 'string'
1836
+ }
1837
+ },
1838
+ type: 'object'
1839
+ };
1840
+ export const worker_api_keysSchema = {
1841
+ required: [
1842
+ 'id',
1843
+ 'worker_id',
1844
+ 'key_value'
1845
+ ],
1846
+ properties: {
1847
+ id: {
1848
+ default: 'gen_random_uuid()',
1849
+ description: 'Note:\nThis is a Primary Key.<pk/>',
1850
+ format: 'uuid',
1851
+ type: 'string'
1852
+ },
1853
+ worker_id: {
1854
+ description: 'Note:\nThis is a Foreign Key to `workers.id`.<fk table=\'workers\' column=\'id\'/>',
1855
+ format: 'text',
1856
+ type: 'string'
1857
+ },
1858
+ key_value: {
1859
+ format: 'text',
1860
+ type: 'string'
1861
+ },
1862
+ created_at: {
1863
+ default: 'now()',
1864
+ format: 'timestamp with time zone',
1865
+ type: 'string'
1866
+ },
1867
+ last_used_at: {
1868
+ format: 'timestamp with time zone',
1869
+ type: 'string'
1870
+ },
1871
+ revoked: {
1872
+ default: false,
1873
+ format: 'boolean',
1874
+ type: 'boolean'
1875
+ },
1876
+ name: {
1877
+ format: 'text',
1878
+ type: 'string'
1879
+ }
1880
+ },
1881
+ type: 'object'
1882
+ };
1883
+ export const platformsSchema = {
1884
+ required: [
1885
+ 'id',
1886
+ 'created_at',
1887
+ 'name',
1888
+ 'type',
1889
+ 'is_active'
1890
+ ],
1891
+ properties: {
1892
+ id: {
1893
+ default: 'gen_random_uuid()',
1894
+ description: 'Note:\nThis is a Primary Key.<pk/>',
1895
+ format: 'uuid',
1896
+ type: 'string'
1897
+ },
1898
+ created_at: {
1899
+ default: 'now()',
1900
+ format: 'timestamp with time zone',
1901
+ type: 'string'
1902
+ },
1903
+ updated_at: {
1904
+ default: 'now()',
1905
+ format: 'timestamp with time zone',
1906
+ type: 'string'
1907
+ },
1908
+ name: {
1909
+ format: 'text',
1910
+ type: 'string'
1911
+ },
1912
+ display_name: {
1913
+ format: 'text',
1914
+ type: 'string'
1915
+ },
1916
+ type: {
1917
+ default: 'web',
1918
+ description: '平台类型 (例如: api, app, web, 或其他自定义类型)',
1919
+ format: 'text',
1920
+ type: 'string'
1921
+ },
1922
+ base_url: {
1923
+ format: 'text',
1924
+ type: 'string'
1925
+ },
1926
+ auth_config: {
1927
+ format: 'jsonb'
1928
+ },
1929
+ is_active: {
1930
+ default: true,
1931
+ format: 'boolean',
1932
+ type: 'boolean'
1933
+ }
1934
+ },
1935
+ type: 'object'
1936
+ };
1937
+ export const voltagent_memory_usersSchema = {
1938
+ required: [
1939
+ 'id',
1940
+ 'created_at',
1941
+ 'updated_at'
1942
+ ],
1943
+ properties: {
1944
+ id: {
1945
+ description: 'Note:\nThis is a Primary Key.<pk/>',
1946
+ format: 'text',
1947
+ type: 'string'
1948
+ },
1949
+ metadata: {
1950
+ format: 'jsonb'
1951
+ },
1952
+ created_at: {
1953
+ default: 'timezone(\'utc\'::text, now())',
1954
+ format: 'timestamp with time zone',
1955
+ type: 'string'
1956
+ },
1957
+ updated_at: {
1958
+ default: 'timezone(\'utc\'::text, now())',
1959
+ format: 'timestamp with time zone',
1960
+ type: 'string'
1961
+ }
1962
+ },
1963
+ type: 'object'
1964
+ };
1965
+ export const user_rolesSchema = {
1966
+ description: 'User-Role mapping table',
1967
+ required: [
1968
+ 'id',
1969
+ 'user_id',
1970
+ 'role'
1971
+ ],
1972
+ properties: {
1973
+ id: {
1974
+ description: 'Note:\nThis is a Primary Key.<pk/>',
1975
+ format: 'bigint',
1976
+ type: 'integer'
1977
+ },
1978
+ user_id: {
1979
+ format: 'uuid',
1980
+ type: 'string'
1981
+ },
1982
+ role: {
1983
+ enum: [
1984
+ 'admin',
1985
+ 'moderator',
1986
+ 'member'
1987
+ ],
1988
+ format: 'public.app_role',
1989
+ type: 'string'
1990
+ },
1991
+ created_at: {
1992
+ default: 'now()',
1993
+ format: 'timestamp with time zone',
1994
+ type: 'string'
1995
+ }
1996
+ },
1997
+ type: 'object'
1998
+ };
1999
+ export const service_tunnels_lajiSchema = {
2000
+ description: 'services 的隧道配置',
2001
+ required: [
2002
+ 'id',
2003
+ 'created_at',
2004
+ 'updated_at',
2005
+ 'service_id'
2006
+ ],
2007
+ properties: {
2008
+ id: {
2009
+ default: 'gen_random_uuid()',
2010
+ description: 'Note:\nThis is a Primary Key.<pk/>',
2011
+ format: 'uuid',
2012
+ type: 'string'
2013
+ },
2014
+ created_at: {
2015
+ default: 'now()',
2016
+ format: 'timestamp with time zone',
2017
+ type: 'string'
2018
+ },
2019
+ updated_at: {
2020
+ default: 'now()',
2021
+ format: 'timestamp with time zone',
2022
+ type: 'string'
2023
+ },
2024
+ service_id: {
2025
+ format: 'uuid',
2026
+ type: 'string'
2027
+ },
2028
+ cfd_token: {
2029
+ format: 'text',
2030
+ type: 'string'
2031
+ },
2032
+ user_id: {
2033
+ format: 'uuid',
2034
+ type: 'string'
2035
+ }
2036
+ },
2037
+ type: 'object'
2038
+ };
2039
+ export const adk_eventsSchema = {
2040
+ description: 'adk_events',
2041
+ required: [
2042
+ 'id',
2043
+ 'created_at',
2044
+ 'updated_at'
2045
+ ],
2046
+ properties: {
2047
+ id: {
2048
+ description: 'Note:\nThis is a Primary Key.<pk/>',
2049
+ format: 'text',
2050
+ type: 'string'
2051
+ },
2052
+ created_at: {
2053
+ default: 'now()',
2054
+ format: 'timestamp with time zone',
2055
+ type: 'string'
2056
+ },
2057
+ updated_at: {
2058
+ default: 'now()',
2059
+ format: 'timestamp with time zone',
2060
+ type: 'string'
2061
+ },
2062
+ app_name: {
2063
+ default: 'text',
2064
+ format: 'text',
2065
+ type: 'string'
2066
+ },
2067
+ user_id: {
2068
+ format: 'uuid',
2069
+ type: 'string'
2070
+ },
2071
+ session_id: {
2072
+ format: 'text',
2073
+ type: 'string'
2074
+ },
2075
+ invocation_id: {
2076
+ format: 'text',
2077
+ type: 'string'
2078
+ },
2079
+ author: {
2080
+ format: 'text',
2081
+ type: 'string'
2082
+ },
2083
+ actions: {
2084
+ format: 'jsonb'
2085
+ },
2086
+ long_running_tool_ids_json: {
2087
+ format: 'jsonb'
2088
+ },
2089
+ branch: {
2090
+ format: 'text',
2091
+ type: 'string'
2092
+ },
2093
+ timestamp: {
2094
+ format: 'timestamp with time zone',
2095
+ type: 'string'
2096
+ },
2097
+ content: {
2098
+ format: 'jsonb'
2099
+ },
2100
+ grounding_metadata: {
2101
+ format: 'jsonb'
2102
+ },
2103
+ custom_metadata: {
2104
+ format: 'jsonb'
2105
+ },
2106
+ usage_metadata: {
2107
+ format: 'jsonb'
2108
+ },
2109
+ citation_metadata: {
2110
+ format: 'jsonb'
2111
+ },
2112
+ partial: {
2113
+ format: 'boolean',
2114
+ type: 'boolean'
2115
+ },
2116
+ turn_complete: {
2117
+ format: 'boolean',
2118
+ type: 'boolean'
2119
+ },
2120
+ error_code: {
2121
+ format: 'text',
2122
+ type: 'string'
2123
+ },
2124
+ error_message: {
2125
+ format: 'text',
2126
+ type: 'string'
2127
+ },
2128
+ interrupted: {
2129
+ format: 'boolean',
2130
+ type: 'boolean'
2131
+ },
2132
+ input_transcription: {
2133
+ format: 'jsonb'
2134
+ },
2135
+ output_transcription: {
2136
+ format: 'jsonb'
2137
+ }
2138
+ },
2139
+ type: 'object'
2140
+ };
2141
+ export const audit_projectsSchema = {
2142
+ required: [
2143
+ 'id',
2144
+ 'created_at',
2145
+ 'updated_at',
2146
+ 'user_id',
2147
+ 'name'
2148
+ ],
2149
+ properties: {
2150
+ id: {
2151
+ default: 'extensions.uuid_generate_v4()',
2152
+ description: 'Note:\nThis is a Primary Key.<pk/>',
2153
+ format: 'uuid',
2154
+ type: 'string'
2155
+ },
2156
+ created_at: {
2157
+ default: 'now()',
2158
+ format: 'timestamp with time zone',
2159
+ type: 'string'
2160
+ },
2161
+ updated_at: {
2162
+ default: 'now()',
2163
+ format: 'timestamp with time zone',
2164
+ type: 'string'
2165
+ },
2166
+ user_id: {
2167
+ description: '项目所有者用户ID, 必填',
2168
+ format: 'uuid',
2169
+ type: 'string'
2170
+ },
2171
+ name: {
2172
+ format: 'text',
2173
+ type: 'string'
2174
+ },
2175
+ target: {
2176
+ format: 'text',
2177
+ type: 'string'
2178
+ },
2179
+ repo_url: {
2180
+ format: 'text',
2181
+ type: 'string'
2182
+ },
2183
+ repo_branch: {
2184
+ format: 'text',
2185
+ type: 'string'
2186
+ },
2187
+ config: {
2188
+ description: '项目配置 (JSON), 包含 GitHub 集成等扩展配置',
2189
+ format: 'jsonb'
2190
+ },
2191
+ worker_id: {
2192
+ description: '关联的 Worker 实例 ID\n\nNote:\nThis is a Foreign Key to `workers.id`.<fk table=\'workers\' column=\'id\'/>',
2193
+ format: 'text',
2194
+ type: 'string'
2195
+ }
2196
+ },
2197
+ type: 'object'
2198
+ };
2199
+ export const agentsSchema = {
2200
+ description: 'ai agents',
2201
+ required: [
2202
+ 'id',
2203
+ 'created_at',
2204
+ 'updated_at'
2205
+ ],
2206
+ properties: {
2207
+ id: {
2208
+ description: 'agent 唯一名称, 同时也是agent 名称,通常表示agent 的类型\n\nNote:\nThis is a Primary Key.<pk/>',
2209
+ format: 'text',
2210
+ type: 'string'
2211
+ },
2212
+ created_at: {
2213
+ default: 'now()',
2214
+ format: 'timestamp with time zone',
2215
+ type: 'string'
2216
+ },
2217
+ updated_at: {
2218
+ default: 'now()',
2219
+ format: 'timestamp with time zone',
2220
+ type: 'string'
2221
+ },
2222
+ description: {
2223
+ description: 'agent 友好描述,一般用于展示,不影响agent运行',
2224
+ format: 'text',
2225
+ type: 'string'
2226
+ },
2227
+ instruction: {
2228
+ description: 'agent 指令,通常对应 system prompt',
2229
+ format: 'text',
2230
+ type: 'string'
2231
+ },
2232
+ max_step: {
2233
+ description: '总步骤数限制',
2234
+ format: 'integer',
2235
+ type: 'integer'
2236
+ },
2237
+ runtime: {
2238
+ description: '运行时, 例如: python-adk, aisdk-agent-v5,aiadk',
2239
+ format: 'text',
2240
+ type: 'string'
2241
+ },
2242
+ tools: {
2243
+ description: '以逗号风格的多个工具名称,例如"web_search,rag1,bash,ssh"',
2244
+ format: 'text',
2245
+ type: 'string'
2246
+ },
2247
+ config: {
2248
+ description: '额外配置信息, 对应特定agent附加的额外配置信息',
2249
+ format: 'jsonb'
2250
+ }
2251
+ },
2252
+ type: 'object'
2253
+ };
2254
+ export const voltagent_memory_conversationsSchema = {
2255
+ required: [
2256
+ 'id',
2257
+ 'resource_id',
2258
+ 'user_id',
2259
+ 'title',
2260
+ 'metadata',
2261
+ 'created_at',
2262
+ 'updated_at'
2263
+ ],
2264
+ properties: {
2265
+ id: {
2266
+ description: 'Note:\nThis is a Primary Key.<pk/>',
2267
+ format: 'text',
2268
+ type: 'string'
2269
+ },
2270
+ resource_id: {
2271
+ format: 'text',
2272
+ type: 'string'
2273
+ },
2274
+ user_id: {
2275
+ format: 'text',
2276
+ type: 'string'
2277
+ },
2278
+ title: {
2279
+ format: 'text',
2280
+ type: 'string'
2281
+ },
2282
+ metadata: {
2283
+ format: 'jsonb'
2284
+ },
2285
+ created_at: {
2286
+ default: 'timezone(\'utc\'::text, now())',
2287
+ format: 'timestamp with time zone',
2288
+ type: 'string'
2289
+ },
2290
+ updated_at: {
2291
+ default: 'timezone(\'utc\'::text, now())',
2292
+ format: 'timestamp with time zone',
2293
+ type: 'string'
2294
+ }
2295
+ },
2296
+ type: 'object'
2297
+ };
2298
+ export const adk_agentsSchema = {
2299
+ description: 'ADK Agent 应用列表',
2300
+ required: [
2301
+ 'name'
2302
+ ],
2303
+ properties: {
2304
+ name: {
2305
+ description: 'Note:\nThis is a Primary Key.<pk/>',
2306
+ format: 'text',
2307
+ type: 'string'
2308
+ },
2309
+ description: {
2310
+ format: 'text',
2311
+ type: 'string'
2312
+ },
2313
+ avatar_url: {
2314
+ format: 'text',
2315
+ type: 'string'
2316
+ },
2317
+ created_at: {
2318
+ default: 'now()',
2319
+ format: 'timestamp with time zone',
2320
+ type: 'string'
2321
+ },
2322
+ updated_at: {
2323
+ default: 'now()',
2324
+ format: 'timestamp with time zone',
2325
+ type: 'string'
2326
+ }
2327
+ },
2328
+ type: 'object'
2329
+ };
2330
+ export const workflow_stepsSchema = {
2331
+ required: [
2332
+ 'id',
2333
+ 'title'
2334
+ ],
2335
+ properties: {
2336
+ id: {
2337
+ default: 'gen_random_uuid()',
2338
+ description: 'Note:\nThis is a Primary Key.<pk/>',
2339
+ format: 'uuid',
2340
+ type: 'string'
2341
+ },
2342
+ workflow_id: {
2343
+ description: 'Note:\nThis is a Foreign Key to `workflow_instances.id`.<fk table=\'workflow_instances\' column=\'id\'/>',
2344
+ format: 'uuid',
2345
+ type: 'string'
2346
+ },
2347
+ step_index: {
2348
+ format: 'integer',
2349
+ type: 'integer'
2350
+ },
2351
+ title: {
2352
+ format: 'text',
2353
+ type: 'string'
2354
+ },
2355
+ status: {
2356
+ default: 'running',
2357
+ format: 'text',
2358
+ type: 'string'
2359
+ },
2360
+ logs: {
2361
+ format: 'text',
2362
+ type: 'string'
2363
+ },
2364
+ output_data: {
2365
+ format: 'jsonb'
2366
+ },
2367
+ started_at: {
2368
+ default: 'now()',
2369
+ format: 'timestamp with time zone',
2370
+ type: 'string'
2371
+ },
2372
+ completed_at: {
2373
+ format: 'timestamp with time zone',
2374
+ type: 'string'
2375
+ },
2376
+ cell_output: {
2377
+ format: 'jsonb'
2378
+ },
2379
+ cell_source: {
2380
+ format: 'text',
2381
+ type: 'string'
2382
+ }
2383
+ },
2384
+ type: 'object'
2385
+ };
2386
+ export const adk_artifactsSchema = {
2387
+ required: [
2388
+ 'id',
2389
+ 'app_name',
2390
+ 'user_id',
2391
+ 'filename',
2392
+ 'version'
2393
+ ],
2394
+ properties: {
2395
+ id: {
2396
+ default: 'gen_random_uuid()',
2397
+ description: 'Note:\nThis is a Primary Key.<pk/>',
2398
+ format: 'uuid',
2399
+ type: 'string'
2400
+ },
2401
+ app_name: {
2402
+ format: 'text',
2403
+ type: 'string'
2404
+ },
2405
+ user_id: {
2406
+ format: 'uuid',
2407
+ type: 'string'
2408
+ },
2409
+ session_id: {
2410
+ format: 'text',
2411
+ type: 'string'
2412
+ },
2413
+ filename: {
2414
+ format: 'text',
2415
+ type: 'string'
2416
+ },
2417
+ version: {
2418
+ format: 'integer',
2419
+ type: 'integer'
2420
+ },
2421
+ mime_type: {
2422
+ format: 'text',
2423
+ type: 'string'
2424
+ },
2425
+ data: {
2426
+ format: 'jsonb'
2427
+ },
2428
+ canonical_uri: {
2429
+ format: 'text',
2430
+ type: 'string'
2431
+ },
2432
+ custom_metadata: {
2433
+ format: 'jsonb'
2434
+ },
2435
+ created_at: {
2436
+ default: 'now()',
2437
+ format: 'timestamp with time zone',
2438
+ type: 'string'
2439
+ }
2440
+ },
2441
+ type: 'object'
2442
+ };
2443
+ export const eventsSchema = {
2444
+ description: '传入事件',
2445
+ required: [
2446
+ 'id',
2447
+ 'created_at',
2448
+ 'type'
2449
+ ],
2450
+ properties: {
2451
+ id: {
2452
+ default: 'gen_random_uuid()',
2453
+ description: 'Note:\nThis is a Primary Key.<pk/>',
2454
+ format: 'uuid',
2455
+ type: 'string'
2456
+ },
2457
+ created_at: {
2458
+ default: 'now()',
2459
+ format: 'timestamp with time zone',
2460
+ type: 'string'
2461
+ },
2462
+ type: {
2463
+ format: 'text',
2464
+ type: 'string'
2465
+ },
2466
+ data: {
2467
+ format: 'jsonb'
2468
+ },
2469
+ user_id: {
2470
+ format: 'uuid',
2471
+ type: 'string'
2472
+ }
2473
+ },
2474
+ type: 'object'
2475
+ };
2476
+ export const voltagent_memory_messagesSchema = {
2477
+ required: [
2478
+ 'conversation_id',
2479
+ 'message_id',
2480
+ 'user_id',
2481
+ 'role',
2482
+ 'created_at'
2483
+ ],
2484
+ properties: {
2485
+ conversation_id: {
2486
+ description: 'Note:\nThis is a Primary Key.<pk/>\nThis is a Foreign Key to `voltagent_memory_conversations.id`.<fk table=\'voltagent_memory_conversations\' column=\'id\'/>',
2487
+ format: 'text',
2488
+ type: 'string'
2489
+ },
2490
+ message_id: {
2491
+ description: 'Note:\nThis is a Primary Key.<pk/>',
2492
+ format: 'text',
2493
+ type: 'string'
2494
+ },
2495
+ user_id: {
2496
+ format: 'text',
2497
+ type: 'string'
2498
+ },
2499
+ role: {
2500
+ format: 'text',
2501
+ type: 'string'
2502
+ },
2503
+ parts: {
2504
+ format: 'jsonb'
2505
+ },
2506
+ metadata: {
2507
+ format: 'jsonb'
2508
+ },
2509
+ format_version: {
2510
+ default: 2,
2511
+ format: 'integer',
2512
+ type: 'integer'
2513
+ },
2514
+ created_at: {
2515
+ default: 'timezone(\'utc\'::text, now())',
2516
+ format: 'timestamp with time zone',
2517
+ type: 'string'
2518
+ }
2519
+ },
2520
+ type: 'object'
2521
+ };
2522
+ export const adk_sessionsSchema = {
2523
+ description: 'adk_sessions',
2524
+ required: [
2525
+ 'id',
2526
+ 'created_at',
2527
+ 'user_id',
2528
+ 'app_name',
2529
+ 'state'
2530
+ ],
2531
+ properties: {
2532
+ id: {
2533
+ description: 'Note:\nThis is a Primary Key.<pk/>',
2534
+ format: 'text',
2535
+ type: 'string'
2536
+ },
2537
+ created_at: {
2538
+ format: 'timestamp with time zone',
2539
+ type: 'string'
2540
+ },
2541
+ updated_at: {
2542
+ format: 'timestamp with time zone',
2543
+ type: 'string'
2544
+ },
2545
+ user_id: {
2546
+ format: 'uuid',
2547
+ type: 'string'
2548
+ },
2549
+ app_name: {
2550
+ format: 'text',
2551
+ type: 'string'
2552
+ },
2553
+ state: {
2554
+ format: 'jsonb'
2555
+ }
2556
+ },
2557
+ type: 'object'
2558
+ };
2559
+ export const sys_logsSchema = {
2560
+ description: '系统日志',
2561
+ required: [
2562
+ 'id',
2563
+ 'created_at'
2564
+ ],
2565
+ properties: {
2566
+ id: {
2567
+ description: 'Note:\nThis is a Primary Key.<pk/>',
2568
+ format: 'bigint',
2569
+ type: 'integer'
2570
+ },
2571
+ created_at: {
2572
+ default: 'now()',
2573
+ format: 'timestamp with time zone',
2574
+ type: 'string'
2575
+ },
2576
+ text: {
2577
+ format: 'text',
2578
+ type: 'string'
2579
+ },
2580
+ level: {
2581
+ format: 'smallint',
2582
+ type: 'integer'
2583
+ },
2584
+ module: {
2585
+ default: 'sys',
2586
+ format: 'text',
2587
+ type: 'string'
2588
+ },
2589
+ user_id: {
2590
+ format: 'uuid',
2591
+ type: 'string'
2592
+ }
2593
+ },
2594
+ type: 'object'
47
2595
  };
48
2596
  //# sourceMappingURL=schemas.gen.js.map