mtmsdk 0.0.47 → 0.0.49

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 (236) hide show
  1. package/dist/gomtmapi/@tanstack/react-query.gen.d.ts +2 -80
  2. package/dist/gomtmapi/@tanstack/react-query.gen.d.ts.map +1 -1
  3. package/dist/gomtmapi/@tanstack/react-query.gen.js +2 -176
  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 +14 -328
  10. package/dist/gomtmapi/schemas.gen.d.ts.map +1 -1
  11. package/dist/gomtmapi/schemas.gen.js +14 -341
  12. package/dist/gomtmapi/schemas.gen.js.map +1 -1
  13. package/dist/gomtmapi/sdk.gen.d.ts +2 -80
  14. package/dist/gomtmapi/sdk.gen.d.ts.map +1 -1
  15. package/dist/gomtmapi/sdk.gen.js +1 -135
  16. package/dist/gomtmapi/sdk.gen.js.map +1 -1
  17. package/dist/gomtmapi/types.gen.d.ts +10 -437
  18. package/dist/gomtmapi/types.gen.d.ts.map +1 -1
  19. package/dist/gomtmapi/zod.gen.d.ts +8 -308
  20. package/dist/gomtmapi/zod.gen.d.ts.map +1 -1
  21. package/dist/gomtmapi/zod.gen.js +4 -232
  22. package/dist/gomtmapi/zod.gen.js.map +1 -1
  23. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts +1 -29
  24. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts.map +1 -1
  25. package/dist/mtgate_api/@tanstack/react-query.gen.js +1 -17
  26. package/dist/mtgate_api/@tanstack/react-query.gen.js.map +1 -1
  27. package/dist/mtgate_api/index.d.ts +2 -2
  28. package/dist/mtgate_api/index.d.ts.map +1 -1
  29. package/dist/mtgate_api/index.js +1 -1
  30. package/dist/mtgate_api/index.js.map +1 -1
  31. package/dist/mtgate_api/sdk.gen.d.ts +1 -5
  32. package/dist/mtgate_api/sdk.gen.d.ts.map +1 -1
  33. package/dist/mtgate_api/sdk.gen.js +0 -4
  34. package/dist/mtgate_api/sdk.gen.js.map +1 -1
  35. package/dist/mtgate_api/types.gen.d.ts +0 -6
  36. package/dist/mtgate_api/types.gen.d.ts.map +1 -1
  37. package/dist/mtgate_api/zod.gen.d.ts +0 -5
  38. package/dist/mtgate_api/zod.gen.d.ts.map +1 -1
  39. package/dist/mtgate_api/zod.gen.js +0 -5
  40. package/dist/mtgate_api/zod.gen.js.map +1 -1
  41. package/dist/mtmai_api/index.d.ts +2 -2
  42. package/dist/mtmai_api/index.d.ts.map +1 -1
  43. package/dist/mtmai_api/index.js +1 -1
  44. package/dist/mtmai_api/index.js.map +1 -1
  45. package/dist/mtmai_api/zod.gen.d.ts +96 -96
  46. package/dist/openclaw/client-info.d.ts +0 -18
  47. package/dist/openclaw/client-info.d.ts.map +1 -1
  48. package/dist/openclaw/client-info.js +0 -6
  49. package/dist/openclaw/client-info.js.map +1 -1
  50. package/dist/openclaw/device-auth-utils.d.ts +3 -4
  51. package/dist/openclaw/device-auth-utils.d.ts.map +1 -1
  52. package/dist/openclaw/device-auth-utils.js +4 -8
  53. package/dist/openclaw/device-auth-utils.js.map +1 -1
  54. package/dist/openclaw/device-auth.d.ts.map +1 -1
  55. package/dist/openclaw/device-auth.js +5 -2
  56. package/dist/openclaw/device-auth.js.map +1 -1
  57. package/dist/openclaw/device-identity.js +2 -2
  58. package/dist/openclaw/device-identity.js.map +1 -1
  59. package/dist/openclaw/gateway.d.ts +19 -5
  60. package/dist/openclaw/gateway.d.ts.map +1 -1
  61. package/dist/openclaw/gateway.js +75 -37
  62. package/dist/openclaw/gateway.js.map +1 -1
  63. package/dist/sbmng/@tanstack/react-query.gen.d.ts +36 -8
  64. package/dist/sbmng/@tanstack/react-query.gen.d.ts.map +1 -1
  65. package/dist/sbmng/@tanstack/react-query.gen.js +22 -6
  66. package/dist/sbmng/@tanstack/react-query.gen.js.map +1 -1
  67. package/dist/sbmng/index.d.ts +2 -2
  68. package/dist/sbmng/index.d.ts.map +1 -1
  69. package/dist/sbmng/index.js +1 -1
  70. package/dist/sbmng/index.js.map +1 -1
  71. package/dist/sbmng/schemas.gen.d.ts +97 -34
  72. package/dist/sbmng/schemas.gen.d.ts.map +1 -1
  73. package/dist/sbmng/schemas.gen.js +120 -49
  74. package/dist/sbmng/schemas.gen.js.map +1 -1
  75. package/dist/sbmng/sdk.gen.d.ts +7 -3
  76. package/dist/sbmng/sdk.gen.d.ts.map +1 -1
  77. package/dist/sbmng/sdk.gen.js +11 -3
  78. package/dist/sbmng/sdk.gen.js.map +1 -1
  79. package/dist/sbmng/types.gen.d.ts +82 -30
  80. package/dist/sbmng/types.gen.d.ts.map +1 -1
  81. package/dist/supabase/schema/index.d.ts +0 -8
  82. package/dist/supabase/schema/index.d.ts.map +1 -1
  83. package/dist/supabase/schema/index.js +0 -5
  84. package/dist/supabase/schema/index.js.map +1 -1
  85. package/dist/supabase/supabase-client.d.ts +900 -719
  86. package/dist/supabase/supabase-client.d.ts.map +1 -1
  87. package/dist/supabase/supabase.d.ts +1836 -1474
  88. package/dist/supabase/supabase.d.ts.map +1 -1
  89. package/dist/supabase/use-sb-query/use-rpc-query.d.ts.map +1 -1
  90. package/dist/supabase/use-sb-query/use-rpc-query.js +2 -1
  91. package/dist/supabase/use-sb-query/use-rpc-query.js.map +1 -1
  92. package/dist/types/database.schemas.d.ts +999 -920
  93. package/dist/types/database.schemas.d.ts.map +1 -1
  94. package/dist/types/database.schemas.js +739 -435
  95. package/dist/types/database.schemas.js.map +1 -1
  96. package/dist/types/database.types.d.ts +919 -736
  97. package/dist/types/database.types.d.ts.map +1 -1
  98. package/dist/types/database.types.js +18 -2
  99. package/dist/types/database.types.js.map +1 -1
  100. package/dist/types/index.d.ts +35 -3
  101. package/dist/types/index.d.ts.map +1 -1
  102. package/dist/types/index.js +4 -1
  103. package/dist/types/index.js.map +1 -1
  104. package/package.json +4 -3
  105. package/src/gomtmapi/@tanstack/react-query.gen.ts +3 -185
  106. package/src/gomtmapi/index.ts +2 -2
  107. package/src/gomtmapi/schemas.gen.ts +14 -356
  108. package/src/gomtmapi/sdk.gen.ts +2 -144
  109. package/src/gomtmapi/types.gen.ts +10 -492
  110. package/src/gomtmapi/zod.gen.ts +4 -263
  111. package/src/mtgate_api/@tanstack/react-query.gen.ts +2 -20
  112. package/src/mtgate_api/index.ts +2 -2
  113. package/src/mtgate_api/sdk.gen.ts +1 -6
  114. package/src/mtgate_api/types.gen.ts +0 -7
  115. package/src/mtgate_api/zod.gen.ts +0 -6
  116. package/src/mtmai_api/index.ts +2 -2
  117. package/src/openclaw/client-info.ts +0 -9
  118. package/src/openclaw/device-auth-utils.ts +7 -12
  119. package/src/openclaw/device-auth.ts +5 -2
  120. package/src/openclaw/device-identity.ts +2 -2
  121. package/src/openclaw/gateway.ts +96 -50
  122. package/src/sbmng/@tanstack/react-query.gen.ts +25 -7
  123. package/src/sbmng/index.ts +2 -2
  124. package/src/sbmng/schemas.gen.ts +121 -49
  125. package/src/sbmng/sdk.gen.ts +13 -4
  126. package/src/sbmng/types.gen.ts +87 -30
  127. package/src/supabase/schema/index.ts +0 -5
  128. package/src/supabase/use-sb-query/use-rpc-query.ts +2 -1
  129. package/src/types/database.schemas.ts +948 -598
  130. package/src/types/database.types.ts +864 -674
  131. package/src/types/index.ts +20 -4
  132. package/dist/api_hatchet/@tanstack/react-query.gen.d.ts +0 -3017
  133. package/dist/api_hatchet/@tanstack/react-query.gen.d.ts.map +0 -1
  134. package/dist/api_hatchet/@tanstack/react-query.gen.js +0 -2776
  135. package/dist/api_hatchet/@tanstack/react-query.gen.js.map +0 -1
  136. package/dist/api_hatchet/client/client.gen.d.ts +0 -3
  137. package/dist/api_hatchet/client/client.gen.d.ts.map +0 -1
  138. package/dist/api_hatchet/client/client.gen.js +0 -236
  139. package/dist/api_hatchet/client/client.gen.js.map +0 -1
  140. package/dist/api_hatchet/client/index.d.ts +0 -9
  141. package/dist/api_hatchet/client/index.d.ts.map +0 -1
  142. package/dist/api_hatchet/client/index.js +0 -7
  143. package/dist/api_hatchet/client/index.js.map +0 -1
  144. package/dist/api_hatchet/client/types.gen.d.ts +0 -118
  145. package/dist/api_hatchet/client/types.gen.d.ts.map +0 -1
  146. package/dist/api_hatchet/client/types.gen.js +0 -3
  147. package/dist/api_hatchet/client/types.gen.js.map +0 -1
  148. package/dist/api_hatchet/client/utils.gen.d.ts +0 -34
  149. package/dist/api_hatchet/client/utils.gen.d.ts.map +0 -1
  150. package/dist/api_hatchet/client/utils.gen.js +0 -232
  151. package/dist/api_hatchet/client/utils.gen.js.map +0 -1
  152. package/dist/api_hatchet/client.gen.d.ts +0 -13
  153. package/dist/api_hatchet/client.gen.d.ts.map +0 -1
  154. package/dist/api_hatchet/client.gen.js +0 -4
  155. package/dist/api_hatchet/client.gen.js.map +0 -1
  156. package/dist/api_hatchet/core/auth.gen.d.ts +0 -19
  157. package/dist/api_hatchet/core/auth.gen.d.ts.map +0 -1
  158. package/dist/api_hatchet/core/auth.gen.js +0 -15
  159. package/dist/api_hatchet/core/auth.gen.js.map +0 -1
  160. package/dist/api_hatchet/core/bodySerializer.gen.d.ts +0 -26
  161. package/dist/api_hatchet/core/bodySerializer.gen.d.ts.map +0 -1
  162. package/dist/api_hatchet/core/bodySerializer.gen.js +0 -58
  163. package/dist/api_hatchet/core/bodySerializer.gen.js.map +0 -1
  164. package/dist/api_hatchet/core/params.gen.d.ts +0 -44
  165. package/dist/api_hatchet/core/params.gen.d.ts.map +0 -1
  166. package/dist/api_hatchet/core/params.gen.js +0 -101
  167. package/dist/api_hatchet/core/params.gen.js.map +0 -1
  168. package/dist/api_hatchet/core/pathSerializer.gen.d.ts +0 -34
  169. package/dist/api_hatchet/core/pathSerializer.gen.d.ts.map +0 -1
  170. package/dist/api_hatchet/core/pathSerializer.gen.js +0 -115
  171. package/dist/api_hatchet/core/pathSerializer.gen.js.map +0 -1
  172. package/dist/api_hatchet/core/queryKeySerializer.gen.d.ts +0 -19
  173. package/dist/api_hatchet/core/queryKeySerializer.gen.d.ts.map +0 -1
  174. package/dist/api_hatchet/core/queryKeySerializer.gen.js +0 -100
  175. package/dist/api_hatchet/core/queryKeySerializer.gen.js.map +0 -1
  176. package/dist/api_hatchet/core/serverSentEvents.gen.d.ts +0 -72
  177. package/dist/api_hatchet/core/serverSentEvents.gen.d.ts.map +0 -1
  178. package/dist/api_hatchet/core/serverSentEvents.gen.js +0 -138
  179. package/dist/api_hatchet/core/serverSentEvents.gen.js.map +0 -1
  180. package/dist/api_hatchet/core/types.gen.d.ts +0 -79
  181. package/dist/api_hatchet/core/types.gen.d.ts.map +0 -1
  182. package/dist/api_hatchet/core/types.gen.js +0 -3
  183. package/dist/api_hatchet/core/types.gen.js.map +0 -1
  184. package/dist/api_hatchet/core/utils.gen.d.ts +0 -20
  185. package/dist/api_hatchet/core/utils.gen.d.ts.map +0 -1
  186. package/dist/api_hatchet/core/utils.gen.js +0 -88
  187. package/dist/api_hatchet/core/utils.gen.js.map +0 -1
  188. package/dist/api_hatchet/index.d.ts +0 -3
  189. package/dist/api_hatchet/index.d.ts.map +0 -1
  190. package/dist/api_hatchet/index.js +0 -4
  191. package/dist/api_hatchet/index.js.map +0 -1
  192. package/dist/api_hatchet/schemas.gen.d.ts +0 -4068
  193. package/dist/api_hatchet/schemas.gen.d.ts.map +0 -1
  194. package/dist/api_hatchet/schemas.gen.js +0 -4743
  195. package/dist/api_hatchet/schemas.gen.js.map +0 -1
  196. package/dist/api_hatchet/sdk.gen.d.ts +0 -784
  197. package/dist/api_hatchet/sdk.gen.d.ts.map +0 -1
  198. package/dist/api_hatchet/sdk.gen.js +0 -1849
  199. package/dist/api_hatchet/sdk.gen.js.map +0 -1
  200. package/dist/api_hatchet/types.gen.d.ts +0 -6861
  201. package/dist/api_hatchet/types.gen.d.ts.map +0 -1
  202. package/dist/api_hatchet/types.gen.js +0 -209
  203. package/dist/api_hatchet/types.gen.js.map +0 -1
  204. package/dist/api_hatchet/zod.gen.d.ts +0 -10429
  205. package/dist/api_hatchet/zod.gen.d.ts.map +0 -1
  206. package/dist/api_hatchet/zod.gen.js +0 -2766
  207. package/dist/api_hatchet/zod.gen.js.map +0 -1
  208. package/dist/openclaw/uuid.d.ts +0 -6
  209. package/dist/openclaw/uuid.d.ts.map +0 -1
  210. package/dist/openclaw/uuid.js +0 -39
  211. package/dist/openclaw/uuid.js.map +0 -1
  212. package/dist/types/rpc.schemas.d.ts +0 -52
  213. package/dist/types/rpc.schemas.d.ts.map +0 -1
  214. package/dist/types/rpc.schemas.js +0 -108
  215. package/dist/types/rpc.schemas.js.map +0 -1
  216. package/src/api_hatchet/@tanstack/react-query.gen.ts +0 -3025
  217. package/src/api_hatchet/client/client.gen.ts +0 -311
  218. package/src/api_hatchet/client/index.ts +0 -25
  219. package/src/api_hatchet/client/types.gen.ts +0 -241
  220. package/src/api_hatchet/client/utils.gen.ts +0 -332
  221. package/src/api_hatchet/client.gen.ts +0 -16
  222. package/src/api_hatchet/core/auth.gen.ts +0 -42
  223. package/src/api_hatchet/core/bodySerializer.gen.ts +0 -100
  224. package/src/api_hatchet/core/params.gen.ts +0 -176
  225. package/src/api_hatchet/core/pathSerializer.gen.ts +0 -181
  226. package/src/api_hatchet/core/queryKeySerializer.gen.ts +0 -136
  227. package/src/api_hatchet/core/serverSentEvents.gen.ts +0 -266
  228. package/src/api_hatchet/core/types.gen.ts +0 -118
  229. package/src/api_hatchet/core/utils.gen.ts +0 -143
  230. package/src/api_hatchet/index.ts +0 -4
  231. package/src/api_hatchet/schemas.gen.ts +0 -4961
  232. package/src/api_hatchet/sdk.gen.ts +0 -1994
  233. package/src/api_hatchet/types.gen.ts +0 -7688
  234. package/src/api_hatchet/zod.gen.ts +0 -3230
  235. package/src/openclaw/uuid.ts +0 -48
  236. package/src/types/rpc.schemas.ts +0 -142
@@ -221,42 +221,6 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
221
221
  };
222
222
  Relationships: [];
223
223
  };
224
- agents: {
225
- Row: {
226
- config: import("../types/database.types").Json | null;
227
- created_at: string;
228
- description: string | null;
229
- id: string;
230
- instruction: string | null;
231
- max_step: number | null;
232
- runtime: string | null;
233
- tools: string | null;
234
- updated_at: string;
235
- };
236
- Insert: {
237
- config?: import("../types/database.types").Json | null;
238
- created_at?: string;
239
- description?: string | null;
240
- id: string;
241
- instruction?: string | null;
242
- max_step?: number | null;
243
- runtime?: string | null;
244
- tools?: string | null;
245
- updated_at?: string;
246
- };
247
- Update: {
248
- config?: import("../types/database.types").Json | null;
249
- created_at?: string;
250
- description?: string | null;
251
- id?: string;
252
- instruction?: string | null;
253
- max_step?: number | null;
254
- runtime?: string | null;
255
- tools?: string | null;
256
- updated_at?: string;
257
- };
258
- Relationships: [];
259
- };
260
224
  audit_assets: {
261
225
  Row: {
262
226
  content: string;
@@ -665,6 +629,39 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
665
629
  };
666
630
  Relationships: [];
667
631
  };
632
+ cleanup_policies: {
633
+ Row: {
634
+ cleanup_function: string;
635
+ created_at: string;
636
+ enabled: boolean;
637
+ id: string;
638
+ policy_name: string;
639
+ retention_days: number;
640
+ table_name: string;
641
+ updated_at: string;
642
+ };
643
+ Insert: {
644
+ cleanup_function: string;
645
+ created_at?: string;
646
+ enabled?: boolean;
647
+ id?: string;
648
+ policy_name: string;
649
+ retention_days?: number;
650
+ table_name: string;
651
+ updated_at?: string;
652
+ };
653
+ Update: {
654
+ cleanup_function?: string;
655
+ created_at?: string;
656
+ enabled?: boolean;
657
+ id?: string;
658
+ policy_name?: string;
659
+ retention_days?: number;
660
+ table_name?: string;
661
+ updated_at?: string;
662
+ };
663
+ Relationships: [];
664
+ };
668
665
  cloud_accounts: {
669
666
  Row: {
670
667
  access_token: string | null;
@@ -771,7 +768,6 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
771
768
  name: string;
772
769
  port: number;
773
770
  provider: string;
774
- status: Database["public"]["Enums"]["compute_node_status"] | null;
775
771
  updated_at: string;
776
772
  user_id: string;
777
773
  username: string | null;
@@ -785,7 +781,6 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
785
781
  name: string;
786
782
  port?: number;
787
783
  provider?: string;
788
- status?: Database["public"]["Enums"]["compute_node_status"] | null;
789
784
  updated_at?: string;
790
785
  user_id?: string;
791
786
  username?: string | null;
@@ -799,7 +794,6 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
799
794
  name?: string;
800
795
  port?: number;
801
796
  provider?: string;
802
- status?: Database["public"]["Enums"]["compute_node_status"] | null;
803
797
  updated_at?: string;
804
798
  user_id?: string;
805
799
  username?: string | null;
@@ -980,6 +974,60 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
980
974
  referencedColumns: ["id"];
981
975
  }];
982
976
  };
977
+ openclaws: {
978
+ Row: {
979
+ config: import("../types/database.types").Json;
980
+ created_at: string;
981
+ desired_status: Database["public"]["Enums"]["openclaw_status"];
982
+ id: string;
983
+ metadata: import("../types/database.types").Json | null;
984
+ name: string | null;
985
+ resolved_config: import("../types/database.types").Json;
986
+ server_id: string | null;
987
+ state: import("../types/database.types").Json | null;
988
+ status: Database["public"]["Enums"]["openclaw_status"];
989
+ status_reason: string | null;
990
+ updated_at: string;
991
+ user_id: string;
992
+ };
993
+ Insert: {
994
+ config?: import("../types/database.types").Json;
995
+ created_at?: string;
996
+ desired_status?: Database["public"]["Enums"]["openclaw_status"];
997
+ id?: string;
998
+ metadata?: import("../types/database.types").Json | null;
999
+ name?: string | null;
1000
+ resolved_config?: import("../types/database.types").Json;
1001
+ server_id?: string | null;
1002
+ state?: import("../types/database.types").Json | null;
1003
+ status?: Database["public"]["Enums"]["openclaw_status"];
1004
+ status_reason?: string | null;
1005
+ updated_at?: string;
1006
+ user_id?: string;
1007
+ };
1008
+ Update: {
1009
+ config?: import("../types/database.types").Json;
1010
+ created_at?: string;
1011
+ desired_status?: Database["public"]["Enums"]["openclaw_status"];
1012
+ id?: string;
1013
+ metadata?: import("../types/database.types").Json | null;
1014
+ name?: string | null;
1015
+ resolved_config?: import("../types/database.types").Json;
1016
+ server_id?: string | null;
1017
+ state?: import("../types/database.types").Json | null;
1018
+ status?: Database["public"]["Enums"]["openclaw_status"];
1019
+ status_reason?: string | null;
1020
+ updated_at?: string;
1021
+ user_id?: string;
1022
+ };
1023
+ Relationships: [{
1024
+ foreignKeyName: "openclaws_server_id_fkey";
1025
+ columns: ["server_id"];
1026
+ isOneToOne: false;
1027
+ referencedRelation: "servers";
1028
+ referencedColumns: ["id"];
1029
+ }];
1030
+ };
983
1031
  outreach_messages: {
984
1032
  Row: {
985
1033
  content: string | null;
@@ -1216,37 +1264,22 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
1216
1264
  config: import("../types/database.types").Json | null;
1217
1265
  created_at: string;
1218
1266
  id: string;
1219
- is_public: boolean | null;
1220
- is_shared: boolean | null;
1221
- name: string | null;
1222
1267
  state: import("../types/database.types").Json | null;
1223
- status: Database["public"]["Enums"]["server_status"] | null;
1224
1268
  updated_at: string;
1225
- user_id: string | null;
1226
1269
  };
1227
1270
  Insert: {
1228
1271
  config?: import("../types/database.types").Json | null;
1229
1272
  created_at?: string;
1230
1273
  id: string;
1231
- is_public?: boolean | null;
1232
- is_shared?: boolean | null;
1233
- name?: string | null;
1234
1274
  state?: import("../types/database.types").Json | null;
1235
- status?: Database["public"]["Enums"]["server_status"] | null;
1236
1275
  updated_at?: string;
1237
- user_id?: string | null;
1238
1276
  };
1239
1277
  Update: {
1240
1278
  config?: import("../types/database.types").Json | null;
1241
1279
  created_at?: string;
1242
1280
  id?: string;
1243
- is_public?: boolean | null;
1244
- is_shared?: boolean | null;
1245
- name?: string | null;
1246
1281
  state?: import("../types/database.types").Json | null;
1247
- status?: Database["public"]["Enums"]["server_status"] | null;
1248
1282
  updated_at?: string;
1249
- user_id?: string | null;
1250
1283
  };
1251
1284
  Relationships: [];
1252
1285
  };
@@ -1628,27 +1661,6 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
1628
1661
  };
1629
1662
  Views: { [_ in never]: never; };
1630
1663
  Functions: {
1631
- _sys_config_get: {
1632
- Args: {
1633
- p_key: string;
1634
- };
1635
- Returns: import("../types/database.types").Json;
1636
- };
1637
- action_tool_query: {
1638
- Args: {
1639
- p_prefix?: string;
1640
- };
1641
- Returns: import("../types/database.types").Json;
1642
- };
1643
- action_tool_reply_to_user: {
1644
- Args: {
1645
- p_actions?: import("../types/database.types").Json;
1646
- p_chat_id?: string;
1647
- p_text?: string;
1648
- p_user_id?: string;
1649
- };
1650
- Returns: import("../types/database.types").Json;
1651
- };
1652
1664
  adk_agent_list: {
1653
1665
  Args: never;
1654
1666
  Returns: {
@@ -1684,35 +1696,6 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
1684
1696
  };
1685
1697
  Returns: import("../types/database.types").Json;
1686
1698
  };
1687
- adk_artifact_list_keys: {
1688
- Args: {
1689
- p_app_name: string;
1690
- p_session_id: string;
1691
- p_user_id: string;
1692
- };
1693
- Returns: Database["public"]["CompositeTypes"]["adk_artifact_key_record"][];
1694
- SetofOptions: {
1695
- from: "*";
1696
- to: "adk_artifact_key_record";
1697
- isOneToOne: false;
1698
- isSetofReturn: true;
1699
- };
1700
- };
1701
- adk_artifact_list_versions_meta: {
1702
- Args: {
1703
- p_app_name: string;
1704
- p_filename: string;
1705
- p_session_id: string;
1706
- p_user_id: string;
1707
- };
1708
- Returns: Database["public"]["CompositeTypes"]["adk_artifact_meta_record"][];
1709
- SetofOptions: {
1710
- from: "*";
1711
- to: "adk_artifact_meta_record";
1712
- isOneToOne: false;
1713
- isSetofReturn: true;
1714
- };
1715
- };
1716
1699
  adk_artifact_save: {
1717
1700
  Args: {
1718
1701
  p_app_name: string;
@@ -1787,12 +1770,6 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
1787
1770
  p_usage_metadata?: import("../types/database.types").Json;
1788
1771
  p_user_id?: string;
1789
1772
  };
1790
- Returns: import("../types/database.types").Json;
1791
- };
1792
- adk_event_upsert_from_json: {
1793
- Args: {
1794
- p_payload: import("../types/database.types").Json;
1795
- };
1796
1773
  Returns: {
1797
1774
  actions: import("../types/database.types").Json | null;
1798
1775
  app_name: string | null;
@@ -1818,12 +1795,12 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
1818
1795
  updated_at: string;
1819
1796
  usage_metadata: import("../types/database.types").Json | null;
1820
1797
  user_id: string | null;
1821
- };
1798
+ }[];
1822
1799
  SetofOptions: {
1823
1800
  from: "*";
1824
1801
  to: "adk_events";
1825
- isOneToOne: true;
1826
- isSetofReturn: false;
1802
+ isOneToOne: false;
1803
+ isSetofReturn: true;
1827
1804
  };
1828
1805
  };
1829
1806
  adk_quick_start_list: {
@@ -1922,14 +1899,6 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
1922
1899
  };
1923
1900
  Returns: import("../types/database.types").Json;
1924
1901
  };
1925
- agent_tool_exec_read_sql: {
1926
- Args: {
1927
- p_max_chars?: number;
1928
- p_max_rows?: number;
1929
- sql_query: string;
1930
- };
1931
- Returns: string;
1932
- };
1933
1902
  audit_artifact_list: {
1934
1903
  Args: {
1935
1904
  p_project_id: string;
@@ -1958,9 +1927,9 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
1958
1927
  Args: {
1959
1928
  p_cursor?: string;
1960
1929
  p_cursor_id?: string;
1961
- p_kw?: string;
1962
1930
  p_limit?: number;
1963
1931
  p_project_id: string;
1932
+ p_search?: string;
1964
1933
  };
1965
1934
  Returns: {
1966
1935
  content: string;
@@ -1983,9 +1952,9 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
1983
1952
  Args: {
1984
1953
  p_cursor?: string;
1985
1954
  p_cursor_id?: string;
1986
- p_kw?: string;
1987
1955
  p_limit?: number;
1988
1956
  p_project_id: string;
1957
+ p_search?: string;
1989
1958
  };
1990
1959
  Returns: {
1991
1960
  ai_analysis: string | null;
@@ -2047,13 +2016,18 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
2047
2016
  Args: {
2048
2017
  p_id: string;
2049
2018
  };
2050
- Returns: Database["public"]["CompositeTypes"]["audit_project_record"][];
2051
- SetofOptions: {
2052
- from: "*";
2053
- to: "audit_project_record";
2054
- isOneToOne: false;
2055
- isSetofReturn: true;
2056
- };
2019
+ Returns: {
2020
+ config: import("../types/database.types").Json;
2021
+ created_at: string;
2022
+ id: string;
2023
+ name: string;
2024
+ repo_branch: string;
2025
+ repo_url: string;
2026
+ target: string;
2027
+ updated_at: string;
2028
+ user_id: string;
2029
+ worker_id: string;
2030
+ }[];
2057
2031
  };
2058
2032
  audit_project_list: {
2059
2033
  Args: {
@@ -2061,28 +2035,38 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
2061
2035
  p_page_no?: number;
2062
2036
  p_page_size?: number;
2063
2037
  };
2064
- Returns: Database["public"]["CompositeTypes"]["audit_project_record"][];
2065
- SetofOptions: {
2066
- from: "*";
2067
- to: "audit_project_record";
2068
- isOneToOne: false;
2069
- isSetofReturn: true;
2070
- };
2038
+ Returns: {
2039
+ config: import("../types/database.types").Json;
2040
+ created_at: string;
2041
+ id: string;
2042
+ name: string;
2043
+ repo_branch: string;
2044
+ repo_url: string;
2045
+ target: string;
2046
+ updated_at: string;
2047
+ user_id: string;
2048
+ worker_id: string;
2049
+ }[];
2071
2050
  };
2072
2051
  audit_project_list_cursor: {
2073
2052
  Args: {
2074
2053
  p_cursor?: string;
2075
2054
  p_cursor_id?: string;
2076
- p_kw?: string;
2077
2055
  p_limit?: number;
2056
+ p_search?: string;
2078
2057
  };
2079
- Returns: Database["public"]["CompositeTypes"]["audit_project_record"][];
2080
- SetofOptions: {
2081
- from: "*";
2082
- to: "audit_project_record";
2083
- isOneToOne: false;
2084
- isSetofReturn: true;
2085
- };
2058
+ Returns: {
2059
+ config: import("../types/database.types").Json;
2060
+ created_at: string;
2061
+ id: string;
2062
+ name: string;
2063
+ repo_branch: string;
2064
+ repo_url: string;
2065
+ target: string;
2066
+ updated_at: string;
2067
+ user_id: string;
2068
+ worker_id: string;
2069
+ }[];
2086
2070
  };
2087
2071
  audit_project_upsert: {
2088
2072
  Args: {
@@ -2094,7 +2078,18 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
2094
2078
  p_target?: string;
2095
2079
  p_worker_id?: string;
2096
2080
  };
2097
- Returns: string;
2081
+ Returns: {
2082
+ config: import("../types/database.types").Json;
2083
+ created_at: string;
2084
+ id: string;
2085
+ name: string;
2086
+ repo_branch: string;
2087
+ repo_url: string;
2088
+ target: string;
2089
+ updated_at: string;
2090
+ user_id: string;
2091
+ worker_id: string;
2092
+ }[];
2098
2093
  };
2099
2094
  audit_skill_list: {
2100
2095
  Args: {
@@ -2140,13 +2135,22 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
2140
2135
  Args: {
2141
2136
  p_id: string;
2142
2137
  };
2143
- Returns: Database["public"]["CompositeTypes"]["browser_record"][];
2144
- SetofOptions: {
2145
- from: "*";
2146
- to: "browser_record";
2147
- isOneToOne: false;
2148
- isSetofReturn: true;
2149
- };
2138
+ Returns: {
2139
+ browser_api_url: string;
2140
+ config: import("../types/database.types").Json;
2141
+ created_at: string;
2142
+ description: string;
2143
+ id: string;
2144
+ is_running: boolean;
2145
+ profile_id: string;
2146
+ provider: string;
2147
+ provider_config: import("../types/database.types").Json;
2148
+ sandbox_id: string;
2149
+ title: string;
2150
+ updated_at: string;
2151
+ vnc_url: string;
2152
+ worker_name: string;
2153
+ }[];
2150
2154
  };
2151
2155
  browser_list: {
2152
2156
  Args: {
@@ -2154,13 +2158,22 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
2154
2158
  p_page_no?: number;
2155
2159
  p_page_size?: number;
2156
2160
  };
2157
- Returns: Database["public"]["CompositeTypes"]["browser_record"][];
2158
- SetofOptions: {
2159
- from: "*";
2160
- to: "browser_record";
2161
- isOneToOne: false;
2162
- isSetofReturn: true;
2163
- };
2161
+ Returns: {
2162
+ browser_api_url: string;
2163
+ config: import("../types/database.types").Json;
2164
+ created_at: string;
2165
+ description: string;
2166
+ id: string;
2167
+ is_running: boolean;
2168
+ profile_id: string;
2169
+ provider: string;
2170
+ provider_config: import("../types/database.types").Json;
2171
+ sandbox_id: string;
2172
+ title: string;
2173
+ updated_at: string;
2174
+ vnc_url: string;
2175
+ worker_name: string;
2176
+ }[];
2164
2177
  };
2165
2178
  browser_update_state: {
2166
2179
  Args: {
@@ -2179,13 +2192,22 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
2179
2192
  p_provider_config?: import("../types/database.types").Json;
2180
2193
  p_title?: string;
2181
2194
  };
2182
- Returns: Database["public"]["CompositeTypes"]["browser_record"][];
2183
- SetofOptions: {
2184
- from: "*";
2185
- to: "browser_record";
2186
- isOneToOne: false;
2187
- isSetofReturn: true;
2188
- };
2195
+ Returns: {
2196
+ browser_api_url: string;
2197
+ config: import("../types/database.types").Json;
2198
+ created_at: string;
2199
+ description: string;
2200
+ id: string;
2201
+ is_running: boolean;
2202
+ profile_id: string;
2203
+ provider: string;
2204
+ provider_config: import("../types/database.types").Json;
2205
+ sandbox_id: string;
2206
+ title: string;
2207
+ updated_at: string;
2208
+ vnc_url: string;
2209
+ worker_name: string;
2210
+ }[];
2189
2211
  };
2190
2212
  campaign_delete: {
2191
2213
  Args: {
@@ -2197,13 +2219,23 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
2197
2219
  Args: {
2198
2220
  p_id: string;
2199
2221
  };
2200
- Returns: Database["public"]["CompositeTypes"]["campaign_record"][];
2201
- SetofOptions: {
2202
- from: "*";
2203
- to: "campaign_record";
2204
- isOneToOne: false;
2205
- isSetofReturn: true;
2206
- };
2222
+ Returns: {
2223
+ completed_at: string;
2224
+ config: import("../types/database.types").Json;
2225
+ created_at: string;
2226
+ description: string;
2227
+ id: string;
2228
+ message_template: string;
2229
+ name: string;
2230
+ platform: string;
2231
+ schedule: import("../types/database.types").Json;
2232
+ started_at: string;
2233
+ stats: import("../types/database.types").Json;
2234
+ status: string;
2235
+ target_filter: import("../types/database.types").Json;
2236
+ updated_at: string;
2237
+ user_id: string;
2238
+ }[];
2207
2239
  };
2208
2240
  campaign_list_cursor: {
2209
2241
  Args: {
@@ -2212,13 +2244,23 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
2212
2244
  p_search?: string;
2213
2245
  p_status?: string;
2214
2246
  };
2215
- Returns: Database["public"]["CompositeTypes"]["campaign_record"][];
2216
- SetofOptions: {
2217
- from: "*";
2218
- to: "campaign_record";
2219
- isOneToOne: false;
2220
- isSetofReturn: true;
2221
- };
2247
+ Returns: {
2248
+ completed_at: string;
2249
+ config: import("../types/database.types").Json;
2250
+ created_at: string;
2251
+ description: string;
2252
+ id: string;
2253
+ message_template: string;
2254
+ name: string;
2255
+ platform: string;
2256
+ schedule: import("../types/database.types").Json;
2257
+ started_at: string;
2258
+ stats: import("../types/database.types").Json;
2259
+ status: string;
2260
+ target_filter: import("../types/database.types").Json;
2261
+ updated_at: string;
2262
+ user_id: string;
2263
+ }[];
2222
2264
  };
2223
2265
  campaign_pause: {
2224
2266
  Args: {
@@ -2243,13 +2285,23 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
2243
2285
  p_schedule?: import("../types/database.types").Json;
2244
2286
  p_target_filter?: import("../types/database.types").Json;
2245
2287
  };
2246
- Returns: Database["public"]["CompositeTypes"]["campaign_record"][];
2247
- SetofOptions: {
2248
- from: "*";
2249
- to: "campaign_record";
2250
- isOneToOne: false;
2251
- isSetofReturn: true;
2252
- };
2288
+ Returns: {
2289
+ completed_at: string;
2290
+ config: import("../types/database.types").Json;
2291
+ created_at: string;
2292
+ description: string;
2293
+ id: string;
2294
+ message_template: string;
2295
+ name: string;
2296
+ platform: string;
2297
+ schedule: import("../types/database.types").Json;
2298
+ started_at: string;
2299
+ stats: import("../types/database.types").Json;
2300
+ status: string;
2301
+ target_filter: import("../types/database.types").Json;
2302
+ updated_at: string;
2303
+ user_id: string;
2304
+ }[];
2253
2305
  };
2254
2306
  chat_get: {
2255
2307
  Args: {
@@ -2372,21 +2424,25 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
2372
2424
  updated_at: string | null;
2373
2425
  user_id: string | null;
2374
2426
  visibility: Database["public"]["Enums"]["chat_visibility"];
2375
- };
2427
+ }[];
2376
2428
  SetofOptions: {
2377
2429
  from: "*";
2378
2430
  to: "chats";
2379
- isOneToOne: true;
2380
- isSetofReturn: false;
2431
+ isOneToOne: false;
2432
+ isSetofReturn: true;
2381
2433
  };
2382
2434
  };
2383
2435
  check_account_rate_limit: {
2384
2436
  Args: {
2385
2437
  p_account_id: string;
2386
- p_campaign_config: import("../types/database.types").Json;
2438
+ p_campaign_config?: import("../types/database.types").Json;
2387
2439
  };
2388
2440
  Returns: boolean;
2389
2441
  };
2442
+ cleanup_servers_ingress: {
2443
+ Args: never;
2444
+ Returns: number;
2445
+ };
2390
2446
  cloud_account_bulk_create: {
2391
2447
  Args: {
2392
2448
  p_account_names: string[];
@@ -2448,10 +2504,10 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
2448
2504
  cloud_account_list_cursor: {
2449
2505
  Args: {
2450
2506
  p_cursor?: string;
2451
- p_kw?: string;
2452
2507
  p_limit?: number;
2453
2508
  p_platform_name?: string;
2454
- p_status?: Database["public"]["Enums"]["cloud_account_status"];
2509
+ p_search?: string;
2510
+ p_status?: string;
2455
2511
  };
2456
2512
  Returns: Database["public"]["CompositeTypes"]["cloud_account_record"][];
2457
2513
  SetofOptions: {
@@ -2519,6 +2575,12 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
2519
2575
  isSetofReturn: true;
2520
2576
  };
2521
2577
  };
2578
+ code_run_result_parse: {
2579
+ Args: {
2580
+ p_result: import("../types/database.types").Json;
2581
+ };
2582
+ Returns: import("../types/database.types").Json;
2583
+ };
2522
2584
  compute_node_delete: {
2523
2585
  Args: {
2524
2586
  p_id: string;
@@ -2527,59 +2589,77 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
2527
2589
  };
2528
2590
  compute_node_get: {
2529
2591
  Args: {
2530
- p_id: string;
2531
- };
2532
- Returns: Database["public"]["CompositeTypes"]["compute_node_record"][];
2533
- SetofOptions: {
2534
- from: "*";
2535
- to: "compute_node_record";
2536
- isOneToOne: false;
2537
- isSetofReturn: true;
2592
+ p_id?: string;
2593
+ p_user_id?: string;
2538
2594
  };
2595
+ Returns: {
2596
+ auth_secret: string | null;
2597
+ created_at: string | null;
2598
+ host: string | null;
2599
+ id: string | null;
2600
+ is_public: boolean | null;
2601
+ name: string | null;
2602
+ port: number | null;
2603
+ provider: string | null;
2604
+ updated_at: string | null;
2605
+ user_id: string | null;
2606
+ username: string | null;
2607
+ }[];
2539
2608
  };
2540
2609
  compute_node_get_secret: {
2541
2610
  Args: {
2542
2611
  target_id: string;
2543
2612
  };
2544
- Returns: Database["public"]["CompositeTypes"]["compute_node_secret_record"][];
2545
- SetofOptions: {
2546
- from: "*";
2547
- to: "compute_node_secret_record";
2548
- isOneToOne: false;
2549
- isSetofReturn: true;
2550
- };
2613
+ Returns: {
2614
+ auth_secret: string;
2615
+ host: string;
2616
+ port: number;
2617
+ username: string;
2618
+ }[];
2551
2619
  };
2552
2620
  compute_node_list: {
2553
2621
  Args: {
2554
- p_kw?: string;
2555
- p_page_no?: number;
2556
- p_page_size?: number;
2557
- };
2558
- Returns: Database["public"]["CompositeTypes"]["compute_node_list_record"][];
2559
- SetofOptions: {
2560
- from: "*";
2561
- to: "compute_node_list_record";
2562
- isOneToOne: false;
2563
- isSetofReturn: true;
2622
+ p_user_id?: string;
2564
2623
  };
2624
+ Returns: {
2625
+ auth_secret: string | null;
2626
+ created_at: string | null;
2627
+ host: string | null;
2628
+ id: string | null;
2629
+ is_public: boolean | null;
2630
+ name: string | null;
2631
+ port: number | null;
2632
+ provider: string | null;
2633
+ updated_at: string | null;
2634
+ user_id: string | null;
2635
+ username: string | null;
2636
+ }[];
2565
2637
  };
2566
2638
  compute_node_upsert: {
2567
2639
  Args: {
2568
2640
  p_auth_secret?: string;
2569
- p_host: string;
2570
- p_id: string;
2571
- p_name: string;
2641
+ p_host?: string;
2642
+ p_id?: string;
2643
+ p_is_public?: boolean;
2644
+ p_name?: string;
2572
2645
  p_port?: number;
2573
- p_provider: string;
2646
+ p_provider?: string;
2574
2647
  p_username?: string;
2648
+ p_worker_count?: number;
2575
2649
  };
2576
- Returns: Database["public"]["CompositeTypes"]["compute_node_record"][];
2577
- SetofOptions: {
2578
- from: "*";
2579
- to: "compute_node_record";
2580
- isOneToOne: false;
2581
- isSetofReturn: true;
2582
- };
2650
+ Returns: {
2651
+ auth_secret: string | null;
2652
+ created_at: string | null;
2653
+ host: string | null;
2654
+ id: string | null;
2655
+ is_public: boolean | null;
2656
+ name: string | null;
2657
+ port: number | null;
2658
+ provider: string | null;
2659
+ updated_at: string | null;
2660
+ user_id: string | null;
2661
+ username: string | null;
2662
+ }[];
2583
2663
  };
2584
2664
  compute_server_public_url: {
2585
2665
  Args: {
@@ -2616,13 +2696,22 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
2616
2696
  p_platform?: string;
2617
2697
  p_telegram_id?: number;
2618
2698
  };
2619
- Returns: Database["public"]["CompositeTypes"]["contact_record"][];
2620
- SetofOptions: {
2621
- from: "*";
2622
- to: "contact_record";
2623
- isOneToOne: false;
2624
- isSetofReturn: true;
2625
- };
2699
+ Returns: {
2700
+ created_at: string;
2701
+ email: string;
2702
+ id: string;
2703
+ metadata: import("../types/database.types").Json;
2704
+ name: string;
2705
+ phone: string;
2706
+ platform: string;
2707
+ source: string;
2708
+ status: string;
2709
+ tags: string[];
2710
+ telegram_id: number;
2711
+ telegram_username: string;
2712
+ updated_at: string;
2713
+ user_id: string;
2714
+ }[];
2626
2715
  };
2627
2716
  contact_list_cursor: {
2628
2717
  Args: {
@@ -2633,13 +2722,22 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
2633
2722
  p_status?: string;
2634
2723
  p_tags?: string[];
2635
2724
  };
2636
- Returns: Database["public"]["CompositeTypes"]["contact_record"][];
2637
- SetofOptions: {
2638
- from: "*";
2639
- to: "contact_record";
2640
- isOneToOne: false;
2641
- isSetofReturn: true;
2642
- };
2725
+ Returns: {
2726
+ created_at: string;
2727
+ email: string;
2728
+ id: string;
2729
+ metadata: import("../types/database.types").Json;
2730
+ name: string;
2731
+ phone: string;
2732
+ platform: string;
2733
+ source: string;
2734
+ status: string;
2735
+ tags: string[];
2736
+ telegram_id: number;
2737
+ telegram_username: string;
2738
+ updated_at: string;
2739
+ user_id: string;
2740
+ }[];
2643
2741
  };
2644
2742
  contact_list_tags: {
2645
2743
  Args: never;
@@ -2666,13 +2764,22 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
2666
2764
  p_telegram_id?: number;
2667
2765
  p_telegram_username?: string;
2668
2766
  };
2669
- Returns: Database["public"]["CompositeTypes"]["contact_record"][];
2670
- SetofOptions: {
2671
- from: "*";
2672
- to: "contact_record";
2673
- isOneToOne: false;
2674
- isSetofReturn: true;
2675
- };
2767
+ Returns: {
2768
+ created_at: string;
2769
+ email: string;
2770
+ id: string;
2771
+ metadata: import("../types/database.types").Json;
2772
+ name: string;
2773
+ phone: string;
2774
+ platform: string;
2775
+ source: string;
2776
+ status: string;
2777
+ tags: string[];
2778
+ telegram_id: number;
2779
+ telegram_username: string;
2780
+ updated_at: string;
2781
+ user_id: string;
2782
+ }[];
2676
2783
  };
2677
2784
  create_notification: {
2678
2785
  Args: {
@@ -2695,41 +2802,39 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
2695
2802
  };
2696
2803
  Returns: import("../types/database.types").Json;
2697
2804
  };
2698
- dba_lint_scan: {
2805
+ get_github_app_public_info: {
2699
2806
  Args: never;
2700
- Returns: Database["public"]["CompositeTypes"]["dba_lint_issue"][];
2701
- SetofOptions: {
2702
- from: "*";
2703
- to: "dba_lint_issue";
2704
- isOneToOne: false;
2705
- isSetofReturn: true;
2706
- };
2807
+ Returns: import("../types/database.types").Json;
2707
2808
  };
2708
- debug_role: {
2809
+ get_jwt_role: {
2709
2810
  Args: never;
2710
2811
  Returns: string;
2711
2812
  };
2712
- debug_sec_def: {
2813
+ get_system_primary_domain: {
2713
2814
  Args: never;
2714
2815
  Returns: string;
2715
2816
  };
2716
- get_encryption_key: {
2717
- Args: never;
2817
+ get_user_id_from_token: {
2818
+ Args: {
2819
+ p_token: string;
2820
+ };
2718
2821
  Returns: string;
2719
2822
  };
2720
- get_github_app_public_info: {
2721
- Args: never;
2722
- Returns: import("../types/database.types").Json;
2823
+ get_worker_subdomain: {
2824
+ Args: {
2825
+ p_worker_id: string;
2826
+ };
2827
+ Returns: string;
2723
2828
  };
2724
- get_jwt_role: {
2829
+ github_list_installation_repos: {
2725
2830
  Args: never;
2726
- Returns: string;
2831
+ Returns: import("../types/database.types").Json;
2727
2832
  };
2728
- get_user_id_from_token: {
2833
+ github_list_repo_branches: {
2729
2834
  Args: {
2730
- p_token: string;
2835
+ p_repo_full_name: string;
2731
2836
  };
2732
- Returns: string;
2837
+ Returns: import("../types/database.types").Json;
2733
2838
  };
2734
2839
  gomtm_model_count: {
2735
2840
  Args: {
@@ -2761,12 +2866,12 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
2761
2866
  provider: string;
2762
2867
  updated_at: string;
2763
2868
  user_id: string;
2764
- };
2869
+ }[];
2765
2870
  SetofOptions: {
2766
2871
  from: "*";
2767
2872
  to: "gomtm_models";
2768
- isOneToOne: true;
2769
- isSetofReturn: false;
2873
+ isOneToOne: false;
2874
+ isSetofReturn: true;
2770
2875
  };
2771
2876
  };
2772
2877
  gomtm_model_list_cursor: {
@@ -2799,15 +2904,15 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
2799
2904
  };
2800
2905
  gomtm_model_upsert: {
2801
2906
  Args: {
2802
- p_api_base?: string;
2803
- p_api_key?: string;
2804
- p_config?: import("../types/database.types").Json;
2805
- p_id?: string;
2806
- p_is_active?: boolean;
2807
- p_linked_account_id?: string;
2808
- p_model?: string;
2809
- p_name?: string;
2810
- p_provider?: string;
2907
+ p_api_base: string;
2908
+ p_api_key: string;
2909
+ p_config: import("../types/database.types").Json;
2910
+ p_id: string;
2911
+ p_is_active: boolean;
2912
+ p_linked_account_id: string;
2913
+ p_model: string;
2914
+ p_name: string;
2915
+ p_provider: string;
2811
2916
  };
2812
2917
  Returns: {
2813
2918
  api_base: string | null;
@@ -2822,45 +2927,13 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
2822
2927
  provider: string;
2823
2928
  updated_at: string;
2824
2929
  user_id: string;
2825
- };
2930
+ }[];
2826
2931
  SetofOptions: {
2827
2932
  from: "*";
2828
2933
  to: "gomtm_models";
2829
- isOneToOne: true;
2830
- isSetofReturn: false;
2831
- };
2832
- };
2833
- handle_http_response_health: {
2834
- Args: {
2835
- p_body: import("../types/database.types").Json;
2836
- p_request_id: number;
2837
- p_success: boolean;
2838
- };
2839
- Returns: boolean;
2840
- };
2841
- handle_http_response_outreach: {
2842
- Args: {
2843
- p_body: import("../types/database.types").Json;
2844
- p_request_id: number;
2845
- p_success: boolean;
2846
- };
2847
- Returns: boolean;
2848
- };
2849
- handle_http_response_task: {
2850
- Args: {
2851
- p_body: import("../types/database.types").Json;
2852
- p_request_id: number;
2853
- p_success: boolean;
2854
- };
2855
- Returns: boolean;
2856
- };
2857
- handle_http_response_telegram: {
2858
- Args: {
2859
- p_body: import("../types/database.types").Json;
2860
- p_request_id: number;
2861
- p_success: boolean;
2934
+ isOneToOne: false;
2935
+ isSetofReturn: true;
2862
2936
  };
2863
- Returns: boolean;
2864
2937
  };
2865
2938
  handle_job_outreach_process: {
2866
2939
  Args: {
@@ -2887,10 +2960,21 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
2887
2960
  };
2888
2961
  Returns: boolean;
2889
2962
  };
2963
+ http_fetch: {
2964
+ Args: {
2965
+ p_body?: import("../types/database.types").Json;
2966
+ p_headers?: import("../types/database.types").Json;
2967
+ p_max_retries?: number;
2968
+ p_method: string;
2969
+ p_source_tag?: string;
2970
+ p_timeout_ms?: number;
2971
+ p_url: string;
2972
+ };
2973
+ Returns: import("../types/database.types").Json;
2974
+ };
2890
2975
  install_script: {
2891
2976
  Args: {
2892
2977
  p_instance_id?: string;
2893
- p_token?: string;
2894
2978
  p_version?: string;
2895
2979
  };
2896
2980
  Returns: string;
@@ -2913,26 +2997,30 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
2913
2997
  Args: {
2914
2998
  p_instance_id: string;
2915
2999
  };
2916
- Returns: Database["public"]["CompositeTypes"]["tag_record"][];
2917
- SetofOptions: {
2918
- from: "*";
2919
- to: "tag_record";
2920
- isOneToOne: false;
2921
- isSetofReturn: true;
2922
- };
3000
+ Returns: {
3001
+ color: string;
3002
+ created_at: string;
3003
+ id: string;
3004
+ instance_count: number;
3005
+ name: string;
3006
+ updated_at: string;
3007
+ user_id: string;
3008
+ }[];
2923
3009
  };
2924
3010
  instance_tags_set: {
2925
3011
  Args: {
2926
3012
  p_instance_id: string;
2927
3013
  p_tag_ids: string[];
2928
3014
  };
2929
- Returns: Database["public"]["CompositeTypes"]["tag_record"][];
2930
- SetofOptions: {
2931
- from: "*";
2932
- to: "tag_record";
2933
- isOneToOne: false;
2934
- isSetofReturn: true;
2935
- };
3015
+ Returns: {
3016
+ color: string;
3017
+ created_at: string;
3018
+ id: string;
3019
+ instance_count: number;
3020
+ name: string;
3021
+ updated_at: string;
3022
+ user_id: string;
3023
+ }[];
2936
3024
  };
2937
3025
  job_queue_list_dlq: {
2938
3026
  Args: {
@@ -2971,6 +3059,33 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
2971
3059
  };
2972
3060
  Returns: import("../types/database.types").Json;
2973
3061
  };
3062
+ jsonb_deep_merge: {
3063
+ Args: {
3064
+ a: import("../types/database.types").Json;
3065
+ b: import("../types/database.types").Json;
3066
+ };
3067
+ Returns: import("../types/database.types").Json;
3068
+ };
3069
+ log_list_unified: {
3070
+ Args: {
3071
+ p_cursor?: string;
3072
+ p_event_type?: string;
3073
+ p_level_max?: string;
3074
+ p_limit?: number;
3075
+ p_module?: string;
3076
+ p_resource_id?: string;
3077
+ p_resource_type?: string;
3078
+ p_scope?: string;
3079
+ p_source?: string;
3080
+ };
3081
+ Returns: Database["public"]["CompositeTypes"]["log_unified_record"][];
3082
+ SetofOptions: {
3083
+ from: "*";
3084
+ to: "log_unified_record";
3085
+ isOneToOne: false;
3086
+ isSetofReturn: true;
3087
+ };
3088
+ };
2974
3089
  notification_complete_action: {
2975
3090
  Args: {
2976
3091
  p_id: string;
@@ -2995,10 +3110,28 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
2995
3110
  };
2996
3111
  notification_get_pending_actions: {
2997
3112
  Args: never;
2998
- Returns: Database["public"]["CompositeTypes"]["user_notification_record"][];
3113
+ Returns: {
3114
+ action_completed_at: string | null;
3115
+ action_payload: import("../types/database.types").Json | null;
3116
+ action_type: string | null;
3117
+ created_at: string;
3118
+ dismissed_at: string | null;
3119
+ expires_at: string | null;
3120
+ id: string;
3121
+ is_read: boolean;
3122
+ message: string | null;
3123
+ notification_type: string;
3124
+ priority: string;
3125
+ read_at: string | null;
3126
+ source_id: string | null;
3127
+ source_type: string | null;
3128
+ title: string;
3129
+ updated_at: string;
3130
+ user_id: string;
3131
+ }[];
2999
3132
  SetofOptions: {
3000
3133
  from: "*";
3001
- to: "user_notification_record";
3134
+ to: "user_notifications";
3002
3135
  isOneToOne: false;
3003
3136
  isSetofReturn: true;
3004
3137
  };
@@ -3012,10 +3145,28 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
3012
3145
  p_source_type?: string;
3013
3146
  p_unread_only?: boolean;
3014
3147
  };
3015
- Returns: Database["public"]["CompositeTypes"]["user_notification_record"][];
3148
+ Returns: {
3149
+ action_completed_at: string | null;
3150
+ action_payload: import("../types/database.types").Json | null;
3151
+ action_type: string | null;
3152
+ created_at: string;
3153
+ dismissed_at: string | null;
3154
+ expires_at: string | null;
3155
+ id: string;
3156
+ is_read: boolean;
3157
+ message: string | null;
3158
+ notification_type: string;
3159
+ priority: string;
3160
+ read_at: string | null;
3161
+ source_id: string | null;
3162
+ source_type: string | null;
3163
+ title: string;
3164
+ updated_at: string;
3165
+ user_id: string;
3166
+ }[];
3016
3167
  SetofOptions: {
3017
3168
  from: "*";
3018
- to: "user_notification_record";
3169
+ to: "user_notifications";
3019
3170
  isOneToOne: false;
3020
3171
  isSetofReturn: true;
3021
3172
  };
@@ -3027,6 +3178,182 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
3027
3178
  };
3028
3179
  Returns: number;
3029
3180
  };
3181
+ openclaw_assign_server: {
3182
+ Args: {
3183
+ p_openclaw_id: string;
3184
+ p_user_id: string;
3185
+ };
3186
+ Returns: string;
3187
+ };
3188
+ openclaw_build_config: {
3189
+ Args: {
3190
+ p_openclaw_id: string;
3191
+ p_override_config?: import("../types/database.types").Json;
3192
+ p_override_server_id?: string;
3193
+ };
3194
+ Returns: import("../types/database.types").Json;
3195
+ };
3196
+ openclaw_failover: {
3197
+ Args: {
3198
+ p_server_id: string;
3199
+ };
3200
+ Returns: undefined;
3201
+ };
3202
+ openclaw_metadata_apply_action_contract: {
3203
+ Args: {
3204
+ p_action_status: string;
3205
+ p_completed_at?: string;
3206
+ p_debug_action: string;
3207
+ p_delete_pending?: boolean;
3208
+ p_message?: string;
3209
+ p_metadata: import("../types/database.types").Json;
3210
+ p_requested_at?: string;
3211
+ p_user_action: string;
3212
+ };
3213
+ Returns: import("../types/database.types").Json;
3214
+ };
3215
+ openclaw_reconcile_due: {
3216
+ Args: {
3217
+ p_limit?: number;
3218
+ };
3219
+ Returns: number;
3220
+ };
3221
+ openclaw_reconcile_one: {
3222
+ Args: {
3223
+ p_openclaw_id: string;
3224
+ };
3225
+ Returns: {
3226
+ config: import("../types/database.types").Json;
3227
+ created_at: string;
3228
+ desired_status: Database["public"]["Enums"]["openclaw_status"];
3229
+ id: string;
3230
+ metadata: import("../types/database.types").Json | null;
3231
+ name: string | null;
3232
+ resolved_config: import("../types/database.types").Json;
3233
+ server_id: string | null;
3234
+ state: import("../types/database.types").Json | null;
3235
+ status: Database["public"]["Enums"]["openclaw_status"];
3236
+ status_reason: string | null;
3237
+ updated_at: string;
3238
+ user_id: string;
3239
+ };
3240
+ SetofOptions: {
3241
+ from: "*";
3242
+ to: "openclaws";
3243
+ isOneToOne: true;
3244
+ isSetofReturn: false;
3245
+ };
3246
+ };
3247
+ openclaw_refresh_resolved_config: {
3248
+ Args: {
3249
+ p_openclaw_id: string;
3250
+ p_override_config?: import("../types/database.types").Json;
3251
+ p_override_server_id?: string;
3252
+ };
3253
+ Returns: import("../types/database.types").Json;
3254
+ };
3255
+ openclaws_delete: {
3256
+ Args: {
3257
+ p_id: string;
3258
+ };
3259
+ Returns: {
3260
+ config: import("../types/database.types").Json;
3261
+ created_at: string;
3262
+ desired_status: Database["public"]["Enums"]["openclaw_status"];
3263
+ id: string;
3264
+ metadata: import("../types/database.types").Json;
3265
+ name: string;
3266
+ server_id: string;
3267
+ state: import("../types/database.types").Json;
3268
+ status: Database["public"]["Enums"]["openclaw_status"];
3269
+ status_reason: string;
3270
+ updated_at: string;
3271
+ user_id: string;
3272
+ }[];
3273
+ };
3274
+ openclaws_get: {
3275
+ Args: {
3276
+ p_id: string;
3277
+ };
3278
+ Returns: {
3279
+ config: import("../types/database.types").Json;
3280
+ created_at: string;
3281
+ desired_status: Database["public"]["Enums"]["openclaw_status"];
3282
+ id: string;
3283
+ metadata: import("../types/database.types").Json;
3284
+ name: string;
3285
+ server_id: string;
3286
+ state: import("../types/database.types").Json;
3287
+ status: Database["public"]["Enums"]["openclaw_status"];
3288
+ status_reason: string;
3289
+ updated_at: string;
3290
+ user_id: string;
3291
+ }[];
3292
+ };
3293
+ openclaws_list_cursor: {
3294
+ Args: {
3295
+ p_cursor?: string;
3296
+ p_limit?: number;
3297
+ p_search?: string;
3298
+ p_status?: Database["public"]["Enums"]["openclaw_status"];
3299
+ };
3300
+ Returns: {
3301
+ config: import("../types/database.types").Json;
3302
+ created_at: string;
3303
+ desired_status: Database["public"]["Enums"]["openclaw_status"];
3304
+ id: string;
3305
+ metadata: import("../types/database.types").Json;
3306
+ name: string;
3307
+ server_id: string;
3308
+ state: import("../types/database.types").Json;
3309
+ status: Database["public"]["Enums"]["openclaw_status"];
3310
+ status_reason: string;
3311
+ updated_at: string;
3312
+ user_id: string;
3313
+ }[];
3314
+ };
3315
+ openclaws_request_action: {
3316
+ Args: {
3317
+ p_action: string;
3318
+ p_id: string;
3319
+ };
3320
+ Returns: {
3321
+ config: import("../types/database.types").Json;
3322
+ created_at: string;
3323
+ desired_status: Database["public"]["Enums"]["openclaw_status"];
3324
+ id: string;
3325
+ metadata: import("../types/database.types").Json;
3326
+ name: string;
3327
+ server_id: string;
3328
+ state: import("../types/database.types").Json;
3329
+ status: Database["public"]["Enums"]["openclaw_status"];
3330
+ status_reason: string;
3331
+ updated_at: string;
3332
+ user_id: string;
3333
+ }[];
3334
+ };
3335
+ openclaws_upsert: {
3336
+ Args: {
3337
+ p_config?: import("../types/database.types").Json;
3338
+ p_id?: string;
3339
+ p_metadata?: import("../types/database.types").Json;
3340
+ p_name?: string;
3341
+ };
3342
+ Returns: {
3343
+ config: import("../types/database.types").Json;
3344
+ created_at: string;
3345
+ desired_status: Database["public"]["Enums"]["openclaw_status"];
3346
+ id: string;
3347
+ metadata: import("../types/database.types").Json;
3348
+ name: string;
3349
+ server_id: string;
3350
+ state: import("../types/database.types").Json;
3351
+ status: Database["public"]["Enums"]["openclaw_status"];
3352
+ status_reason: string;
3353
+ updated_at: string;
3354
+ user_id: string;
3355
+ }[];
3356
+ };
3030
3357
  outreach_process_pending_tasks: {
3031
3358
  Args: {
3032
3359
  p_campaign_id?: string;
@@ -3034,6 +3361,13 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
3034
3361
  };
3035
3362
  Returns: number;
3036
3363
  };
3364
+ outreach_process_pending_tasks_sync: {
3365
+ Args: {
3366
+ p_campaign_id?: string;
3367
+ p_limit?: number;
3368
+ };
3369
+ Returns: number;
3370
+ };
3037
3371
  outreach_retry_failed_tasks: {
3038
3372
  Args: {
3039
3373
  p_campaign_id?: string;
@@ -3047,13 +3381,22 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
3047
3381
  p_offset?: number;
3048
3382
  p_status?: string;
3049
3383
  };
3050
- Returns: Database["public"]["CompositeTypes"]["outreach_task_record"][];
3051
- SetofOptions: {
3052
- from: "*";
3053
- to: "outreach_task_record";
3054
- isOneToOne: false;
3055
- isSetofReturn: true;
3056
- };
3384
+ Returns: {
3385
+ campaign_id: string;
3386
+ cloud_account_id: string;
3387
+ contact_id: string;
3388
+ created_at: string;
3389
+ error_message: string;
3390
+ executed_at: string;
3391
+ id: string;
3392
+ metadata: import("../types/database.types").Json;
3393
+ priority: number;
3394
+ retry_count: number;
3395
+ scheduled_at: string;
3396
+ status: string;
3397
+ updated_at: string;
3398
+ user_id: string;
3399
+ }[];
3057
3400
  };
3058
3401
  proxy_delete: {
3059
3402
  Args: {
@@ -3065,13 +3408,17 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
3065
3408
  Args: {
3066
3409
  p_id: string;
3067
3410
  };
3068
- Returns: Database["public"]["CompositeTypes"]["proxy_record"][];
3069
- SetofOptions: {
3070
- from: "*";
3071
- to: "proxy_record";
3072
- isOneToOne: false;
3073
- isSetofReturn: true;
3074
- };
3411
+ Returns: {
3412
+ created_at: string;
3413
+ description: string;
3414
+ enabled: boolean;
3415
+ id: string;
3416
+ name: string;
3417
+ type: string;
3418
+ updated_at: string;
3419
+ url: string;
3420
+ user_id: string;
3421
+ }[];
3075
3422
  };
3076
3423
  proxy_list: {
3077
3424
  Args: {
@@ -3079,13 +3426,17 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
3079
3426
  p_page_no?: number;
3080
3427
  p_page_size?: number;
3081
3428
  };
3082
- Returns: Database["public"]["CompositeTypes"]["proxy_record"][];
3083
- SetofOptions: {
3084
- from: "*";
3085
- to: "proxy_record";
3086
- isOneToOne: false;
3087
- isSetofReturn: true;
3088
- };
3429
+ Returns: {
3430
+ created_at: string;
3431
+ description: string;
3432
+ enabled: boolean;
3433
+ id: string;
3434
+ name: string;
3435
+ type: string;
3436
+ updated_at: string;
3437
+ url: string;
3438
+ user_id: string;
3439
+ }[];
3089
3440
  };
3090
3441
  proxy_upsert: {
3091
3442
  Args: {
@@ -3096,13 +3447,17 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
3096
3447
  p_type: string;
3097
3448
  p_url: string;
3098
3449
  };
3099
- Returns: Database["public"]["CompositeTypes"]["proxy_record"][];
3100
- SetofOptions: {
3101
- from: "*";
3102
- to: "proxy_record";
3103
- isOneToOne: false;
3104
- isSetofReturn: true;
3105
- };
3450
+ Returns: {
3451
+ created_at: string;
3452
+ description: string;
3453
+ enabled: boolean;
3454
+ id: string;
3455
+ name: string;
3456
+ type: string;
3457
+ updated_at: string;
3458
+ url: string;
3459
+ user_id: string;
3460
+ }[];
3106
3461
  };
3107
3462
  resource_delete: {
3108
3463
  Args: {
@@ -3142,16 +3497,6 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
3142
3497
  p_title?: string;
3143
3498
  p_type?: string;
3144
3499
  };
3145
- Returns: string;
3146
- };
3147
- sandbox_find_active: {
3148
- Args: never;
3149
- Returns: import("../types/database.types").Json;
3150
- };
3151
- sandbox_get: {
3152
- Args: {
3153
- resource_id?: string;
3154
- };
3155
3500
  Returns: {
3156
3501
  created_at: string;
3157
3502
  data: import("../types/database.types").Json | null;
@@ -3174,87 +3519,120 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
3174
3519
  isSetofReturn: true;
3175
3520
  };
3176
3521
  };
3177
- server_instance_bootstrap: {
3522
+ sandbox_find_active: {
3523
+ Args: never;
3524
+ Returns: import("../types/database.types").Json;
3525
+ };
3526
+ script_exec: {
3178
3527
  Args: {
3179
- p_instance_id: string;
3180
- };
3181
- Returns: Database["public"]["CompositeTypes"]["bootstrap_result"][];
3182
- SetofOptions: {
3183
- from: "*";
3184
- to: "bootstrap_result";
3185
- isOneToOne: false;
3186
- isSetofReturn: true;
3528
+ p_options?: import("../types/database.types").Json;
3529
+ p_script: import("../types/database.types").Json;
3530
+ p_server_id: string;
3187
3531
  };
3532
+ Returns: import("../types/database.types").Json;
3188
3533
  };
3189
- server_instance_delete: {
3534
+ script_get_content: {
3190
3535
  Args: {
3191
- p_id: string;
3536
+ p_file_path: string;
3537
+ p_git_ref?: string;
3192
3538
  };
3193
- Returns: undefined;
3539
+ Returns: string;
3194
3540
  };
3195
- server_instance_get: {
3541
+ server_delete: {
3196
3542
  Args: {
3197
3543
  p_id: string;
3544
+ p_shutdown_gracefully?: boolean;
3198
3545
  };
3199
- Returns: Database["public"]["CompositeTypes"]["server_instance_record"][];
3200
- SetofOptions: {
3201
- from: "*";
3202
- to: "server_instance_record";
3203
- isOneToOne: false;
3204
- isSetofReturn: true;
3546
+ Returns: import("../types/database.types").Json;
3547
+ };
3548
+ server_get: {
3549
+ Args: {
3550
+ p_server_id?: string;
3205
3551
  };
3552
+ Returns: {
3553
+ config: import("../types/database.types").Json;
3554
+ created_at: string;
3555
+ id: string;
3556
+ state: import("../types/database.types").Json;
3557
+ updated_at: string;
3558
+ }[];
3206
3559
  };
3207
- server_instance_list_cursor: {
3560
+ server_list_cursor: {
3208
3561
  Args: {
3209
3562
  p_cursor_id?: string;
3210
- p_cursor_is_shared?: boolean;
3211
3563
  p_cursor_updated_at?: string;
3212
- p_is_shared?: boolean;
3213
- p_kw?: string;
3214
3564
  p_limit?: number;
3215
- p_tag_ids?: string[];
3565
+ p_search?: string;
3216
3566
  };
3217
- Returns: Database["public"]["CompositeTypes"]["server_instance_record"][];
3567
+ Returns: {
3568
+ config: import("../types/database.types").Json | null;
3569
+ created_at: string;
3570
+ id: string;
3571
+ state: import("../types/database.types").Json | null;
3572
+ updated_at: string;
3573
+ }[];
3218
3574
  SetofOptions: {
3219
3575
  from: "*";
3220
- to: "server_instance_record";
3576
+ to: "servers";
3221
3577
  isOneToOne: false;
3222
3578
  isSetofReturn: true;
3223
3579
  };
3224
3580
  };
3225
- server_instance_probe: {
3581
+ server_mark_offline: {
3226
3582
  Args: {
3227
- p_instance_id: string;
3583
+ p_reason?: string;
3584
+ p_server_id: string;
3585
+ p_source?: string;
3586
+ };
3587
+ Returns: import("../types/database.types").Json;
3588
+ };
3589
+ server_status_apply_callback: {
3590
+ Args: {
3591
+ p_callback_token: string;
3592
+ p_payload: import("../types/database.types").Json;
3593
+ p_server_id: string;
3594
+ };
3595
+ Returns: import("../types/database.types").Json;
3596
+ };
3597
+ server_status_merge: {
3598
+ Args: {
3599
+ p_current_state: import("../types/database.types").Json;
3600
+ p_fact: import("../types/database.types").Json;
3601
+ };
3602
+ Returns: import("../types/database.types").Json;
3603
+ };
3604
+ server_status_reconcile: {
3605
+ Args: {
3606
+ p_server_id: string;
3607
+ };
3608
+ Returns: import("../types/database.types").Json;
3609
+ };
3610
+ server_status_reconcile_due: {
3611
+ Args: {
3612
+ p_limit?: number;
3613
+ };
3614
+ Returns: number;
3615
+ };
3616
+ server_tunnel_sync: {
3617
+ Args: {
3618
+ p_server_id: string;
3228
3619
  };
3229
3620
  Returns: undefined;
3230
3621
  };
3231
- server_instance_upsert: {
3622
+ server_upsert: {
3232
3623
  Args: {
3624
+ p_compute_node_id?: string;
3233
3625
  p_config?: import("../types/database.types").Json;
3234
3626
  p_id?: string;
3235
- p_is_public?: boolean;
3236
- p_is_shared?: boolean;
3237
- p_name?: string;
3238
3627
  p_state?: import("../types/database.types").Json;
3239
- p_status?: Database["public"]["Enums"]["server_status"];
3240
- };
3241
- Returns: Database["public"]["CompositeTypes"]["server_instance_record"][];
3242
- SetofOptions: {
3243
- from: "*";
3244
- to: "server_instance_record";
3245
- isOneToOne: false;
3246
- isSetofReturn: true;
3247
- };
3248
- };
3249
- service_health_summary: {
3250
- Args: never;
3251
- Returns: Database["public"]["CompositeTypes"]["service_health_record"][];
3252
- SetofOptions: {
3253
- from: "*";
3254
- to: "service_health_record";
3255
- isOneToOne: false;
3256
- isSetofReturn: true;
3257
3628
  };
3629
+ Returns: {
3630
+ config: import("../types/database.types").Json;
3631
+ created_at: string;
3632
+ id: string;
3633
+ state: import("../types/database.types").Json;
3634
+ updated_at: string;
3635
+ }[];
3258
3636
  };
3259
3637
  sys_config_get: {
3260
3638
  Args: {
@@ -3283,38 +3661,6 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
3283
3661
  };
3284
3662
  Returns: string;
3285
3663
  };
3286
- sys_get_db_schema: {
3287
- Args: {
3288
- p_excluded_tables?: string[];
3289
- p_include_comments?: boolean;
3290
- p_include_functions?: boolean;
3291
- };
3292
- Returns: string;
3293
- };
3294
- sys_init_queue: {
3295
- Args: {
3296
- name: string;
3297
- };
3298
- Returns: undefined;
3299
- };
3300
- sys_log_list: {
3301
- Args: {
3302
- p_cursor?: string;
3303
- p_event_type?: string;
3304
- p_level_max?: Database["public"]["Enums"]["sys_log_level"];
3305
- p_limit?: number;
3306
- p_module?: string;
3307
- p_resource_id?: string;
3308
- p_resource_type?: string;
3309
- };
3310
- Returns: Database["public"]["CompositeTypes"]["sys_log_record"][];
3311
- SetofOptions: {
3312
- from: "*";
3313
- to: "sys_log_record";
3314
- isOneToOne: false;
3315
- isSetofReturn: true;
3316
- };
3317
- };
3318
3664
  sys_log_validate_meta: {
3319
3665
  Args: {
3320
3666
  p_event_type: string;
@@ -3328,6 +3674,13 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
3328
3674
  };
3329
3675
  Returns: undefined;
3330
3676
  };
3677
+ system_cleanup: {
3678
+ Args: {
3679
+ p_dry_run?: boolean;
3680
+ p_policy_name?: string;
3681
+ };
3682
+ Returns: import("../types/database.types").Json;
3683
+ };
3331
3684
  system_config_public_delete: {
3332
3685
  Args: {
3333
3686
  p_key: string;
@@ -3371,13 +3724,15 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
3371
3724
  };
3372
3725
  tag_list: {
3373
3726
  Args: never;
3374
- Returns: Database["public"]["CompositeTypes"]["tag_record"][];
3375
- SetofOptions: {
3376
- from: "*";
3377
- to: "tag_record";
3378
- isOneToOne: false;
3379
- isSetofReturn: true;
3380
- };
3727
+ Returns: {
3728
+ color: string;
3729
+ created_at: string;
3730
+ id: string;
3731
+ instance_count: number;
3732
+ name: string;
3733
+ updated_at: string;
3734
+ user_id: string;
3735
+ }[];
3381
3736
  };
3382
3737
  tag_upsert: {
3383
3738
  Args: {
@@ -3385,13 +3740,15 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
3385
3740
  p_id?: string;
3386
3741
  p_name?: string;
3387
3742
  };
3388
- Returns: Database["public"]["CompositeTypes"]["tag_record"][];
3389
- SetofOptions: {
3390
- from: "*";
3391
- to: "tag_record";
3392
- isOneToOne: false;
3393
- isSetofReturn: true;
3394
- };
3743
+ Returns: {
3744
+ color: string;
3745
+ created_at: string;
3746
+ id: string;
3747
+ instance_count: number;
3748
+ name: string;
3749
+ updated_at: string;
3750
+ user_id: string;
3751
+ }[];
3395
3752
  };
3396
3753
  task_ack: {
3397
3754
  Args: {
@@ -3785,12 +4142,20 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
3785
4142
  p_account_id: string;
3786
4143
  p_use_sms?: boolean;
3787
4144
  };
3788
- Returns: undefined;
4145
+ Returns: Database["public"]["CompositeTypes"]["telegram_login_response"][];
4146
+ SetofOptions: {
4147
+ from: "*";
4148
+ to: "telegram_login_response";
4149
+ isOneToOne: false;
4150
+ isSetofReturn: true;
4151
+ };
3789
4152
  };
3790
- telegram_login_submit_2fa: {
4153
+ telegram_login_step_process: {
3791
4154
  Args: {
3792
4155
  p_account_id: string;
3793
- p_password: string;
4156
+ p_body: import("../types/database.types").Json;
4157
+ p_step: string;
4158
+ p_success: boolean;
3794
4159
  };
3795
4160
  Returns: undefined;
3796
4161
  };
@@ -3799,7 +4164,35 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
3799
4164
  p_account_id: string;
3800
4165
  p_code: string;
3801
4166
  };
3802
- Returns: undefined;
4167
+ Returns: Database["public"]["CompositeTypes"]["telegram_login_response"][];
4168
+ SetofOptions: {
4169
+ from: "*";
4170
+ to: "telegram_login_response";
4171
+ isOneToOne: false;
4172
+ isSetofReturn: true;
4173
+ };
4174
+ };
4175
+ telegram_login_submit_two_fa: {
4176
+ Args: {
4177
+ p_account_id: string;
4178
+ p_password: string;
4179
+ };
4180
+ Returns: Database["public"]["CompositeTypes"]["telegram_login_response"][];
4181
+ SetofOptions: {
4182
+ from: "*";
4183
+ to: "telegram_login_response";
4184
+ isOneToOne: false;
4185
+ isSetofReturn: true;
4186
+ };
4187
+ };
4188
+ telegram_server_post: {
4189
+ Args: {
4190
+ p_body: import("../types/database.types").Json;
4191
+ p_path: string;
4192
+ p_preferred_server_id: string;
4193
+ p_timeout?: string;
4194
+ };
4195
+ Returns: import("../types/database.types").Json;
3803
4196
  };
3804
4197
  traffic_log_delete: {
3805
4198
  Args: never;
@@ -3856,29 +4249,6 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
3856
4249
  };
3857
4250
  Returns: undefined;
3858
4251
  };
3859
- user_log_list: {
3860
- Args: {
3861
- p_page?: number;
3862
- p_page_size?: number;
3863
- };
3864
- Returns: {
3865
- content: string | null;
3866
- created_at: string | null;
3867
- event_type: string;
3868
- id: string;
3869
- level: string;
3870
- meta: import("../types/database.types").Json | null;
3871
- resource_id: string | null;
3872
- resource_type: string | null;
3873
- user_id: string;
3874
- }[];
3875
- SetofOptions: {
3876
- from: "*";
3877
- to: "user_logs";
3878
- isOneToOne: false;
3879
- isSetofReturn: true;
3880
- };
3881
- };
3882
4252
  user_log_record: {
3883
4253
  Args: {
3884
4254
  p_content: string;
@@ -3899,10 +4269,17 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
3899
4269
  };
3900
4270
  user_profile_get: {
3901
4271
  Args: never;
3902
- Returns: Database["public"]["CompositeTypes"]["user_profile_record"][];
4272
+ Returns: {
4273
+ avatar_url: string | null;
4274
+ full_name: string | null;
4275
+ id: string;
4276
+ updated_at: string | null;
4277
+ username: string | null;
4278
+ website: string | null;
4279
+ }[];
3903
4280
  SetofOptions: {
3904
4281
  from: "*";
3905
- to: "user_profile_record";
4282
+ to: "profiles";
3906
4283
  isOneToOne: false;
3907
4284
  isSetofReturn: true;
3908
4285
  };
@@ -3921,12 +4298,12 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
3921
4298
  updated_at: string | null;
3922
4299
  username: string | null;
3923
4300
  website: string | null;
3924
- };
4301
+ }[];
3925
4302
  SetofOptions: {
3926
4303
  from: "*";
3927
4304
  to: "profiles";
3928
- isOneToOne: true;
3929
- isSetofReturn: false;
4305
+ isOneToOne: false;
4306
+ isSetofReturn: true;
3930
4307
  };
3931
4308
  };
3932
4309
  user_role_delete: {
@@ -3956,80 +4333,20 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
3956
4333
  chat_role: "system" | "user" | "assistant" | "model" | "error" | "tool";
3957
4334
  chat_visibility: "private" | "public";
3958
4335
  cloud_account_status: "pending" | "active" | "token_expired" | "needs_reauth" | "quota_exceeded" | "suspended" | "disabled";
3959
- compute_node_status: "online" | "offline";
3960
- server_status: "created" | "online" | "offline" | "error";
4336
+ openclaw_status: "disabled" | "pending" | "starting" | "running" | "stopping" | "stopped" | "error" | "migrating";
3961
4337
  sys_log_level: "error" | "warn" | "info";
3962
4338
  task_code_type: "sql" | "bash" | "python" | "agent" | "javascript";
3963
4339
  task_status: "draft" | "pending" | "queued" | "running" | "completed" | "failed" | "cancelled" | "paused";
4340
+ telegram_login_state: "idle" | "wait_code" | "need_2fa" | "wait_password" | "success" | "failed";
3964
4341
  telegram_login_step: "pending" | "send_code" | "wait_code" | "verify_code" | "need_2fa" | "success" | "failed" | "fetch_info";
3965
4342
  };
3966
4343
  CompositeTypes: {
3967
- adk_artifact_key_record: {
3968
- filename: string | null;
3969
- };
3970
- adk_artifact_meta_record: {
3971
- version: number | null;
3972
- canonical_uri: string | null;
3973
- custom_metadata: import("../types/database.types").Json | null;
3974
- create_time: number | null;
3975
- mime_type: string | null;
3976
- };
3977
- audit_project_record: {
3978
- id: string | null;
3979
- created_at: string | null;
3980
- updated_at: string | null;
3981
- user_id: string | null;
3982
- name: string | null;
3983
- target: string | null;
3984
- repo_url: string | null;
3985
- repo_branch: string | null;
3986
- config: import("../types/database.types").Json | null;
3987
- worker_id: string | null;
3988
- };
3989
4344
  audit_project_stats_record: {
3990
4345
  asset_count: number | null;
3991
4346
  finding_count: number | null;
3992
4347
  high_risk_count: number | null;
3993
4348
  task_count: number | null;
3994
4349
  };
3995
- bootstrap_result: {
3996
- success: boolean | null;
3997
- error: string | null;
3998
- config: import("../types/database.types").Json | null;
3999
- };
4000
- browser_record: {
4001
- id: string | null;
4002
- created_at: string | null;
4003
- updated_at: string | null;
4004
- title: string | null;
4005
- description: string | null;
4006
- profile_id: string | null;
4007
- provider: string | null;
4008
- provider_config: import("../types/database.types").Json | null;
4009
- config: import("../types/database.types").Json | null;
4010
- sandbox_id: string | null;
4011
- vnc_url: string | null;
4012
- browser_api_url: string | null;
4013
- worker_name: string | null;
4014
- is_running: boolean | null;
4015
- };
4016
- campaign_record: {
4017
- id: string | null;
4018
- created_at: string | null;
4019
- updated_at: string | null;
4020
- started_at: string | null;
4021
- completed_at: string | null;
4022
- user_id: string | null;
4023
- name: string | null;
4024
- description: string | null;
4025
- platform: string | null;
4026
- status: string | null;
4027
- config: import("../types/database.types").Json | null;
4028
- message_template: string | null;
4029
- target_filter: import("../types/database.types").Json | null;
4030
- schedule: import("../types/database.types").Json | null;
4031
- stats: import("../types/database.types").Json | null;
4032
- };
4033
4350
  cloud_account_record: {
4034
4351
  id: string | null;
4035
4352
  created_at: string | null;
@@ -4055,98 +4372,23 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
4055
4372
  device_history: import("../types/database.types").Json[] | null;
4056
4373
  credentials: import("../types/database.types").Json | null;
4057
4374
  };
4058
- compute_node_list_record: {
4059
- id: string | null;
4060
- user_id: string | null;
4061
- name: string | null;
4062
- provider: string | null;
4063
- host: string | null;
4064
- port: number | null;
4065
- username: string | null;
4066
- auth_secret: string | null;
4067
- status: Database["public"]["Enums"]["compute_node_status"] | null;
4068
- worker_count: number | null;
4069
- updated_at: string | null;
4070
- is_public: boolean | null;
4071
- created_at: string | null;
4072
- full_count: number | null;
4073
- };
4074
- compute_node_record: {
4075
- id: string | null;
4076
- user_id: string | null;
4077
- name: string | null;
4078
- provider: string | null;
4079
- host: string | null;
4080
- port: number | null;
4081
- username: string | null;
4082
- auth_secret: string | null;
4083
- status: Database["public"]["Enums"]["compute_node_status"] | null;
4084
- worker_count: number | null;
4085
- updated_at: string | null;
4086
- is_public: boolean | null;
4087
- created_at: string | null;
4088
- };
4089
- compute_node_secret_record: {
4090
- host: string | null;
4091
- port: number | null;
4092
- username: string | null;
4093
- auth_secret: string | null;
4094
- };
4095
- contact_record: {
4096
- id: string | null;
4097
- created_at: string | null;
4098
- updated_at: string | null;
4099
- user_id: string | null;
4100
- name: string | null;
4101
- phone: string | null;
4102
- telegram_id: number | null;
4103
- telegram_username: string | null;
4104
- email: string | null;
4105
- platform: string | null;
4106
- source: string | null;
4107
- tags: string[] | null;
4108
- status: string | null;
4109
- metadata: import("../types/database.types").Json | null;
4110
- };
4111
- dba_lint_issue: {
4112
- object_type: string | null;
4113
- object_name: string | null;
4114
- issue_category: string | null;
4115
- issue: string | null;
4116
- suggestion: string | null;
4117
- severity: string | null;
4118
- };
4119
4375
  job_queue_dlq_record: {
4120
4376
  msg_id: number | null;
4121
4377
  read_ct: number | null;
4122
4378
  enqueued_at: string | null;
4123
4379
  message: import("../types/database.types").Json | null;
4124
4380
  };
4125
- outreach_task_record: {
4126
- id: string | null;
4127
- created_at: string | null;
4128
- updated_at: string | null;
4129
- user_id: string | null;
4130
- campaign_id: string | null;
4131
- contact_id: string | null;
4132
- cloud_account_id: string | null;
4133
- status: string | null;
4134
- priority: number | null;
4135
- scheduled_at: string | null;
4136
- executed_at: string | null;
4137
- retry_count: number | null;
4138
- error_message: string | null;
4139
- metadata: import("../types/database.types").Json | null;
4140
- };
4141
- proxy_record: {
4381
+ log_unified_record: {
4142
4382
  id: string | null;
4383
+ source: string | null;
4143
4384
  created_at: string | null;
4144
- updated_at: string | null;
4145
- name: string | null;
4146
- description: string | null;
4147
- url: string | null;
4148
- type: string | null;
4149
- enabled: boolean | null;
4385
+ event_type: string | null;
4386
+ level: string | null;
4387
+ module: string | null;
4388
+ content: string | null;
4389
+ meta: import("../types/database.types").Json | null;
4390
+ resource_type: string | null;
4391
+ resource_id: string | null;
4150
4392
  user_id: string | null;
4151
4393
  };
4152
4394
  resource_list_record: {
@@ -4159,73 +4401,12 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
4159
4401
  url: string | null;
4160
4402
  updated_at: string | null;
4161
4403
  };
4162
- server_instance_record: {
4163
- id: string | null;
4164
- name: string | null;
4165
- updated_at: string | null;
4166
- config: import("../types/database.types").Json | null;
4167
- status: Database["public"]["Enums"]["server_status"] | null;
4168
- is_public: boolean | null;
4169
- state: import("../types/database.types").Json | null;
4170
- created_at: string | null;
4171
- user_id: string | null;
4172
- is_shared: boolean | null;
4173
- };
4174
- service_health_record: {
4175
- module: string | null;
4176
- status: string | null;
4177
- last_error_at: string | null;
4178
- last_error_message: string | null;
4179
- error_count_24h: number | null;
4180
- };
4181
- sys_log_record: {
4182
- id: number | null;
4183
- created_at: string | null;
4184
- text: string | null;
4185
- level: Database["public"]["Enums"]["sys_log_level"] | null;
4186
- module: string | null;
4187
- event_type: string | null;
4188
- meta: import("../types/database.types").Json | null;
4189
- resource_type: string | null;
4190
- resource_id: string | null;
4191
- resource_name: string | null;
4192
- user_id: string | null;
4193
- };
4194
- tag_record: {
4195
- id: string | null;
4196
- name: string | null;
4197
- color: string | null;
4198
- user_id: string | null;
4199
- created_at: string | null;
4200
- updated_at: string | null;
4201
- instance_count: number | null;
4202
- };
4203
- user_notification_record: {
4204
- id: string | null;
4205
- created_at: string | null;
4206
- updated_at: string | null;
4207
- user_id: string | null;
4208
- title: string | null;
4209
- message: string | null;
4210
- notification_type: string | null;
4211
- priority: string | null;
4212
- source_type: string | null;
4213
- source_id: string | null;
4214
- action_type: string | null;
4215
- action_payload: import("../types/database.types").Json | null;
4216
- action_completed_at: string | null;
4217
- is_read: boolean | null;
4218
- read_at: string | null;
4219
- dismissed_at: string | null;
4220
- expires_at: string | null;
4221
- };
4222
- user_profile_record: {
4223
- id: string | null;
4224
- full_name: string | null;
4225
- username: string | null;
4226
- website: string | null;
4227
- avatar_url: string | null;
4228
- updated_at: string | null;
4404
+ telegram_login_response: {
4405
+ success: boolean | null;
4406
+ step: string | null;
4407
+ timeout_seconds: number | null;
4408
+ error_message: string | null;
4409
+ user_info: import("../types/database.types").Json | null;
4229
4410
  };
4230
4411
  };
4231
4412
  }, {
@@ -4449,42 +4630,6 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
4449
4630
  };
4450
4631
  Relationships: [];
4451
4632
  };
4452
- agents: {
4453
- Row: {
4454
- config: import("../types/database.types").Json | null;
4455
- created_at: string;
4456
- description: string | null;
4457
- id: string;
4458
- instruction: string | null;
4459
- max_step: number | null;
4460
- runtime: string | null;
4461
- tools: string | null;
4462
- updated_at: string;
4463
- };
4464
- Insert: {
4465
- config?: import("../types/database.types").Json | null;
4466
- created_at?: string;
4467
- description?: string | null;
4468
- id: string;
4469
- instruction?: string | null;
4470
- max_step?: number | null;
4471
- runtime?: string | null;
4472
- tools?: string | null;
4473
- updated_at?: string;
4474
- };
4475
- Update: {
4476
- config?: import("../types/database.types").Json | null;
4477
- created_at?: string;
4478
- description?: string | null;
4479
- id?: string;
4480
- instruction?: string | null;
4481
- max_step?: number | null;
4482
- runtime?: string | null;
4483
- tools?: string | null;
4484
- updated_at?: string;
4485
- };
4486
- Relationships: [];
4487
- };
4488
4633
  audit_assets: {
4489
4634
  Row: {
4490
4635
  content: string;
@@ -4893,6 +5038,39 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
4893
5038
  };
4894
5039
  Relationships: [];
4895
5040
  };
5041
+ cleanup_policies: {
5042
+ Row: {
5043
+ cleanup_function: string;
5044
+ created_at: string;
5045
+ enabled: boolean;
5046
+ id: string;
5047
+ policy_name: string;
5048
+ retention_days: number;
5049
+ table_name: string;
5050
+ updated_at: string;
5051
+ };
5052
+ Insert: {
5053
+ cleanup_function: string;
5054
+ created_at?: string;
5055
+ enabled?: boolean;
5056
+ id?: string;
5057
+ policy_name: string;
5058
+ retention_days?: number;
5059
+ table_name: string;
5060
+ updated_at?: string;
5061
+ };
5062
+ Update: {
5063
+ cleanup_function?: string;
5064
+ created_at?: string;
5065
+ enabled?: boolean;
5066
+ id?: string;
5067
+ policy_name?: string;
5068
+ retention_days?: number;
5069
+ table_name?: string;
5070
+ updated_at?: string;
5071
+ };
5072
+ Relationships: [];
5073
+ };
4896
5074
  cloud_accounts: {
4897
5075
  Row: {
4898
5076
  access_token: string | null;
@@ -4999,7 +5177,6 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
4999
5177
  name: string;
5000
5178
  port: number;
5001
5179
  provider: string;
5002
- status: Database["public"]["Enums"]["compute_node_status"] | null;
5003
5180
  updated_at: string;
5004
5181
  user_id: string;
5005
5182
  username: string | null;
@@ -5013,7 +5190,6 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
5013
5190
  name: string;
5014
5191
  port?: number;
5015
5192
  provider?: string;
5016
- status?: Database["public"]["Enums"]["compute_node_status"] | null;
5017
5193
  updated_at?: string;
5018
5194
  user_id?: string;
5019
5195
  username?: string | null;
@@ -5027,7 +5203,6 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
5027
5203
  name?: string;
5028
5204
  port?: number;
5029
5205
  provider?: string;
5030
- status?: Database["public"]["Enums"]["compute_node_status"] | null;
5031
5206
  updated_at?: string;
5032
5207
  user_id?: string;
5033
5208
  username?: string | null;
@@ -5208,6 +5383,60 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
5208
5383
  referencedColumns: ["id"];
5209
5384
  }];
5210
5385
  };
5386
+ openclaws: {
5387
+ Row: {
5388
+ config: import("../types/database.types").Json;
5389
+ created_at: string;
5390
+ desired_status: Database["public"]["Enums"]["openclaw_status"];
5391
+ id: string;
5392
+ metadata: import("../types/database.types").Json | null;
5393
+ name: string | null;
5394
+ resolved_config: import("../types/database.types").Json;
5395
+ server_id: string | null;
5396
+ state: import("../types/database.types").Json | null;
5397
+ status: Database["public"]["Enums"]["openclaw_status"];
5398
+ status_reason: string | null;
5399
+ updated_at: string;
5400
+ user_id: string;
5401
+ };
5402
+ Insert: {
5403
+ config?: import("../types/database.types").Json;
5404
+ created_at?: string;
5405
+ desired_status?: Database["public"]["Enums"]["openclaw_status"];
5406
+ id?: string;
5407
+ metadata?: import("../types/database.types").Json | null;
5408
+ name?: string | null;
5409
+ resolved_config?: import("../types/database.types").Json;
5410
+ server_id?: string | null;
5411
+ state?: import("../types/database.types").Json | null;
5412
+ status?: Database["public"]["Enums"]["openclaw_status"];
5413
+ status_reason?: string | null;
5414
+ updated_at?: string;
5415
+ user_id?: string;
5416
+ };
5417
+ Update: {
5418
+ config?: import("../types/database.types").Json;
5419
+ created_at?: string;
5420
+ desired_status?: Database["public"]["Enums"]["openclaw_status"];
5421
+ id?: string;
5422
+ metadata?: import("../types/database.types").Json | null;
5423
+ name?: string | null;
5424
+ resolved_config?: import("../types/database.types").Json;
5425
+ server_id?: string | null;
5426
+ state?: import("../types/database.types").Json | null;
5427
+ status?: Database["public"]["Enums"]["openclaw_status"];
5428
+ status_reason?: string | null;
5429
+ updated_at?: string;
5430
+ user_id?: string;
5431
+ };
5432
+ Relationships: [{
5433
+ foreignKeyName: "openclaws_server_id_fkey";
5434
+ columns: ["server_id"];
5435
+ isOneToOne: false;
5436
+ referencedRelation: "servers";
5437
+ referencedColumns: ["id"];
5438
+ }];
5439
+ };
5211
5440
  outreach_messages: {
5212
5441
  Row: {
5213
5442
  content: string | null;
@@ -5444,37 +5673,22 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
5444
5673
  config: import("../types/database.types").Json | null;
5445
5674
  created_at: string;
5446
5675
  id: string;
5447
- is_public: boolean | null;
5448
- is_shared: boolean | null;
5449
- name: string | null;
5450
5676
  state: import("../types/database.types").Json | null;
5451
- status: Database["public"]["Enums"]["server_status"] | null;
5452
5677
  updated_at: string;
5453
- user_id: string | null;
5454
5678
  };
5455
5679
  Insert: {
5456
5680
  config?: import("../types/database.types").Json | null;
5457
5681
  created_at?: string;
5458
5682
  id: string;
5459
- is_public?: boolean | null;
5460
- is_shared?: boolean | null;
5461
- name?: string | null;
5462
5683
  state?: import("../types/database.types").Json | null;
5463
- status?: Database["public"]["Enums"]["server_status"] | null;
5464
5684
  updated_at?: string;
5465
- user_id?: string | null;
5466
5685
  };
5467
5686
  Update: {
5468
5687
  config?: import("../types/database.types").Json | null;
5469
5688
  created_at?: string;
5470
5689
  id?: string;
5471
- is_public?: boolean | null;
5472
- is_shared?: boolean | null;
5473
- name?: string | null;
5474
5690
  state?: import("../types/database.types").Json | null;
5475
- status?: Database["public"]["Enums"]["server_status"] | null;
5476
5691
  updated_at?: string;
5477
- user_id?: string | null;
5478
5692
  };
5479
5693
  Relationships: [];
5480
5694
  };
@@ -5856,27 +6070,6 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
5856
6070
  };
5857
6071
  Views: { [_ in never]: never; };
5858
6072
  Functions: {
5859
- _sys_config_get: {
5860
- Args: {
5861
- p_key: string;
5862
- };
5863
- Returns: import("../types/database.types").Json;
5864
- };
5865
- action_tool_query: {
5866
- Args: {
5867
- p_prefix?: string;
5868
- };
5869
- Returns: import("../types/database.types").Json;
5870
- };
5871
- action_tool_reply_to_user: {
5872
- Args: {
5873
- p_actions?: import("../types/database.types").Json;
5874
- p_chat_id?: string;
5875
- p_text?: string;
5876
- p_user_id?: string;
5877
- };
5878
- Returns: import("../types/database.types").Json;
5879
- };
5880
6073
  adk_agent_list: {
5881
6074
  Args: never;
5882
6075
  Returns: {
@@ -5912,35 +6105,6 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
5912
6105
  };
5913
6106
  Returns: import("../types/database.types").Json;
5914
6107
  };
5915
- adk_artifact_list_keys: {
5916
- Args: {
5917
- p_app_name: string;
5918
- p_session_id: string;
5919
- p_user_id: string;
5920
- };
5921
- Returns: Database["public"]["CompositeTypes"]["adk_artifact_key_record"][];
5922
- SetofOptions: {
5923
- from: "*";
5924
- to: "adk_artifact_key_record";
5925
- isOneToOne: false;
5926
- isSetofReturn: true;
5927
- };
5928
- };
5929
- adk_artifact_list_versions_meta: {
5930
- Args: {
5931
- p_app_name: string;
5932
- p_filename: string;
5933
- p_session_id: string;
5934
- p_user_id: string;
5935
- };
5936
- Returns: Database["public"]["CompositeTypes"]["adk_artifact_meta_record"][];
5937
- SetofOptions: {
5938
- from: "*";
5939
- to: "adk_artifact_meta_record";
5940
- isOneToOne: false;
5941
- isSetofReturn: true;
5942
- };
5943
- };
5944
6108
  adk_artifact_save: {
5945
6109
  Args: {
5946
6110
  p_app_name: string;
@@ -6015,12 +6179,6 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
6015
6179
  p_usage_metadata?: import("../types/database.types").Json;
6016
6180
  p_user_id?: string;
6017
6181
  };
6018
- Returns: import("../types/database.types").Json;
6019
- };
6020
- adk_event_upsert_from_json: {
6021
- Args: {
6022
- p_payload: import("../types/database.types").Json;
6023
- };
6024
6182
  Returns: {
6025
6183
  actions: import("../types/database.types").Json | null;
6026
6184
  app_name: string | null;
@@ -6046,12 +6204,12 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
6046
6204
  updated_at: string;
6047
6205
  usage_metadata: import("../types/database.types").Json | null;
6048
6206
  user_id: string | null;
6049
- };
6207
+ }[];
6050
6208
  SetofOptions: {
6051
6209
  from: "*";
6052
6210
  to: "adk_events";
6053
- isOneToOne: true;
6054
- isSetofReturn: false;
6211
+ isOneToOne: false;
6212
+ isSetofReturn: true;
6055
6213
  };
6056
6214
  };
6057
6215
  adk_quick_start_list: {
@@ -6150,14 +6308,6 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
6150
6308
  };
6151
6309
  Returns: import("../types/database.types").Json;
6152
6310
  };
6153
- agent_tool_exec_read_sql: {
6154
- Args: {
6155
- p_max_chars?: number;
6156
- p_max_rows?: number;
6157
- sql_query: string;
6158
- };
6159
- Returns: string;
6160
- };
6161
6311
  audit_artifact_list: {
6162
6312
  Args: {
6163
6313
  p_project_id: string;
@@ -6186,9 +6336,9 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
6186
6336
  Args: {
6187
6337
  p_cursor?: string;
6188
6338
  p_cursor_id?: string;
6189
- p_kw?: string;
6190
6339
  p_limit?: number;
6191
6340
  p_project_id: string;
6341
+ p_search?: string;
6192
6342
  };
6193
6343
  Returns: {
6194
6344
  content: string;
@@ -6211,9 +6361,9 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
6211
6361
  Args: {
6212
6362
  p_cursor?: string;
6213
6363
  p_cursor_id?: string;
6214
- p_kw?: string;
6215
6364
  p_limit?: number;
6216
6365
  p_project_id: string;
6366
+ p_search?: string;
6217
6367
  };
6218
6368
  Returns: {
6219
6369
  ai_analysis: string | null;
@@ -6275,13 +6425,18 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
6275
6425
  Args: {
6276
6426
  p_id: string;
6277
6427
  };
6278
- Returns: Database["public"]["CompositeTypes"]["audit_project_record"][];
6279
- SetofOptions: {
6280
- from: "*";
6281
- to: "audit_project_record";
6282
- isOneToOne: false;
6283
- isSetofReturn: true;
6284
- };
6428
+ Returns: {
6429
+ config: import("../types/database.types").Json;
6430
+ created_at: string;
6431
+ id: string;
6432
+ name: string;
6433
+ repo_branch: string;
6434
+ repo_url: string;
6435
+ target: string;
6436
+ updated_at: string;
6437
+ user_id: string;
6438
+ worker_id: string;
6439
+ }[];
6285
6440
  };
6286
6441
  audit_project_list: {
6287
6442
  Args: {
@@ -6289,28 +6444,38 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
6289
6444
  p_page_no?: number;
6290
6445
  p_page_size?: number;
6291
6446
  };
6292
- Returns: Database["public"]["CompositeTypes"]["audit_project_record"][];
6293
- SetofOptions: {
6294
- from: "*";
6295
- to: "audit_project_record";
6296
- isOneToOne: false;
6297
- isSetofReturn: true;
6298
- };
6447
+ Returns: {
6448
+ config: import("../types/database.types").Json;
6449
+ created_at: string;
6450
+ id: string;
6451
+ name: string;
6452
+ repo_branch: string;
6453
+ repo_url: string;
6454
+ target: string;
6455
+ updated_at: string;
6456
+ user_id: string;
6457
+ worker_id: string;
6458
+ }[];
6299
6459
  };
6300
6460
  audit_project_list_cursor: {
6301
6461
  Args: {
6302
6462
  p_cursor?: string;
6303
6463
  p_cursor_id?: string;
6304
- p_kw?: string;
6305
6464
  p_limit?: number;
6465
+ p_search?: string;
6306
6466
  };
6307
- Returns: Database["public"]["CompositeTypes"]["audit_project_record"][];
6308
- SetofOptions: {
6309
- from: "*";
6310
- to: "audit_project_record";
6311
- isOneToOne: false;
6312
- isSetofReturn: true;
6313
- };
6467
+ Returns: {
6468
+ config: import("../types/database.types").Json;
6469
+ created_at: string;
6470
+ id: string;
6471
+ name: string;
6472
+ repo_branch: string;
6473
+ repo_url: string;
6474
+ target: string;
6475
+ updated_at: string;
6476
+ user_id: string;
6477
+ worker_id: string;
6478
+ }[];
6314
6479
  };
6315
6480
  audit_project_upsert: {
6316
6481
  Args: {
@@ -6322,7 +6487,18 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
6322
6487
  p_target?: string;
6323
6488
  p_worker_id?: string;
6324
6489
  };
6325
- Returns: string;
6490
+ Returns: {
6491
+ config: import("../types/database.types").Json;
6492
+ created_at: string;
6493
+ id: string;
6494
+ name: string;
6495
+ repo_branch: string;
6496
+ repo_url: string;
6497
+ target: string;
6498
+ updated_at: string;
6499
+ user_id: string;
6500
+ worker_id: string;
6501
+ }[];
6326
6502
  };
6327
6503
  audit_skill_list: {
6328
6504
  Args: {
@@ -6368,13 +6544,22 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
6368
6544
  Args: {
6369
6545
  p_id: string;
6370
6546
  };
6371
- Returns: Database["public"]["CompositeTypes"]["browser_record"][];
6372
- SetofOptions: {
6373
- from: "*";
6374
- to: "browser_record";
6375
- isOneToOne: false;
6376
- isSetofReturn: true;
6377
- };
6547
+ Returns: {
6548
+ browser_api_url: string;
6549
+ config: import("../types/database.types").Json;
6550
+ created_at: string;
6551
+ description: string;
6552
+ id: string;
6553
+ is_running: boolean;
6554
+ profile_id: string;
6555
+ provider: string;
6556
+ provider_config: import("../types/database.types").Json;
6557
+ sandbox_id: string;
6558
+ title: string;
6559
+ updated_at: string;
6560
+ vnc_url: string;
6561
+ worker_name: string;
6562
+ }[];
6378
6563
  };
6379
6564
  browser_list: {
6380
6565
  Args: {
@@ -6382,13 +6567,22 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
6382
6567
  p_page_no?: number;
6383
6568
  p_page_size?: number;
6384
6569
  };
6385
- Returns: Database["public"]["CompositeTypes"]["browser_record"][];
6386
- SetofOptions: {
6387
- from: "*";
6388
- to: "browser_record";
6389
- isOneToOne: false;
6390
- isSetofReturn: true;
6391
- };
6570
+ Returns: {
6571
+ browser_api_url: string;
6572
+ config: import("../types/database.types").Json;
6573
+ created_at: string;
6574
+ description: string;
6575
+ id: string;
6576
+ is_running: boolean;
6577
+ profile_id: string;
6578
+ provider: string;
6579
+ provider_config: import("../types/database.types").Json;
6580
+ sandbox_id: string;
6581
+ title: string;
6582
+ updated_at: string;
6583
+ vnc_url: string;
6584
+ worker_name: string;
6585
+ }[];
6392
6586
  };
6393
6587
  browser_update_state: {
6394
6588
  Args: {
@@ -6407,13 +6601,22 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
6407
6601
  p_provider_config?: import("../types/database.types").Json;
6408
6602
  p_title?: string;
6409
6603
  };
6410
- Returns: Database["public"]["CompositeTypes"]["browser_record"][];
6411
- SetofOptions: {
6412
- from: "*";
6413
- to: "browser_record";
6414
- isOneToOne: false;
6415
- isSetofReturn: true;
6416
- };
6604
+ Returns: {
6605
+ browser_api_url: string;
6606
+ config: import("../types/database.types").Json;
6607
+ created_at: string;
6608
+ description: string;
6609
+ id: string;
6610
+ is_running: boolean;
6611
+ profile_id: string;
6612
+ provider: string;
6613
+ provider_config: import("../types/database.types").Json;
6614
+ sandbox_id: string;
6615
+ title: string;
6616
+ updated_at: string;
6617
+ vnc_url: string;
6618
+ worker_name: string;
6619
+ }[];
6417
6620
  };
6418
6621
  campaign_delete: {
6419
6622
  Args: {
@@ -6425,13 +6628,23 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
6425
6628
  Args: {
6426
6629
  p_id: string;
6427
6630
  };
6428
- Returns: Database["public"]["CompositeTypes"]["campaign_record"][];
6429
- SetofOptions: {
6430
- from: "*";
6431
- to: "campaign_record";
6432
- isOneToOne: false;
6433
- isSetofReturn: true;
6434
- };
6631
+ Returns: {
6632
+ completed_at: string;
6633
+ config: import("../types/database.types").Json;
6634
+ created_at: string;
6635
+ description: string;
6636
+ id: string;
6637
+ message_template: string;
6638
+ name: string;
6639
+ platform: string;
6640
+ schedule: import("../types/database.types").Json;
6641
+ started_at: string;
6642
+ stats: import("../types/database.types").Json;
6643
+ status: string;
6644
+ target_filter: import("../types/database.types").Json;
6645
+ updated_at: string;
6646
+ user_id: string;
6647
+ }[];
6435
6648
  };
6436
6649
  campaign_list_cursor: {
6437
6650
  Args: {
@@ -6440,13 +6653,23 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
6440
6653
  p_search?: string;
6441
6654
  p_status?: string;
6442
6655
  };
6443
- Returns: Database["public"]["CompositeTypes"]["campaign_record"][];
6444
- SetofOptions: {
6445
- from: "*";
6446
- to: "campaign_record";
6447
- isOneToOne: false;
6448
- isSetofReturn: true;
6449
- };
6656
+ Returns: {
6657
+ completed_at: string;
6658
+ config: import("../types/database.types").Json;
6659
+ created_at: string;
6660
+ description: string;
6661
+ id: string;
6662
+ message_template: string;
6663
+ name: string;
6664
+ platform: string;
6665
+ schedule: import("../types/database.types").Json;
6666
+ started_at: string;
6667
+ stats: import("../types/database.types").Json;
6668
+ status: string;
6669
+ target_filter: import("../types/database.types").Json;
6670
+ updated_at: string;
6671
+ user_id: string;
6672
+ }[];
6450
6673
  };
6451
6674
  campaign_pause: {
6452
6675
  Args: {
@@ -6471,13 +6694,23 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
6471
6694
  p_schedule?: import("../types/database.types").Json;
6472
6695
  p_target_filter?: import("../types/database.types").Json;
6473
6696
  };
6474
- Returns: Database["public"]["CompositeTypes"]["campaign_record"][];
6475
- SetofOptions: {
6476
- from: "*";
6477
- to: "campaign_record";
6478
- isOneToOne: false;
6479
- isSetofReturn: true;
6480
- };
6697
+ Returns: {
6698
+ completed_at: string;
6699
+ config: import("../types/database.types").Json;
6700
+ created_at: string;
6701
+ description: string;
6702
+ id: string;
6703
+ message_template: string;
6704
+ name: string;
6705
+ platform: string;
6706
+ schedule: import("../types/database.types").Json;
6707
+ started_at: string;
6708
+ stats: import("../types/database.types").Json;
6709
+ status: string;
6710
+ target_filter: import("../types/database.types").Json;
6711
+ updated_at: string;
6712
+ user_id: string;
6713
+ }[];
6481
6714
  };
6482
6715
  chat_get: {
6483
6716
  Args: {
@@ -6600,21 +6833,25 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
6600
6833
  updated_at: string | null;
6601
6834
  user_id: string | null;
6602
6835
  visibility: Database["public"]["Enums"]["chat_visibility"];
6603
- };
6836
+ }[];
6604
6837
  SetofOptions: {
6605
6838
  from: "*";
6606
6839
  to: "chats";
6607
- isOneToOne: true;
6608
- isSetofReturn: false;
6840
+ isOneToOne: false;
6841
+ isSetofReturn: true;
6609
6842
  };
6610
6843
  };
6611
6844
  check_account_rate_limit: {
6612
6845
  Args: {
6613
6846
  p_account_id: string;
6614
- p_campaign_config: import("../types/database.types").Json;
6847
+ p_campaign_config?: import("../types/database.types").Json;
6615
6848
  };
6616
6849
  Returns: boolean;
6617
6850
  };
6851
+ cleanup_servers_ingress: {
6852
+ Args: never;
6853
+ Returns: number;
6854
+ };
6618
6855
  cloud_account_bulk_create: {
6619
6856
  Args: {
6620
6857
  p_account_names: string[];
@@ -6676,10 +6913,10 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
6676
6913
  cloud_account_list_cursor: {
6677
6914
  Args: {
6678
6915
  p_cursor?: string;
6679
- p_kw?: string;
6680
6916
  p_limit?: number;
6681
6917
  p_platform_name?: string;
6682
- p_status?: Database["public"]["Enums"]["cloud_account_status"];
6918
+ p_search?: string;
6919
+ p_status?: string;
6683
6920
  };
6684
6921
  Returns: Database["public"]["CompositeTypes"]["cloud_account_record"][];
6685
6922
  SetofOptions: {
@@ -6747,6 +6984,12 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
6747
6984
  isSetofReturn: true;
6748
6985
  };
6749
6986
  };
6987
+ code_run_result_parse: {
6988
+ Args: {
6989
+ p_result: import("../types/database.types").Json;
6990
+ };
6991
+ Returns: import("../types/database.types").Json;
6992
+ };
6750
6993
  compute_node_delete: {
6751
6994
  Args: {
6752
6995
  p_id: string;
@@ -6755,59 +6998,77 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
6755
6998
  };
6756
6999
  compute_node_get: {
6757
7000
  Args: {
6758
- p_id: string;
6759
- };
6760
- Returns: Database["public"]["CompositeTypes"]["compute_node_record"][];
6761
- SetofOptions: {
6762
- from: "*";
6763
- to: "compute_node_record";
6764
- isOneToOne: false;
6765
- isSetofReturn: true;
7001
+ p_id?: string;
7002
+ p_user_id?: string;
6766
7003
  };
7004
+ Returns: {
7005
+ auth_secret: string | null;
7006
+ created_at: string | null;
7007
+ host: string | null;
7008
+ id: string | null;
7009
+ is_public: boolean | null;
7010
+ name: string | null;
7011
+ port: number | null;
7012
+ provider: string | null;
7013
+ updated_at: string | null;
7014
+ user_id: string | null;
7015
+ username: string | null;
7016
+ }[];
6767
7017
  };
6768
7018
  compute_node_get_secret: {
6769
7019
  Args: {
6770
7020
  target_id: string;
6771
7021
  };
6772
- Returns: Database["public"]["CompositeTypes"]["compute_node_secret_record"][];
6773
- SetofOptions: {
6774
- from: "*";
6775
- to: "compute_node_secret_record";
6776
- isOneToOne: false;
6777
- isSetofReturn: true;
6778
- };
7022
+ Returns: {
7023
+ auth_secret: string;
7024
+ host: string;
7025
+ port: number;
7026
+ username: string;
7027
+ }[];
6779
7028
  };
6780
7029
  compute_node_list: {
6781
7030
  Args: {
6782
- p_kw?: string;
6783
- p_page_no?: number;
6784
- p_page_size?: number;
6785
- };
6786
- Returns: Database["public"]["CompositeTypes"]["compute_node_list_record"][];
6787
- SetofOptions: {
6788
- from: "*";
6789
- to: "compute_node_list_record";
6790
- isOneToOne: false;
6791
- isSetofReturn: true;
7031
+ p_user_id?: string;
6792
7032
  };
7033
+ Returns: {
7034
+ auth_secret: string | null;
7035
+ created_at: string | null;
7036
+ host: string | null;
7037
+ id: string | null;
7038
+ is_public: boolean | null;
7039
+ name: string | null;
7040
+ port: number | null;
7041
+ provider: string | null;
7042
+ updated_at: string | null;
7043
+ user_id: string | null;
7044
+ username: string | null;
7045
+ }[];
6793
7046
  };
6794
7047
  compute_node_upsert: {
6795
7048
  Args: {
6796
7049
  p_auth_secret?: string;
6797
- p_host: string;
6798
- p_id: string;
6799
- p_name: string;
7050
+ p_host?: string;
7051
+ p_id?: string;
7052
+ p_is_public?: boolean;
7053
+ p_name?: string;
6800
7054
  p_port?: number;
6801
- p_provider: string;
7055
+ p_provider?: string;
6802
7056
  p_username?: string;
7057
+ p_worker_count?: number;
6803
7058
  };
6804
- Returns: Database["public"]["CompositeTypes"]["compute_node_record"][];
6805
- SetofOptions: {
6806
- from: "*";
6807
- to: "compute_node_record";
6808
- isOneToOne: false;
6809
- isSetofReturn: true;
6810
- };
7059
+ Returns: {
7060
+ auth_secret: string | null;
7061
+ created_at: string | null;
7062
+ host: string | null;
7063
+ id: string | null;
7064
+ is_public: boolean | null;
7065
+ name: string | null;
7066
+ port: number | null;
7067
+ provider: string | null;
7068
+ updated_at: string | null;
7069
+ user_id: string | null;
7070
+ username: string | null;
7071
+ }[];
6811
7072
  };
6812
7073
  compute_server_public_url: {
6813
7074
  Args: {
@@ -6844,13 +7105,22 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
6844
7105
  p_platform?: string;
6845
7106
  p_telegram_id?: number;
6846
7107
  };
6847
- Returns: Database["public"]["CompositeTypes"]["contact_record"][];
6848
- SetofOptions: {
6849
- from: "*";
6850
- to: "contact_record";
6851
- isOneToOne: false;
6852
- isSetofReturn: true;
6853
- };
7108
+ Returns: {
7109
+ created_at: string;
7110
+ email: string;
7111
+ id: string;
7112
+ metadata: import("../types/database.types").Json;
7113
+ name: string;
7114
+ phone: string;
7115
+ platform: string;
7116
+ source: string;
7117
+ status: string;
7118
+ tags: string[];
7119
+ telegram_id: number;
7120
+ telegram_username: string;
7121
+ updated_at: string;
7122
+ user_id: string;
7123
+ }[];
6854
7124
  };
6855
7125
  contact_list_cursor: {
6856
7126
  Args: {
@@ -6861,13 +7131,22 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
6861
7131
  p_status?: string;
6862
7132
  p_tags?: string[];
6863
7133
  };
6864
- Returns: Database["public"]["CompositeTypes"]["contact_record"][];
6865
- SetofOptions: {
6866
- from: "*";
6867
- to: "contact_record";
6868
- isOneToOne: false;
6869
- isSetofReturn: true;
6870
- };
7134
+ Returns: {
7135
+ created_at: string;
7136
+ email: string;
7137
+ id: string;
7138
+ metadata: import("../types/database.types").Json;
7139
+ name: string;
7140
+ phone: string;
7141
+ platform: string;
7142
+ source: string;
7143
+ status: string;
7144
+ tags: string[];
7145
+ telegram_id: number;
7146
+ telegram_username: string;
7147
+ updated_at: string;
7148
+ user_id: string;
7149
+ }[];
6871
7150
  };
6872
7151
  contact_list_tags: {
6873
7152
  Args: never;
@@ -6894,13 +7173,22 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
6894
7173
  p_telegram_id?: number;
6895
7174
  p_telegram_username?: string;
6896
7175
  };
6897
- Returns: Database["public"]["CompositeTypes"]["contact_record"][];
6898
- SetofOptions: {
6899
- from: "*";
6900
- to: "contact_record";
6901
- isOneToOne: false;
6902
- isSetofReturn: true;
6903
- };
7176
+ Returns: {
7177
+ created_at: string;
7178
+ email: string;
7179
+ id: string;
7180
+ metadata: import("../types/database.types").Json;
7181
+ name: string;
7182
+ phone: string;
7183
+ platform: string;
7184
+ source: string;
7185
+ status: string;
7186
+ tags: string[];
7187
+ telegram_id: number;
7188
+ telegram_username: string;
7189
+ updated_at: string;
7190
+ user_id: string;
7191
+ }[];
6904
7192
  };
6905
7193
  create_notification: {
6906
7194
  Args: {
@@ -6923,41 +7211,39 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
6923
7211
  };
6924
7212
  Returns: import("../types/database.types").Json;
6925
7213
  };
6926
- dba_lint_scan: {
7214
+ get_github_app_public_info: {
6927
7215
  Args: never;
6928
- Returns: Database["public"]["CompositeTypes"]["dba_lint_issue"][];
6929
- SetofOptions: {
6930
- from: "*";
6931
- to: "dba_lint_issue";
6932
- isOneToOne: false;
6933
- isSetofReturn: true;
6934
- };
7216
+ Returns: import("../types/database.types").Json;
6935
7217
  };
6936
- debug_role: {
7218
+ get_jwt_role: {
6937
7219
  Args: never;
6938
7220
  Returns: string;
6939
7221
  };
6940
- debug_sec_def: {
7222
+ get_system_primary_domain: {
6941
7223
  Args: never;
6942
7224
  Returns: string;
6943
7225
  };
6944
- get_encryption_key: {
6945
- Args: never;
7226
+ get_user_id_from_token: {
7227
+ Args: {
7228
+ p_token: string;
7229
+ };
6946
7230
  Returns: string;
6947
7231
  };
6948
- get_github_app_public_info: {
6949
- Args: never;
6950
- Returns: import("../types/database.types").Json;
7232
+ get_worker_subdomain: {
7233
+ Args: {
7234
+ p_worker_id: string;
7235
+ };
7236
+ Returns: string;
6951
7237
  };
6952
- get_jwt_role: {
7238
+ github_list_installation_repos: {
6953
7239
  Args: never;
6954
- Returns: string;
7240
+ Returns: import("../types/database.types").Json;
6955
7241
  };
6956
- get_user_id_from_token: {
7242
+ github_list_repo_branches: {
6957
7243
  Args: {
6958
- p_token: string;
7244
+ p_repo_full_name: string;
6959
7245
  };
6960
- Returns: string;
7246
+ Returns: import("../types/database.types").Json;
6961
7247
  };
6962
7248
  gomtm_model_count: {
6963
7249
  Args: {
@@ -6989,12 +7275,12 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
6989
7275
  provider: string;
6990
7276
  updated_at: string;
6991
7277
  user_id: string;
6992
- };
7278
+ }[];
6993
7279
  SetofOptions: {
6994
7280
  from: "*";
6995
7281
  to: "gomtm_models";
6996
- isOneToOne: true;
6997
- isSetofReturn: false;
7282
+ isOneToOne: false;
7283
+ isSetofReturn: true;
6998
7284
  };
6999
7285
  };
7000
7286
  gomtm_model_list_cursor: {
@@ -7027,15 +7313,15 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
7027
7313
  };
7028
7314
  gomtm_model_upsert: {
7029
7315
  Args: {
7030
- p_api_base?: string;
7031
- p_api_key?: string;
7032
- p_config?: import("../types/database.types").Json;
7033
- p_id?: string;
7034
- p_is_active?: boolean;
7035
- p_linked_account_id?: string;
7036
- p_model?: string;
7037
- p_name?: string;
7038
- p_provider?: string;
7316
+ p_api_base: string;
7317
+ p_api_key: string;
7318
+ p_config: import("../types/database.types").Json;
7319
+ p_id: string;
7320
+ p_is_active: boolean;
7321
+ p_linked_account_id: string;
7322
+ p_model: string;
7323
+ p_name: string;
7324
+ p_provider: string;
7039
7325
  };
7040
7326
  Returns: {
7041
7327
  api_base: string | null;
@@ -7050,45 +7336,13 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
7050
7336
  provider: string;
7051
7337
  updated_at: string;
7052
7338
  user_id: string;
7053
- };
7339
+ }[];
7054
7340
  SetofOptions: {
7055
7341
  from: "*";
7056
7342
  to: "gomtm_models";
7057
- isOneToOne: true;
7058
- isSetofReturn: false;
7059
- };
7060
- };
7061
- handle_http_response_health: {
7062
- Args: {
7063
- p_body: import("../types/database.types").Json;
7064
- p_request_id: number;
7065
- p_success: boolean;
7066
- };
7067
- Returns: boolean;
7068
- };
7069
- handle_http_response_outreach: {
7070
- Args: {
7071
- p_body: import("../types/database.types").Json;
7072
- p_request_id: number;
7073
- p_success: boolean;
7074
- };
7075
- Returns: boolean;
7076
- };
7077
- handle_http_response_task: {
7078
- Args: {
7079
- p_body: import("../types/database.types").Json;
7080
- p_request_id: number;
7081
- p_success: boolean;
7082
- };
7083
- Returns: boolean;
7084
- };
7085
- handle_http_response_telegram: {
7086
- Args: {
7087
- p_body: import("../types/database.types").Json;
7088
- p_request_id: number;
7089
- p_success: boolean;
7343
+ isOneToOne: false;
7344
+ isSetofReturn: true;
7090
7345
  };
7091
- Returns: boolean;
7092
7346
  };
7093
7347
  handle_job_outreach_process: {
7094
7348
  Args: {
@@ -7115,10 +7369,21 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
7115
7369
  };
7116
7370
  Returns: boolean;
7117
7371
  };
7372
+ http_fetch: {
7373
+ Args: {
7374
+ p_body?: import("../types/database.types").Json;
7375
+ p_headers?: import("../types/database.types").Json;
7376
+ p_max_retries?: number;
7377
+ p_method: string;
7378
+ p_source_tag?: string;
7379
+ p_timeout_ms?: number;
7380
+ p_url: string;
7381
+ };
7382
+ Returns: import("../types/database.types").Json;
7383
+ };
7118
7384
  install_script: {
7119
7385
  Args: {
7120
7386
  p_instance_id?: string;
7121
- p_token?: string;
7122
7387
  p_version?: string;
7123
7388
  };
7124
7389
  Returns: string;
@@ -7141,119 +7406,362 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
7141
7406
  Args: {
7142
7407
  p_instance_id: string;
7143
7408
  };
7144
- Returns: Database["public"]["CompositeTypes"]["tag_record"][];
7409
+ Returns: {
7410
+ color: string;
7411
+ created_at: string;
7412
+ id: string;
7413
+ instance_count: number;
7414
+ name: string;
7415
+ updated_at: string;
7416
+ user_id: string;
7417
+ }[];
7418
+ };
7419
+ instance_tags_set: {
7420
+ Args: {
7421
+ p_instance_id: string;
7422
+ p_tag_ids: string[];
7423
+ };
7424
+ Returns: {
7425
+ color: string;
7426
+ created_at: string;
7427
+ id: string;
7428
+ instance_count: number;
7429
+ name: string;
7430
+ updated_at: string;
7431
+ user_id: string;
7432
+ }[];
7433
+ };
7434
+ job_queue_list_dlq: {
7435
+ Args: {
7436
+ p_limit?: number;
7437
+ p_offset?: number;
7438
+ p_queue: string;
7439
+ };
7440
+ Returns: Database["public"]["CompositeTypes"]["job_queue_dlq_record"][];
7145
7441
  SetofOptions: {
7146
7442
  from: "*";
7147
- to: "tag_record";
7443
+ to: "job_queue_dlq_record";
7148
7444
  isOneToOne: false;
7149
7445
  isSetofReturn: true;
7150
7446
  };
7151
7447
  };
7152
- instance_tags_set: {
7448
+ job_queue_purge_dlq: {
7153
7449
  Args: {
7154
- p_instance_id: string;
7155
- p_tag_ids: string[];
7450
+ p_msg_ids: number[];
7451
+ p_queue: string;
7452
+ };
7453
+ Returns: boolean;
7454
+ };
7455
+ job_queue_retry_dlq: {
7456
+ Args: {
7457
+ p_msg_ids: number[];
7458
+ p_queue: string;
7459
+ };
7460
+ Returns: boolean;
7461
+ };
7462
+ job_submit: {
7463
+ Args: {
7464
+ p_delay_seconds?: number;
7465
+ p_payload: import("../types/database.types").Json;
7466
+ p_queue: string;
7467
+ p_type: string;
7468
+ };
7469
+ Returns: import("../types/database.types").Json;
7470
+ };
7471
+ jsonb_deep_merge: {
7472
+ Args: {
7473
+ a: import("../types/database.types").Json;
7474
+ b: import("../types/database.types").Json;
7475
+ };
7476
+ Returns: import("../types/database.types").Json;
7477
+ };
7478
+ log_list_unified: {
7479
+ Args: {
7480
+ p_cursor?: string;
7481
+ p_event_type?: string;
7482
+ p_level_max?: string;
7483
+ p_limit?: number;
7484
+ p_module?: string;
7485
+ p_resource_id?: string;
7486
+ p_resource_type?: string;
7487
+ p_scope?: string;
7488
+ p_source?: string;
7156
7489
  };
7157
- Returns: Database["public"]["CompositeTypes"]["tag_record"][];
7490
+ Returns: Database["public"]["CompositeTypes"]["log_unified_record"][];
7158
7491
  SetofOptions: {
7159
7492
  from: "*";
7160
- to: "tag_record";
7493
+ to: "log_unified_record";
7161
7494
  isOneToOne: false;
7162
7495
  isSetofReturn: true;
7163
7496
  };
7164
7497
  };
7165
- job_queue_list_dlq: {
7498
+ notification_complete_action: {
7499
+ Args: {
7500
+ p_id: string;
7501
+ };
7502
+ Returns: boolean;
7503
+ };
7504
+ notification_count: {
7505
+ Args: {
7506
+ p_include_dismissed?: boolean;
7507
+ p_unread_only?: boolean;
7508
+ };
7509
+ Returns: number;
7510
+ };
7511
+ notification_dismiss: {
7512
+ Args: {
7513
+ p_dismiss_all?: boolean;
7514
+ p_id?: string;
7515
+ p_source_id?: string;
7516
+ p_source_type?: string;
7517
+ };
7518
+ Returns: number;
7519
+ };
7520
+ notification_get_pending_actions: {
7521
+ Args: never;
7522
+ Returns: {
7523
+ action_completed_at: string | null;
7524
+ action_payload: import("../types/database.types").Json | null;
7525
+ action_type: string | null;
7526
+ created_at: string;
7527
+ dismissed_at: string | null;
7528
+ expires_at: string | null;
7529
+ id: string;
7530
+ is_read: boolean;
7531
+ message: string | null;
7532
+ notification_type: string;
7533
+ priority: string;
7534
+ read_at: string | null;
7535
+ source_id: string | null;
7536
+ source_type: string | null;
7537
+ title: string;
7538
+ updated_at: string;
7539
+ user_id: string;
7540
+ }[];
7541
+ SetofOptions: {
7542
+ from: "*";
7543
+ to: "user_notifications";
7544
+ isOneToOne: false;
7545
+ isSetofReturn: true;
7546
+ };
7547
+ };
7548
+ notification_list: {
7166
7549
  Args: {
7550
+ p_action_type?: string;
7551
+ p_cursor?: string;
7552
+ p_include_dismissed?: boolean;
7167
7553
  p_limit?: number;
7168
- p_offset?: number;
7169
- p_queue: string;
7554
+ p_source_type?: string;
7555
+ p_unread_only?: boolean;
7170
7556
  };
7171
- Returns: Database["public"]["CompositeTypes"]["job_queue_dlq_record"][];
7557
+ Returns: {
7558
+ action_completed_at: string | null;
7559
+ action_payload: import("../types/database.types").Json | null;
7560
+ action_type: string | null;
7561
+ created_at: string;
7562
+ dismissed_at: string | null;
7563
+ expires_at: string | null;
7564
+ id: string;
7565
+ is_read: boolean;
7566
+ message: string | null;
7567
+ notification_type: string;
7568
+ priority: string;
7569
+ read_at: string | null;
7570
+ source_id: string | null;
7571
+ source_type: string | null;
7572
+ title: string;
7573
+ updated_at: string;
7574
+ user_id: string;
7575
+ }[];
7172
7576
  SetofOptions: {
7173
7577
  from: "*";
7174
- to: "job_queue_dlq_record";
7578
+ to: "user_notifications";
7175
7579
  isOneToOne: false;
7176
7580
  isSetofReturn: true;
7177
7581
  };
7178
7582
  };
7179
- job_queue_purge_dlq: {
7583
+ notification_mark_read: {
7180
7584
  Args: {
7181
- p_msg_ids: number[];
7182
- p_queue: string;
7585
+ p_id?: string;
7586
+ p_mark_all?: boolean;
7183
7587
  };
7184
- Returns: boolean;
7588
+ Returns: number;
7185
7589
  };
7186
- job_queue_retry_dlq: {
7590
+ openclaw_assign_server: {
7187
7591
  Args: {
7188
- p_msg_ids: number[];
7189
- p_queue: string;
7592
+ p_openclaw_id: string;
7593
+ p_user_id: string;
7190
7594
  };
7191
- Returns: boolean;
7595
+ Returns: string;
7192
7596
  };
7193
- job_submit: {
7597
+ openclaw_build_config: {
7194
7598
  Args: {
7195
- p_delay_seconds?: number;
7196
- p_payload: import("../types/database.types").Json;
7197
- p_queue: string;
7198
- p_type: string;
7599
+ p_openclaw_id: string;
7600
+ p_override_config?: import("../types/database.types").Json;
7601
+ p_override_server_id?: string;
7199
7602
  };
7200
7603
  Returns: import("../types/database.types").Json;
7201
7604
  };
7202
- notification_complete_action: {
7605
+ openclaw_failover: {
7203
7606
  Args: {
7204
- p_id: string;
7607
+ p_server_id: string;
7205
7608
  };
7206
- Returns: boolean;
7609
+ Returns: undefined;
7207
7610
  };
7208
- notification_count: {
7611
+ openclaw_metadata_apply_action_contract: {
7209
7612
  Args: {
7210
- p_include_dismissed?: boolean;
7211
- p_unread_only?: boolean;
7613
+ p_action_status: string;
7614
+ p_completed_at?: string;
7615
+ p_debug_action: string;
7616
+ p_delete_pending?: boolean;
7617
+ p_message?: string;
7618
+ p_metadata: import("../types/database.types").Json;
7619
+ p_requested_at?: string;
7620
+ p_user_action: string;
7212
7621
  };
7213
- Returns: number;
7622
+ Returns: import("../types/database.types").Json;
7214
7623
  };
7215
- notification_dismiss: {
7624
+ openclaw_reconcile_due: {
7216
7625
  Args: {
7217
- p_dismiss_all?: boolean;
7218
- p_id?: string;
7219
- p_source_id?: string;
7220
- p_source_type?: string;
7626
+ p_limit?: number;
7221
7627
  };
7222
7628
  Returns: number;
7223
7629
  };
7224
- notification_get_pending_actions: {
7225
- Args: never;
7226
- Returns: Database["public"]["CompositeTypes"]["user_notification_record"][];
7630
+ openclaw_reconcile_one: {
7631
+ Args: {
7632
+ p_openclaw_id: string;
7633
+ };
7634
+ Returns: {
7635
+ config: import("../types/database.types").Json;
7636
+ created_at: string;
7637
+ desired_status: Database["public"]["Enums"]["openclaw_status"];
7638
+ id: string;
7639
+ metadata: import("../types/database.types").Json | null;
7640
+ name: string | null;
7641
+ resolved_config: import("../types/database.types").Json;
7642
+ server_id: string | null;
7643
+ state: import("../types/database.types").Json | null;
7644
+ status: Database["public"]["Enums"]["openclaw_status"];
7645
+ status_reason: string | null;
7646
+ updated_at: string;
7647
+ user_id: string;
7648
+ };
7227
7649
  SetofOptions: {
7228
7650
  from: "*";
7229
- to: "user_notification_record";
7230
- isOneToOne: false;
7231
- isSetofReturn: true;
7651
+ to: "openclaws";
7652
+ isOneToOne: true;
7653
+ isSetofReturn: false;
7232
7654
  };
7233
7655
  };
7234
- notification_list: {
7656
+ openclaw_refresh_resolved_config: {
7657
+ Args: {
7658
+ p_openclaw_id: string;
7659
+ p_override_config?: import("../types/database.types").Json;
7660
+ p_override_server_id?: string;
7661
+ };
7662
+ Returns: import("../types/database.types").Json;
7663
+ };
7664
+ openclaws_delete: {
7665
+ Args: {
7666
+ p_id: string;
7667
+ };
7668
+ Returns: {
7669
+ config: import("../types/database.types").Json;
7670
+ created_at: string;
7671
+ desired_status: Database["public"]["Enums"]["openclaw_status"];
7672
+ id: string;
7673
+ metadata: import("../types/database.types").Json;
7674
+ name: string;
7675
+ server_id: string;
7676
+ state: import("../types/database.types").Json;
7677
+ status: Database["public"]["Enums"]["openclaw_status"];
7678
+ status_reason: string;
7679
+ updated_at: string;
7680
+ user_id: string;
7681
+ }[];
7682
+ };
7683
+ openclaws_get: {
7684
+ Args: {
7685
+ p_id: string;
7686
+ };
7687
+ Returns: {
7688
+ config: import("../types/database.types").Json;
7689
+ created_at: string;
7690
+ desired_status: Database["public"]["Enums"]["openclaw_status"];
7691
+ id: string;
7692
+ metadata: import("../types/database.types").Json;
7693
+ name: string;
7694
+ server_id: string;
7695
+ state: import("../types/database.types").Json;
7696
+ status: Database["public"]["Enums"]["openclaw_status"];
7697
+ status_reason: string;
7698
+ updated_at: string;
7699
+ user_id: string;
7700
+ }[];
7701
+ };
7702
+ openclaws_list_cursor: {
7235
7703
  Args: {
7236
- p_action_type?: string;
7237
7704
  p_cursor?: string;
7238
- p_include_dismissed?: boolean;
7239
7705
  p_limit?: number;
7240
- p_source_type?: string;
7241
- p_unread_only?: boolean;
7706
+ p_search?: string;
7707
+ p_status?: Database["public"]["Enums"]["openclaw_status"];
7242
7708
  };
7243
- Returns: Database["public"]["CompositeTypes"]["user_notification_record"][];
7244
- SetofOptions: {
7245
- from: "*";
7246
- to: "user_notification_record";
7247
- isOneToOne: false;
7248
- isSetofReturn: true;
7709
+ Returns: {
7710
+ config: import("../types/database.types").Json;
7711
+ created_at: string;
7712
+ desired_status: Database["public"]["Enums"]["openclaw_status"];
7713
+ id: string;
7714
+ metadata: import("../types/database.types").Json;
7715
+ name: string;
7716
+ server_id: string;
7717
+ state: import("../types/database.types").Json;
7718
+ status: Database["public"]["Enums"]["openclaw_status"];
7719
+ status_reason: string;
7720
+ updated_at: string;
7721
+ user_id: string;
7722
+ }[];
7723
+ };
7724
+ openclaws_request_action: {
7725
+ Args: {
7726
+ p_action: string;
7727
+ p_id: string;
7249
7728
  };
7729
+ Returns: {
7730
+ config: import("../types/database.types").Json;
7731
+ created_at: string;
7732
+ desired_status: Database["public"]["Enums"]["openclaw_status"];
7733
+ id: string;
7734
+ metadata: import("../types/database.types").Json;
7735
+ name: string;
7736
+ server_id: string;
7737
+ state: import("../types/database.types").Json;
7738
+ status: Database["public"]["Enums"]["openclaw_status"];
7739
+ status_reason: string;
7740
+ updated_at: string;
7741
+ user_id: string;
7742
+ }[];
7250
7743
  };
7251
- notification_mark_read: {
7744
+ openclaws_upsert: {
7252
7745
  Args: {
7746
+ p_config?: import("../types/database.types").Json;
7253
7747
  p_id?: string;
7254
- p_mark_all?: boolean;
7748
+ p_metadata?: import("../types/database.types").Json;
7749
+ p_name?: string;
7255
7750
  };
7256
- Returns: number;
7751
+ Returns: {
7752
+ config: import("../types/database.types").Json;
7753
+ created_at: string;
7754
+ desired_status: Database["public"]["Enums"]["openclaw_status"];
7755
+ id: string;
7756
+ metadata: import("../types/database.types").Json;
7757
+ name: string;
7758
+ server_id: string;
7759
+ state: import("../types/database.types").Json;
7760
+ status: Database["public"]["Enums"]["openclaw_status"];
7761
+ status_reason: string;
7762
+ updated_at: string;
7763
+ user_id: string;
7764
+ }[];
7257
7765
  };
7258
7766
  outreach_process_pending_tasks: {
7259
7767
  Args: {
@@ -7262,6 +7770,13 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
7262
7770
  };
7263
7771
  Returns: number;
7264
7772
  };
7773
+ outreach_process_pending_tasks_sync: {
7774
+ Args: {
7775
+ p_campaign_id?: string;
7776
+ p_limit?: number;
7777
+ };
7778
+ Returns: number;
7779
+ };
7265
7780
  outreach_retry_failed_tasks: {
7266
7781
  Args: {
7267
7782
  p_campaign_id?: string;
@@ -7275,13 +7790,22 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
7275
7790
  p_offset?: number;
7276
7791
  p_status?: string;
7277
7792
  };
7278
- Returns: Database["public"]["CompositeTypes"]["outreach_task_record"][];
7279
- SetofOptions: {
7280
- from: "*";
7281
- to: "outreach_task_record";
7282
- isOneToOne: false;
7283
- isSetofReturn: true;
7284
- };
7793
+ Returns: {
7794
+ campaign_id: string;
7795
+ cloud_account_id: string;
7796
+ contact_id: string;
7797
+ created_at: string;
7798
+ error_message: string;
7799
+ executed_at: string;
7800
+ id: string;
7801
+ metadata: import("../types/database.types").Json;
7802
+ priority: number;
7803
+ retry_count: number;
7804
+ scheduled_at: string;
7805
+ status: string;
7806
+ updated_at: string;
7807
+ user_id: string;
7808
+ }[];
7285
7809
  };
7286
7810
  proxy_delete: {
7287
7811
  Args: {
@@ -7293,13 +7817,17 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
7293
7817
  Args: {
7294
7818
  p_id: string;
7295
7819
  };
7296
- Returns: Database["public"]["CompositeTypes"]["proxy_record"][];
7297
- SetofOptions: {
7298
- from: "*";
7299
- to: "proxy_record";
7300
- isOneToOne: false;
7301
- isSetofReturn: true;
7302
- };
7820
+ Returns: {
7821
+ created_at: string;
7822
+ description: string;
7823
+ enabled: boolean;
7824
+ id: string;
7825
+ name: string;
7826
+ type: string;
7827
+ updated_at: string;
7828
+ url: string;
7829
+ user_id: string;
7830
+ }[];
7303
7831
  };
7304
7832
  proxy_list: {
7305
7833
  Args: {
@@ -7307,13 +7835,17 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
7307
7835
  p_page_no?: number;
7308
7836
  p_page_size?: number;
7309
7837
  };
7310
- Returns: Database["public"]["CompositeTypes"]["proxy_record"][];
7311
- SetofOptions: {
7312
- from: "*";
7313
- to: "proxy_record";
7314
- isOneToOne: false;
7315
- isSetofReturn: true;
7316
- };
7838
+ Returns: {
7839
+ created_at: string;
7840
+ description: string;
7841
+ enabled: boolean;
7842
+ id: string;
7843
+ name: string;
7844
+ type: string;
7845
+ updated_at: string;
7846
+ url: string;
7847
+ user_id: string;
7848
+ }[];
7317
7849
  };
7318
7850
  proxy_upsert: {
7319
7851
  Args: {
@@ -7324,13 +7856,17 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
7324
7856
  p_type: string;
7325
7857
  p_url: string;
7326
7858
  };
7327
- Returns: Database["public"]["CompositeTypes"]["proxy_record"][];
7328
- SetofOptions: {
7329
- from: "*";
7330
- to: "proxy_record";
7331
- isOneToOne: false;
7332
- isSetofReturn: true;
7333
- };
7859
+ Returns: {
7860
+ created_at: string;
7861
+ description: string;
7862
+ enabled: boolean;
7863
+ id: string;
7864
+ name: string;
7865
+ type: string;
7866
+ updated_at: string;
7867
+ url: string;
7868
+ user_id: string;
7869
+ }[];
7334
7870
  };
7335
7871
  resource_delete: {
7336
7872
  Args: {
@@ -7370,16 +7906,6 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
7370
7906
  p_title?: string;
7371
7907
  p_type?: string;
7372
7908
  };
7373
- Returns: string;
7374
- };
7375
- sandbox_find_active: {
7376
- Args: never;
7377
- Returns: import("../types/database.types").Json;
7378
- };
7379
- sandbox_get: {
7380
- Args: {
7381
- resource_id?: string;
7382
- };
7383
7909
  Returns: {
7384
7910
  created_at: string;
7385
7911
  data: import("../types/database.types").Json | null;
@@ -7402,87 +7928,120 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
7402
7928
  isSetofReturn: true;
7403
7929
  };
7404
7930
  };
7405
- server_instance_bootstrap: {
7931
+ sandbox_find_active: {
7932
+ Args: never;
7933
+ Returns: import("../types/database.types").Json;
7934
+ };
7935
+ script_exec: {
7406
7936
  Args: {
7407
- p_instance_id: string;
7937
+ p_options?: import("../types/database.types").Json;
7938
+ p_script: import("../types/database.types").Json;
7939
+ p_server_id: string;
7408
7940
  };
7409
- Returns: Database["public"]["CompositeTypes"]["bootstrap_result"][];
7941
+ Returns: import("../types/database.types").Json;
7942
+ };
7943
+ script_get_content: {
7944
+ Args: {
7945
+ p_file_path: string;
7946
+ p_git_ref?: string;
7947
+ };
7948
+ Returns: string;
7949
+ };
7950
+ server_delete: {
7951
+ Args: {
7952
+ p_id: string;
7953
+ p_shutdown_gracefully?: boolean;
7954
+ };
7955
+ Returns: import("../types/database.types").Json;
7956
+ };
7957
+ server_get: {
7958
+ Args: {
7959
+ p_server_id?: string;
7960
+ };
7961
+ Returns: {
7962
+ config: import("../types/database.types").Json;
7963
+ created_at: string;
7964
+ id: string;
7965
+ state: import("../types/database.types").Json;
7966
+ updated_at: string;
7967
+ }[];
7968
+ };
7969
+ server_list_cursor: {
7970
+ Args: {
7971
+ p_cursor_id?: string;
7972
+ p_cursor_updated_at?: string;
7973
+ p_limit?: number;
7974
+ p_search?: string;
7975
+ };
7976
+ Returns: {
7977
+ config: import("../types/database.types").Json | null;
7978
+ created_at: string;
7979
+ id: string;
7980
+ state: import("../types/database.types").Json | null;
7981
+ updated_at: string;
7982
+ }[];
7410
7983
  SetofOptions: {
7411
7984
  from: "*";
7412
- to: "bootstrap_result";
7985
+ to: "servers";
7413
7986
  isOneToOne: false;
7414
7987
  isSetofReturn: true;
7415
7988
  };
7416
7989
  };
7417
- server_instance_delete: {
7990
+ server_mark_offline: {
7418
7991
  Args: {
7419
- p_id: string;
7992
+ p_reason?: string;
7993
+ p_server_id: string;
7994
+ p_source?: string;
7420
7995
  };
7421
- Returns: undefined;
7996
+ Returns: import("../types/database.types").Json;
7422
7997
  };
7423
- server_instance_get: {
7998
+ server_status_apply_callback: {
7424
7999
  Args: {
7425
- p_id: string;
8000
+ p_callback_token: string;
8001
+ p_payload: import("../types/database.types").Json;
8002
+ p_server_id: string;
7426
8003
  };
7427
- Returns: Database["public"]["CompositeTypes"]["server_instance_record"][];
7428
- SetofOptions: {
7429
- from: "*";
7430
- to: "server_instance_record";
7431
- isOneToOne: false;
7432
- isSetofReturn: true;
8004
+ Returns: import("../types/database.types").Json;
8005
+ };
8006
+ server_status_merge: {
8007
+ Args: {
8008
+ p_current_state: import("../types/database.types").Json;
8009
+ p_fact: import("../types/database.types").Json;
7433
8010
  };
8011
+ Returns: import("../types/database.types").Json;
7434
8012
  };
7435
- server_instance_list_cursor: {
8013
+ server_status_reconcile: {
7436
8014
  Args: {
7437
- p_cursor_id?: string;
7438
- p_cursor_is_shared?: boolean;
7439
- p_cursor_updated_at?: string;
7440
- p_is_shared?: boolean;
7441
- p_kw?: string;
7442
- p_limit?: number;
7443
- p_tag_ids?: string[];
8015
+ p_server_id: string;
7444
8016
  };
7445
- Returns: Database["public"]["CompositeTypes"]["server_instance_record"][];
7446
- SetofOptions: {
7447
- from: "*";
7448
- to: "server_instance_record";
7449
- isOneToOne: false;
7450
- isSetofReturn: true;
8017
+ Returns: import("../types/database.types").Json;
8018
+ };
8019
+ server_status_reconcile_due: {
8020
+ Args: {
8021
+ p_limit?: number;
7451
8022
  };
8023
+ Returns: number;
7452
8024
  };
7453
- server_instance_probe: {
8025
+ server_tunnel_sync: {
7454
8026
  Args: {
7455
- p_instance_id: string;
8027
+ p_server_id: string;
7456
8028
  };
7457
8029
  Returns: undefined;
7458
8030
  };
7459
- server_instance_upsert: {
8031
+ server_upsert: {
7460
8032
  Args: {
8033
+ p_compute_node_id?: string;
7461
8034
  p_config?: import("../types/database.types").Json;
7462
8035
  p_id?: string;
7463
- p_is_public?: boolean;
7464
- p_is_shared?: boolean;
7465
- p_name?: string;
7466
8036
  p_state?: import("../types/database.types").Json;
7467
- p_status?: Database["public"]["Enums"]["server_status"];
7468
- };
7469
- Returns: Database["public"]["CompositeTypes"]["server_instance_record"][];
7470
- SetofOptions: {
7471
- from: "*";
7472
- to: "server_instance_record";
7473
- isOneToOne: false;
7474
- isSetofReturn: true;
7475
- };
7476
- };
7477
- service_health_summary: {
7478
- Args: never;
7479
- Returns: Database["public"]["CompositeTypes"]["service_health_record"][];
7480
- SetofOptions: {
7481
- from: "*";
7482
- to: "service_health_record";
7483
- isOneToOne: false;
7484
- isSetofReturn: true;
7485
8037
  };
8038
+ Returns: {
8039
+ config: import("../types/database.types").Json;
8040
+ created_at: string;
8041
+ id: string;
8042
+ state: import("../types/database.types").Json;
8043
+ updated_at: string;
8044
+ }[];
7486
8045
  };
7487
8046
  sys_config_get: {
7488
8047
  Args: {
@@ -7511,38 +8070,6 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
7511
8070
  };
7512
8071
  Returns: string;
7513
8072
  };
7514
- sys_get_db_schema: {
7515
- Args: {
7516
- p_excluded_tables?: string[];
7517
- p_include_comments?: boolean;
7518
- p_include_functions?: boolean;
7519
- };
7520
- Returns: string;
7521
- };
7522
- sys_init_queue: {
7523
- Args: {
7524
- name: string;
7525
- };
7526
- Returns: undefined;
7527
- };
7528
- sys_log_list: {
7529
- Args: {
7530
- p_cursor?: string;
7531
- p_event_type?: string;
7532
- p_level_max?: Database["public"]["Enums"]["sys_log_level"];
7533
- p_limit?: number;
7534
- p_module?: string;
7535
- p_resource_id?: string;
7536
- p_resource_type?: string;
7537
- };
7538
- Returns: Database["public"]["CompositeTypes"]["sys_log_record"][];
7539
- SetofOptions: {
7540
- from: "*";
7541
- to: "sys_log_record";
7542
- isOneToOne: false;
7543
- isSetofReturn: true;
7544
- };
7545
- };
7546
8073
  sys_log_validate_meta: {
7547
8074
  Args: {
7548
8075
  p_event_type: string;
@@ -7556,6 +8083,13 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
7556
8083
  };
7557
8084
  Returns: undefined;
7558
8085
  };
8086
+ system_cleanup: {
8087
+ Args: {
8088
+ p_dry_run?: boolean;
8089
+ p_policy_name?: string;
8090
+ };
8091
+ Returns: import("../types/database.types").Json;
8092
+ };
7559
8093
  system_config_public_delete: {
7560
8094
  Args: {
7561
8095
  p_key: string;
@@ -7599,13 +8133,15 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
7599
8133
  };
7600
8134
  tag_list: {
7601
8135
  Args: never;
7602
- Returns: Database["public"]["CompositeTypes"]["tag_record"][];
7603
- SetofOptions: {
7604
- from: "*";
7605
- to: "tag_record";
7606
- isOneToOne: false;
7607
- isSetofReturn: true;
7608
- };
8136
+ Returns: {
8137
+ color: string;
8138
+ created_at: string;
8139
+ id: string;
8140
+ instance_count: number;
8141
+ name: string;
8142
+ updated_at: string;
8143
+ user_id: string;
8144
+ }[];
7609
8145
  };
7610
8146
  tag_upsert: {
7611
8147
  Args: {
@@ -7613,13 +8149,15 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
7613
8149
  p_id?: string;
7614
8150
  p_name?: string;
7615
8151
  };
7616
- Returns: Database["public"]["CompositeTypes"]["tag_record"][];
7617
- SetofOptions: {
7618
- from: "*";
7619
- to: "tag_record";
7620
- isOneToOne: false;
7621
- isSetofReturn: true;
7622
- };
8152
+ Returns: {
8153
+ color: string;
8154
+ created_at: string;
8155
+ id: string;
8156
+ instance_count: number;
8157
+ name: string;
8158
+ updated_at: string;
8159
+ user_id: string;
8160
+ }[];
7623
8161
  };
7624
8162
  task_ack: {
7625
8163
  Args: {
@@ -8013,12 +8551,20 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
8013
8551
  p_account_id: string;
8014
8552
  p_use_sms?: boolean;
8015
8553
  };
8016
- Returns: undefined;
8554
+ Returns: Database["public"]["CompositeTypes"]["telegram_login_response"][];
8555
+ SetofOptions: {
8556
+ from: "*";
8557
+ to: "telegram_login_response";
8558
+ isOneToOne: false;
8559
+ isSetofReturn: true;
8560
+ };
8017
8561
  };
8018
- telegram_login_submit_2fa: {
8562
+ telegram_login_step_process: {
8019
8563
  Args: {
8020
8564
  p_account_id: string;
8021
- p_password: string;
8565
+ p_body: import("../types/database.types").Json;
8566
+ p_step: string;
8567
+ p_success: boolean;
8022
8568
  };
8023
8569
  Returns: undefined;
8024
8570
  };
@@ -8027,7 +8573,35 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
8027
8573
  p_account_id: string;
8028
8574
  p_code: string;
8029
8575
  };
8030
- Returns: undefined;
8576
+ Returns: Database["public"]["CompositeTypes"]["telegram_login_response"][];
8577
+ SetofOptions: {
8578
+ from: "*";
8579
+ to: "telegram_login_response";
8580
+ isOneToOne: false;
8581
+ isSetofReturn: true;
8582
+ };
8583
+ };
8584
+ telegram_login_submit_two_fa: {
8585
+ Args: {
8586
+ p_account_id: string;
8587
+ p_password: string;
8588
+ };
8589
+ Returns: Database["public"]["CompositeTypes"]["telegram_login_response"][];
8590
+ SetofOptions: {
8591
+ from: "*";
8592
+ to: "telegram_login_response";
8593
+ isOneToOne: false;
8594
+ isSetofReturn: true;
8595
+ };
8596
+ };
8597
+ telegram_server_post: {
8598
+ Args: {
8599
+ p_body: import("../types/database.types").Json;
8600
+ p_path: string;
8601
+ p_preferred_server_id: string;
8602
+ p_timeout?: string;
8603
+ };
8604
+ Returns: import("../types/database.types").Json;
8031
8605
  };
8032
8606
  traffic_log_delete: {
8033
8607
  Args: never;
@@ -8084,29 +8658,6 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
8084
8658
  };
8085
8659
  Returns: undefined;
8086
8660
  };
8087
- user_log_list: {
8088
- Args: {
8089
- p_page?: number;
8090
- p_page_size?: number;
8091
- };
8092
- Returns: {
8093
- content: string | null;
8094
- created_at: string | null;
8095
- event_type: string;
8096
- id: string;
8097
- level: string;
8098
- meta: import("../types/database.types").Json | null;
8099
- resource_id: string | null;
8100
- resource_type: string | null;
8101
- user_id: string;
8102
- }[];
8103
- SetofOptions: {
8104
- from: "*";
8105
- to: "user_logs";
8106
- isOneToOne: false;
8107
- isSetofReturn: true;
8108
- };
8109
- };
8110
8661
  user_log_record: {
8111
8662
  Args: {
8112
8663
  p_content: string;
@@ -8127,10 +8678,17 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
8127
8678
  };
8128
8679
  user_profile_get: {
8129
8680
  Args: never;
8130
- Returns: Database["public"]["CompositeTypes"]["user_profile_record"][];
8681
+ Returns: {
8682
+ avatar_url: string | null;
8683
+ full_name: string | null;
8684
+ id: string;
8685
+ updated_at: string | null;
8686
+ username: string | null;
8687
+ website: string | null;
8688
+ }[];
8131
8689
  SetofOptions: {
8132
8690
  from: "*";
8133
- to: "user_profile_record";
8691
+ to: "profiles";
8134
8692
  isOneToOne: false;
8135
8693
  isSetofReturn: true;
8136
8694
  };
@@ -8149,12 +8707,12 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
8149
8707
  updated_at: string | null;
8150
8708
  username: string | null;
8151
8709
  website: string | null;
8152
- };
8710
+ }[];
8153
8711
  SetofOptions: {
8154
8712
  from: "*";
8155
8713
  to: "profiles";
8156
- isOneToOne: true;
8157
- isSetofReturn: false;
8714
+ isOneToOne: false;
8715
+ isSetofReturn: true;
8158
8716
  };
8159
8717
  };
8160
8718
  user_role_delete: {
@@ -8184,80 +8742,20 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
8184
8742
  chat_role: "system" | "user" | "assistant" | "model" | "error" | "tool";
8185
8743
  chat_visibility: "private" | "public";
8186
8744
  cloud_account_status: "pending" | "active" | "token_expired" | "needs_reauth" | "quota_exceeded" | "suspended" | "disabled";
8187
- compute_node_status: "online" | "offline";
8188
- server_status: "created" | "online" | "offline" | "error";
8745
+ openclaw_status: "disabled" | "pending" | "starting" | "running" | "stopping" | "stopped" | "error" | "migrating";
8189
8746
  sys_log_level: "error" | "warn" | "info";
8190
8747
  task_code_type: "sql" | "bash" | "python" | "agent" | "javascript";
8191
8748
  task_status: "draft" | "pending" | "queued" | "running" | "completed" | "failed" | "cancelled" | "paused";
8749
+ telegram_login_state: "idle" | "wait_code" | "need_2fa" | "wait_password" | "success" | "failed";
8192
8750
  telegram_login_step: "pending" | "send_code" | "wait_code" | "verify_code" | "need_2fa" | "success" | "failed" | "fetch_info";
8193
8751
  };
8194
8752
  CompositeTypes: {
8195
- adk_artifact_key_record: {
8196
- filename: string | null;
8197
- };
8198
- adk_artifact_meta_record: {
8199
- version: number | null;
8200
- canonical_uri: string | null;
8201
- custom_metadata: import("../types/database.types").Json | null;
8202
- create_time: number | null;
8203
- mime_type: string | null;
8204
- };
8205
- audit_project_record: {
8206
- id: string | null;
8207
- created_at: string | null;
8208
- updated_at: string | null;
8209
- user_id: string | null;
8210
- name: string | null;
8211
- target: string | null;
8212
- repo_url: string | null;
8213
- repo_branch: string | null;
8214
- config: import("../types/database.types").Json | null;
8215
- worker_id: string | null;
8216
- };
8217
8753
  audit_project_stats_record: {
8218
8754
  asset_count: number | null;
8219
8755
  finding_count: number | null;
8220
8756
  high_risk_count: number | null;
8221
8757
  task_count: number | null;
8222
8758
  };
8223
- bootstrap_result: {
8224
- success: boolean | null;
8225
- error: string | null;
8226
- config: import("../types/database.types").Json | null;
8227
- };
8228
- browser_record: {
8229
- id: string | null;
8230
- created_at: string | null;
8231
- updated_at: string | null;
8232
- title: string | null;
8233
- description: string | null;
8234
- profile_id: string | null;
8235
- provider: string | null;
8236
- provider_config: import("../types/database.types").Json | null;
8237
- config: import("../types/database.types").Json | null;
8238
- sandbox_id: string | null;
8239
- vnc_url: string | null;
8240
- browser_api_url: string | null;
8241
- worker_name: string | null;
8242
- is_running: boolean | null;
8243
- };
8244
- campaign_record: {
8245
- id: string | null;
8246
- created_at: string | null;
8247
- updated_at: string | null;
8248
- started_at: string | null;
8249
- completed_at: string | null;
8250
- user_id: string | null;
8251
- name: string | null;
8252
- description: string | null;
8253
- platform: string | null;
8254
- status: string | null;
8255
- config: import("../types/database.types").Json | null;
8256
- message_template: string | null;
8257
- target_filter: import("../types/database.types").Json | null;
8258
- schedule: import("../types/database.types").Json | null;
8259
- stats: import("../types/database.types").Json | null;
8260
- };
8261
8759
  cloud_account_record: {
8262
8760
  id: string | null;
8263
8761
  created_at: string | null;
@@ -8283,98 +8781,23 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
8283
8781
  device_history: import("../types/database.types").Json[] | null;
8284
8782
  credentials: import("../types/database.types").Json | null;
8285
8783
  };
8286
- compute_node_list_record: {
8287
- id: string | null;
8288
- user_id: string | null;
8289
- name: string | null;
8290
- provider: string | null;
8291
- host: string | null;
8292
- port: number | null;
8293
- username: string | null;
8294
- auth_secret: string | null;
8295
- status: Database["public"]["Enums"]["compute_node_status"] | null;
8296
- worker_count: number | null;
8297
- updated_at: string | null;
8298
- is_public: boolean | null;
8299
- created_at: string | null;
8300
- full_count: number | null;
8301
- };
8302
- compute_node_record: {
8303
- id: string | null;
8304
- user_id: string | null;
8305
- name: string | null;
8306
- provider: string | null;
8307
- host: string | null;
8308
- port: number | null;
8309
- username: string | null;
8310
- auth_secret: string | null;
8311
- status: Database["public"]["Enums"]["compute_node_status"] | null;
8312
- worker_count: number | null;
8313
- updated_at: string | null;
8314
- is_public: boolean | null;
8315
- created_at: string | null;
8316
- };
8317
- compute_node_secret_record: {
8318
- host: string | null;
8319
- port: number | null;
8320
- username: string | null;
8321
- auth_secret: string | null;
8322
- };
8323
- contact_record: {
8324
- id: string | null;
8325
- created_at: string | null;
8326
- updated_at: string | null;
8327
- user_id: string | null;
8328
- name: string | null;
8329
- phone: string | null;
8330
- telegram_id: number | null;
8331
- telegram_username: string | null;
8332
- email: string | null;
8333
- platform: string | null;
8334
- source: string | null;
8335
- tags: string[] | null;
8336
- status: string | null;
8337
- metadata: import("../types/database.types").Json | null;
8338
- };
8339
- dba_lint_issue: {
8340
- object_type: string | null;
8341
- object_name: string | null;
8342
- issue_category: string | null;
8343
- issue: string | null;
8344
- suggestion: string | null;
8345
- severity: string | null;
8346
- };
8347
8784
  job_queue_dlq_record: {
8348
8785
  msg_id: number | null;
8349
8786
  read_ct: number | null;
8350
8787
  enqueued_at: string | null;
8351
8788
  message: import("../types/database.types").Json | null;
8352
8789
  };
8353
- outreach_task_record: {
8354
- id: string | null;
8355
- created_at: string | null;
8356
- updated_at: string | null;
8357
- user_id: string | null;
8358
- campaign_id: string | null;
8359
- contact_id: string | null;
8360
- cloud_account_id: string | null;
8361
- status: string | null;
8362
- priority: number | null;
8363
- scheduled_at: string | null;
8364
- executed_at: string | null;
8365
- retry_count: number | null;
8366
- error_message: string | null;
8367
- metadata: import("../types/database.types").Json | null;
8368
- };
8369
- proxy_record: {
8790
+ log_unified_record: {
8370
8791
  id: string | null;
8792
+ source: string | null;
8371
8793
  created_at: string | null;
8372
- updated_at: string | null;
8373
- name: string | null;
8374
- description: string | null;
8375
- url: string | null;
8376
- type: string | null;
8377
- enabled: boolean | null;
8794
+ event_type: string | null;
8795
+ level: string | null;
8796
+ module: string | null;
8797
+ content: string | null;
8798
+ meta: import("../types/database.types").Json | null;
8799
+ resource_type: string | null;
8800
+ resource_id: string | null;
8378
8801
  user_id: string | null;
8379
8802
  };
8380
8803
  resource_list_record: {
@@ -8387,73 +8810,12 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
8387
8810
  url: string | null;
8388
8811
  updated_at: string | null;
8389
8812
  };
8390
- server_instance_record: {
8391
- id: string | null;
8392
- name: string | null;
8393
- updated_at: string | null;
8394
- config: import("../types/database.types").Json | null;
8395
- status: Database["public"]["Enums"]["server_status"] | null;
8396
- is_public: boolean | null;
8397
- state: import("../types/database.types").Json | null;
8398
- created_at: string | null;
8399
- user_id: string | null;
8400
- is_shared: boolean | null;
8401
- };
8402
- service_health_record: {
8403
- module: string | null;
8404
- status: string | null;
8405
- last_error_at: string | null;
8406
- last_error_message: string | null;
8407
- error_count_24h: number | null;
8408
- };
8409
- sys_log_record: {
8410
- id: number | null;
8411
- created_at: string | null;
8412
- text: string | null;
8413
- level: Database["public"]["Enums"]["sys_log_level"] | null;
8414
- module: string | null;
8415
- event_type: string | null;
8416
- meta: import("../types/database.types").Json | null;
8417
- resource_type: string | null;
8418
- resource_id: string | null;
8419
- resource_name: string | null;
8420
- user_id: string | null;
8421
- };
8422
- tag_record: {
8423
- id: string | null;
8424
- name: string | null;
8425
- color: string | null;
8426
- user_id: string | null;
8427
- created_at: string | null;
8428
- updated_at: string | null;
8429
- instance_count: number | null;
8430
- };
8431
- user_notification_record: {
8432
- id: string | null;
8433
- created_at: string | null;
8434
- updated_at: string | null;
8435
- user_id: string | null;
8436
- title: string | null;
8437
- message: string | null;
8438
- notification_type: string | null;
8439
- priority: string | null;
8440
- source_type: string | null;
8441
- source_id: string | null;
8442
- action_type: string | null;
8443
- action_payload: import("../types/database.types").Json | null;
8444
- action_completed_at: string | null;
8445
- is_read: boolean | null;
8446
- read_at: string | null;
8447
- dismissed_at: string | null;
8448
- expires_at: string | null;
8449
- };
8450
- user_profile_record: {
8451
- id: string | null;
8452
- full_name: string | null;
8453
- username: string | null;
8454
- website: string | null;
8455
- avatar_url: string | null;
8456
- updated_at: string | null;
8813
+ telegram_login_response: {
8814
+ success: boolean | null;
8815
+ step: string | null;
8816
+ timeout_seconds: number | null;
8817
+ error_message: string | null;
8818
+ user_info: import("../types/database.types").Json | null;
8457
8819
  };
8458
8820
  };
8459
8821
  }, {