mtmsdk 0.0.51 → 0.0.53

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