mtmsdk 0.0.42 → 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
@@ -0,0 +1,3828 @@
1
+ export type Json =
2
+ | string
3
+ | number
4
+ | boolean
5
+ | null
6
+ | { [key: string]: Json | undefined }
7
+ | Json[]
8
+
9
+ export type Database = {
10
+ // Allows to automatically instantiate createClient with right options
11
+ // instead of createClient<Database, { PostgrestVersion: 'XX' }>(URL, KEY)
12
+ __InternalSupabase: {
13
+ PostgrestVersion: "13.0.5"
14
+ }
15
+ public: {
16
+ Tables: {
17
+ adk_agents: {
18
+ Row: {
19
+ avatar_url: string | null
20
+ created_at: string | null
21
+ description: string | null
22
+ name: string
23
+ updated_at: string | null
24
+ }
25
+ Insert: {
26
+ avatar_url?: string | null
27
+ created_at?: string | null
28
+ description?: string | null
29
+ name: string
30
+ updated_at?: string | null
31
+ }
32
+ Update: {
33
+ avatar_url?: string | null
34
+ created_at?: string | null
35
+ description?: string | null
36
+ name?: string
37
+ updated_at?: string | null
38
+ }
39
+ Relationships: []
40
+ }
41
+ adk_artifacts: {
42
+ Row: {
43
+ app_name: string
44
+ canonical_uri: string | null
45
+ created_at: string | null
46
+ custom_metadata: Json | null
47
+ data: Json | null
48
+ filename: string
49
+ id: string
50
+ mime_type: string | null
51
+ session_id: string | null
52
+ user_id: string
53
+ version: number
54
+ }
55
+ Insert: {
56
+ app_name: string
57
+ canonical_uri?: string | null
58
+ created_at?: string | null
59
+ custom_metadata?: Json | null
60
+ data?: Json | null
61
+ filename: string
62
+ id?: string
63
+ mime_type?: string | null
64
+ session_id?: string | null
65
+ user_id: string
66
+ version: number
67
+ }
68
+ Update: {
69
+ app_name?: string
70
+ canonical_uri?: string | null
71
+ created_at?: string | null
72
+ custom_metadata?: Json | null
73
+ data?: Json | null
74
+ filename?: string
75
+ id?: string
76
+ mime_type?: string | null
77
+ session_id?: string | null
78
+ user_id?: string
79
+ version?: number
80
+ }
81
+ Relationships: []
82
+ }
83
+ adk_events: {
84
+ Row: {
85
+ actions: Json | null
86
+ app_name: string | null
87
+ author: string | null
88
+ branch: string | null
89
+ citation_metadata: Json | null
90
+ content: Json | null
91
+ created_at: string
92
+ custom_metadata: Json | null
93
+ error_code: string | null
94
+ error_message: string | null
95
+ grounding_metadata: Json | null
96
+ id: string
97
+ input_transcription: Json | null
98
+ interrupted: boolean | null
99
+ invocation_id: string | null
100
+ long_running_tool_ids_json: Json | null
101
+ output_transcription: Json | null
102
+ partial: boolean | null
103
+ session_id: string | null
104
+ timestamp: string | null
105
+ turn_complete: boolean | null
106
+ updated_at: string
107
+ usage_metadata: Json | null
108
+ user_id: string | null
109
+ }
110
+ Insert: {
111
+ actions?: Json | null
112
+ app_name?: string | null
113
+ author?: string | null
114
+ branch?: string | null
115
+ citation_metadata?: Json | null
116
+ content?: Json | null
117
+ created_at?: string
118
+ custom_metadata?: Json | null
119
+ error_code?: string | null
120
+ error_message?: string | null
121
+ grounding_metadata?: Json | null
122
+ id: string
123
+ input_transcription?: Json | null
124
+ interrupted?: boolean | null
125
+ invocation_id?: string | null
126
+ long_running_tool_ids_json?: Json | null
127
+ output_transcription?: Json | null
128
+ partial?: boolean | null
129
+ session_id?: string | null
130
+ timestamp?: string | null
131
+ turn_complete?: boolean | null
132
+ updated_at?: string
133
+ usage_metadata?: Json | null
134
+ user_id?: string | null
135
+ }
136
+ Update: {
137
+ actions?: Json | null
138
+ app_name?: string | null
139
+ author?: string | null
140
+ branch?: string | null
141
+ citation_metadata?: Json | null
142
+ content?: Json | null
143
+ created_at?: string
144
+ custom_metadata?: Json | null
145
+ error_code?: string | null
146
+ error_message?: string | null
147
+ grounding_metadata?: Json | null
148
+ id?: string
149
+ input_transcription?: Json | null
150
+ interrupted?: boolean | null
151
+ invocation_id?: string | null
152
+ long_running_tool_ids_json?: Json | null
153
+ output_transcription?: Json | null
154
+ partial?: boolean | null
155
+ session_id?: string | null
156
+ timestamp?: string | null
157
+ turn_complete?: boolean | null
158
+ updated_at?: string
159
+ usage_metadata?: Json | null
160
+ user_id?: string | null
161
+ }
162
+ Relationships: [
163
+ {
164
+ foreignKeyName: "adk_events_session_id_fkey"
165
+ columns: ["session_id"]
166
+ isOneToOne: false
167
+ referencedRelation: "adk_sessions"
168
+ referencedColumns: ["id"]
169
+ },
170
+ ]
171
+ }
172
+ adk_quick_starts: {
173
+ Row: {
174
+ agent_name: string
175
+ created_at: string | null
176
+ description: string | null
177
+ id: string
178
+ is_active: boolean | null
179
+ ord: number | null
180
+ prompt: string
181
+ title: string
182
+ updated_at: string | null
183
+ }
184
+ Insert: {
185
+ agent_name?: string
186
+ created_at?: string | null
187
+ description?: string | null
188
+ id?: string
189
+ is_active?: boolean | null
190
+ ord?: number | null
191
+ prompt: string
192
+ title: string
193
+ updated_at?: string | null
194
+ }
195
+ Update: {
196
+ agent_name?: string
197
+ created_at?: string | null
198
+ description?: string | null
199
+ id?: string
200
+ is_active?: boolean | null
201
+ ord?: number | null
202
+ prompt?: string
203
+ title?: string
204
+ updated_at?: string | null
205
+ }
206
+ Relationships: []
207
+ }
208
+ adk_sessions: {
209
+ Row: {
210
+ app_name: string
211
+ created_at: string
212
+ id: string
213
+ state: Json
214
+ updated_at: string | null
215
+ user_id: string
216
+ }
217
+ Insert: {
218
+ app_name: string
219
+ created_at: string
220
+ id: string
221
+ state: Json
222
+ updated_at?: string | null
223
+ user_id: string
224
+ }
225
+ Update: {
226
+ app_name?: string
227
+ created_at?: string
228
+ id?: string
229
+ state?: Json
230
+ updated_at?: string | null
231
+ user_id?: string
232
+ }
233
+ Relationships: []
234
+ }
235
+ agents: {
236
+ Row: {
237
+ config: Json | null
238
+ created_at: string
239
+ description: string | null
240
+ id: string
241
+ instruction: string | null
242
+ max_step: number | null
243
+ runtime: string | null
244
+ tools: string | null
245
+ updated_at: string
246
+ }
247
+ Insert: {
248
+ config?: Json | null
249
+ created_at?: string
250
+ description?: string | null
251
+ id: string
252
+ instruction?: string | null
253
+ max_step?: number | null
254
+ runtime?: string | null
255
+ tools?: string | null
256
+ updated_at?: string
257
+ }
258
+ Update: {
259
+ config?: Json | null
260
+ created_at?: string
261
+ description?: string | null
262
+ id?: string
263
+ instruction?: string | null
264
+ max_step?: number | null
265
+ runtime?: string | null
266
+ tools?: string | null
267
+ updated_at?: string
268
+ }
269
+ Relationships: []
270
+ }
271
+ audit_assets: {
272
+ Row: {
273
+ content: string
274
+ created_at: string
275
+ id: string
276
+ metadata: Json | null
277
+ project_id: string
278
+ status: string | null
279
+ type: string
280
+ updated_at: string
281
+ }
282
+ Insert: {
283
+ content: string
284
+ created_at?: string
285
+ id?: string
286
+ metadata?: Json | null
287
+ project_id: string
288
+ status?: string | null
289
+ type: string
290
+ updated_at?: string
291
+ }
292
+ Update: {
293
+ content?: string
294
+ created_at?: string
295
+ id?: string
296
+ metadata?: Json | null
297
+ project_id?: string
298
+ status?: string | null
299
+ type?: string
300
+ updated_at?: string
301
+ }
302
+ Relationships: [
303
+ {
304
+ foreignKeyName: "audit_assets_project_id_fkey"
305
+ columns: ["project_id"]
306
+ isOneToOne: false
307
+ referencedRelation: "audit_projects"
308
+ referencedColumns: ["id"]
309
+ },
310
+ ]
311
+ }
312
+ audit_findings: {
313
+ Row: {
314
+ ai_analysis: string | null
315
+ created_at: string
316
+ description: string | null
317
+ id: string
318
+ project_id: string
319
+ proof_poc: string | null
320
+ remediation: string | null
321
+ severity: Database["public"]["Enums"]["audit_finding_severity"] | null
322
+ status: string | null
323
+ task_id: string | null
324
+ title: string
325
+ updated_at: string
326
+ }
327
+ Insert: {
328
+ ai_analysis?: string | null
329
+ created_at?: string
330
+ description?: string | null
331
+ id?: string
332
+ project_id: string
333
+ proof_poc?: string | null
334
+ remediation?: string | null
335
+ severity?:
336
+ | Database["public"]["Enums"]["audit_finding_severity"]
337
+ | null
338
+ status?: string | null
339
+ task_id?: string | null
340
+ title: string
341
+ updated_at?: string
342
+ }
343
+ Update: {
344
+ ai_analysis?: string | null
345
+ created_at?: string
346
+ description?: string | null
347
+ id?: string
348
+ project_id?: string
349
+ proof_poc?: string | null
350
+ remediation?: string | null
351
+ severity?:
352
+ | Database["public"]["Enums"]["audit_finding_severity"]
353
+ | null
354
+ status?: string | null
355
+ task_id?: string | null
356
+ title?: string
357
+ updated_at?: string
358
+ }
359
+ Relationships: [
360
+ {
361
+ foreignKeyName: "audit_findings_project_id_fkey"
362
+ columns: ["project_id"]
363
+ isOneToOne: false
364
+ referencedRelation: "audit_projects"
365
+ referencedColumns: ["id"]
366
+ },
367
+ {
368
+ foreignKeyName: "audit_findings_task_id_fkey"
369
+ columns: ["task_id"]
370
+ isOneToOne: false
371
+ referencedRelation: "audit_tasks"
372
+ referencedColumns: ["id"]
373
+ },
374
+ ]
375
+ }
376
+ audit_pocs: {
377
+ Row: {
378
+ created_at: string
379
+ cve_id: string | null
380
+ id: string
381
+ name: string
382
+ path: string | null
383
+ project_id: string
384
+ severity: string | null
385
+ status: string | null
386
+ updated_at: string
387
+ }
388
+ Insert: {
389
+ created_at?: string
390
+ cve_id?: string | null
391
+ id?: string
392
+ name: string
393
+ path?: string | null
394
+ project_id: string
395
+ severity?: string | null
396
+ status?: string | null
397
+ updated_at?: string
398
+ }
399
+ Update: {
400
+ created_at?: string
401
+ cve_id?: string | null
402
+ id?: string
403
+ name?: string
404
+ path?: string | null
405
+ project_id?: string
406
+ severity?: string | null
407
+ status?: string | null
408
+ updated_at?: string
409
+ }
410
+ Relationships: [
411
+ {
412
+ foreignKeyName: "audit_pocs_project_id_fkey"
413
+ columns: ["project_id"]
414
+ isOneToOne: false
415
+ referencedRelation: "audit_projects"
416
+ referencedColumns: ["id"]
417
+ },
418
+ ]
419
+ }
420
+ audit_projects: {
421
+ Row: {
422
+ config: Json | null
423
+ created_at: string
424
+ id: string
425
+ name: string
426
+ repo_branch: string | null
427
+ repo_url: string | null
428
+ target: string | null
429
+ updated_at: string
430
+ user_id: string
431
+ worker_id: string | null
432
+ }
433
+ Insert: {
434
+ config?: Json | null
435
+ created_at?: string
436
+ id?: string
437
+ name: string
438
+ repo_branch?: string | null
439
+ repo_url?: string | null
440
+ target?: string | null
441
+ updated_at?: string
442
+ user_id: string
443
+ worker_id?: string | null
444
+ }
445
+ Update: {
446
+ config?: Json | null
447
+ created_at?: string
448
+ id?: string
449
+ name?: string
450
+ repo_branch?: string | null
451
+ repo_url?: string | null
452
+ target?: string | null
453
+ updated_at?: string
454
+ user_id?: string
455
+ worker_id?: string | null
456
+ }
457
+ Relationships: [
458
+ {
459
+ foreignKeyName: "audit_projects_worker_id_fkey"
460
+ columns: ["worker_id"]
461
+ isOneToOne: false
462
+ referencedRelation: "servers"
463
+ referencedColumns: ["id"]
464
+ },
465
+ ]
466
+ }
467
+ audit_skills: {
468
+ Row: {
469
+ created_at: string
470
+ dependencies: Json | null
471
+ description: string | null
472
+ id: string
473
+ name: string
474
+ params_schema: Json | null
475
+ project_id: string
476
+ source_path: string | null
477
+ updated_at: string
478
+ version: string | null
479
+ }
480
+ Insert: {
481
+ created_at?: string
482
+ dependencies?: Json | null
483
+ description?: string | null
484
+ id?: string
485
+ name: string
486
+ params_schema?: Json | null
487
+ project_id: string
488
+ source_path?: string | null
489
+ updated_at?: string
490
+ version?: string | null
491
+ }
492
+ Update: {
493
+ created_at?: string
494
+ dependencies?: Json | null
495
+ description?: string | null
496
+ id?: string
497
+ name?: string
498
+ params_schema?: Json | null
499
+ project_id?: string
500
+ source_path?: string | null
501
+ updated_at?: string
502
+ version?: string | null
503
+ }
504
+ Relationships: [
505
+ {
506
+ foreignKeyName: "audit_skills_project_id_fkey"
507
+ columns: ["project_id"]
508
+ isOneToOne: false
509
+ referencedRelation: "audit_projects"
510
+ referencedColumns: ["id"]
511
+ },
512
+ ]
513
+ }
514
+ audit_tasks: {
515
+ Row: {
516
+ created_at: string
517
+ id: string
518
+ instructions: string | null
519
+ logs_url: string | null
520
+ project_id: string
521
+ result_summary: string | null
522
+ sandbox_id: string | null
523
+ skill_id: string | null
524
+ status: string | null
525
+ updated_at: string
526
+ user_id: string | null
527
+ }
528
+ Insert: {
529
+ created_at?: string
530
+ id?: string
531
+ instructions?: string | null
532
+ logs_url?: string | null
533
+ project_id: string
534
+ result_summary?: string | null
535
+ sandbox_id?: string | null
536
+ skill_id?: string | null
537
+ status?: string | null
538
+ updated_at?: string
539
+ user_id?: string | null
540
+ }
541
+ Update: {
542
+ created_at?: string
543
+ id?: string
544
+ instructions?: string | null
545
+ logs_url?: string | null
546
+ project_id?: string
547
+ result_summary?: string | null
548
+ sandbox_id?: string | null
549
+ skill_id?: string | null
550
+ status?: string | null
551
+ updated_at?: string
552
+ user_id?: string | null
553
+ }
554
+ Relationships: [
555
+ {
556
+ foreignKeyName: "audit_tasks_project_id_fkey"
557
+ columns: ["project_id"]
558
+ isOneToOne: false
559
+ referencedRelation: "audit_projects"
560
+ referencedColumns: ["id"]
561
+ },
562
+ {
563
+ foreignKeyName: "audit_tasks_sandbox_id_fkey"
564
+ columns: ["sandbox_id"]
565
+ isOneToOne: false
566
+ referencedRelation: "resources"
567
+ referencedColumns: ["id"]
568
+ },
569
+ {
570
+ foreignKeyName: "audit_tasks_skill_id_fkey"
571
+ columns: ["skill_id"]
572
+ isOneToOne: false
573
+ referencedRelation: "audit_skills"
574
+ referencedColumns: ["id"]
575
+ },
576
+ ]
577
+ }
578
+ browsers: {
579
+ Row: {
580
+ cdpUrl: string | null
581
+ config: Json | null
582
+ created_at: string
583
+ description: string | null
584
+ id: string
585
+ profile_id: string | null
586
+ provider: string | null
587
+ provider_config: Json | null
588
+ sandbox_id: string | null
589
+ title: string | null
590
+ updated_at: string | null
591
+ user_id: string | null
592
+ }
593
+ Insert: {
594
+ cdpUrl?: string | null
595
+ config?: Json | null
596
+ created_at?: string
597
+ description?: string | null
598
+ id?: string
599
+ profile_id?: string | null
600
+ provider?: string | null
601
+ provider_config?: Json | null
602
+ sandbox_id?: string | null
603
+ title?: string | null
604
+ updated_at?: string | null
605
+ user_id?: string | null
606
+ }
607
+ Update: {
608
+ cdpUrl?: string | null
609
+ config?: Json | null
610
+ created_at?: string
611
+ description?: string | null
612
+ id?: string
613
+ profile_id?: string | null
614
+ provider?: string | null
615
+ provider_config?: Json | null
616
+ sandbox_id?: string | null
617
+ title?: string | null
618
+ updated_at?: string | null
619
+ user_id?: string | null
620
+ }
621
+ Relationships: []
622
+ }
623
+ campaigns: {
624
+ Row: {
625
+ completed_at: string | null
626
+ config: Json
627
+ created_at: string
628
+ description: string | null
629
+ id: string
630
+ message_template: string | null
631
+ name: string
632
+ platform: string
633
+ schedule: Json
634
+ started_at: string | null
635
+ stats: Json
636
+ status: string
637
+ target_filter: Json
638
+ updated_at: string
639
+ user_id: string
640
+ }
641
+ Insert: {
642
+ completed_at?: string | null
643
+ config?: Json
644
+ created_at?: string
645
+ description?: string | null
646
+ id?: string
647
+ message_template?: string | null
648
+ name: string
649
+ platform?: string
650
+ schedule?: Json
651
+ started_at?: string | null
652
+ stats?: Json
653
+ status?: string
654
+ target_filter?: Json
655
+ updated_at?: string
656
+ user_id: string
657
+ }
658
+ Update: {
659
+ completed_at?: string | null
660
+ config?: Json
661
+ created_at?: string
662
+ description?: string | null
663
+ id?: string
664
+ message_template?: string | null
665
+ name?: string
666
+ platform?: string
667
+ schedule?: Json
668
+ started_at?: string | null
669
+ stats?: Json
670
+ status?: string
671
+ target_filter?: Json
672
+ updated_at?: string
673
+ user_id?: string
674
+ }
675
+ Relationships: []
676
+ }
677
+ chat_messages: {
678
+ Row: {
679
+ attachments: Json | null
680
+ chat_id: string
681
+ created_at: string
682
+ grounding_metadata: Json | null
683
+ id: string
684
+ parts: Json
685
+ role: Database["public"]["Enums"]["chat_role"]
686
+ updated_at: string
687
+ user_id: string | null
688
+ }
689
+ Insert: {
690
+ attachments?: Json | null
691
+ chat_id: string
692
+ created_at?: string
693
+ grounding_metadata?: Json | null
694
+ id?: string
695
+ parts: Json
696
+ role?: Database["public"]["Enums"]["chat_role"]
697
+ updated_at?: string
698
+ user_id?: string | null
699
+ }
700
+ Update: {
701
+ attachments?: Json | null
702
+ chat_id?: string
703
+ created_at?: string
704
+ grounding_metadata?: Json | null
705
+ id?: string
706
+ parts?: Json
707
+ role?: Database["public"]["Enums"]["chat_role"]
708
+ updated_at?: string
709
+ user_id?: string | null
710
+ }
711
+ Relationships: [
712
+ {
713
+ foreignKeyName: "chat_messages_chat_id_fkey"
714
+ columns: ["chat_id"]
715
+ isOneToOne: false
716
+ referencedRelation: "chats"
717
+ referencedColumns: ["id"]
718
+ },
719
+ ]
720
+ }
721
+ chats: {
722
+ Row: {
723
+ agent_id: string
724
+ created_at: string
725
+ id: string
726
+ lastContext: Json | null
727
+ state: Json | null
728
+ title: string
729
+ type: string
730
+ updated_at: string | null
731
+ user_id: string | null
732
+ visibility: Database["public"]["Enums"]["chat_visibility"]
733
+ }
734
+ Insert: {
735
+ agent_id: string
736
+ created_at?: string
737
+ id?: string
738
+ lastContext?: Json | null
739
+ state?: Json | null
740
+ title: string
741
+ type?: string
742
+ updated_at?: string | null
743
+ user_id?: string | null
744
+ visibility?: Database["public"]["Enums"]["chat_visibility"]
745
+ }
746
+ Update: {
747
+ agent_id?: string
748
+ created_at?: string
749
+ id?: string
750
+ lastContext?: Json | null
751
+ state?: Json | null
752
+ title?: string
753
+ type?: string
754
+ updated_at?: string | null
755
+ user_id?: string | null
756
+ visibility?: Database["public"]["Enums"]["chat_visibility"]
757
+ }
758
+ Relationships: []
759
+ }
760
+ cloud_accounts: {
761
+ Row: {
762
+ access_token: string | null
763
+ account_email: string | null
764
+ account_name: string | null
765
+ automation_config: Json | null
766
+ created_at: string
767
+ credentials: Json | null
768
+ device_fingerprint: Json | null
769
+ device_history: Json[] | null
770
+ id: string
771
+ last_refresh_at: string | null
772
+ last_used_at: string | null
773
+ metadata: Json | null
774
+ platform_name: string | null
775
+ proxy_disabled: boolean | null
776
+ proxy_disabled_at: string | null
777
+ proxy_disabled_reason: string | null
778
+ quota_data: Json | null
779
+ refresh_error: string | null
780
+ refresh_token: string | null
781
+ refresh_token_expires_at: string | null
782
+ session_data: Json | null
783
+ status: Database["public"]["Enums"]["cloud_account_status"] | null
784
+ status_reason: string | null
785
+ status_updated_at: string | null
786
+ token_expires_at: string | null
787
+ token_type: string | null
788
+ updated_at: string | null
789
+ use_count: number | null
790
+ user_id: string
791
+ }
792
+ Insert: {
793
+ access_token?: string | null
794
+ account_email?: string | null
795
+ account_name?: string | null
796
+ automation_config?: Json | null
797
+ created_at?: string
798
+ credentials?: Json | null
799
+ device_fingerprint?: Json | null
800
+ device_history?: Json[] | null
801
+ id?: string
802
+ last_refresh_at?: string | null
803
+ last_used_at?: string | null
804
+ metadata?: Json | null
805
+ platform_name?: string | null
806
+ proxy_disabled?: boolean | null
807
+ proxy_disabled_at?: string | null
808
+ proxy_disabled_reason?: string | null
809
+ quota_data?: Json | null
810
+ refresh_error?: string | null
811
+ refresh_token?: string | null
812
+ refresh_token_expires_at?: string | null
813
+ session_data?: Json | null
814
+ status?: Database["public"]["Enums"]["cloud_account_status"] | null
815
+ status_reason?: string | null
816
+ status_updated_at?: string | null
817
+ token_expires_at?: string | null
818
+ token_type?: string | null
819
+ updated_at?: string | null
820
+ use_count?: number | null
821
+ user_id: string
822
+ }
823
+ Update: {
824
+ access_token?: string | null
825
+ account_email?: string | null
826
+ account_name?: string | null
827
+ automation_config?: Json | null
828
+ created_at?: string
829
+ credentials?: Json | null
830
+ device_fingerprint?: Json | null
831
+ device_history?: Json[] | null
832
+ id?: string
833
+ last_refresh_at?: string | null
834
+ last_used_at?: string | null
835
+ metadata?: Json | null
836
+ platform_name?: string | null
837
+ proxy_disabled?: boolean | null
838
+ proxy_disabled_at?: string | null
839
+ proxy_disabled_reason?: string | null
840
+ quota_data?: Json | null
841
+ refresh_error?: string | null
842
+ refresh_token?: string | null
843
+ refresh_token_expires_at?: string | null
844
+ session_data?: Json | null
845
+ status?: Database["public"]["Enums"]["cloud_account_status"] | null
846
+ status_reason?: string | null
847
+ status_updated_at?: string | null
848
+ token_expires_at?: string | null
849
+ token_type?: string | null
850
+ updated_at?: string | null
851
+ use_count?: number | null
852
+ user_id?: string
853
+ }
854
+ Relationships: []
855
+ }
856
+ compute_nodes: {
857
+ Row: {
858
+ auth_secret: string | null
859
+ created_at: string
860
+ host: string
861
+ id: string
862
+ is_public: boolean | null
863
+ name: string
864
+ port: number
865
+ provider: string
866
+ status: Database["public"]["Enums"]["compute_node_status"] | null
867
+ updated_at: string
868
+ user_id: string
869
+ username: string | null
870
+ }
871
+ Insert: {
872
+ auth_secret?: string | null
873
+ created_at?: string
874
+ host: string
875
+ id?: string
876
+ is_public?: boolean | null
877
+ name: string
878
+ port?: number
879
+ provider?: string
880
+ status?: Database["public"]["Enums"]["compute_node_status"] | null
881
+ updated_at?: string
882
+ user_id?: string
883
+ username?: string | null
884
+ }
885
+ Update: {
886
+ auth_secret?: string | null
887
+ created_at?: string
888
+ host?: string
889
+ id?: string
890
+ is_public?: boolean | null
891
+ name?: string
892
+ port?: number
893
+ provider?: string
894
+ status?: Database["public"]["Enums"]["compute_node_status"] | null
895
+ updated_at?: string
896
+ user_id?: string
897
+ username?: string | null
898
+ }
899
+ Relationships: []
900
+ }
901
+ contacts: {
902
+ Row: {
903
+ created_at: string
904
+ email: string | null
905
+ id: string
906
+ metadata: Json
907
+ name: string | null
908
+ phone: string | null
909
+ platform: string
910
+ source: string
911
+ status: string
912
+ tags: string[]
913
+ telegram_id: number | null
914
+ telegram_username: string | null
915
+ updated_at: string
916
+ user_id: string
917
+ }
918
+ Insert: {
919
+ created_at?: string
920
+ email?: string | null
921
+ id?: string
922
+ metadata?: Json
923
+ name?: string | null
924
+ phone?: string | null
925
+ platform?: string
926
+ source?: string
927
+ status?: string
928
+ tags?: string[]
929
+ telegram_id?: number | null
930
+ telegram_username?: string | null
931
+ updated_at?: string
932
+ user_id: string
933
+ }
934
+ Update: {
935
+ created_at?: string
936
+ email?: string | null
937
+ id?: string
938
+ metadata?: Json
939
+ name?: string | null
940
+ phone?: string | null
941
+ platform?: string
942
+ source?: string
943
+ status?: string
944
+ tags?: string[]
945
+ telegram_id?: number | null
946
+ telegram_username?: string | null
947
+ updated_at?: string
948
+ user_id?: string
949
+ }
950
+ Relationships: []
951
+ }
952
+ gomtm_models: {
953
+ Row: {
954
+ api_base: string | null
955
+ api_key: string | null
956
+ config: Json | null
957
+ created_at: string
958
+ id: string
959
+ is_active: boolean
960
+ linked_account_id: string | null
961
+ model: string
962
+ name: string
963
+ provider: string
964
+ updated_at: string
965
+ user_id: string
966
+ }
967
+ Insert: {
968
+ api_base?: string | null
969
+ api_key?: string | null
970
+ config?: Json | null
971
+ created_at?: string
972
+ id?: string
973
+ is_active?: boolean
974
+ linked_account_id?: string | null
975
+ model: string
976
+ name: string
977
+ provider: string
978
+ updated_at?: string
979
+ user_id: string
980
+ }
981
+ Update: {
982
+ api_base?: string | null
983
+ api_key?: string | null
984
+ config?: Json | null
985
+ created_at?: string
986
+ id?: string
987
+ is_active?: boolean
988
+ linked_account_id?: string | null
989
+ model?: string
990
+ name?: string
991
+ provider?: string
992
+ updated_at?: string
993
+ user_id?: string
994
+ }
995
+ Relationships: [
996
+ {
997
+ foreignKeyName: "gomtm_models_linked_account_id_fkey"
998
+ columns: ["linked_account_id"]
999
+ isOneToOne: false
1000
+ referencedRelation: "cloud_accounts"
1001
+ referencedColumns: ["id"]
1002
+ },
1003
+ ]
1004
+ }
1005
+ instance_tags: {
1006
+ Row: {
1007
+ created_at: string
1008
+ instance_id: string
1009
+ tag_id: string
1010
+ }
1011
+ Insert: {
1012
+ created_at?: string
1013
+ instance_id: string
1014
+ tag_id: string
1015
+ }
1016
+ Update: {
1017
+ created_at?: string
1018
+ instance_id?: string
1019
+ tag_id?: string
1020
+ }
1021
+ Relationships: [
1022
+ {
1023
+ foreignKeyName: "instance_tags_instance_id_fkey"
1024
+ columns: ["instance_id"]
1025
+ isOneToOne: false
1026
+ referencedRelation: "servers"
1027
+ referencedColumns: ["id"]
1028
+ },
1029
+ {
1030
+ foreignKeyName: "instance_tags_tag_id_fkey"
1031
+ columns: ["tag_id"]
1032
+ isOneToOne: false
1033
+ referencedRelation: "tags"
1034
+ referencedColumns: ["id"]
1035
+ },
1036
+ ]
1037
+ }
1038
+ mitm_rules: {
1039
+ Row: {
1040
+ action_config: Json | null
1041
+ action_type: string | null
1042
+ created_at: string | null
1043
+ id: string
1044
+ is_active: boolean | null
1045
+ match_pattern: string | null
1046
+ name: string | null
1047
+ resource_id: string | null
1048
+ user_id: string | null
1049
+ }
1050
+ Insert: {
1051
+ action_config?: Json | null
1052
+ action_type?: string | null
1053
+ created_at?: string | null
1054
+ id?: string
1055
+ is_active?: boolean | null
1056
+ match_pattern?: string | null
1057
+ name?: string | null
1058
+ resource_id?: string | null
1059
+ user_id?: string | null
1060
+ }
1061
+ Update: {
1062
+ action_config?: Json | null
1063
+ action_type?: string | null
1064
+ created_at?: string | null
1065
+ id?: string
1066
+ is_active?: boolean | null
1067
+ match_pattern?: string | null
1068
+ name?: string | null
1069
+ resource_id?: string | null
1070
+ user_id?: string | null
1071
+ }
1072
+ Relationships: [
1073
+ {
1074
+ foreignKeyName: "mitm_rules_resource_id_fkey"
1075
+ columns: ["resource_id"]
1076
+ isOneToOne: false
1077
+ referencedRelation: "resources"
1078
+ referencedColumns: ["id"]
1079
+ },
1080
+ ]
1081
+ }
1082
+ outreach_messages: {
1083
+ Row: {
1084
+ content: string | null
1085
+ created_at: string
1086
+ delivered_at: string | null
1087
+ direction: string
1088
+ id: string
1089
+ metadata: Json | null
1090
+ read_at: string | null
1091
+ sent_at: string | null
1092
+ status: string | null
1093
+ task_id: string
1094
+ telegram_message_id: number | null
1095
+ user_id: string
1096
+ }
1097
+ Insert: {
1098
+ content?: string | null
1099
+ created_at?: string
1100
+ delivered_at?: string | null
1101
+ direction: string
1102
+ id?: string
1103
+ metadata?: Json | null
1104
+ read_at?: string | null
1105
+ sent_at?: string | null
1106
+ status?: string | null
1107
+ task_id: string
1108
+ telegram_message_id?: number | null
1109
+ user_id: string
1110
+ }
1111
+ Update: {
1112
+ content?: string | null
1113
+ created_at?: string
1114
+ delivered_at?: string | null
1115
+ direction?: string
1116
+ id?: string
1117
+ metadata?: Json | null
1118
+ read_at?: string | null
1119
+ sent_at?: string | null
1120
+ status?: string | null
1121
+ task_id?: string
1122
+ telegram_message_id?: number | null
1123
+ user_id?: string
1124
+ }
1125
+ Relationships: [
1126
+ {
1127
+ foreignKeyName: "outreach_messages_task_id_fkey"
1128
+ columns: ["task_id"]
1129
+ isOneToOne: false
1130
+ referencedRelation: "outreach_tasks"
1131
+ referencedColumns: ["id"]
1132
+ },
1133
+ ]
1134
+ }
1135
+ outreach_tasks: {
1136
+ Row: {
1137
+ campaign_id: string
1138
+ cloud_account_id: string | null
1139
+ contact_id: string
1140
+ created_at: string
1141
+ error_message: string | null
1142
+ executed_at: string | null
1143
+ id: string
1144
+ metadata: Json | null
1145
+ priority: number | null
1146
+ retry_count: number | null
1147
+ scheduled_at: string | null
1148
+ status: string
1149
+ updated_at: string
1150
+ user_id: string
1151
+ }
1152
+ Insert: {
1153
+ campaign_id: string
1154
+ cloud_account_id?: string | null
1155
+ contact_id: string
1156
+ created_at?: string
1157
+ error_message?: string | null
1158
+ executed_at?: string | null
1159
+ id?: string
1160
+ metadata?: Json | null
1161
+ priority?: number | null
1162
+ retry_count?: number | null
1163
+ scheduled_at?: string | null
1164
+ status?: string
1165
+ updated_at?: string
1166
+ user_id: string
1167
+ }
1168
+ Update: {
1169
+ campaign_id?: string
1170
+ cloud_account_id?: string | null
1171
+ contact_id?: string
1172
+ created_at?: string
1173
+ error_message?: string | null
1174
+ executed_at?: string | null
1175
+ id?: string
1176
+ metadata?: Json | null
1177
+ priority?: number | null
1178
+ retry_count?: number | null
1179
+ scheduled_at?: string | null
1180
+ status?: string
1181
+ updated_at?: string
1182
+ user_id?: string
1183
+ }
1184
+ Relationships: [
1185
+ {
1186
+ foreignKeyName: "outreach_tasks_campaign_id_fkey"
1187
+ columns: ["campaign_id"]
1188
+ isOneToOne: false
1189
+ referencedRelation: "campaigns"
1190
+ referencedColumns: ["id"]
1191
+ },
1192
+ {
1193
+ foreignKeyName: "outreach_tasks_cloud_account_id_fkey"
1194
+ columns: ["cloud_account_id"]
1195
+ isOneToOne: false
1196
+ referencedRelation: "cloud_accounts"
1197
+ referencedColumns: ["id"]
1198
+ },
1199
+ {
1200
+ foreignKeyName: "outreach_tasks_contact_id_fkey"
1201
+ columns: ["contact_id"]
1202
+ isOneToOne: false
1203
+ referencedRelation: "contacts"
1204
+ referencedColumns: ["id"]
1205
+ },
1206
+ ]
1207
+ }
1208
+ profiles: {
1209
+ Row: {
1210
+ avatar_url: string | null
1211
+ full_name: string | null
1212
+ id: string
1213
+ updated_at: string | null
1214
+ username: string | null
1215
+ website: string | null
1216
+ }
1217
+ Insert: {
1218
+ avatar_url?: string | null
1219
+ full_name?: string | null
1220
+ id: string
1221
+ updated_at?: string | null
1222
+ username?: string | null
1223
+ website?: string | null
1224
+ }
1225
+ Update: {
1226
+ avatar_url?: string | null
1227
+ full_name?: string | null
1228
+ id?: string
1229
+ updated_at?: string | null
1230
+ username?: string | null
1231
+ website?: string | null
1232
+ }
1233
+ Relationships: []
1234
+ }
1235
+ proxies: {
1236
+ Row: {
1237
+ created_at: string
1238
+ description: string | null
1239
+ enabled: boolean
1240
+ id: string
1241
+ name: string | null
1242
+ type: string | null
1243
+ updated_at: string | null
1244
+ url: string
1245
+ user_id: string | null
1246
+ }
1247
+ Insert: {
1248
+ created_at?: string
1249
+ description?: string | null
1250
+ enabled?: boolean
1251
+ id?: string
1252
+ name?: string | null
1253
+ type?: string | null
1254
+ updated_at?: string | null
1255
+ url: string
1256
+ user_id?: string | null
1257
+ }
1258
+ Update: {
1259
+ created_at?: string
1260
+ description?: string | null
1261
+ enabled?: boolean
1262
+ id?: string
1263
+ name?: string | null
1264
+ type?: string | null
1265
+ updated_at?: string | null
1266
+ url?: string
1267
+ user_id?: string | null
1268
+ }
1269
+ Relationships: []
1270
+ }
1271
+ resources: {
1272
+ Row: {
1273
+ created_at: string
1274
+ data: Json | null
1275
+ description: string | null
1276
+ hash1: string | null
1277
+ icon: string | null
1278
+ id: string
1279
+ is_public: boolean | null
1280
+ meta: Json | null
1281
+ target_id: string | null
1282
+ title: string | null
1283
+ type: string | null
1284
+ updated_at: string | null
1285
+ user_id: string | null
1286
+ }
1287
+ Insert: {
1288
+ created_at?: string
1289
+ data?: Json | null
1290
+ description?: string | null
1291
+ hash1?: string | null
1292
+ icon?: string | null
1293
+ id?: string
1294
+ is_public?: boolean | null
1295
+ meta?: Json | null
1296
+ target_id?: string | null
1297
+ title?: string | null
1298
+ type?: string | null
1299
+ updated_at?: string | null
1300
+ user_id?: string | null
1301
+ }
1302
+ Update: {
1303
+ created_at?: string
1304
+ data?: Json | null
1305
+ description?: string | null
1306
+ hash1?: string | null
1307
+ icon?: string | null
1308
+ id?: string
1309
+ is_public?: boolean | null
1310
+ meta?: Json | null
1311
+ target_id?: string | null
1312
+ title?: string | null
1313
+ type?: string | null
1314
+ updated_at?: string | null
1315
+ user_id?: string | null
1316
+ }
1317
+ Relationships: []
1318
+ }
1319
+ servers: {
1320
+ Row: {
1321
+ cloudflared_token: string | null
1322
+ created_at: string
1323
+ host_id: string | null
1324
+ id: string
1325
+ is_shared: boolean | null
1326
+ latest_pull_at: string | null
1327
+ name: string | null
1328
+ runtime: string | null
1329
+ state: Json | null
1330
+ status: Database["public"]["Enums"]["worker_status"] | null
1331
+ updated_at: string
1332
+ user_id: string | null
1333
+ }
1334
+ Insert: {
1335
+ cloudflared_token?: string | null
1336
+ created_at?: string
1337
+ host_id?: string | null
1338
+ id: string
1339
+ is_shared?: boolean | null
1340
+ latest_pull_at?: string | null
1341
+ name?: string | null
1342
+ runtime?: string | null
1343
+ state?: Json | null
1344
+ status?: Database["public"]["Enums"]["worker_status"] | null
1345
+ updated_at?: string
1346
+ user_id?: string | null
1347
+ }
1348
+ Update: {
1349
+ cloudflared_token?: string | null
1350
+ created_at?: string
1351
+ host_id?: string | null
1352
+ id?: string
1353
+ is_shared?: boolean | null
1354
+ latest_pull_at?: string | null
1355
+ name?: string | null
1356
+ runtime?: string | null
1357
+ state?: Json | null
1358
+ status?: Database["public"]["Enums"]["worker_status"] | null
1359
+ updated_at?: string
1360
+ user_id?: string | null
1361
+ }
1362
+ Relationships: [
1363
+ {
1364
+ foreignKeyName: "workers_host_id_fkey"
1365
+ columns: ["host_id"]
1366
+ isOneToOne: false
1367
+ referencedRelation: "compute_nodes"
1368
+ referencedColumns: ["id"]
1369
+ },
1370
+ ]
1371
+ }
1372
+ sys_config: {
1373
+ Row: {
1374
+ created_at: string | null
1375
+ description: string | null
1376
+ key: string
1377
+ updated_at: string | null
1378
+ value: Json
1379
+ }
1380
+ Insert: {
1381
+ created_at?: string | null
1382
+ description?: string | null
1383
+ key: string
1384
+ updated_at?: string | null
1385
+ value?: Json
1386
+ }
1387
+ Update: {
1388
+ created_at?: string | null
1389
+ description?: string | null
1390
+ key?: string
1391
+ updated_at?: string | null
1392
+ value?: Json
1393
+ }
1394
+ Relationships: []
1395
+ }
1396
+ sys_logs: {
1397
+ Row: {
1398
+ created_at: string
1399
+ id: number
1400
+ level: number | null
1401
+ module: string | null
1402
+ text: string | null
1403
+ user_id: string | null
1404
+ }
1405
+ Insert: {
1406
+ created_at?: string
1407
+ id?: number
1408
+ level?: number | null
1409
+ module?: string | null
1410
+ text?: string | null
1411
+ user_id?: string | null
1412
+ }
1413
+ Update: {
1414
+ created_at?: string
1415
+ id?: number
1416
+ level?: number | null
1417
+ module?: string | null
1418
+ text?: string | null
1419
+ user_id?: string | null
1420
+ }
1421
+ Relationships: []
1422
+ }
1423
+ system_config_public: {
1424
+ Row: {
1425
+ created_at: string | null
1426
+ description: string | null
1427
+ key: string
1428
+ updated_at: string | null
1429
+ value: Json
1430
+ }
1431
+ Insert: {
1432
+ created_at?: string | null
1433
+ description?: string | null
1434
+ key: string
1435
+ updated_at?: string | null
1436
+ value?: Json
1437
+ }
1438
+ Update: {
1439
+ created_at?: string | null
1440
+ description?: string | null
1441
+ key?: string
1442
+ updated_at?: string | null
1443
+ value?: Json
1444
+ }
1445
+ Relationships: []
1446
+ }
1447
+ tags: {
1448
+ Row: {
1449
+ color: string | null
1450
+ created_at: string
1451
+ id: string
1452
+ name: string
1453
+ updated_at: string
1454
+ user_id: string | null
1455
+ }
1456
+ Insert: {
1457
+ color?: string | null
1458
+ created_at?: string
1459
+ id?: string
1460
+ name: string
1461
+ updated_at?: string
1462
+ user_id?: string | null
1463
+ }
1464
+ Update: {
1465
+ color?: string | null
1466
+ created_at?: string
1467
+ id?: string
1468
+ name?: string
1469
+ updated_at?: string
1470
+ user_id?: string | null
1471
+ }
1472
+ Relationships: []
1473
+ }
1474
+ user_logs: {
1475
+ Row: {
1476
+ content: string | null
1477
+ created_at: string | null
1478
+ event_type: string
1479
+ id: string
1480
+ level: string
1481
+ meta: Json | null
1482
+ resource_id: string | null
1483
+ resource_type: string | null
1484
+ user_id: string
1485
+ }
1486
+ Insert: {
1487
+ content?: string | null
1488
+ created_at?: string | null
1489
+ event_type: string
1490
+ id?: string
1491
+ level: string
1492
+ meta?: Json | null
1493
+ resource_id?: string | null
1494
+ resource_type?: string | null
1495
+ user_id?: string
1496
+ }
1497
+ Update: {
1498
+ content?: string | null
1499
+ created_at?: string | null
1500
+ event_type?: string
1501
+ id?: string
1502
+ level?: string
1503
+ meta?: Json | null
1504
+ resource_id?: string | null
1505
+ resource_type?: string | null
1506
+ user_id?: string
1507
+ }
1508
+ Relationships: []
1509
+ }
1510
+ user_notifications: {
1511
+ Row: {
1512
+ action_completed_at: string | null
1513
+ action_payload: Json | null
1514
+ action_type: string | null
1515
+ created_at: string
1516
+ dismissed_at: string | null
1517
+ expires_at: string | null
1518
+ id: string
1519
+ is_read: boolean
1520
+ message: string | null
1521
+ notification_type: string
1522
+ priority: string
1523
+ read_at: string | null
1524
+ source_id: string | null
1525
+ source_type: string | null
1526
+ title: string
1527
+ updated_at: string
1528
+ user_id: string
1529
+ }
1530
+ Insert: {
1531
+ action_completed_at?: string | null
1532
+ action_payload?: Json | null
1533
+ action_type?: string | null
1534
+ created_at?: string
1535
+ dismissed_at?: string | null
1536
+ expires_at?: string | null
1537
+ id?: string
1538
+ is_read?: boolean
1539
+ message?: string | null
1540
+ notification_type?: string
1541
+ priority?: string
1542
+ read_at?: string | null
1543
+ source_id?: string | null
1544
+ source_type?: string | null
1545
+ title: string
1546
+ updated_at?: string
1547
+ user_id: string
1548
+ }
1549
+ Update: {
1550
+ action_completed_at?: string | null
1551
+ action_payload?: Json | null
1552
+ action_type?: string | null
1553
+ created_at?: string
1554
+ dismissed_at?: string | null
1555
+ expires_at?: string | null
1556
+ id?: string
1557
+ is_read?: boolean
1558
+ message?: string | null
1559
+ notification_type?: string
1560
+ priority?: string
1561
+ read_at?: string | null
1562
+ source_id?: string | null
1563
+ source_type?: string | null
1564
+ title?: string
1565
+ updated_at?: string
1566
+ user_id?: string
1567
+ }
1568
+ Relationships: []
1569
+ }
1570
+ user_roles: {
1571
+ Row: {
1572
+ created_at: string | null
1573
+ id: number
1574
+ role: Database["public"]["Enums"]["app_role"]
1575
+ user_id: string
1576
+ }
1577
+ Insert: {
1578
+ created_at?: string | null
1579
+ id?: number
1580
+ role: Database["public"]["Enums"]["app_role"]
1581
+ user_id: string
1582
+ }
1583
+ Update: {
1584
+ created_at?: string | null
1585
+ id?: number
1586
+ role?: Database["public"]["Enums"]["app_role"]
1587
+ user_id?: string
1588
+ }
1589
+ Relationships: []
1590
+ }
1591
+ worker_tasks: {
1592
+ Row: {
1593
+ created_at: string
1594
+ error: string | null
1595
+ id: string
1596
+ payload: Json
1597
+ result: Json | null
1598
+ session_id: string | null
1599
+ status: string | null
1600
+ type: string
1601
+ updated_at: string
1602
+ user_id: string | null
1603
+ worker_id: string | null
1604
+ }
1605
+ Insert: {
1606
+ created_at?: string
1607
+ error?: string | null
1608
+ id?: string
1609
+ payload: Json
1610
+ result?: Json | null
1611
+ session_id?: string | null
1612
+ status?: string | null
1613
+ type: string
1614
+ updated_at?: string
1615
+ user_id?: string | null
1616
+ worker_id?: string | null
1617
+ }
1618
+ Update: {
1619
+ created_at?: string
1620
+ error?: string | null
1621
+ id?: string
1622
+ payload?: Json
1623
+ result?: Json | null
1624
+ session_id?: string | null
1625
+ status?: string | null
1626
+ type?: string
1627
+ updated_at?: string
1628
+ user_id?: string | null
1629
+ worker_id?: string | null
1630
+ }
1631
+ Relationships: []
1632
+ }
1633
+ }
1634
+ Views: {
1635
+ [_ in never]: never
1636
+ }
1637
+ Functions: {
1638
+ _sys_config_get: { Args: { p_key: string }; Returns: Json }
1639
+ action_tool_query: { Args: { p_prefix?: string }; Returns: Json }
1640
+ action_tool_reply_to_user: {
1641
+ Args: {
1642
+ p_actions?: Json
1643
+ p_chat_id?: string
1644
+ p_text?: string
1645
+ p_user_id?: string
1646
+ }
1647
+ Returns: Json
1648
+ }
1649
+ adk_agent_list: {
1650
+ Args: never
1651
+ Returns: {
1652
+ avatar_url: string | null
1653
+ created_at: string | null
1654
+ description: string | null
1655
+ name: string
1656
+ updated_at: string | null
1657
+ }[]
1658
+ SetofOptions: {
1659
+ from: "*"
1660
+ to: "adk_agents"
1661
+ isOneToOne: false
1662
+ isSetofReturn: true
1663
+ }
1664
+ }
1665
+ adk_artifact_delete: {
1666
+ Args: {
1667
+ p_app_name: string
1668
+ p_filename: string
1669
+ p_session_id: string
1670
+ p_user_id: string
1671
+ }
1672
+ Returns: undefined
1673
+ }
1674
+ adk_artifact_get: {
1675
+ Args: {
1676
+ p_app_name: string
1677
+ p_filename: string
1678
+ p_session_id: string
1679
+ p_user_id: string
1680
+ p_version?: number
1681
+ }
1682
+ Returns: Json
1683
+ }
1684
+ adk_artifact_list_keys: {
1685
+ Args: { p_app_name: string; p_session_id: string; p_user_id: string }
1686
+ Returns: {
1687
+ filename: string
1688
+ }[]
1689
+ }
1690
+ adk_artifact_list_versions_meta: {
1691
+ Args: {
1692
+ p_app_name: string
1693
+ p_filename: string
1694
+ p_session_id: string
1695
+ p_user_id: string
1696
+ }
1697
+ Returns: Database["public"]["CompositeTypes"]["adk_artifact_meta_record"][]
1698
+ SetofOptions: {
1699
+ from: "*"
1700
+ to: "adk_artifact_meta_record"
1701
+ isOneToOne: false
1702
+ isSetofReturn: true
1703
+ }
1704
+ }
1705
+ adk_artifact_save: {
1706
+ Args: {
1707
+ p_app_name: string
1708
+ p_canonical_uri: string
1709
+ p_custom_metadata: Json
1710
+ p_data: Json
1711
+ p_filename: string
1712
+ p_mime_type: string
1713
+ p_session_id: string
1714
+ p_user_id: string
1715
+ }
1716
+ Returns: number
1717
+ }
1718
+ adk_event_list: {
1719
+ Args: { p_session_id: string }
1720
+ Returns: {
1721
+ actions: Json | null
1722
+ app_name: string | null
1723
+ author: string | null
1724
+ branch: string | null
1725
+ citation_metadata: Json | null
1726
+ content: Json | null
1727
+ created_at: string
1728
+ custom_metadata: Json | null
1729
+ error_code: string | null
1730
+ error_message: string | null
1731
+ grounding_metadata: Json | null
1732
+ id: string
1733
+ input_transcription: Json | null
1734
+ interrupted: boolean | null
1735
+ invocation_id: string | null
1736
+ long_running_tool_ids_json: Json | null
1737
+ output_transcription: Json | null
1738
+ partial: boolean | null
1739
+ session_id: string | null
1740
+ timestamp: string | null
1741
+ turn_complete: boolean | null
1742
+ updated_at: string
1743
+ usage_metadata: Json | null
1744
+ user_id: string | null
1745
+ }[]
1746
+ SetofOptions: {
1747
+ from: "*"
1748
+ to: "adk_events"
1749
+ isOneToOne: false
1750
+ isSetofReturn: true
1751
+ }
1752
+ }
1753
+ adk_event_upsert: {
1754
+ Args: {
1755
+ p_actions?: Json
1756
+ p_app_name: string
1757
+ p_author: string
1758
+ p_branch?: string
1759
+ p_citation_metadata?: Json
1760
+ p_content: Json
1761
+ p_custom_metadata?: Json
1762
+ p_error_code?: string
1763
+ p_error_message?: string
1764
+ p_grounding_metadata?: Json
1765
+ p_id: string
1766
+ p_input_transcription?: Json
1767
+ p_interrupted?: boolean
1768
+ p_invocation_id?: string
1769
+ p_long_running_tool_ids_json?: string
1770
+ p_output_transcription?: Json
1771
+ p_session_id: string
1772
+ p_timestamp: string
1773
+ p_turn_complete: boolean
1774
+ p_usage_metadata?: Json
1775
+ p_user_id?: string
1776
+ }
1777
+ Returns: Json
1778
+ }
1779
+ adk_event_upsert_from_json: {
1780
+ Args: { p_payload: Json }
1781
+ Returns: {
1782
+ actions: Json | null
1783
+ app_name: string | null
1784
+ author: string | null
1785
+ branch: string | null
1786
+ citation_metadata: Json | null
1787
+ content: Json | null
1788
+ created_at: string
1789
+ custom_metadata: Json | null
1790
+ error_code: string | null
1791
+ error_message: string | null
1792
+ grounding_metadata: Json | null
1793
+ id: string
1794
+ input_transcription: Json | null
1795
+ interrupted: boolean | null
1796
+ invocation_id: string | null
1797
+ long_running_tool_ids_json: Json | null
1798
+ output_transcription: Json | null
1799
+ partial: boolean | null
1800
+ session_id: string | null
1801
+ timestamp: string | null
1802
+ turn_complete: boolean | null
1803
+ updated_at: string
1804
+ usage_metadata: Json | null
1805
+ user_id: string | null
1806
+ }
1807
+ SetofOptions: {
1808
+ from: "*"
1809
+ to: "adk_events"
1810
+ isOneToOne: true
1811
+ isSetofReturn: false
1812
+ }
1813
+ }
1814
+ adk_quick_start_list: {
1815
+ Args: { p_agent_name?: string }
1816
+ Returns: {
1817
+ agent_name: string
1818
+ created_at: string | null
1819
+ description: string | null
1820
+ id: string
1821
+ is_active: boolean | null
1822
+ ord: number | null
1823
+ prompt: string
1824
+ title: string
1825
+ updated_at: string | null
1826
+ }[]
1827
+ SetofOptions: {
1828
+ from: "*"
1829
+ to: "adk_quick_starts"
1830
+ isOneToOne: false
1831
+ isSetofReturn: true
1832
+ }
1833
+ }
1834
+ adk_session_delete: {
1835
+ Args: { p_app_name: string; p_session_id: string }
1836
+ Returns: undefined
1837
+ }
1838
+ adk_session_get: {
1839
+ Args: { p_session_id: string }
1840
+ Returns: {
1841
+ app_name: string
1842
+ created_at: string
1843
+ id: string
1844
+ state: Json
1845
+ updated_at: string | null
1846
+ user_id: string
1847
+ }[]
1848
+ SetofOptions: {
1849
+ from: "*"
1850
+ to: "adk_sessions"
1851
+ isOneToOne: false
1852
+ isSetofReturn: true
1853
+ }
1854
+ }
1855
+ adk_session_list: {
1856
+ Args: { p_app_name: string; p_user_id?: string }
1857
+ Returns: {
1858
+ app_name: string
1859
+ created_at: string
1860
+ id: string
1861
+ state: Json
1862
+ updated_at: string | null
1863
+ user_id: string
1864
+ }[]
1865
+ SetofOptions: {
1866
+ from: "*"
1867
+ to: "adk_sessions"
1868
+ isOneToOne: false
1869
+ isSetofReturn: true
1870
+ }
1871
+ }
1872
+ adk_session_upsert: {
1873
+ Args: {
1874
+ p_app_name: string
1875
+ p_session_id: string
1876
+ p_state?: Json
1877
+ p_user_id: string
1878
+ }
1879
+ Returns: {
1880
+ app_name: string
1881
+ created_at: string
1882
+ id: string
1883
+ state: Json
1884
+ updated_at: string | null
1885
+ user_id: string
1886
+ }[]
1887
+ SetofOptions: {
1888
+ from: "*"
1889
+ to: "adk_sessions"
1890
+ isOneToOne: false
1891
+ isSetofReturn: true
1892
+ }
1893
+ }
1894
+ agent_signal_wakeup: { Args: { p_session_id: string }; Returns: Json }
1895
+ agent_tool_exec_read_sql: {
1896
+ Args: { p_max_chars?: number; p_max_rows?: number; sql_query: string }
1897
+ Returns: string
1898
+ }
1899
+ audit_artifact_list: {
1900
+ Args: { p_project_id: string }
1901
+ Returns: {
1902
+ app_name: string
1903
+ canonical_uri: string | null
1904
+ created_at: string | null
1905
+ custom_metadata: Json | null
1906
+ data: Json | null
1907
+ filename: string
1908
+ id: string
1909
+ mime_type: string | null
1910
+ session_id: string | null
1911
+ user_id: string
1912
+ version: number
1913
+ }[]
1914
+ SetofOptions: {
1915
+ from: "*"
1916
+ to: "adk_artifacts"
1917
+ isOneToOne: false
1918
+ isSetofReturn: true
1919
+ }
1920
+ }
1921
+ audit_asset_list: {
1922
+ Args: { p_project_id: string; p_type?: string }
1923
+ Returns: {
1924
+ content: string
1925
+ created_at: string
1926
+ id: string
1927
+ metadata: Json | null
1928
+ project_id: string
1929
+ status: string | null
1930
+ type: string
1931
+ updated_at: string
1932
+ }[]
1933
+ SetofOptions: {
1934
+ from: "*"
1935
+ to: "audit_assets"
1936
+ isOneToOne: false
1937
+ isSetofReturn: true
1938
+ }
1939
+ }
1940
+ audit_asset_list_cursor: {
1941
+ Args: {
1942
+ p_cursor?: string
1943
+ p_cursor_id?: string
1944
+ p_kw?: string
1945
+ p_limit?: number
1946
+ p_project_id: string
1947
+ }
1948
+ Returns: {
1949
+ content: string
1950
+ created_at: string
1951
+ id: string
1952
+ metadata: Json | null
1953
+ project_id: string
1954
+ status: string | null
1955
+ type: string
1956
+ updated_at: string
1957
+ }[]
1958
+ SetofOptions: {
1959
+ from: "*"
1960
+ to: "audit_assets"
1961
+ isOneToOne: false
1962
+ isSetofReturn: true
1963
+ }
1964
+ }
1965
+ audit_finding_list: {
1966
+ Args: { p_project_id: string }
1967
+ Returns: {
1968
+ ai_analysis: string | null
1969
+ created_at: string
1970
+ description: string | null
1971
+ id: string
1972
+ project_id: string
1973
+ proof_poc: string | null
1974
+ remediation: string | null
1975
+ severity: Database["public"]["Enums"]["audit_finding_severity"] | null
1976
+ status: string | null
1977
+ task_id: string | null
1978
+ title: string
1979
+ updated_at: string
1980
+ }[]
1981
+ SetofOptions: {
1982
+ from: "*"
1983
+ to: "audit_findings"
1984
+ isOneToOne: false
1985
+ isSetofReturn: true
1986
+ }
1987
+ }
1988
+ audit_finding_list_cursor: {
1989
+ Args: {
1990
+ p_cursor?: string
1991
+ p_cursor_id?: string
1992
+ p_kw?: string
1993
+ p_limit?: number
1994
+ p_project_id: string
1995
+ }
1996
+ Returns: {
1997
+ ai_analysis: string | null
1998
+ created_at: string
1999
+ description: string | null
2000
+ id: string
2001
+ project_id: string
2002
+ proof_poc: string | null
2003
+ remediation: string | null
2004
+ severity: Database["public"]["Enums"]["audit_finding_severity"] | null
2005
+ status: string | null
2006
+ task_id: string | null
2007
+ title: string
2008
+ updated_at: string
2009
+ }[]
2010
+ SetofOptions: {
2011
+ from: "*"
2012
+ to: "audit_findings"
2013
+ isOneToOne: false
2014
+ isSetofReturn: true
2015
+ }
2016
+ }
2017
+ audit_project_bind_github: {
2018
+ Args: {
2019
+ p_installation_id: number
2020
+ p_project_id: string
2021
+ p_repo_branch: string
2022
+ p_repo_full_name: string
2023
+ p_repo_id: number
2024
+ p_repo_url: string
2025
+ }
2026
+ Returns: Json
2027
+ }
2028
+ audit_project_count: { Args: { p_kw?: string }; Returns: number }
2029
+ audit_project_dashboard_stats: {
2030
+ Args: { p_project_id: string }
2031
+ Returns: {
2032
+ asset_count: number
2033
+ finding_count: number
2034
+ high_risk_count: number
2035
+ task_count: number
2036
+ }[]
2037
+ }
2038
+ audit_project_delete: { Args: { p_id: string }; Returns: undefined }
2039
+ audit_project_get: {
2040
+ Args: { p_id: string }
2041
+ Returns: {
2042
+ config: Json | null
2043
+ created_at: string
2044
+ id: string
2045
+ name: string
2046
+ repo_branch: string | null
2047
+ repo_url: string | null
2048
+ target: string | null
2049
+ updated_at: string
2050
+ user_id: string
2051
+ worker_id: string | null
2052
+ }[]
2053
+ SetofOptions: {
2054
+ from: "*"
2055
+ to: "audit_projects"
2056
+ isOneToOne: false
2057
+ isSetofReturn: true
2058
+ }
2059
+ }
2060
+ audit_project_list: {
2061
+ Args: { p_kw?: string; p_page_no?: number; p_page_size?: number }
2062
+ Returns: {
2063
+ config: Json | null
2064
+ created_at: string
2065
+ id: string
2066
+ name: string
2067
+ repo_branch: string | null
2068
+ repo_url: string | null
2069
+ target: string | null
2070
+ updated_at: string
2071
+ user_id: string
2072
+ worker_id: string | null
2073
+ }[]
2074
+ SetofOptions: {
2075
+ from: "*"
2076
+ to: "audit_projects"
2077
+ isOneToOne: false
2078
+ isSetofReturn: true
2079
+ }
2080
+ }
2081
+ audit_project_list_cursor: {
2082
+ Args: {
2083
+ p_cursor?: string
2084
+ p_cursor_id?: string
2085
+ p_kw?: string
2086
+ p_limit?: number
2087
+ }
2088
+ Returns: {
2089
+ config: Json | null
2090
+ created_at: string
2091
+ id: string
2092
+ name: string
2093
+ repo_branch: string | null
2094
+ repo_url: string | null
2095
+ target: string | null
2096
+ updated_at: string
2097
+ user_id: string
2098
+ worker_id: string | null
2099
+ }[]
2100
+ SetofOptions: {
2101
+ from: "*"
2102
+ to: "audit_projects"
2103
+ isOneToOne: false
2104
+ isSetofReturn: true
2105
+ }
2106
+ }
2107
+ audit_project_upsert:
2108
+ | {
2109
+ Args: {
2110
+ p_config?: Json
2111
+ p_id?: string
2112
+ p_name?: string
2113
+ p_repo_branch?: string
2114
+ p_repo_url?: string
2115
+ p_target?: string
2116
+ p_worker_id?: string
2117
+ }
2118
+ Returns: string
2119
+ }
2120
+ | {
2121
+ Args: {
2122
+ p_config?: Json
2123
+ p_id?: string
2124
+ p_name: string
2125
+ p_repo_branch?: string
2126
+ p_repo_url?: string
2127
+ p_target?: string
2128
+ p_worker_id?: string
2129
+ }
2130
+ Returns: string
2131
+ }
2132
+ audit_skill_list: {
2133
+ Args: { p_project_id: string }
2134
+ Returns: {
2135
+ created_at: string
2136
+ dependencies: Json | null
2137
+ description: string | null
2138
+ id: string
2139
+ name: string
2140
+ params_schema: Json | null
2141
+ project_id: string
2142
+ source_path: string | null
2143
+ updated_at: string
2144
+ version: string | null
2145
+ }[]
2146
+ SetofOptions: {
2147
+ from: "*"
2148
+ to: "audit_skills"
2149
+ isOneToOne: false
2150
+ isSetofReturn: true
2151
+ }
2152
+ }
2153
+ audit_task_get: {
2154
+ Args: { p_id: string }
2155
+ Returns: {
2156
+ created_at: string
2157
+ id: string
2158
+ instructions: string | null
2159
+ logs_url: string | null
2160
+ project_id: string
2161
+ result_summary: string | null
2162
+ sandbox_id: string | null
2163
+ skill_id: string | null
2164
+ status: string | null
2165
+ updated_at: string
2166
+ user_id: string | null
2167
+ }[]
2168
+ SetofOptions: {
2169
+ from: "*"
2170
+ to: "audit_tasks"
2171
+ isOneToOne: false
2172
+ isSetofReturn: true
2173
+ }
2174
+ }
2175
+ audit_task_list: {
2176
+ Args: { p_project_id: string }
2177
+ Returns: {
2178
+ created_at: string
2179
+ id: string
2180
+ instructions: string | null
2181
+ logs_url: string | null
2182
+ project_id: string
2183
+ result_summary: string | null
2184
+ sandbox_id: string | null
2185
+ skill_id: string | null
2186
+ status: string | null
2187
+ updated_at: string
2188
+ user_id: string | null
2189
+ }[]
2190
+ SetofOptions: {
2191
+ from: "*"
2192
+ to: "audit_tasks"
2193
+ isOneToOne: false
2194
+ isSetofReturn: true
2195
+ }
2196
+ }
2197
+ audit_task_upsert: {
2198
+ Args: {
2199
+ p_id: string
2200
+ p_instructions: string
2201
+ p_logs_url?: string
2202
+ p_project_id: string
2203
+ p_result_summary?: string
2204
+ p_sandbox_id?: string
2205
+ p_skill_id?: string
2206
+ p_status?: string
2207
+ }
2208
+ Returns: {
2209
+ created_at: string
2210
+ id: string
2211
+ instructions: string | null
2212
+ logs_url: string | null
2213
+ project_id: string
2214
+ result_summary: string | null
2215
+ sandbox_id: string | null
2216
+ skill_id: string | null
2217
+ status: string | null
2218
+ updated_at: string
2219
+ user_id: string | null
2220
+ }[]
2221
+ SetofOptions: {
2222
+ from: "*"
2223
+ to: "audit_tasks"
2224
+ isOneToOne: false
2225
+ isSetofReturn: true
2226
+ }
2227
+ }
2228
+ auth_role: { Args: never; Returns: string }
2229
+ browser_delete: { Args: { p_id: string }; Returns: undefined }
2230
+ browser_ensure_association: {
2231
+ Args: { p_browser_id: string; p_user_id: string }
2232
+ Returns: Json
2233
+ }
2234
+ browser_get: {
2235
+ Args: { p_id: string }
2236
+ Returns: {
2237
+ cdpUrl: string | null
2238
+ config: Json | null
2239
+ created_at: string
2240
+ description: string | null
2241
+ id: string
2242
+ profile_id: string | null
2243
+ provider: string | null
2244
+ provider_config: Json | null
2245
+ sandbox_id: string | null
2246
+ title: string | null
2247
+ updated_at: string | null
2248
+ user_id: string | null
2249
+ }[]
2250
+ SetofOptions: {
2251
+ from: "*"
2252
+ to: "browsers"
2253
+ isOneToOne: false
2254
+ isSetofReturn: true
2255
+ }
2256
+ }
2257
+ browser_list: {
2258
+ Args: { p_kw?: string; p_page_no?: number; p_page_size?: number }
2259
+ Returns: Database["public"]["CompositeTypes"]["browser_record"][]
2260
+ SetofOptions: {
2261
+ from: "*"
2262
+ to: "browser_record"
2263
+ isOneToOne: false
2264
+ isSetofReturn: true
2265
+ }
2266
+ }
2267
+ browser_update_state: {
2268
+ Args: { p_browser_id: string; p_state: Json }
2269
+ Returns: undefined
2270
+ }
2271
+ browser_upsert: {
2272
+ Args: {
2273
+ p_config?: Json
2274
+ p_description?: string
2275
+ p_id?: string
2276
+ p_profile_id?: string
2277
+ p_provider?: string
2278
+ p_provider_config?: Json
2279
+ p_title?: string
2280
+ }
2281
+ Returns: {
2282
+ cdpUrl: string | null
2283
+ config: Json | null
2284
+ created_at: string
2285
+ description: string | null
2286
+ id: string
2287
+ profile_id: string | null
2288
+ provider: string | null
2289
+ provider_config: Json | null
2290
+ sandbox_id: string | null
2291
+ title: string | null
2292
+ updated_at: string | null
2293
+ user_id: string | null
2294
+ }[]
2295
+ SetofOptions: {
2296
+ from: "*"
2297
+ to: "browsers"
2298
+ isOneToOne: false
2299
+ isSetofReturn: true
2300
+ }
2301
+ }
2302
+ campaign_delete: { Args: { p_id: string }; Returns: boolean }
2303
+ campaign_get: {
2304
+ Args: { p_id: string }
2305
+ Returns: Database["public"]["CompositeTypes"]["campaign_record"][]
2306
+ SetofOptions: {
2307
+ from: "*"
2308
+ to: "campaign_record"
2309
+ isOneToOne: false
2310
+ isSetofReturn: true
2311
+ }
2312
+ }
2313
+ campaign_list_cursor: {
2314
+ Args: {
2315
+ p_cursor?: string
2316
+ p_limit?: number
2317
+ p_search?: string
2318
+ p_status?: string
2319
+ }
2320
+ Returns: Database["public"]["CompositeTypes"]["campaign_record"][]
2321
+ SetofOptions: {
2322
+ from: "*"
2323
+ to: "campaign_record"
2324
+ isOneToOne: false
2325
+ isSetofReturn: true
2326
+ }
2327
+ }
2328
+ campaign_pause: { Args: { p_id: string }; Returns: boolean }
2329
+ campaign_start: { Args: { p_id: string }; Returns: boolean }
2330
+ campaign_upsert: {
2331
+ Args: {
2332
+ p_config?: Json
2333
+ p_description?: string
2334
+ p_id?: string
2335
+ p_message_template?: string
2336
+ p_name?: string
2337
+ p_platform?: string
2338
+ p_schedule?: Json
2339
+ p_target_filter?: Json
2340
+ }
2341
+ Returns: Database["public"]["CompositeTypes"]["campaign_record"][]
2342
+ SetofOptions: {
2343
+ from: "*"
2344
+ to: "campaign_record"
2345
+ isOneToOne: false
2346
+ isSetofReturn: true
2347
+ }
2348
+ }
2349
+ chat_get: {
2350
+ Args: { p_chat_id: string }
2351
+ Returns: {
2352
+ agent_id: string
2353
+ created_at: string
2354
+ id: string
2355
+ lastContext: Json | null
2356
+ state: Json | null
2357
+ title: string
2358
+ type: string
2359
+ updated_at: string | null
2360
+ user_id: string | null
2361
+ visibility: Database["public"]["Enums"]["chat_visibility"]
2362
+ }[]
2363
+ SetofOptions: {
2364
+ from: "*"
2365
+ to: "chats"
2366
+ isOneToOne: false
2367
+ isSetofReturn: true
2368
+ }
2369
+ }
2370
+ chat_list: {
2371
+ Args: { p_agent_id?: string }
2372
+ Returns: {
2373
+ agent_id: string
2374
+ created_at: string
2375
+ id: string
2376
+ lastContext: Json | null
2377
+ state: Json | null
2378
+ title: string
2379
+ type: string
2380
+ updated_at: string | null
2381
+ user_id: string | null
2382
+ visibility: Database["public"]["Enums"]["chat_visibility"]
2383
+ }[]
2384
+ SetofOptions: {
2385
+ from: "*"
2386
+ to: "chats"
2387
+ isOneToOne: false
2388
+ isSetofReturn: true
2389
+ }
2390
+ }
2391
+ chat_message_batch_upsert: {
2392
+ Args: {
2393
+ p_chat_id?: string
2394
+ p_data?: Json
2395
+ p_query_mode?: string
2396
+ p_user_id?: string
2397
+ }
2398
+ Returns: number
2399
+ }
2400
+ chat_message_list: {
2401
+ Args: { p_chat_id?: string; p_query_mode?: string }
2402
+ Returns: {
2403
+ attachments: Json | null
2404
+ chat_id: string
2405
+ created_at: string
2406
+ grounding_metadata: Json | null
2407
+ id: string
2408
+ parts: Json
2409
+ role: Database["public"]["Enums"]["chat_role"]
2410
+ updated_at: string
2411
+ user_id: string | null
2412
+ }[]
2413
+ SetofOptions: {
2414
+ from: "*"
2415
+ to: "chat_messages"
2416
+ isOneToOne: false
2417
+ isSetofReturn: true
2418
+ }
2419
+ }
2420
+ chat_message_upsert: {
2421
+ Args: {
2422
+ p_attachments?: Json
2423
+ p_chat_id: string
2424
+ p_id: string
2425
+ p_parts: Json
2426
+ p_role: string
2427
+ }
2428
+ Returns: {
2429
+ attachments: Json | null
2430
+ chat_id: string
2431
+ created_at: string
2432
+ grounding_metadata: Json | null
2433
+ id: string
2434
+ parts: Json
2435
+ role: Database["public"]["Enums"]["chat_role"]
2436
+ updated_at: string
2437
+ user_id: string | null
2438
+ }[]
2439
+ SetofOptions: {
2440
+ from: "*"
2441
+ to: "chat_messages"
2442
+ isOneToOne: false
2443
+ isSetofReturn: true
2444
+ }
2445
+ }
2446
+ chat_upsert: {
2447
+ Args: { p_agent_id?: string; p_id?: string; p_title?: string }
2448
+ Returns: {
2449
+ agent_id: string
2450
+ created_at: string
2451
+ id: string
2452
+ lastContext: Json | null
2453
+ state: Json | null
2454
+ title: string
2455
+ type: string
2456
+ updated_at: string | null
2457
+ user_id: string | null
2458
+ visibility: Database["public"]["Enums"]["chat_visibility"]
2459
+ }
2460
+ SetofOptions: {
2461
+ from: "*"
2462
+ to: "chats"
2463
+ isOneToOne: true
2464
+ isSetofReturn: false
2465
+ }
2466
+ }
2467
+ cleanup_tunnel_async: { Args: { p_worker_id: string }; Returns: number }
2468
+ cloud_account_bind_device: {
2469
+ Args: { p_fingerprint: Json; p_id: string }
2470
+ Returns: Database["public"]["CompositeTypes"]["cloud_account_record"][]
2471
+ SetofOptions: {
2472
+ from: "*"
2473
+ to: "cloud_account_record"
2474
+ isOneToOne: false
2475
+ isSetofReturn: true
2476
+ }
2477
+ }
2478
+ cloud_account_bulk_create: {
2479
+ Args: {
2480
+ p_account_names: string[]
2481
+ p_platform_name: string
2482
+ p_status?: Database["public"]["Enums"]["cloud_account_status"]
2483
+ }
2484
+ Returns: Database["public"]["CompositeTypes"]["cloud_account_record"][]
2485
+ SetofOptions: {
2486
+ from: "*"
2487
+ to: "cloud_account_record"
2488
+ isOneToOne: false
2489
+ isSetofReturn: true
2490
+ }
2491
+ }
2492
+ cloud_account_check_expired_tokens: {
2493
+ Args: never
2494
+ Returns: {
2495
+ total_checked: number
2496
+ total_expired: number
2497
+ }[]
2498
+ }
2499
+ cloud_account_delete: {
2500
+ Args: { p_id: string }
2501
+ Returns: Database["public"]["CompositeTypes"]["cloud_account_record"][]
2502
+ SetofOptions: {
2503
+ from: "*"
2504
+ to: "cloud_account_record"
2505
+ isOneToOne: false
2506
+ isSetofReturn: true
2507
+ }
2508
+ }
2509
+ cloud_account_device_delete_version: {
2510
+ Args: { p_id: string; p_version_id: string }
2511
+ Returns: boolean
2512
+ }
2513
+ cloud_account_device_restore: {
2514
+ Args: { p_id: string; p_version_id: string }
2515
+ Returns: Database["public"]["CompositeTypes"]["cloud_account_record"][]
2516
+ SetofOptions: {
2517
+ from: "*"
2518
+ to: "cloud_account_record"
2519
+ isOneToOne: false
2520
+ isSetofReturn: true
2521
+ }
2522
+ }
2523
+ cloud_account_get: {
2524
+ Args: { p_id: string }
2525
+ Returns: Database["public"]["CompositeTypes"]["cloud_account_record"][]
2526
+ SetofOptions: {
2527
+ from: "*"
2528
+ to: "cloud_account_record"
2529
+ isOneToOne: false
2530
+ isSetofReturn: true
2531
+ }
2532
+ }
2533
+ cloud_account_list_cursor: {
2534
+ Args: {
2535
+ p_cursor?: string
2536
+ p_kw?: string
2537
+ p_limit?: number
2538
+ p_platform_name?: string
2539
+ p_status?: Database["public"]["Enums"]["cloud_account_status"]
2540
+ }
2541
+ Returns: Database["public"]["CompositeTypes"]["cloud_account_record"][]
2542
+ SetofOptions: {
2543
+ from: "*"
2544
+ to: "cloud_account_record"
2545
+ isOneToOne: false
2546
+ isSetofReturn: true
2547
+ }
2548
+ }
2549
+ cloud_account_mark_refresh_failed: {
2550
+ Args: { p_error: string; p_id: string }
2551
+ Returns: Database["public"]["CompositeTypes"]["cloud_account_record"][]
2552
+ SetofOptions: {
2553
+ from: "*"
2554
+ to: "cloud_account_record"
2555
+ isOneToOne: false
2556
+ isSetofReturn: true
2557
+ }
2558
+ }
2559
+ cloud_account_refresh_token: {
2560
+ Args: {
2561
+ p_access_token: string
2562
+ p_expires_in?: unknown
2563
+ p_id: string
2564
+ p_refresh_expires_in?: unknown
2565
+ p_refresh_token?: string
2566
+ }
2567
+ Returns: Database["public"]["CompositeTypes"]["cloud_account_record"][]
2568
+ SetofOptions: {
2569
+ from: "*"
2570
+ to: "cloud_account_record"
2571
+ isOneToOne: false
2572
+ isSetofReturn: true
2573
+ }
2574
+ }
2575
+ cloud_account_session_load: { Args: { p_id: string }; Returns: string }
2576
+ cloud_account_session_set: {
2577
+ Args: { p_id: string; p_session_data: Json }
2578
+ Returns: undefined
2579
+ }
2580
+ cloud_account_session_store: {
2581
+ Args: { p_id: string; p_session: string }
2582
+ Returns: undefined
2583
+ }
2584
+ cloud_account_update_automation_config: {
2585
+ Args: { p_account_id: string; p_config: Json }
2586
+ Returns: undefined
2587
+ }
2588
+ cloud_account_upsert: {
2589
+ Args: {
2590
+ p_access_token?: string
2591
+ p_account_email?: string
2592
+ p_account_name?: string
2593
+ p_credentials?: Json
2594
+ p_device_fingerprint?: Json
2595
+ p_id?: string
2596
+ p_metadata?: Json
2597
+ p_platform_name?: string
2598
+ p_quota_data?: Json
2599
+ p_refresh_token?: string
2600
+ p_refresh_token_expires_at?: string
2601
+ p_session_data?: Json
2602
+ p_status?: Database["public"]["Enums"]["cloud_account_status"]
2603
+ p_status_reason?: string
2604
+ p_token_expires_at?: string
2605
+ p_token_type?: string
2606
+ p_user_id?: string
2607
+ }
2608
+ Returns: Database["public"]["CompositeTypes"]["cloud_account_record"][]
2609
+ SetofOptions: {
2610
+ from: "*"
2611
+ to: "cloud_account_record"
2612
+ isOneToOne: false
2613
+ isSetofReturn: true
2614
+ }
2615
+ }
2616
+ compute_node_delete: { Args: { p_id: string }; Returns: undefined }
2617
+ compute_node_get: {
2618
+ Args: { p_id: string }
2619
+ Returns: Database["public"]["CompositeTypes"]["compute_node_record"][]
2620
+ SetofOptions: {
2621
+ from: "*"
2622
+ to: "compute_node_record"
2623
+ isOneToOne: false
2624
+ isSetofReturn: true
2625
+ }
2626
+ }
2627
+ compute_node_get_secret: {
2628
+ Args: { target_id: string }
2629
+ Returns: {
2630
+ auth_secret: string
2631
+ host: string
2632
+ port: number
2633
+ username: string
2634
+ }[]
2635
+ }
2636
+ compute_node_list: {
2637
+ Args: {
2638
+ p_kw?: string
2639
+ p_page_no?: number
2640
+ p_page_size?: number
2641
+ p_provider?: string
2642
+ p_user_id?: string
2643
+ }
2644
+ Returns: Database["public"]["CompositeTypes"]["compute_node_record"][]
2645
+ SetofOptions: {
2646
+ from: "*"
2647
+ to: "compute_node_record"
2648
+ isOneToOne: false
2649
+ isSetofReturn: true
2650
+ }
2651
+ }
2652
+ compute_node_upsert: {
2653
+ Args: {
2654
+ p_auth_secret?: string
2655
+ p_host: string
2656
+ p_id: string
2657
+ p_name: string
2658
+ p_port?: number
2659
+ p_provider: string
2660
+ p_username?: string
2661
+ }
2662
+ Returns: Database["public"]["CompositeTypes"]["compute_node_record"][]
2663
+ SetofOptions: {
2664
+ from: "*"
2665
+ to: "compute_node_record"
2666
+ isOneToOne: false
2667
+ isSetofReturn: true
2668
+ }
2669
+ }
2670
+ contact_add_tags: {
2671
+ Args: { p_ids: string[]; p_tags: string[] }
2672
+ Returns: number
2673
+ }
2674
+ contact_bulk_import: {
2675
+ Args: {
2676
+ p_contacts: Json
2677
+ p_default_tags?: string[]
2678
+ p_platform?: string
2679
+ p_source?: string
2680
+ }
2681
+ Returns: number
2682
+ }
2683
+ contact_delete: { Args: { p_ids: string[] }; Returns: number }
2684
+ contact_get: {
2685
+ Args: {
2686
+ p_id?: string
2687
+ p_phone?: string
2688
+ p_platform?: string
2689
+ p_telegram_id?: number
2690
+ }
2691
+ Returns: Database["public"]["CompositeTypes"]["contact_record"][]
2692
+ SetofOptions: {
2693
+ from: "*"
2694
+ to: "contact_record"
2695
+ isOneToOne: false
2696
+ isSetofReturn: true
2697
+ }
2698
+ }
2699
+ contact_list_cursor: {
2700
+ Args: {
2701
+ p_cursor?: string
2702
+ p_limit?: number
2703
+ p_platform?: string
2704
+ p_search?: string
2705
+ p_status?: string
2706
+ p_tags?: string[]
2707
+ }
2708
+ Returns: Database["public"]["CompositeTypes"]["contact_record"][]
2709
+ SetofOptions: {
2710
+ from: "*"
2711
+ to: "contact_record"
2712
+ isOneToOne: false
2713
+ isSetofReturn: true
2714
+ }
2715
+ }
2716
+ contact_upsert: {
2717
+ Args: {
2718
+ p_email?: string
2719
+ p_id?: string
2720
+ p_metadata?: Json
2721
+ p_name?: string
2722
+ p_phone?: string
2723
+ p_platform?: string
2724
+ p_source?: string
2725
+ p_status?: string
2726
+ p_tags?: string[]
2727
+ p_telegram_id?: number
2728
+ p_telegram_username?: string
2729
+ }
2730
+ Returns: Database["public"]["CompositeTypes"]["contact_record"][]
2731
+ SetofOptions: {
2732
+ from: "*"
2733
+ to: "contact_record"
2734
+ isOneToOne: false
2735
+ isSetofReturn: true
2736
+ }
2737
+ }
2738
+ create_notification: {
2739
+ Args: {
2740
+ p_action_payload?: Json
2741
+ p_action_type?: string
2742
+ p_expires_in?: unknown
2743
+ p_message?: string
2744
+ p_priority?: string
2745
+ p_source_id?: string
2746
+ p_source_type?: string
2747
+ p_title: string
2748
+ p_type?: string
2749
+ p_user_id: string
2750
+ }
2751
+ Returns: string
2752
+ }
2753
+ db_tool_query: { Args: { p_sql: string }; Returns: Json }
2754
+ dba_lint_scan: {
2755
+ Args: never
2756
+ Returns: Database["public"]["CompositeTypes"]["dba_lint_issue"][]
2757
+ SetofOptions: {
2758
+ from: "*"
2759
+ to: "dba_lint_issue"
2760
+ isOneToOne: false
2761
+ isSetofReturn: true
2762
+ }
2763
+ }
2764
+ debug_role: { Args: never; Returns: string }
2765
+ debug_sec_def: { Args: never; Returns: string }
2766
+ get_encryption_key: { Args: never; Returns: string }
2767
+ get_github_app_public_info: { Args: never; Returns: Json }
2768
+ get_jwt_role: { Args: never; Returns: string }
2769
+ get_lint_test_v1: { Args: never; Returns: string }
2770
+ get_user_id_from_token: { Args: { p_token: string }; Returns: string }
2771
+ gomtm_model_count: {
2772
+ Args: { p_is_active?: boolean; p_provider?: string }
2773
+ Returns: number
2774
+ }
2775
+ gomtm_model_delete: { Args: { p_id: string }; Returns: boolean }
2776
+ gomtm_model_get: {
2777
+ Args: { p_id: string }
2778
+ Returns: {
2779
+ api_base: string | null
2780
+ api_key: string | null
2781
+ config: Json | null
2782
+ created_at: string
2783
+ id: string
2784
+ is_active: boolean
2785
+ linked_account_id: string | null
2786
+ model: string
2787
+ name: string
2788
+ provider: string
2789
+ updated_at: string
2790
+ user_id: string
2791
+ }
2792
+ SetofOptions: {
2793
+ from: "*"
2794
+ to: "gomtm_models"
2795
+ isOneToOne: true
2796
+ isSetofReturn: false
2797
+ }
2798
+ }
2799
+ gomtm_model_list: {
2800
+ Args: {
2801
+ p_is_active?: boolean
2802
+ p_limit?: number
2803
+ p_offset?: number
2804
+ p_provider?: string
2805
+ }
2806
+ Returns: {
2807
+ api_base: string
2808
+ api_key: string
2809
+ config: Json
2810
+ created_at: string
2811
+ id: string
2812
+ is_active: boolean
2813
+ linked_account_id: string
2814
+ model: string
2815
+ name: string
2816
+ provider: string
2817
+ updated_at: string
2818
+ user_id: string
2819
+ }[]
2820
+ }
2821
+ gomtm_model_list_cursor: {
2822
+ Args: {
2823
+ p_cursor_id?: string
2824
+ p_is_active?: boolean
2825
+ p_limit?: number
2826
+ p_provider?: string
2827
+ }
2828
+ Returns: {
2829
+ api_base: string
2830
+ api_key: string
2831
+ config: Json
2832
+ created_at: string
2833
+ id: string
2834
+ is_active: boolean
2835
+ linked_account_id: string
2836
+ model: string
2837
+ name: string
2838
+ provider: string
2839
+ updated_at: string
2840
+ user_id: string
2841
+ }[]
2842
+ }
2843
+ gomtm_model_upsert: {
2844
+ Args: {
2845
+ p_api_base?: string
2846
+ p_api_key?: string
2847
+ p_config?: Json
2848
+ p_id?: string
2849
+ p_is_active?: boolean
2850
+ p_linked_account_id?: string
2851
+ p_model?: string
2852
+ p_name?: string
2853
+ p_provider?: string
2854
+ }
2855
+ Returns: {
2856
+ api_base: string | null
2857
+ api_key: string | null
2858
+ config: Json | null
2859
+ created_at: string
2860
+ id: string
2861
+ is_active: boolean
2862
+ linked_account_id: string | null
2863
+ model: string
2864
+ name: string
2865
+ provider: string
2866
+ updated_at: string
2867
+ user_id: string
2868
+ }
2869
+ SetofOptions: {
2870
+ from: "*"
2871
+ to: "gomtm_models"
2872
+ isOneToOne: true
2873
+ isSetofReturn: false
2874
+ }
2875
+ }
2876
+ handle_job_outreach_process: {
2877
+ Args: { p_payload?: Json }
2878
+ Returns: undefined
2879
+ }
2880
+ handle_job_telegram_fetch_info: {
2881
+ Args: { p_payload: Json }
2882
+ Returns: undefined
2883
+ }
2884
+ handle_job_telegram_fetch_sms: {
2885
+ Args: { p_payload: Json }
2886
+ Returns: undefined
2887
+ }
2888
+ handle_job_tunnel_check_responses: {
2889
+ Args: { p_payload: Json }
2890
+ Returns: undefined
2891
+ }
2892
+ handle_job_tunnel_setup: { Args: { p_payload: Json }; Returns: undefined }
2893
+ handle_job_worker_cleanup: {
2894
+ Args: { p_payload: Json }
2895
+ Returns: undefined
2896
+ }
2897
+ init_tunnel_async: { Args: { p_instance_id: string }; Returns: number }
2898
+ instance_tag_add: {
2899
+ Args: { p_instance_id: string; p_tag_id: string }
2900
+ Returns: boolean
2901
+ }
2902
+ instance_tag_remove: {
2903
+ Args: { p_instance_id: string; p_tag_id: string }
2904
+ Returns: boolean
2905
+ }
2906
+ instance_tags_get: {
2907
+ Args: { p_instance_id: string }
2908
+ Returns: Database["public"]["CompositeTypes"]["tag_record"][]
2909
+ SetofOptions: {
2910
+ from: "*"
2911
+ to: "tag_record"
2912
+ isOneToOne: false
2913
+ isSetofReturn: true
2914
+ }
2915
+ }
2916
+ instance_tags_set: {
2917
+ Args: { p_instance_id: string; p_tag_ids: string[] }
2918
+ Returns: Database["public"]["CompositeTypes"]["tag_record"][]
2919
+ SetofOptions: {
2920
+ from: "*"
2921
+ to: "tag_record"
2922
+ isOneToOne: false
2923
+ isSetofReturn: true
2924
+ }
2925
+ }
2926
+ is_admin: { Args: never; Returns: boolean }
2927
+ job_queue_get_stats: {
2928
+ Args: never
2929
+ Returns: {
2930
+ dlq_count: number
2931
+ msg_count: number
2932
+ queue_name: string
2933
+ }[]
2934
+ }
2935
+ job_queue_list_dlq: {
2936
+ Args: { p_limit?: number; p_offset?: number; p_queue: string }
2937
+ Returns: {
2938
+ enqueued_at: string
2939
+ message: Json
2940
+ msg_id: number
2941
+ read_ct: number
2942
+ }[]
2943
+ }
2944
+ job_queue_purge_dlq: {
2945
+ Args: { p_msg_ids: number[]; p_queue: string }
2946
+ Returns: undefined
2947
+ }
2948
+ job_queue_retry_dlq: {
2949
+ Args: { p_msg_ids: number[]; p_queue: string }
2950
+ Returns: undefined
2951
+ }
2952
+ job_submit: {
2953
+ Args: {
2954
+ p_delay_seconds?: number
2955
+ p_payload: Json
2956
+ p_queue: string
2957
+ p_type: string
2958
+ }
2959
+ Returns: Json
2960
+ }
2961
+ lint_test_error_code: { Args: never; Returns: undefined }
2962
+ lint_test_table_return: {
2963
+ Args: never
2964
+ Returns: {
2965
+ id: number
2966
+ name: string
2967
+ }[]
2968
+ }
2969
+ log: { Args: { content: string }; Returns: undefined }
2970
+ notification_complete_action: { Args: { p_id: string }; Returns: boolean }
2971
+ notification_count: {
2972
+ Args: { p_include_dismissed?: boolean; p_unread_only?: boolean }
2973
+ Returns: number
2974
+ }
2975
+ notification_dismiss: {
2976
+ Args: {
2977
+ p_dismiss_all?: boolean
2978
+ p_id?: string
2979
+ p_source_id?: string
2980
+ p_source_type?: string
2981
+ }
2982
+ Returns: number
2983
+ }
2984
+ notification_get_pending_actions: {
2985
+ Args: never
2986
+ Returns: Database["public"]["CompositeTypes"]["user_notification_record"][]
2987
+ SetofOptions: {
2988
+ from: "*"
2989
+ to: "user_notification_record"
2990
+ isOneToOne: false
2991
+ isSetofReturn: true
2992
+ }
2993
+ }
2994
+ notification_list: {
2995
+ Args: {
2996
+ p_action_type?: string
2997
+ p_cursor?: string
2998
+ p_include_dismissed?: boolean
2999
+ p_limit?: number
3000
+ p_source_type?: string
3001
+ p_unread_only?: boolean
3002
+ }
3003
+ Returns: Database["public"]["CompositeTypes"]["user_notification_record"][]
3004
+ SetofOptions: {
3005
+ from: "*"
3006
+ to: "user_notification_record"
3007
+ isOneToOne: false
3008
+ isSetofReturn: true
3009
+ }
3010
+ }
3011
+ notification_mark_read: {
3012
+ Args: { p_id?: string; p_mark_all?: boolean }
3013
+ Returns: number
3014
+ }
3015
+ outreach_process_pending_tasks: {
3016
+ Args: { p_limit?: number }
3017
+ Returns: number
3018
+ }
3019
+ outreach_retry_failed_tasks: {
3020
+ Args: { p_campaign_id?: string }
3021
+ Returns: number
3022
+ }
3023
+ outreach_task_list: {
3024
+ Args: {
3025
+ p_campaign_id?: string
3026
+ p_limit?: number
3027
+ p_offset?: number
3028
+ p_status?: string
3029
+ }
3030
+ Returns: Database["public"]["CompositeTypes"]["outreach_task_record"][]
3031
+ SetofOptions: {
3032
+ from: "*"
3033
+ to: "outreach_task_record"
3034
+ isOneToOne: false
3035
+ isSetofReturn: true
3036
+ }
3037
+ }
3038
+ proxy_delete: { Args: { p_id: string }; Returns: boolean }
3039
+ proxy_get: {
3040
+ Args: { p_id: string }
3041
+ Returns: {
3042
+ created_at: string
3043
+ description: string | null
3044
+ enabled: boolean
3045
+ id: string
3046
+ name: string | null
3047
+ type: string | null
3048
+ updated_at: string | null
3049
+ url: string
3050
+ user_id: string | null
3051
+ }
3052
+ SetofOptions: {
3053
+ from: "*"
3054
+ to: "proxies"
3055
+ isOneToOne: true
3056
+ isSetofReturn: false
3057
+ }
3058
+ }
3059
+ proxy_list: {
3060
+ Args: { p_kw?: string; p_page_no?: number; p_page_size?: number }
3061
+ Returns: {
3062
+ created_at: string
3063
+ description: string | null
3064
+ enabled: boolean
3065
+ id: string
3066
+ name: string | null
3067
+ type: string | null
3068
+ updated_at: string | null
3069
+ url: string
3070
+ user_id: string | null
3071
+ }[]
3072
+ SetofOptions: {
3073
+ from: "*"
3074
+ to: "proxies"
3075
+ isOneToOne: false
3076
+ isSetofReturn: true
3077
+ }
3078
+ }
3079
+ proxy_upsert: {
3080
+ Args: {
3081
+ p_description?: string
3082
+ p_enabled?: boolean
3083
+ p_id: string
3084
+ p_name: string
3085
+ p_type: string
3086
+ p_url: string
3087
+ }
3088
+ Returns: {
3089
+ created_at: string
3090
+ description: string | null
3091
+ enabled: boolean
3092
+ id: string
3093
+ name: string | null
3094
+ type: string | null
3095
+ updated_at: string | null
3096
+ url: string
3097
+ user_id: string | null
3098
+ }[]
3099
+ SetofOptions: {
3100
+ from: "*"
3101
+ to: "proxies"
3102
+ isOneToOne: false
3103
+ isSetofReturn: true
3104
+ }
3105
+ }
3106
+ resource_delete: { Args: { p_resource_id: string }; Returns: undefined }
3107
+ resource_get: { Args: { p_resource_id: string }; Returns: Json }
3108
+ resource_list: {
3109
+ Args: {
3110
+ p_kw?: string
3111
+ p_page_num?: number
3112
+ p_page_size?: number
3113
+ p_slug?: string
3114
+ p_type?: string
3115
+ }
3116
+ Returns: {
3117
+ description: string
3118
+ icon: string
3119
+ id: string
3120
+ target_id: string
3121
+ title: string
3122
+ type: string
3123
+ updated_at: string
3124
+ url: string
3125
+ }[]
3126
+ }
3127
+ resource_upsert: {
3128
+ Args: {
3129
+ content: Json
3130
+ description: string
3131
+ key: string
3132
+ p_id?: string
3133
+ target_id?: string
3134
+ title: string
3135
+ type: string
3136
+ }
3137
+ Returns: string
3138
+ }
3139
+ sandbox_find_active: { Args: never; Returns: Json }
3140
+ sandbox_get: {
3141
+ Args: { resource_id?: string }
3142
+ Returns: {
3143
+ created_at: string
3144
+ data: Json | null
3145
+ description: string | null
3146
+ hash1: string | null
3147
+ icon: string | null
3148
+ id: string
3149
+ is_public: boolean | null
3150
+ meta: Json | null
3151
+ target_id: string | null
3152
+ title: string | null
3153
+ type: string | null
3154
+ updated_at: string | null
3155
+ user_id: string | null
3156
+ }[]
3157
+ SetofOptions: {
3158
+ from: "*"
3159
+ to: "resources"
3160
+ isOneToOne: false
3161
+ isSetofReturn: true
3162
+ }
3163
+ }
3164
+ server_instance_delete: {
3165
+ Args: { target_id: string }
3166
+ Returns: undefined
3167
+ }
3168
+ server_instance_get: {
3169
+ Args: { p_id?: string }
3170
+ Returns: {
3171
+ cloudflared_token: string | null
3172
+ created_at: string
3173
+ host_id: string | null
3174
+ id: string
3175
+ is_shared: boolean | null
3176
+ latest_pull_at: string | null
3177
+ name: string | null
3178
+ runtime: string | null
3179
+ state: Json | null
3180
+ status: Database["public"]["Enums"]["worker_status"] | null
3181
+ updated_at: string
3182
+ user_id: string | null
3183
+ }[]
3184
+ SetofOptions: {
3185
+ from: "*"
3186
+ to: "servers"
3187
+ isOneToOne: false
3188
+ isSetofReturn: true
3189
+ }
3190
+ }
3191
+ server_instance_heartbeat: {
3192
+ Args: { p_instance_id: string }
3193
+ Returns: {
3194
+ error: string
3195
+ success: boolean
3196
+ temp_domain: string
3197
+ }[]
3198
+ }
3199
+ server_instance_list: {
3200
+ Args: {
3201
+ kw?: string
3202
+ p_host_id?: string
3203
+ page_no?: number
3204
+ page_size?: number
3205
+ }
3206
+ Returns: {
3207
+ cloudflared_token: string | null
3208
+ created_at: string
3209
+ host_id: string | null
3210
+ id: string
3211
+ is_shared: boolean | null
3212
+ latest_pull_at: string | null
3213
+ name: string | null
3214
+ runtime: string | null
3215
+ state: Json | null
3216
+ status: Database["public"]["Enums"]["worker_status"] | null
3217
+ updated_at: string
3218
+ user_id: string | null
3219
+ }[]
3220
+ SetofOptions: {
3221
+ from: "*"
3222
+ to: "servers"
3223
+ isOneToOne: false
3224
+ isSetofReturn: true
3225
+ }
3226
+ }
3227
+ server_instance_list_cursor: {
3228
+ Args: {
3229
+ p_cursor_id?: string
3230
+ p_cursor_is_shared?: boolean
3231
+ p_cursor_updated_at?: string
3232
+ p_host_id?: string
3233
+ p_is_shared?: boolean
3234
+ p_kw?: string
3235
+ p_limit?: number
3236
+ p_tag_ids?: string[]
3237
+ }
3238
+ Returns: {
3239
+ cloudflared_token: string | null
3240
+ created_at: string
3241
+ host_id: string | null
3242
+ id: string
3243
+ is_shared: boolean | null
3244
+ latest_pull_at: string | null
3245
+ name: string | null
3246
+ runtime: string | null
3247
+ state: Json | null
3248
+ status: Database["public"]["Enums"]["worker_status"] | null
3249
+ updated_at: string
3250
+ user_id: string | null
3251
+ }[]
3252
+ SetofOptions: {
3253
+ from: "*"
3254
+ to: "servers"
3255
+ isOneToOne: false
3256
+ isSetofReturn: true
3257
+ }
3258
+ }
3259
+ server_instance_upsert: {
3260
+ Args: {
3261
+ p_cloudflared_token?: string
3262
+ p_host_id?: string
3263
+ p_id: string
3264
+ p_is_managed?: boolean
3265
+ p_is_shared?: boolean
3266
+ p_name?: string
3267
+ p_runtime?: string
3268
+ p_state?: Json
3269
+ p_status?: Database["public"]["Enums"]["worker_status"]
3270
+ p_user_id?: string
3271
+ }
3272
+ Returns: {
3273
+ cloudflared_token: string | null
3274
+ created_at: string
3275
+ host_id: string | null
3276
+ id: string
3277
+ is_shared: boolean | null
3278
+ latest_pull_at: string | null
3279
+ name: string | null
3280
+ runtime: string | null
3281
+ state: Json | null
3282
+ status: Database["public"]["Enums"]["worker_status"] | null
3283
+ updated_at: string
3284
+ user_id: string | null
3285
+ }[]
3286
+ SetofOptions: {
3287
+ from: "*"
3288
+ to: "servers"
3289
+ isOneToOne: false
3290
+ isSetofReturn: true
3291
+ }
3292
+ }
3293
+ sys_config_get: { Args: { p_key: string }; Returns: Json }
3294
+ sys_config_set: {
3295
+ Args: { p_description?: string; p_key: string; p_value: Json }
3296
+ Returns: undefined
3297
+ }
3298
+ sys_get_db_schema: {
3299
+ Args: {
3300
+ p_excluded_tables?: string[]
3301
+ p_include_comments?: boolean
3302
+ p_include_functions?: boolean
3303
+ }
3304
+ Returns: string
3305
+ }
3306
+ sys_init_queue: { Args: { name: string }; Returns: undefined }
3307
+ system_config_public_delete: {
3308
+ Args: { p_key: string }
3309
+ Returns: undefined
3310
+ }
3311
+ system_config_public_get: { Args: { p_key: string }; Returns: Json }
3312
+ system_config_public_list: {
3313
+ Args: never
3314
+ Returns: {
3315
+ description: string
3316
+ key: string
3317
+ updated_at: string
3318
+ value: Json
3319
+ }[]
3320
+ }
3321
+ system_config_public_set: {
3322
+ Args: { p_description?: string; p_key: string; p_value: Json }
3323
+ Returns: undefined
3324
+ }
3325
+ tag_delete: { Args: { p_id: string }; Returns: boolean }
3326
+ tag_list: {
3327
+ Args: never
3328
+ Returns: Database["public"]["CompositeTypes"]["tag_record"][]
3329
+ SetofOptions: {
3330
+ from: "*"
3331
+ to: "tag_record"
3332
+ isOneToOne: false
3333
+ isSetofReturn: true
3334
+ }
3335
+ }
3336
+ tag_upsert: {
3337
+ Args: { p_color?: string; p_id?: string; p_name?: string }
3338
+ Returns: Database["public"]["CompositeTypes"]["tag_record"][]
3339
+ SetofOptions: {
3340
+ from: "*"
3341
+ to: "tag_record"
3342
+ isOneToOne: false
3343
+ isSetofReturn: true
3344
+ }
3345
+ }
3346
+ task_submit: { Args: { p_payload: Json; p_type: string }; Returns: Json }
3347
+ tear_down_test_data: { Args: never; Returns: Json }
3348
+ telegram_login_start: {
3349
+ Args: { p_account_id: string }
3350
+ Returns: undefined
3351
+ }
3352
+ telegram_login_submit_2fa: {
3353
+ Args: { p_account_id: string; p_password: string }
3354
+ Returns: undefined
3355
+ }
3356
+ telegram_login_submit_code: {
3357
+ Args: { p_account_id: string; p_code: string }
3358
+ Returns: undefined
3359
+ }
3360
+ test_lint_all_plpgsql_functions: {
3361
+ Args: never
3362
+ Returns: {
3363
+ check_result: string
3364
+ function_name: string
3365
+ severity: string
3366
+ }[]
3367
+ }
3368
+ uid_by_email: {
3369
+ Args: { email: string }
3370
+ Returns: {
3371
+ id: string
3372
+ }[]
3373
+ }
3374
+ user_log_list: {
3375
+ Args: { p_page?: number; p_page_size?: number }
3376
+ Returns: {
3377
+ content: string
3378
+ created_at: string
3379
+ event_type: string
3380
+ id: string
3381
+ level: string
3382
+ meta: Json
3383
+ resource_id: string
3384
+ resource_type: string
3385
+ }[]
3386
+ }
3387
+ user_log_record:
3388
+ | {
3389
+ Args: {
3390
+ p_content: string
3391
+ p_event_type: string
3392
+ p_level?: string
3393
+ p_meta?: Json
3394
+ p_resource_id?: string
3395
+ p_resource_type?: string
3396
+ }
3397
+ Returns: string
3398
+ }
3399
+ | {
3400
+ Args: {
3401
+ p_content: string
3402
+ p_event_type: string
3403
+ p_level?: string
3404
+ p_meta?: Json
3405
+ p_resource_id?: string
3406
+ p_resource_type?: string
3407
+ p_user_id?: string
3408
+ }
3409
+ Returns: string
3410
+ }
3411
+ user_profile_get: {
3412
+ Args: never
3413
+ Returns: Database["public"]["CompositeTypes"]["user_profile_record"][]
3414
+ SetofOptions: {
3415
+ from: "*"
3416
+ to: "user_profile_record"
3417
+ isOneToOne: false
3418
+ isSetofReturn: true
3419
+ }
3420
+ }
3421
+ user_profile_upsert: {
3422
+ Args: {
3423
+ p_avatar_url: string
3424
+ p_full_name: string
3425
+ p_username: string
3426
+ p_website: string
3427
+ }
3428
+ Returns: {
3429
+ avatar_url: string | null
3430
+ full_name: string | null
3431
+ id: string
3432
+ updated_at: string | null
3433
+ username: string | null
3434
+ website: string | null
3435
+ }
3436
+ SetofOptions: {
3437
+ from: "*"
3438
+ to: "profiles"
3439
+ isOneToOne: true
3440
+ isSetofReturn: false
3441
+ }
3442
+ }
3443
+ worker_ack: {
3444
+ Args: { p_instance_id: string; p_msg_id: number }
3445
+ Returns: undefined
3446
+ }
3447
+ worker_process_queue: {
3448
+ Args: { p_limit?: number; p_queue: string }
3449
+ Returns: undefined
3450
+ }
3451
+ worker_prune_queues: { Args: never; Returns: undefined }
3452
+ worker_pull: { Args: { p_instance_id: string }; Returns: Json[] }
3453
+ worker_task_upsert: {
3454
+ Args: {
3455
+ p_error?: string
3456
+ p_id?: string
3457
+ p_payload?: Json
3458
+ p_result?: Json
3459
+ p_session_id?: string
3460
+ p_status?: string
3461
+ p_type?: string
3462
+ p_user_id?: string
3463
+ }
3464
+ Returns: string
3465
+ }
3466
+ }
3467
+ Enums: {
3468
+ app_role: "admin" | "moderator" | "member"
3469
+ audit_finding_severity: "critical" | "high" | "medium" | "low" | "info"
3470
+ chat_role: "system" | "user" | "assistant" | "model" | "error" | "tool"
3471
+ chat_visibility: "private" | "public"
3472
+ cloud_account_status:
3473
+ | "pending"
3474
+ | "active"
3475
+ | "token_expired"
3476
+ | "needs_reauth"
3477
+ | "quota_exceeded"
3478
+ | "suspended"
3479
+ | "disabled"
3480
+ compute_node_status: "online" | "offline"
3481
+ telegram_login_step:
3482
+ | "pending"
3483
+ | "send_code"
3484
+ | "wait_code"
3485
+ | "verify_code"
3486
+ | "need_2fa"
3487
+ | "success"
3488
+ | "failed"
3489
+ | "fetch_info"
3490
+ worker_status: "starting" | "running" | "stopping" | "stopped" | "offline"
3491
+ }
3492
+ CompositeTypes: {
3493
+ adk_artifact_meta_record: {
3494
+ version: number | null
3495
+ canonical_uri: string | null
3496
+ custom_metadata: Json | null
3497
+ create_time: number | null
3498
+ mime_type: string | null
3499
+ }
3500
+ browser_record: {
3501
+ id: string | null
3502
+ created_at: string | null
3503
+ updated_at: string | null
3504
+ title: string | null
3505
+ description: string | null
3506
+ profile_id: string | null
3507
+ provider: string | null
3508
+ provider_config: Json | null
3509
+ config: Json | null
3510
+ sandbox_id: string | null
3511
+ vnc_url: string | null
3512
+ browser_api_url: string | null
3513
+ worker_name: string | null
3514
+ is_running: boolean | null
3515
+ }
3516
+ campaign_record: {
3517
+ id: string | null
3518
+ created_at: string | null
3519
+ updated_at: string | null
3520
+ started_at: string | null
3521
+ completed_at: string | null
3522
+ user_id: string | null
3523
+ name: string | null
3524
+ description: string | null
3525
+ platform: string | null
3526
+ status: string | null
3527
+ config: Json | null
3528
+ message_template: string | null
3529
+ target_filter: Json | null
3530
+ schedule: Json | null
3531
+ stats: Json | null
3532
+ }
3533
+ cloud_account_record: {
3534
+ id: string | null
3535
+ created_at: string | null
3536
+ updated_at: string | null
3537
+ user_id: string | null
3538
+ platform_name: string | null
3539
+ account_email: string | null
3540
+ account_name: string | null
3541
+ token_type: string | null
3542
+ token_expires_at: string | null
3543
+ refresh_token_expires_at: string | null
3544
+ last_refresh_at: string | null
3545
+ status: Database["public"]["Enums"]["cloud_account_status"] | null
3546
+ status_reason: string | null
3547
+ status_updated_at: string | null
3548
+ session_data: Json | null
3549
+ device_fingerprint: Json | null
3550
+ quota_data: Json | null
3551
+ metadata: Json | null
3552
+ proxy_disabled: boolean | null
3553
+ last_used_at: string | null
3554
+ use_count: number | null
3555
+ device_history: Json[] | null
3556
+ credentials: Json | null
3557
+ }
3558
+ compute_node_record: {
3559
+ id: string | null
3560
+ user_id: string | null
3561
+ name: string | null
3562
+ provider: string | null
3563
+ host: string | null
3564
+ port: number | null
3565
+ username: string | null
3566
+ auth_secret: string | null
3567
+ status: Database["public"]["Enums"]["compute_node_status"] | null
3568
+ worker_count: number | null
3569
+ updated_at: string | null
3570
+ is_public: boolean | null
3571
+ created_at: string | null
3572
+ }
3573
+ contact_record: {
3574
+ id: string | null
3575
+ created_at: string | null
3576
+ updated_at: string | null
3577
+ user_id: string | null
3578
+ name: string | null
3579
+ phone: string | null
3580
+ telegram_id: number | null
3581
+ telegram_username: string | null
3582
+ email: string | null
3583
+ platform: string | null
3584
+ source: string | null
3585
+ tags: string[] | null
3586
+ status: string | null
3587
+ metadata: Json | null
3588
+ }
3589
+ dba_lint_issue: {
3590
+ object_type: string | null
3591
+ object_name: string | null
3592
+ issue_category: string | null
3593
+ issue: string | null
3594
+ suggestion: string | null
3595
+ severity: string | null
3596
+ }
3597
+ outreach_task_record: {
3598
+ id: string | null
3599
+ created_at: string | null
3600
+ updated_at: string | null
3601
+ user_id: string | null
3602
+ campaign_id: string | null
3603
+ contact_id: string | null
3604
+ cloud_account_id: string | null
3605
+ status: string | null
3606
+ priority: number | null
3607
+ scheduled_at: string | null
3608
+ executed_at: string | null
3609
+ retry_count: number | null
3610
+ error_message: string | null
3611
+ metadata: Json | null
3612
+ }
3613
+ server_instance_record: {
3614
+ id: string | null
3615
+ name: string | null
3616
+ updated_at: string | null
3617
+ config: Json | null
3618
+ status: Database["public"]["Enums"]["worker_status"] | null
3619
+ host_id: string | null
3620
+ is_public: boolean | null
3621
+ state: Json | null
3622
+ created_at: string | null
3623
+ user_id: string | null
3624
+ container_id: string | null
3625
+ is_managed: boolean | null
3626
+ type: string | null
3627
+ runtime: string | null
3628
+ is_shared: boolean | null
3629
+ latest_pull_at: string | null
3630
+ host_name: string | null
3631
+ host_address: string | null
3632
+ host_user: string | null
3633
+ host_port: number | null
3634
+ host_auth_secret: string | null
3635
+ }
3636
+ tag_record: {
3637
+ id: string | null
3638
+ name: string | null
3639
+ color: string | null
3640
+ user_id: string | null
3641
+ created_at: string | null
3642
+ updated_at: string | null
3643
+ instance_count: number | null
3644
+ }
3645
+ test_result: {
3646
+ test_name: string | null
3647
+ passed: boolean | null
3648
+ message: string | null
3649
+ }
3650
+ user_notification_record: {
3651
+ id: string | null
3652
+ created_at: string | null
3653
+ updated_at: string | null
3654
+ user_id: string | null
3655
+ title: string | null
3656
+ message: string | null
3657
+ notification_type: string | null
3658
+ priority: string | null
3659
+ source_type: string | null
3660
+ source_id: string | null
3661
+ action_type: string | null
3662
+ action_payload: Json | null
3663
+ action_completed_at: string | null
3664
+ is_read: boolean | null
3665
+ read_at: string | null
3666
+ dismissed_at: string | null
3667
+ expires_at: string | null
3668
+ }
3669
+ user_profile_record: {
3670
+ id: string | null
3671
+ full_name: string | null
3672
+ username: string | null
3673
+ website: string | null
3674
+ avatar_url: string | null
3675
+ updated_at: string | null
3676
+ }
3677
+ }
3678
+ }
3679
+ }
3680
+
3681
+ type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">
3682
+
3683
+ type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">]
3684
+
3685
+ export type Tables<
3686
+ DefaultSchemaTableNameOrOptions extends
3687
+ | keyof (DefaultSchema["Tables"] & DefaultSchema["Views"])
3688
+ | { schema: keyof DatabaseWithoutInternals },
3689
+ TableName extends DefaultSchemaTableNameOrOptions extends {
3690
+ schema: keyof DatabaseWithoutInternals
3691
+ }
3692
+ ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] &
3693
+ DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])
3694
+ : never = never,
3695
+ > = DefaultSchemaTableNameOrOptions extends {
3696
+ schema: keyof DatabaseWithoutInternals
3697
+ }
3698
+ ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] &
3699
+ DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
3700
+ Row: infer R
3701
+ }
3702
+ ? R
3703
+ : never
3704
+ : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] &
3705
+ DefaultSchema["Views"])
3706
+ ? (DefaultSchema["Tables"] &
3707
+ DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
3708
+ Row: infer R
3709
+ }
3710
+ ? R
3711
+ : never
3712
+ : never
3713
+
3714
+ export type TablesInsert<
3715
+ DefaultSchemaTableNameOrOptions extends
3716
+ | keyof DefaultSchema["Tables"]
3717
+ | { schema: keyof DatabaseWithoutInternals },
3718
+ TableName extends DefaultSchemaTableNameOrOptions extends {
3719
+ schema: keyof DatabaseWithoutInternals
3720
+ }
3721
+ ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"]
3722
+ : never = never,
3723
+ > = DefaultSchemaTableNameOrOptions extends {
3724
+ schema: keyof DatabaseWithoutInternals
3725
+ }
3726
+ ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
3727
+ Insert: infer I
3728
+ }
3729
+ ? I
3730
+ : never
3731
+ : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"]
3732
+ ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
3733
+ Insert: infer I
3734
+ }
3735
+ ? I
3736
+ : never
3737
+ : never
3738
+
3739
+ export type TablesUpdate<
3740
+ DefaultSchemaTableNameOrOptions extends
3741
+ | keyof DefaultSchema["Tables"]
3742
+ | { schema: keyof DatabaseWithoutInternals },
3743
+ TableName extends DefaultSchemaTableNameOrOptions extends {
3744
+ schema: keyof DatabaseWithoutInternals
3745
+ }
3746
+ ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"]
3747
+ : never = never,
3748
+ > = DefaultSchemaTableNameOrOptions extends {
3749
+ schema: keyof DatabaseWithoutInternals
3750
+ }
3751
+ ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
3752
+ Update: infer U
3753
+ }
3754
+ ? U
3755
+ : never
3756
+ : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"]
3757
+ ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
3758
+ Update: infer U
3759
+ }
3760
+ ? U
3761
+ : never
3762
+ : never
3763
+
3764
+ export type Enums<
3765
+ DefaultSchemaEnumNameOrOptions extends
3766
+ | keyof DefaultSchema["Enums"]
3767
+ | { schema: keyof DatabaseWithoutInternals },
3768
+ EnumName extends DefaultSchemaEnumNameOrOptions extends {
3769
+ schema: keyof DatabaseWithoutInternals
3770
+ }
3771
+ ? keyof DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"]
3772
+ : never = never,
3773
+ > = DefaultSchemaEnumNameOrOptions extends {
3774
+ schema: keyof DatabaseWithoutInternals
3775
+ }
3776
+ ? DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName]
3777
+ : DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"]
3778
+ ? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions]
3779
+ : never
3780
+
3781
+ export type CompositeTypes<
3782
+ PublicCompositeTypeNameOrOptions extends
3783
+ | keyof DefaultSchema["CompositeTypes"]
3784
+ | { schema: keyof DatabaseWithoutInternals },
3785
+ CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
3786
+ schema: keyof DatabaseWithoutInternals
3787
+ }
3788
+ ? keyof DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"]
3789
+ : never = never,
3790
+ > = PublicCompositeTypeNameOrOptions extends {
3791
+ schema: keyof DatabaseWithoutInternals
3792
+ }
3793
+ ? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName]
3794
+ : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"]
3795
+ ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions]
3796
+ : never
3797
+
3798
+ export const Constants = {
3799
+ public: {
3800
+ Enums: {
3801
+ app_role: ["admin", "moderator", "member"],
3802
+ audit_finding_severity: ["critical", "high", "medium", "low", "info"],
3803
+ chat_role: ["system", "user", "assistant", "model", "error", "tool"],
3804
+ chat_visibility: ["private", "public"],
3805
+ cloud_account_status: [
3806
+ "pending",
3807
+ "active",
3808
+ "token_expired",
3809
+ "needs_reauth",
3810
+ "quota_exceeded",
3811
+ "suspended",
3812
+ "disabled",
3813
+ ],
3814
+ compute_node_status: ["online", "offline"],
3815
+ telegram_login_step: [
3816
+ "pending",
3817
+ "send_code",
3818
+ "wait_code",
3819
+ "verify_code",
3820
+ "need_2fa",
3821
+ "success",
3822
+ "failed",
3823
+ "fetch_info",
3824
+ ],
3825
+ worker_status: ["starting", "running", "stopping", "stopped", "offline"],
3826
+ },
3827
+ },
3828
+ } as const