mtmsdk 0.0.48 → 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
@@ -247,42 +247,6 @@ export type Database = {
247
247
  };
248
248
  Relationships: [];
249
249
  };
250
- agents: {
251
- Row: {
252
- config: Json | null;
253
- created_at: string;
254
- description: string | null;
255
- id: string;
256
- instruction: string | null;
257
- max_step: number | null;
258
- runtime: string | null;
259
- tools: string | null;
260
- updated_at: string;
261
- };
262
- Insert: {
263
- config?: Json | null;
264
- created_at?: string;
265
- description?: string | null;
266
- id: string;
267
- instruction?: string | null;
268
- max_step?: number | null;
269
- runtime?: string | null;
270
- tools?: string | null;
271
- updated_at?: string;
272
- };
273
- Update: {
274
- config?: Json | null;
275
- created_at?: string;
276
- description?: string | null;
277
- id?: string;
278
- instruction?: string | null;
279
- max_step?: number | null;
280
- runtime?: string | null;
281
- tools?: string | null;
282
- updated_at?: string;
283
- };
284
- Relationships: [];
285
- };
286
250
  audit_assets: {
287
251
  Row: {
288
252
  content: string;
@@ -704,6 +668,39 @@ export type Database = {
704
668
  };
705
669
  Relationships: [];
706
670
  };
671
+ cleanup_policies: {
672
+ Row: {
673
+ cleanup_function: string;
674
+ created_at: string;
675
+ enabled: boolean;
676
+ id: string;
677
+ policy_name: string;
678
+ retention_days: number;
679
+ table_name: string;
680
+ updated_at: string;
681
+ };
682
+ Insert: {
683
+ cleanup_function: string;
684
+ created_at?: string;
685
+ enabled?: boolean;
686
+ id?: string;
687
+ policy_name: string;
688
+ retention_days?: number;
689
+ table_name: string;
690
+ updated_at?: string;
691
+ };
692
+ Update: {
693
+ cleanup_function?: string;
694
+ created_at?: string;
695
+ enabled?: boolean;
696
+ id?: string;
697
+ policy_name?: string;
698
+ retention_days?: number;
699
+ table_name?: string;
700
+ updated_at?: string;
701
+ };
702
+ Relationships: [];
703
+ };
707
704
  cloud_accounts: {
708
705
  Row: {
709
706
  access_token: string | null;
@@ -810,7 +807,6 @@ export type Database = {
810
807
  name: string;
811
808
  port: number;
812
809
  provider: string;
813
- status: Database["public"]["Enums"]["compute_node_status"] | null;
814
810
  updated_at: string;
815
811
  user_id: string;
816
812
  username: string | null;
@@ -824,7 +820,6 @@ export type Database = {
824
820
  name: string;
825
821
  port?: number;
826
822
  provider?: string;
827
- status?: Database["public"]["Enums"]["compute_node_status"] | null;
828
823
  updated_at?: string;
829
824
  user_id?: string;
830
825
  username?: string | null;
@@ -838,7 +833,6 @@ export type Database = {
838
833
  name?: string;
839
834
  port?: number;
840
835
  provider?: string;
841
- status?: Database["public"]["Enums"]["compute_node_status"] | null;
842
836
  updated_at?: string;
843
837
  user_id?: string;
844
838
  username?: string | null;
@@ -1026,6 +1020,62 @@ export type Database = {
1026
1020
  }
1027
1021
  ];
1028
1022
  };
1023
+ openclaws: {
1024
+ Row: {
1025
+ config: Json;
1026
+ created_at: string;
1027
+ desired_status: Database["public"]["Enums"]["openclaw_status"];
1028
+ id: string;
1029
+ metadata: Json | null;
1030
+ name: string | null;
1031
+ resolved_config: Json;
1032
+ server_id: string | null;
1033
+ state: Json | null;
1034
+ status: Database["public"]["Enums"]["openclaw_status"];
1035
+ status_reason: string | null;
1036
+ updated_at: string;
1037
+ user_id: string;
1038
+ };
1039
+ Insert: {
1040
+ config?: Json;
1041
+ created_at?: string;
1042
+ desired_status?: Database["public"]["Enums"]["openclaw_status"];
1043
+ id?: string;
1044
+ metadata?: Json | null;
1045
+ name?: string | null;
1046
+ resolved_config?: Json;
1047
+ server_id?: string | null;
1048
+ state?: Json | null;
1049
+ status?: Database["public"]["Enums"]["openclaw_status"];
1050
+ status_reason?: string | null;
1051
+ updated_at?: string;
1052
+ user_id?: string;
1053
+ };
1054
+ Update: {
1055
+ config?: Json;
1056
+ created_at?: string;
1057
+ desired_status?: Database["public"]["Enums"]["openclaw_status"];
1058
+ id?: string;
1059
+ metadata?: Json | null;
1060
+ name?: string | null;
1061
+ resolved_config?: Json;
1062
+ server_id?: string | null;
1063
+ state?: Json | null;
1064
+ status?: Database["public"]["Enums"]["openclaw_status"];
1065
+ status_reason?: string | null;
1066
+ updated_at?: string;
1067
+ user_id?: string;
1068
+ };
1069
+ Relationships: [
1070
+ {
1071
+ foreignKeyName: "openclaws_server_id_fkey";
1072
+ columns: ["server_id"];
1073
+ isOneToOne: false;
1074
+ referencedRelation: "servers";
1075
+ referencedColumns: ["id"];
1076
+ }
1077
+ ];
1078
+ };
1029
1079
  outreach_messages: {
1030
1080
  Row: {
1031
1081
  content: string | null;
@@ -1268,37 +1318,22 @@ export type Database = {
1268
1318
  config: Json | null;
1269
1319
  created_at: string;
1270
1320
  id: string;
1271
- is_public: boolean | null;
1272
- is_shared: boolean | null;
1273
- name: string | null;
1274
1321
  state: Json | null;
1275
- status: Database["public"]["Enums"]["server_status"] | null;
1276
1322
  updated_at: string;
1277
- user_id: string | null;
1278
1323
  };
1279
1324
  Insert: {
1280
1325
  config?: Json | null;
1281
1326
  created_at?: string;
1282
1327
  id: string;
1283
- is_public?: boolean | null;
1284
- is_shared?: boolean | null;
1285
- name?: string | null;
1286
1328
  state?: Json | null;
1287
- status?: Database["public"]["Enums"]["server_status"] | null;
1288
1329
  updated_at?: string;
1289
- user_id?: string | null;
1290
1330
  };
1291
1331
  Update: {
1292
1332
  config?: Json | null;
1293
1333
  created_at?: string;
1294
1334
  id?: string;
1295
- is_public?: boolean | null;
1296
- is_shared?: boolean | null;
1297
- name?: string | null;
1298
1335
  state?: Json | null;
1299
- status?: Database["public"]["Enums"]["server_status"] | null;
1300
1336
  updated_at?: string;
1301
- user_id?: string | null;
1302
1337
  };
1303
1338
  Relationships: [];
1304
1339
  };
@@ -1684,27 +1719,6 @@ export type Database = {
1684
1719
  [_ in never]: never;
1685
1720
  };
1686
1721
  Functions: {
1687
- _sys_config_get: {
1688
- Args: {
1689
- p_key: string;
1690
- };
1691
- Returns: Json;
1692
- };
1693
- action_tool_query: {
1694
- Args: {
1695
- p_prefix?: string;
1696
- };
1697
- Returns: Json;
1698
- };
1699
- action_tool_reply_to_user: {
1700
- Args: {
1701
- p_actions?: Json;
1702
- p_chat_id?: string;
1703
- p_text?: string;
1704
- p_user_id?: string;
1705
- };
1706
- Returns: Json;
1707
- };
1708
1722
  adk_agent_list: {
1709
1723
  Args: never;
1710
1724
  Returns: {
@@ -1740,35 +1754,6 @@ export type Database = {
1740
1754
  };
1741
1755
  Returns: Json;
1742
1756
  };
1743
- adk_artifact_list_keys: {
1744
- Args: {
1745
- p_app_name: string;
1746
- p_session_id: string;
1747
- p_user_id: string;
1748
- };
1749
- Returns: Database["public"]["CompositeTypes"]["adk_artifact_key_record"][];
1750
- SetofOptions: {
1751
- from: "*";
1752
- to: "adk_artifact_key_record";
1753
- isOneToOne: false;
1754
- isSetofReturn: true;
1755
- };
1756
- };
1757
- adk_artifact_list_versions_meta: {
1758
- Args: {
1759
- p_app_name: string;
1760
- p_filename: string;
1761
- p_session_id: string;
1762
- p_user_id: string;
1763
- };
1764
- Returns: Database["public"]["CompositeTypes"]["adk_artifact_meta_record"][];
1765
- SetofOptions: {
1766
- from: "*";
1767
- to: "adk_artifact_meta_record";
1768
- isOneToOne: false;
1769
- isSetofReturn: true;
1770
- };
1771
- };
1772
1757
  adk_artifact_save: {
1773
1758
  Args: {
1774
1759
  p_app_name: string;
@@ -1843,12 +1828,6 @@ export type Database = {
1843
1828
  p_usage_metadata?: Json;
1844
1829
  p_user_id?: string;
1845
1830
  };
1846
- Returns: Json;
1847
- };
1848
- adk_event_upsert_from_json: {
1849
- Args: {
1850
- p_payload: Json;
1851
- };
1852
1831
  Returns: {
1853
1832
  actions: Json | null;
1854
1833
  app_name: string | null;
@@ -1874,12 +1853,12 @@ export type Database = {
1874
1853
  updated_at: string;
1875
1854
  usage_metadata: Json | null;
1876
1855
  user_id: string | null;
1877
- };
1856
+ }[];
1878
1857
  SetofOptions: {
1879
1858
  from: "*";
1880
1859
  to: "adk_events";
1881
- isOneToOne: true;
1882
- isSetofReturn: false;
1860
+ isOneToOne: false;
1861
+ isSetofReturn: true;
1883
1862
  };
1884
1863
  };
1885
1864
  adk_quick_start_list: {
@@ -1978,14 +1957,6 @@ export type Database = {
1978
1957
  };
1979
1958
  Returns: Json;
1980
1959
  };
1981
- agent_tool_exec_read_sql: {
1982
- Args: {
1983
- p_max_chars?: number;
1984
- p_max_rows?: number;
1985
- sql_query: string;
1986
- };
1987
- Returns: string;
1988
- };
1989
1960
  audit_artifact_list: {
1990
1961
  Args: {
1991
1962
  p_project_id: string;
@@ -2014,9 +1985,9 @@ export type Database = {
2014
1985
  Args: {
2015
1986
  p_cursor?: string;
2016
1987
  p_cursor_id?: string;
2017
- p_kw?: string;
2018
1988
  p_limit?: number;
2019
1989
  p_project_id: string;
1990
+ p_search?: string;
2020
1991
  };
2021
1992
  Returns: {
2022
1993
  content: string;
@@ -2039,9 +2010,9 @@ export type Database = {
2039
2010
  Args: {
2040
2011
  p_cursor?: string;
2041
2012
  p_cursor_id?: string;
2042
- p_kw?: string;
2043
2013
  p_limit?: number;
2044
2014
  p_project_id: string;
2015
+ p_search?: string;
2045
2016
  };
2046
2017
  Returns: {
2047
2018
  ai_analysis: string | null;
@@ -2103,13 +2074,18 @@ export type Database = {
2103
2074
  Args: {
2104
2075
  p_id: string;
2105
2076
  };
2106
- Returns: Database["public"]["CompositeTypes"]["audit_project_record"][];
2107
- SetofOptions: {
2108
- from: "*";
2109
- to: "audit_project_record";
2110
- isOneToOne: false;
2111
- isSetofReturn: true;
2112
- };
2077
+ Returns: {
2078
+ config: Json;
2079
+ created_at: string;
2080
+ id: string;
2081
+ name: string;
2082
+ repo_branch: string;
2083
+ repo_url: string;
2084
+ target: string;
2085
+ updated_at: string;
2086
+ user_id: string;
2087
+ worker_id: string;
2088
+ }[];
2113
2089
  };
2114
2090
  audit_project_list: {
2115
2091
  Args: {
@@ -2117,28 +2093,38 @@ export type Database = {
2117
2093
  p_page_no?: number;
2118
2094
  p_page_size?: number;
2119
2095
  };
2120
- Returns: Database["public"]["CompositeTypes"]["audit_project_record"][];
2121
- SetofOptions: {
2122
- from: "*";
2123
- to: "audit_project_record";
2124
- isOneToOne: false;
2125
- isSetofReturn: true;
2126
- };
2096
+ Returns: {
2097
+ config: Json;
2098
+ created_at: string;
2099
+ id: string;
2100
+ name: string;
2101
+ repo_branch: string;
2102
+ repo_url: string;
2103
+ target: string;
2104
+ updated_at: string;
2105
+ user_id: string;
2106
+ worker_id: string;
2107
+ }[];
2127
2108
  };
2128
2109
  audit_project_list_cursor: {
2129
2110
  Args: {
2130
2111
  p_cursor?: string;
2131
2112
  p_cursor_id?: string;
2132
- p_kw?: string;
2133
2113
  p_limit?: number;
2114
+ p_search?: string;
2134
2115
  };
2135
- Returns: Database["public"]["CompositeTypes"]["audit_project_record"][];
2136
- SetofOptions: {
2137
- from: "*";
2138
- to: "audit_project_record";
2139
- isOneToOne: false;
2140
- isSetofReturn: true;
2141
- };
2116
+ Returns: {
2117
+ config: Json;
2118
+ created_at: string;
2119
+ id: string;
2120
+ name: string;
2121
+ repo_branch: string;
2122
+ repo_url: string;
2123
+ target: string;
2124
+ updated_at: string;
2125
+ user_id: string;
2126
+ worker_id: string;
2127
+ }[];
2142
2128
  };
2143
2129
  audit_project_upsert: {
2144
2130
  Args: {
@@ -2150,7 +2136,18 @@ export type Database = {
2150
2136
  p_target?: string;
2151
2137
  p_worker_id?: string;
2152
2138
  };
2153
- Returns: string;
2139
+ Returns: {
2140
+ config: Json;
2141
+ created_at: string;
2142
+ id: string;
2143
+ name: string;
2144
+ repo_branch: string;
2145
+ repo_url: string;
2146
+ target: string;
2147
+ updated_at: string;
2148
+ user_id: string;
2149
+ worker_id: string;
2150
+ }[];
2154
2151
  };
2155
2152
  audit_skill_list: {
2156
2153
  Args: {
@@ -2196,13 +2193,22 @@ export type Database = {
2196
2193
  Args: {
2197
2194
  p_id: string;
2198
2195
  };
2199
- Returns: Database["public"]["CompositeTypes"]["browser_record"][];
2200
- SetofOptions: {
2201
- from: "*";
2202
- to: "browser_record";
2203
- isOneToOne: false;
2204
- isSetofReturn: true;
2205
- };
2196
+ Returns: {
2197
+ browser_api_url: string;
2198
+ config: Json;
2199
+ created_at: string;
2200
+ description: string;
2201
+ id: string;
2202
+ is_running: boolean;
2203
+ profile_id: string;
2204
+ provider: string;
2205
+ provider_config: Json;
2206
+ sandbox_id: string;
2207
+ title: string;
2208
+ updated_at: string;
2209
+ vnc_url: string;
2210
+ worker_name: string;
2211
+ }[];
2206
2212
  };
2207
2213
  browser_list: {
2208
2214
  Args: {
@@ -2210,13 +2216,22 @@ export type Database = {
2210
2216
  p_page_no?: number;
2211
2217
  p_page_size?: number;
2212
2218
  };
2213
- Returns: Database["public"]["CompositeTypes"]["browser_record"][];
2214
- SetofOptions: {
2215
- from: "*";
2216
- to: "browser_record";
2217
- isOneToOne: false;
2218
- isSetofReturn: true;
2219
- };
2219
+ Returns: {
2220
+ browser_api_url: string;
2221
+ config: Json;
2222
+ created_at: string;
2223
+ description: string;
2224
+ id: string;
2225
+ is_running: boolean;
2226
+ profile_id: string;
2227
+ provider: string;
2228
+ provider_config: Json;
2229
+ sandbox_id: string;
2230
+ title: string;
2231
+ updated_at: string;
2232
+ vnc_url: string;
2233
+ worker_name: string;
2234
+ }[];
2220
2235
  };
2221
2236
  browser_update_state: {
2222
2237
  Args: {
@@ -2235,13 +2250,22 @@ export type Database = {
2235
2250
  p_provider_config?: Json;
2236
2251
  p_title?: string;
2237
2252
  };
2238
- Returns: Database["public"]["CompositeTypes"]["browser_record"][];
2239
- SetofOptions: {
2240
- from: "*";
2241
- to: "browser_record";
2242
- isOneToOne: false;
2243
- isSetofReturn: true;
2244
- };
2253
+ Returns: {
2254
+ browser_api_url: string;
2255
+ config: Json;
2256
+ created_at: string;
2257
+ description: string;
2258
+ id: string;
2259
+ is_running: boolean;
2260
+ profile_id: string;
2261
+ provider: string;
2262
+ provider_config: Json;
2263
+ sandbox_id: string;
2264
+ title: string;
2265
+ updated_at: string;
2266
+ vnc_url: string;
2267
+ worker_name: string;
2268
+ }[];
2245
2269
  };
2246
2270
  campaign_delete: {
2247
2271
  Args: {
@@ -2253,28 +2277,48 @@ export type Database = {
2253
2277
  Args: {
2254
2278
  p_id: string;
2255
2279
  };
2256
- Returns: Database["public"]["CompositeTypes"]["campaign_record"][];
2257
- SetofOptions: {
2258
- from: "*";
2259
- to: "campaign_record";
2260
- isOneToOne: false;
2261
- isSetofReturn: true;
2262
- };
2263
- };
2264
- campaign_list_cursor: {
2265
- Args: {
2266
- p_cursor?: string;
2267
- p_limit?: number;
2268
- p_search?: string;
2269
- p_status?: string;
2270
- };
2271
- Returns: Database["public"]["CompositeTypes"]["campaign_record"][];
2272
- SetofOptions: {
2273
- from: "*";
2274
- to: "campaign_record";
2275
- isOneToOne: false;
2276
- isSetofReturn: true;
2280
+ Returns: {
2281
+ completed_at: string;
2282
+ config: Json;
2283
+ created_at: string;
2284
+ description: string;
2285
+ id: string;
2286
+ message_template: string;
2287
+ name: string;
2288
+ platform: string;
2289
+ schedule: Json;
2290
+ started_at: string;
2291
+ stats: Json;
2292
+ status: string;
2293
+ target_filter: Json;
2294
+ updated_at: string;
2295
+ user_id: string;
2296
+ }[];
2297
+ };
2298
+ campaign_list_cursor: {
2299
+ Args: {
2300
+ p_cursor?: string;
2301
+ p_limit?: number;
2302
+ p_search?: string;
2303
+ p_status?: string;
2277
2304
  };
2305
+ Returns: {
2306
+ completed_at: string;
2307
+ config: Json;
2308
+ created_at: string;
2309
+ description: string;
2310
+ id: string;
2311
+ message_template: string;
2312
+ name: string;
2313
+ platform: string;
2314
+ schedule: Json;
2315
+ started_at: string;
2316
+ stats: Json;
2317
+ status: string;
2318
+ target_filter: Json;
2319
+ updated_at: string;
2320
+ user_id: string;
2321
+ }[];
2278
2322
  };
2279
2323
  campaign_pause: {
2280
2324
  Args: {
@@ -2299,13 +2343,23 @@ export type Database = {
2299
2343
  p_schedule?: Json;
2300
2344
  p_target_filter?: Json;
2301
2345
  };
2302
- Returns: Database["public"]["CompositeTypes"]["campaign_record"][];
2303
- SetofOptions: {
2304
- from: "*";
2305
- to: "campaign_record";
2306
- isOneToOne: false;
2307
- isSetofReturn: true;
2308
- };
2346
+ Returns: {
2347
+ completed_at: string;
2348
+ config: Json;
2349
+ created_at: string;
2350
+ description: string;
2351
+ id: string;
2352
+ message_template: string;
2353
+ name: string;
2354
+ platform: string;
2355
+ schedule: Json;
2356
+ started_at: string;
2357
+ stats: Json;
2358
+ status: string;
2359
+ target_filter: Json;
2360
+ updated_at: string;
2361
+ user_id: string;
2362
+ }[];
2309
2363
  };
2310
2364
  chat_get: {
2311
2365
  Args: {
@@ -2428,21 +2482,25 @@ export type Database = {
2428
2482
  updated_at: string | null;
2429
2483
  user_id: string | null;
2430
2484
  visibility: Database["public"]["Enums"]["chat_visibility"];
2431
- };
2485
+ }[];
2432
2486
  SetofOptions: {
2433
2487
  from: "*";
2434
2488
  to: "chats";
2435
- isOneToOne: true;
2436
- isSetofReturn: false;
2489
+ isOneToOne: false;
2490
+ isSetofReturn: true;
2437
2491
  };
2438
2492
  };
2439
2493
  check_account_rate_limit: {
2440
2494
  Args: {
2441
2495
  p_account_id: string;
2442
- p_campaign_config: Json;
2496
+ p_campaign_config?: Json;
2443
2497
  };
2444
2498
  Returns: boolean;
2445
2499
  };
2500
+ cleanup_servers_ingress: {
2501
+ Args: never;
2502
+ Returns: number;
2503
+ };
2446
2504
  cloud_account_bulk_create: {
2447
2505
  Args: {
2448
2506
  p_account_names: string[];
@@ -2504,10 +2562,10 @@ export type Database = {
2504
2562
  cloud_account_list_cursor: {
2505
2563
  Args: {
2506
2564
  p_cursor?: string;
2507
- p_kw?: string;
2508
2565
  p_limit?: number;
2509
2566
  p_platform_name?: string;
2510
- p_status?: Database["public"]["Enums"]["cloud_account_status"];
2567
+ p_search?: string;
2568
+ p_status?: string;
2511
2569
  };
2512
2570
  Returns: Database["public"]["CompositeTypes"]["cloud_account_record"][];
2513
2571
  SetofOptions: {
@@ -2575,6 +2633,12 @@ export type Database = {
2575
2633
  isSetofReturn: true;
2576
2634
  };
2577
2635
  };
2636
+ code_run_result_parse: {
2637
+ Args: {
2638
+ p_result: Json;
2639
+ };
2640
+ Returns: Json;
2641
+ };
2578
2642
  compute_node_delete: {
2579
2643
  Args: {
2580
2644
  p_id: string;
@@ -2583,59 +2647,77 @@ export type Database = {
2583
2647
  };
2584
2648
  compute_node_get: {
2585
2649
  Args: {
2586
- p_id: string;
2587
- };
2588
- Returns: Database["public"]["CompositeTypes"]["compute_node_record"][];
2589
- SetofOptions: {
2590
- from: "*";
2591
- to: "compute_node_record";
2592
- isOneToOne: false;
2593
- isSetofReturn: true;
2650
+ p_id?: string;
2651
+ p_user_id?: string;
2594
2652
  };
2653
+ Returns: {
2654
+ auth_secret: string | null;
2655
+ created_at: string | null;
2656
+ host: string | null;
2657
+ id: string | null;
2658
+ is_public: boolean | null;
2659
+ name: string | null;
2660
+ port: number | null;
2661
+ provider: string | null;
2662
+ updated_at: string | null;
2663
+ user_id: string | null;
2664
+ username: string | null;
2665
+ }[];
2595
2666
  };
2596
2667
  compute_node_get_secret: {
2597
2668
  Args: {
2598
2669
  target_id: string;
2599
2670
  };
2600
- Returns: Database["public"]["CompositeTypes"]["compute_node_secret_record"][];
2601
- SetofOptions: {
2602
- from: "*";
2603
- to: "compute_node_secret_record";
2604
- isOneToOne: false;
2605
- isSetofReturn: true;
2606
- };
2671
+ Returns: {
2672
+ auth_secret: string;
2673
+ host: string;
2674
+ port: number;
2675
+ username: string;
2676
+ }[];
2607
2677
  };
2608
2678
  compute_node_list: {
2609
2679
  Args: {
2610
- p_kw?: string;
2611
- p_page_no?: number;
2612
- p_page_size?: number;
2613
- };
2614
- Returns: Database["public"]["CompositeTypes"]["compute_node_list_record"][];
2615
- SetofOptions: {
2616
- from: "*";
2617
- to: "compute_node_list_record";
2618
- isOneToOne: false;
2619
- isSetofReturn: true;
2680
+ p_user_id?: string;
2620
2681
  };
2682
+ Returns: {
2683
+ auth_secret: string | null;
2684
+ created_at: string | null;
2685
+ host: string | null;
2686
+ id: string | null;
2687
+ is_public: boolean | null;
2688
+ name: string | null;
2689
+ port: number | null;
2690
+ provider: string | null;
2691
+ updated_at: string | null;
2692
+ user_id: string | null;
2693
+ username: string | null;
2694
+ }[];
2621
2695
  };
2622
2696
  compute_node_upsert: {
2623
2697
  Args: {
2624
2698
  p_auth_secret?: string;
2625
- p_host: string;
2626
- p_id: string;
2627
- p_name: string;
2699
+ p_host?: string;
2700
+ p_id?: string;
2701
+ p_is_public?: boolean;
2702
+ p_name?: string;
2628
2703
  p_port?: number;
2629
- p_provider: string;
2704
+ p_provider?: string;
2630
2705
  p_username?: string;
2706
+ p_worker_count?: number;
2631
2707
  };
2632
- Returns: Database["public"]["CompositeTypes"]["compute_node_record"][];
2633
- SetofOptions: {
2634
- from: "*";
2635
- to: "compute_node_record";
2636
- isOneToOne: false;
2637
- isSetofReturn: true;
2638
- };
2708
+ Returns: {
2709
+ auth_secret: string | null;
2710
+ created_at: string | null;
2711
+ host: string | null;
2712
+ id: string | null;
2713
+ is_public: boolean | null;
2714
+ name: string | null;
2715
+ port: number | null;
2716
+ provider: string | null;
2717
+ updated_at: string | null;
2718
+ user_id: string | null;
2719
+ username: string | null;
2720
+ }[];
2639
2721
  };
2640
2722
  compute_server_public_url: {
2641
2723
  Args: {
@@ -2672,13 +2754,22 @@ export type Database = {
2672
2754
  p_platform?: string;
2673
2755
  p_telegram_id?: number;
2674
2756
  };
2675
- Returns: Database["public"]["CompositeTypes"]["contact_record"][];
2676
- SetofOptions: {
2677
- from: "*";
2678
- to: "contact_record";
2679
- isOneToOne: false;
2680
- isSetofReturn: true;
2681
- };
2757
+ Returns: {
2758
+ created_at: string;
2759
+ email: string;
2760
+ id: string;
2761
+ metadata: Json;
2762
+ name: string;
2763
+ phone: string;
2764
+ platform: string;
2765
+ source: string;
2766
+ status: string;
2767
+ tags: string[];
2768
+ telegram_id: number;
2769
+ telegram_username: string;
2770
+ updated_at: string;
2771
+ user_id: string;
2772
+ }[];
2682
2773
  };
2683
2774
  contact_list_cursor: {
2684
2775
  Args: {
@@ -2689,13 +2780,22 @@ export type Database = {
2689
2780
  p_status?: string;
2690
2781
  p_tags?: string[];
2691
2782
  };
2692
- Returns: Database["public"]["CompositeTypes"]["contact_record"][];
2693
- SetofOptions: {
2694
- from: "*";
2695
- to: "contact_record";
2696
- isOneToOne: false;
2697
- isSetofReturn: true;
2698
- };
2783
+ Returns: {
2784
+ created_at: string;
2785
+ email: string;
2786
+ id: string;
2787
+ metadata: Json;
2788
+ name: string;
2789
+ phone: string;
2790
+ platform: string;
2791
+ source: string;
2792
+ status: string;
2793
+ tags: string[];
2794
+ telegram_id: number;
2795
+ telegram_username: string;
2796
+ updated_at: string;
2797
+ user_id: string;
2798
+ }[];
2699
2799
  };
2700
2800
  contact_list_tags: {
2701
2801
  Args: never;
@@ -2722,13 +2822,22 @@ export type Database = {
2722
2822
  p_telegram_id?: number;
2723
2823
  p_telegram_username?: string;
2724
2824
  };
2725
- Returns: Database["public"]["CompositeTypes"]["contact_record"][];
2726
- SetofOptions: {
2727
- from: "*";
2728
- to: "contact_record";
2729
- isOneToOne: false;
2730
- isSetofReturn: true;
2731
- };
2825
+ Returns: {
2826
+ created_at: string;
2827
+ email: string;
2828
+ id: string;
2829
+ metadata: Json;
2830
+ name: string;
2831
+ phone: string;
2832
+ platform: string;
2833
+ source: string;
2834
+ status: string;
2835
+ tags: string[];
2836
+ telegram_id: number;
2837
+ telegram_username: string;
2838
+ updated_at: string;
2839
+ user_id: string;
2840
+ }[];
2732
2841
  };
2733
2842
  create_notification: {
2734
2843
  Args: {
@@ -2751,41 +2860,39 @@ export type Database = {
2751
2860
  };
2752
2861
  Returns: Json;
2753
2862
  };
2754
- dba_lint_scan: {
2863
+ get_github_app_public_info: {
2755
2864
  Args: never;
2756
- Returns: Database["public"]["CompositeTypes"]["dba_lint_issue"][];
2757
- SetofOptions: {
2758
- from: "*";
2759
- to: "dba_lint_issue";
2760
- isOneToOne: false;
2761
- isSetofReturn: true;
2762
- };
2865
+ Returns: Json;
2763
2866
  };
2764
- debug_role: {
2867
+ get_jwt_role: {
2765
2868
  Args: never;
2766
2869
  Returns: string;
2767
2870
  };
2768
- debug_sec_def: {
2871
+ get_system_primary_domain: {
2769
2872
  Args: never;
2770
2873
  Returns: string;
2771
2874
  };
2772
- get_encryption_key: {
2773
- Args: never;
2875
+ get_user_id_from_token: {
2876
+ Args: {
2877
+ p_token: string;
2878
+ };
2774
2879
  Returns: string;
2775
2880
  };
2776
- get_github_app_public_info: {
2777
- Args: never;
2778
- Returns: Json;
2881
+ get_worker_subdomain: {
2882
+ Args: {
2883
+ p_worker_id: string;
2884
+ };
2885
+ Returns: string;
2779
2886
  };
2780
- get_jwt_role: {
2887
+ github_list_installation_repos: {
2781
2888
  Args: never;
2782
- Returns: string;
2889
+ Returns: Json;
2783
2890
  };
2784
- get_user_id_from_token: {
2891
+ github_list_repo_branches: {
2785
2892
  Args: {
2786
- p_token: string;
2893
+ p_repo_full_name: string;
2787
2894
  };
2788
- Returns: string;
2895
+ Returns: Json;
2789
2896
  };
2790
2897
  gomtm_model_count: {
2791
2898
  Args: {
@@ -2817,12 +2924,12 @@ export type Database = {
2817
2924
  provider: string;
2818
2925
  updated_at: string;
2819
2926
  user_id: string;
2820
- };
2927
+ }[];
2821
2928
  SetofOptions: {
2822
2929
  from: "*";
2823
2930
  to: "gomtm_models";
2824
- isOneToOne: true;
2825
- isSetofReturn: false;
2931
+ isOneToOne: false;
2932
+ isSetofReturn: true;
2826
2933
  };
2827
2934
  };
2828
2935
  gomtm_model_list_cursor: {
@@ -2855,15 +2962,15 @@ export type Database = {
2855
2962
  };
2856
2963
  gomtm_model_upsert: {
2857
2964
  Args: {
2858
- p_api_base?: string;
2859
- p_api_key?: string;
2860
- p_config?: Json;
2861
- p_id?: string;
2862
- p_is_active?: boolean;
2863
- p_linked_account_id?: string;
2864
- p_model?: string;
2865
- p_name?: string;
2866
- p_provider?: string;
2965
+ p_api_base: string;
2966
+ p_api_key: string;
2967
+ p_config: Json;
2968
+ p_id: string;
2969
+ p_is_active: boolean;
2970
+ p_linked_account_id: string;
2971
+ p_model: string;
2972
+ p_name: string;
2973
+ p_provider: string;
2867
2974
  };
2868
2975
  Returns: {
2869
2976
  api_base: string | null;
@@ -2878,61 +2985,29 @@ export type Database = {
2878
2985
  provider: string;
2879
2986
  updated_at: string;
2880
2987
  user_id: string;
2881
- };
2988
+ }[];
2882
2989
  SetofOptions: {
2883
2990
  from: "*";
2884
2991
  to: "gomtm_models";
2885
- isOneToOne: true;
2886
- isSetofReturn: false;
2992
+ isOneToOne: false;
2993
+ isSetofReturn: true;
2887
2994
  };
2888
2995
  };
2889
- handle_http_response_health: {
2996
+ handle_job_outreach_process: {
2890
2997
  Args: {
2891
- p_body: Json;
2892
- p_request_id: number;
2893
- p_success: boolean;
2998
+ p_payload?: Json;
2894
2999
  };
2895
- Returns: boolean;
3000
+ Returns: undefined;
2896
3001
  };
2897
- handle_http_response_outreach: {
3002
+ handle_job_telegram_fetch_info: {
2898
3003
  Args: {
2899
- p_body: Json;
2900
- p_request_id: number;
2901
- p_success: boolean;
3004
+ p_payload: Json;
2902
3005
  };
2903
- Returns: boolean;
3006
+ Returns: undefined;
2904
3007
  };
2905
- handle_http_response_task: {
3008
+ handle_job_telegram_fetch_sms: {
2906
3009
  Args: {
2907
- p_body: Json;
2908
- p_request_id: number;
2909
- p_success: boolean;
2910
- };
2911
- Returns: boolean;
2912
- };
2913
- handle_http_response_telegram: {
2914
- Args: {
2915
- p_body: Json;
2916
- p_request_id: number;
2917
- p_success: boolean;
2918
- };
2919
- Returns: boolean;
2920
- };
2921
- handle_job_outreach_process: {
2922
- Args: {
2923
- p_payload?: Json;
2924
- };
2925
- Returns: undefined;
2926
- };
2927
- handle_job_telegram_fetch_info: {
2928
- Args: {
2929
- p_payload: Json;
2930
- };
2931
- Returns: undefined;
2932
- };
2933
- handle_job_telegram_fetch_sms: {
2934
- Args: {
2935
- p_payload: Json;
3010
+ p_payload: Json;
2936
3011
  };
2937
3012
  Returns: undefined;
2938
3013
  };
@@ -2943,10 +3018,21 @@ export type Database = {
2943
3018
  };
2944
3019
  Returns: boolean;
2945
3020
  };
3021
+ http_fetch: {
3022
+ Args: {
3023
+ p_body?: Json;
3024
+ p_headers?: Json;
3025
+ p_max_retries?: number;
3026
+ p_method: string;
3027
+ p_source_tag?: string;
3028
+ p_timeout_ms?: number;
3029
+ p_url: string;
3030
+ };
3031
+ Returns: Json;
3032
+ };
2946
3033
  install_script: {
2947
3034
  Args: {
2948
3035
  p_instance_id?: string;
2949
- p_token?: string;
2950
3036
  p_version?: string;
2951
3037
  };
2952
3038
  Returns: string;
@@ -2969,26 +3055,30 @@ export type Database = {
2969
3055
  Args: {
2970
3056
  p_instance_id: string;
2971
3057
  };
2972
- Returns: Database["public"]["CompositeTypes"]["tag_record"][];
2973
- SetofOptions: {
2974
- from: "*";
2975
- to: "tag_record";
2976
- isOneToOne: false;
2977
- isSetofReturn: true;
2978
- };
3058
+ Returns: {
3059
+ color: string;
3060
+ created_at: string;
3061
+ id: string;
3062
+ instance_count: number;
3063
+ name: string;
3064
+ updated_at: string;
3065
+ user_id: string;
3066
+ }[];
2979
3067
  };
2980
3068
  instance_tags_set: {
2981
3069
  Args: {
2982
3070
  p_instance_id: string;
2983
3071
  p_tag_ids: string[];
2984
3072
  };
2985
- Returns: Database["public"]["CompositeTypes"]["tag_record"][];
2986
- SetofOptions: {
2987
- from: "*";
2988
- to: "tag_record";
2989
- isOneToOne: false;
2990
- isSetofReturn: true;
2991
- };
3073
+ Returns: {
3074
+ color: string;
3075
+ created_at: string;
3076
+ id: string;
3077
+ instance_count: number;
3078
+ name: string;
3079
+ updated_at: string;
3080
+ user_id: string;
3081
+ }[];
2992
3082
  };
2993
3083
  job_queue_list_dlq: {
2994
3084
  Args: {
@@ -3027,6 +3117,33 @@ export type Database = {
3027
3117
  };
3028
3118
  Returns: Json;
3029
3119
  };
3120
+ jsonb_deep_merge: {
3121
+ Args: {
3122
+ a: Json;
3123
+ b: Json;
3124
+ };
3125
+ Returns: Json;
3126
+ };
3127
+ log_list_unified: {
3128
+ Args: {
3129
+ p_cursor?: string;
3130
+ p_event_type?: string;
3131
+ p_level_max?: string;
3132
+ p_limit?: number;
3133
+ p_module?: string;
3134
+ p_resource_id?: string;
3135
+ p_resource_type?: string;
3136
+ p_scope?: string;
3137
+ p_source?: string;
3138
+ };
3139
+ Returns: Database["public"]["CompositeTypes"]["log_unified_record"][];
3140
+ SetofOptions: {
3141
+ from: "*";
3142
+ to: "log_unified_record";
3143
+ isOneToOne: false;
3144
+ isSetofReturn: true;
3145
+ };
3146
+ };
3030
3147
  notification_complete_action: {
3031
3148
  Args: {
3032
3149
  p_id: string;
@@ -3051,10 +3168,28 @@ export type Database = {
3051
3168
  };
3052
3169
  notification_get_pending_actions: {
3053
3170
  Args: never;
3054
- Returns: Database["public"]["CompositeTypes"]["user_notification_record"][];
3171
+ Returns: {
3172
+ action_completed_at: string | null;
3173
+ action_payload: Json | null;
3174
+ action_type: string | null;
3175
+ created_at: string;
3176
+ dismissed_at: string | null;
3177
+ expires_at: string | null;
3178
+ id: string;
3179
+ is_read: boolean;
3180
+ message: string | null;
3181
+ notification_type: string;
3182
+ priority: string;
3183
+ read_at: string | null;
3184
+ source_id: string | null;
3185
+ source_type: string | null;
3186
+ title: string;
3187
+ updated_at: string;
3188
+ user_id: string;
3189
+ }[];
3055
3190
  SetofOptions: {
3056
3191
  from: "*";
3057
- to: "user_notification_record";
3192
+ to: "user_notifications";
3058
3193
  isOneToOne: false;
3059
3194
  isSetofReturn: true;
3060
3195
  };
@@ -3068,10 +3203,28 @@ export type Database = {
3068
3203
  p_source_type?: string;
3069
3204
  p_unread_only?: boolean;
3070
3205
  };
3071
- Returns: Database["public"]["CompositeTypes"]["user_notification_record"][];
3206
+ Returns: {
3207
+ action_completed_at: string | null;
3208
+ action_payload: Json | null;
3209
+ action_type: string | null;
3210
+ created_at: string;
3211
+ dismissed_at: string | null;
3212
+ expires_at: string | null;
3213
+ id: string;
3214
+ is_read: boolean;
3215
+ message: string | null;
3216
+ notification_type: string;
3217
+ priority: string;
3218
+ read_at: string | null;
3219
+ source_id: string | null;
3220
+ source_type: string | null;
3221
+ title: string;
3222
+ updated_at: string;
3223
+ user_id: string;
3224
+ }[];
3072
3225
  SetofOptions: {
3073
3226
  from: "*";
3074
- to: "user_notification_record";
3227
+ to: "user_notifications";
3075
3228
  isOneToOne: false;
3076
3229
  isSetofReturn: true;
3077
3230
  };
@@ -3083,6 +3236,182 @@ export type Database = {
3083
3236
  };
3084
3237
  Returns: number;
3085
3238
  };
3239
+ openclaw_assign_server: {
3240
+ Args: {
3241
+ p_openclaw_id: string;
3242
+ p_user_id: string;
3243
+ };
3244
+ Returns: string;
3245
+ };
3246
+ openclaw_build_config: {
3247
+ Args: {
3248
+ p_openclaw_id: string;
3249
+ p_override_config?: Json;
3250
+ p_override_server_id?: string;
3251
+ };
3252
+ Returns: Json;
3253
+ };
3254
+ openclaw_failover: {
3255
+ Args: {
3256
+ p_server_id: string;
3257
+ };
3258
+ Returns: undefined;
3259
+ };
3260
+ openclaw_metadata_apply_action_contract: {
3261
+ Args: {
3262
+ p_action_status: string;
3263
+ p_completed_at?: string;
3264
+ p_debug_action: string;
3265
+ p_delete_pending?: boolean;
3266
+ p_message?: string;
3267
+ p_metadata: Json;
3268
+ p_requested_at?: string;
3269
+ p_user_action: string;
3270
+ };
3271
+ Returns: Json;
3272
+ };
3273
+ openclaw_reconcile_due: {
3274
+ Args: {
3275
+ p_limit?: number;
3276
+ };
3277
+ Returns: number;
3278
+ };
3279
+ openclaw_reconcile_one: {
3280
+ Args: {
3281
+ p_openclaw_id: string;
3282
+ };
3283
+ Returns: {
3284
+ config: Json;
3285
+ created_at: string;
3286
+ desired_status: Database["public"]["Enums"]["openclaw_status"];
3287
+ id: string;
3288
+ metadata: Json | null;
3289
+ name: string | null;
3290
+ resolved_config: Json;
3291
+ server_id: string | null;
3292
+ state: Json | null;
3293
+ status: Database["public"]["Enums"]["openclaw_status"];
3294
+ status_reason: string | null;
3295
+ updated_at: string;
3296
+ user_id: string;
3297
+ };
3298
+ SetofOptions: {
3299
+ from: "*";
3300
+ to: "openclaws";
3301
+ isOneToOne: true;
3302
+ isSetofReturn: false;
3303
+ };
3304
+ };
3305
+ openclaw_refresh_resolved_config: {
3306
+ Args: {
3307
+ p_openclaw_id: string;
3308
+ p_override_config?: Json;
3309
+ p_override_server_id?: string;
3310
+ };
3311
+ Returns: Json;
3312
+ };
3313
+ openclaws_delete: {
3314
+ Args: {
3315
+ p_id: string;
3316
+ };
3317
+ Returns: {
3318
+ config: Json;
3319
+ created_at: string;
3320
+ desired_status: Database["public"]["Enums"]["openclaw_status"];
3321
+ id: string;
3322
+ metadata: Json;
3323
+ name: string;
3324
+ server_id: string;
3325
+ state: Json;
3326
+ status: Database["public"]["Enums"]["openclaw_status"];
3327
+ status_reason: string;
3328
+ updated_at: string;
3329
+ user_id: string;
3330
+ }[];
3331
+ };
3332
+ openclaws_get: {
3333
+ Args: {
3334
+ p_id: string;
3335
+ };
3336
+ Returns: {
3337
+ config: Json;
3338
+ created_at: string;
3339
+ desired_status: Database["public"]["Enums"]["openclaw_status"];
3340
+ id: string;
3341
+ metadata: Json;
3342
+ name: string;
3343
+ server_id: string;
3344
+ state: Json;
3345
+ status: Database["public"]["Enums"]["openclaw_status"];
3346
+ status_reason: string;
3347
+ updated_at: string;
3348
+ user_id: string;
3349
+ }[];
3350
+ };
3351
+ openclaws_list_cursor: {
3352
+ Args: {
3353
+ p_cursor?: string;
3354
+ p_limit?: number;
3355
+ p_search?: string;
3356
+ p_status?: Database["public"]["Enums"]["openclaw_status"];
3357
+ };
3358
+ Returns: {
3359
+ config: Json;
3360
+ created_at: string;
3361
+ desired_status: Database["public"]["Enums"]["openclaw_status"];
3362
+ id: string;
3363
+ metadata: Json;
3364
+ name: string;
3365
+ server_id: string;
3366
+ state: Json;
3367
+ status: Database["public"]["Enums"]["openclaw_status"];
3368
+ status_reason: string;
3369
+ updated_at: string;
3370
+ user_id: string;
3371
+ }[];
3372
+ };
3373
+ openclaws_request_action: {
3374
+ Args: {
3375
+ p_action: string;
3376
+ p_id: string;
3377
+ };
3378
+ Returns: {
3379
+ config: Json;
3380
+ created_at: string;
3381
+ desired_status: Database["public"]["Enums"]["openclaw_status"];
3382
+ id: string;
3383
+ metadata: Json;
3384
+ name: string;
3385
+ server_id: string;
3386
+ state: Json;
3387
+ status: Database["public"]["Enums"]["openclaw_status"];
3388
+ status_reason: string;
3389
+ updated_at: string;
3390
+ user_id: string;
3391
+ }[];
3392
+ };
3393
+ openclaws_upsert: {
3394
+ Args: {
3395
+ p_config?: Json;
3396
+ p_id?: string;
3397
+ p_metadata?: Json;
3398
+ p_name?: string;
3399
+ };
3400
+ Returns: {
3401
+ config: Json;
3402
+ created_at: string;
3403
+ desired_status: Database["public"]["Enums"]["openclaw_status"];
3404
+ id: string;
3405
+ metadata: Json;
3406
+ name: string;
3407
+ server_id: string;
3408
+ state: Json;
3409
+ status: Database["public"]["Enums"]["openclaw_status"];
3410
+ status_reason: string;
3411
+ updated_at: string;
3412
+ user_id: string;
3413
+ }[];
3414
+ };
3086
3415
  outreach_process_pending_tasks: {
3087
3416
  Args: {
3088
3417
  p_campaign_id?: string;
@@ -3090,6 +3419,13 @@ export type Database = {
3090
3419
  };
3091
3420
  Returns: number;
3092
3421
  };
3422
+ outreach_process_pending_tasks_sync: {
3423
+ Args: {
3424
+ p_campaign_id?: string;
3425
+ p_limit?: number;
3426
+ };
3427
+ Returns: number;
3428
+ };
3093
3429
  outreach_retry_failed_tasks: {
3094
3430
  Args: {
3095
3431
  p_campaign_id?: string;
@@ -3103,13 +3439,22 @@ export type Database = {
3103
3439
  p_offset?: number;
3104
3440
  p_status?: string;
3105
3441
  };
3106
- Returns: Database["public"]["CompositeTypes"]["outreach_task_record"][];
3107
- SetofOptions: {
3108
- from: "*";
3109
- to: "outreach_task_record";
3110
- isOneToOne: false;
3111
- isSetofReturn: true;
3112
- };
3442
+ Returns: {
3443
+ campaign_id: string;
3444
+ cloud_account_id: string;
3445
+ contact_id: string;
3446
+ created_at: string;
3447
+ error_message: string;
3448
+ executed_at: string;
3449
+ id: string;
3450
+ metadata: Json;
3451
+ priority: number;
3452
+ retry_count: number;
3453
+ scheduled_at: string;
3454
+ status: string;
3455
+ updated_at: string;
3456
+ user_id: string;
3457
+ }[];
3113
3458
  };
3114
3459
  proxy_delete: {
3115
3460
  Args: {
@@ -3121,13 +3466,17 @@ export type Database = {
3121
3466
  Args: {
3122
3467
  p_id: string;
3123
3468
  };
3124
- Returns: Database["public"]["CompositeTypes"]["proxy_record"][];
3125
- SetofOptions: {
3126
- from: "*";
3127
- to: "proxy_record";
3128
- isOneToOne: false;
3129
- isSetofReturn: true;
3130
- };
3469
+ Returns: {
3470
+ created_at: string;
3471
+ description: string;
3472
+ enabled: boolean;
3473
+ id: string;
3474
+ name: string;
3475
+ type: string;
3476
+ updated_at: string;
3477
+ url: string;
3478
+ user_id: string;
3479
+ }[];
3131
3480
  };
3132
3481
  proxy_list: {
3133
3482
  Args: {
@@ -3135,13 +3484,17 @@ export type Database = {
3135
3484
  p_page_no?: number;
3136
3485
  p_page_size?: number;
3137
3486
  };
3138
- Returns: Database["public"]["CompositeTypes"]["proxy_record"][];
3139
- SetofOptions: {
3140
- from: "*";
3141
- to: "proxy_record";
3142
- isOneToOne: false;
3143
- isSetofReturn: true;
3144
- };
3487
+ Returns: {
3488
+ created_at: string;
3489
+ description: string;
3490
+ enabled: boolean;
3491
+ id: string;
3492
+ name: string;
3493
+ type: string;
3494
+ updated_at: string;
3495
+ url: string;
3496
+ user_id: string;
3497
+ }[];
3145
3498
  };
3146
3499
  proxy_upsert: {
3147
3500
  Args: {
@@ -3152,13 +3505,17 @@ export type Database = {
3152
3505
  p_type: string;
3153
3506
  p_url: string;
3154
3507
  };
3155
- Returns: Database["public"]["CompositeTypes"]["proxy_record"][];
3156
- SetofOptions: {
3157
- from: "*";
3158
- to: "proxy_record";
3159
- isOneToOne: false;
3160
- isSetofReturn: true;
3161
- };
3508
+ Returns: {
3509
+ created_at: string;
3510
+ description: string;
3511
+ enabled: boolean;
3512
+ id: string;
3513
+ name: string;
3514
+ type: string;
3515
+ updated_at: string;
3516
+ url: string;
3517
+ user_id: string;
3518
+ }[];
3162
3519
  };
3163
3520
  resource_delete: {
3164
3521
  Args: {
@@ -3198,16 +3555,6 @@ export type Database = {
3198
3555
  p_title?: string;
3199
3556
  p_type?: string;
3200
3557
  };
3201
- Returns: string;
3202
- };
3203
- sandbox_find_active: {
3204
- Args: never;
3205
- Returns: Json;
3206
- };
3207
- sandbox_get: {
3208
- Args: {
3209
- resource_id?: string;
3210
- };
3211
3558
  Returns: {
3212
3559
  created_at: string;
3213
3560
  data: Json | null;
@@ -3230,87 +3577,120 @@ export type Database = {
3230
3577
  isSetofReturn: true;
3231
3578
  };
3232
3579
  };
3233
- server_instance_bootstrap: {
3580
+ sandbox_find_active: {
3581
+ Args: never;
3582
+ Returns: Json;
3583
+ };
3584
+ script_exec: {
3234
3585
  Args: {
3235
- p_instance_id: string;
3586
+ p_options?: Json;
3587
+ p_script: Json;
3588
+ p_server_id: string;
3236
3589
  };
3237
- Returns: Database["public"]["CompositeTypes"]["bootstrap_result"][];
3590
+ Returns: Json;
3591
+ };
3592
+ script_get_content: {
3593
+ Args: {
3594
+ p_file_path: string;
3595
+ p_git_ref?: string;
3596
+ };
3597
+ Returns: string;
3598
+ };
3599
+ server_delete: {
3600
+ Args: {
3601
+ p_id: string;
3602
+ p_shutdown_gracefully?: boolean;
3603
+ };
3604
+ Returns: Json;
3605
+ };
3606
+ server_get: {
3607
+ Args: {
3608
+ p_server_id?: string;
3609
+ };
3610
+ Returns: {
3611
+ config: Json;
3612
+ created_at: string;
3613
+ id: string;
3614
+ state: Json;
3615
+ updated_at: string;
3616
+ }[];
3617
+ };
3618
+ server_list_cursor: {
3619
+ Args: {
3620
+ p_cursor_id?: string;
3621
+ p_cursor_updated_at?: string;
3622
+ p_limit?: number;
3623
+ p_search?: string;
3624
+ };
3625
+ Returns: {
3626
+ config: Json | null;
3627
+ created_at: string;
3628
+ id: string;
3629
+ state: Json | null;
3630
+ updated_at: string;
3631
+ }[];
3238
3632
  SetofOptions: {
3239
3633
  from: "*";
3240
- to: "bootstrap_result";
3634
+ to: "servers";
3241
3635
  isOneToOne: false;
3242
3636
  isSetofReturn: true;
3243
3637
  };
3244
3638
  };
3245
- server_instance_delete: {
3639
+ server_mark_offline: {
3246
3640
  Args: {
3247
- p_id: string;
3641
+ p_reason?: string;
3642
+ p_server_id: string;
3643
+ p_source?: string;
3248
3644
  };
3249
- Returns: undefined;
3645
+ Returns: Json;
3250
3646
  };
3251
- server_instance_get: {
3647
+ server_status_apply_callback: {
3252
3648
  Args: {
3253
- p_id: string;
3649
+ p_callback_token: string;
3650
+ p_payload: Json;
3651
+ p_server_id: string;
3254
3652
  };
3255
- Returns: Database["public"]["CompositeTypes"]["server_instance_record"][];
3256
- SetofOptions: {
3257
- from: "*";
3258
- to: "server_instance_record";
3259
- isOneToOne: false;
3260
- isSetofReturn: true;
3653
+ Returns: Json;
3654
+ };
3655
+ server_status_merge: {
3656
+ Args: {
3657
+ p_current_state: Json;
3658
+ p_fact: Json;
3261
3659
  };
3660
+ Returns: Json;
3262
3661
  };
3263
- server_instance_list_cursor: {
3662
+ server_status_reconcile: {
3264
3663
  Args: {
3265
- p_cursor_id?: string;
3266
- p_cursor_is_shared?: boolean;
3267
- p_cursor_updated_at?: string;
3268
- p_is_shared?: boolean;
3269
- p_kw?: string;
3270
- p_limit?: number;
3271
- p_tag_ids?: string[];
3664
+ p_server_id: string;
3272
3665
  };
3273
- Returns: Database["public"]["CompositeTypes"]["server_instance_record"][];
3274
- SetofOptions: {
3275
- from: "*";
3276
- to: "server_instance_record";
3277
- isOneToOne: false;
3278
- isSetofReturn: true;
3666
+ Returns: Json;
3667
+ };
3668
+ server_status_reconcile_due: {
3669
+ Args: {
3670
+ p_limit?: number;
3279
3671
  };
3672
+ Returns: number;
3280
3673
  };
3281
- server_instance_probe: {
3674
+ server_tunnel_sync: {
3282
3675
  Args: {
3283
- p_instance_id: string;
3676
+ p_server_id: string;
3284
3677
  };
3285
3678
  Returns: undefined;
3286
3679
  };
3287
- server_instance_upsert: {
3680
+ server_upsert: {
3288
3681
  Args: {
3682
+ p_compute_node_id?: string;
3289
3683
  p_config?: Json;
3290
3684
  p_id?: string;
3291
- p_is_public?: boolean;
3292
- p_is_shared?: boolean;
3293
- p_name?: string;
3294
3685
  p_state?: Json;
3295
- p_status?: Database["public"]["Enums"]["server_status"];
3296
- };
3297
- Returns: Database["public"]["CompositeTypes"]["server_instance_record"][];
3298
- SetofOptions: {
3299
- from: "*";
3300
- to: "server_instance_record";
3301
- isOneToOne: false;
3302
- isSetofReturn: true;
3303
- };
3304
- };
3305
- service_health_summary: {
3306
- Args: never;
3307
- Returns: Database["public"]["CompositeTypes"]["service_health_record"][];
3308
- SetofOptions: {
3309
- from: "*";
3310
- to: "service_health_record";
3311
- isOneToOne: false;
3312
- isSetofReturn: true;
3313
3686
  };
3687
+ Returns: {
3688
+ config: Json;
3689
+ created_at: string;
3690
+ id: string;
3691
+ state: Json;
3692
+ updated_at: string;
3693
+ }[];
3314
3694
  };
3315
3695
  sys_config_get: {
3316
3696
  Args: {
@@ -3339,38 +3719,6 @@ export type Database = {
3339
3719
  };
3340
3720
  Returns: string;
3341
3721
  };
3342
- sys_get_db_schema: {
3343
- Args: {
3344
- p_excluded_tables?: string[];
3345
- p_include_comments?: boolean;
3346
- p_include_functions?: boolean;
3347
- };
3348
- Returns: string;
3349
- };
3350
- sys_init_queue: {
3351
- Args: {
3352
- name: string;
3353
- };
3354
- Returns: undefined;
3355
- };
3356
- sys_log_list: {
3357
- Args: {
3358
- p_cursor?: string;
3359
- p_event_type?: string;
3360
- p_level_max?: Database["public"]["Enums"]["sys_log_level"];
3361
- p_limit?: number;
3362
- p_module?: string;
3363
- p_resource_id?: string;
3364
- p_resource_type?: string;
3365
- };
3366
- Returns: Database["public"]["CompositeTypes"]["sys_log_record"][];
3367
- SetofOptions: {
3368
- from: "*";
3369
- to: "sys_log_record";
3370
- isOneToOne: false;
3371
- isSetofReturn: true;
3372
- };
3373
- };
3374
3722
  sys_log_validate_meta: {
3375
3723
  Args: {
3376
3724
  p_event_type: string;
@@ -3384,6 +3732,13 @@ export type Database = {
3384
3732
  };
3385
3733
  Returns: undefined;
3386
3734
  };
3735
+ system_cleanup: {
3736
+ Args: {
3737
+ p_dry_run?: boolean;
3738
+ p_policy_name?: string;
3739
+ };
3740
+ Returns: Json;
3741
+ };
3387
3742
  system_config_public_delete: {
3388
3743
  Args: {
3389
3744
  p_key: string;
@@ -3427,13 +3782,15 @@ export type Database = {
3427
3782
  };
3428
3783
  tag_list: {
3429
3784
  Args: never;
3430
- Returns: Database["public"]["CompositeTypes"]["tag_record"][];
3431
- SetofOptions: {
3432
- from: "*";
3433
- to: "tag_record";
3434
- isOneToOne: false;
3435
- isSetofReturn: true;
3436
- };
3785
+ Returns: {
3786
+ color: string;
3787
+ created_at: string;
3788
+ id: string;
3789
+ instance_count: number;
3790
+ name: string;
3791
+ updated_at: string;
3792
+ user_id: string;
3793
+ }[];
3437
3794
  };
3438
3795
  tag_upsert: {
3439
3796
  Args: {
@@ -3441,13 +3798,15 @@ export type Database = {
3441
3798
  p_id?: string;
3442
3799
  p_name?: string;
3443
3800
  };
3444
- Returns: Database["public"]["CompositeTypes"]["tag_record"][];
3445
- SetofOptions: {
3446
- from: "*";
3447
- to: "tag_record";
3448
- isOneToOne: false;
3449
- isSetofReturn: true;
3450
- };
3801
+ Returns: {
3802
+ color: string;
3803
+ created_at: string;
3804
+ id: string;
3805
+ instance_count: number;
3806
+ name: string;
3807
+ updated_at: string;
3808
+ user_id: string;
3809
+ }[];
3451
3810
  };
3452
3811
  task_ack: {
3453
3812
  Args: {
@@ -3841,12 +4200,20 @@ export type Database = {
3841
4200
  p_account_id: string;
3842
4201
  p_use_sms?: boolean;
3843
4202
  };
3844
- Returns: undefined;
4203
+ Returns: Database["public"]["CompositeTypes"]["telegram_login_response"][];
4204
+ SetofOptions: {
4205
+ from: "*";
4206
+ to: "telegram_login_response";
4207
+ isOneToOne: false;
4208
+ isSetofReturn: true;
4209
+ };
3845
4210
  };
3846
- telegram_login_submit_2fa: {
4211
+ telegram_login_step_process: {
3847
4212
  Args: {
3848
4213
  p_account_id: string;
3849
- p_password: string;
4214
+ p_body: Json;
4215
+ p_step: string;
4216
+ p_success: boolean;
3850
4217
  };
3851
4218
  Returns: undefined;
3852
4219
  };
@@ -3855,7 +4222,35 @@ export type Database = {
3855
4222
  p_account_id: string;
3856
4223
  p_code: string;
3857
4224
  };
3858
- Returns: undefined;
4225
+ Returns: Database["public"]["CompositeTypes"]["telegram_login_response"][];
4226
+ SetofOptions: {
4227
+ from: "*";
4228
+ to: "telegram_login_response";
4229
+ isOneToOne: false;
4230
+ isSetofReturn: true;
4231
+ };
4232
+ };
4233
+ telegram_login_submit_two_fa: {
4234
+ Args: {
4235
+ p_account_id: string;
4236
+ p_password: string;
4237
+ };
4238
+ Returns: Database["public"]["CompositeTypes"]["telegram_login_response"][];
4239
+ SetofOptions: {
4240
+ from: "*";
4241
+ to: "telegram_login_response";
4242
+ isOneToOne: false;
4243
+ isSetofReturn: true;
4244
+ };
4245
+ };
4246
+ telegram_server_post: {
4247
+ Args: {
4248
+ p_body: Json;
4249
+ p_path: string;
4250
+ p_preferred_server_id: string;
4251
+ p_timeout?: string;
4252
+ };
4253
+ Returns: Json;
3859
4254
  };
3860
4255
  traffic_log_delete: {
3861
4256
  Args: never;
@@ -3912,29 +4307,6 @@ export type Database = {
3912
4307
  };
3913
4308
  Returns: undefined;
3914
4309
  };
3915
- user_log_list: {
3916
- Args: {
3917
- p_page?: number;
3918
- p_page_size?: number;
3919
- };
3920
- Returns: {
3921
- content: string | null;
3922
- created_at: string | null;
3923
- event_type: string;
3924
- id: string;
3925
- level: string;
3926
- meta: Json | null;
3927
- resource_id: string | null;
3928
- resource_type: string | null;
3929
- user_id: string;
3930
- }[];
3931
- SetofOptions: {
3932
- from: "*";
3933
- to: "user_logs";
3934
- isOneToOne: false;
3935
- isSetofReturn: true;
3936
- };
3937
- };
3938
4310
  user_log_record: {
3939
4311
  Args: {
3940
4312
  p_content: string;
@@ -3955,10 +4327,17 @@ export type Database = {
3955
4327
  };
3956
4328
  user_profile_get: {
3957
4329
  Args: never;
3958
- Returns: Database["public"]["CompositeTypes"]["user_profile_record"][];
4330
+ Returns: {
4331
+ avatar_url: string | null;
4332
+ full_name: string | null;
4333
+ id: string;
4334
+ updated_at: string | null;
4335
+ username: string | null;
4336
+ website: string | null;
4337
+ }[];
3959
4338
  SetofOptions: {
3960
4339
  from: "*";
3961
- to: "user_profile_record";
4340
+ to: "profiles";
3962
4341
  isOneToOne: false;
3963
4342
  isSetofReturn: true;
3964
4343
  };
@@ -3977,12 +4356,12 @@ export type Database = {
3977
4356
  updated_at: string | null;
3978
4357
  username: string | null;
3979
4358
  website: string | null;
3980
- };
4359
+ }[];
3981
4360
  SetofOptions: {
3982
4361
  from: "*";
3983
4362
  to: "profiles";
3984
- isOneToOne: true;
3985
- isSetofReturn: false;
4363
+ isOneToOne: false;
4364
+ isSetofReturn: true;
3986
4365
  };
3987
4366
  };
3988
4367
  user_role_delete: {
@@ -4012,80 +4391,20 @@ export type Database = {
4012
4391
  chat_role: "system" | "user" | "assistant" | "model" | "error" | "tool";
4013
4392
  chat_visibility: "private" | "public";
4014
4393
  cloud_account_status: "pending" | "active" | "token_expired" | "needs_reauth" | "quota_exceeded" | "suspended" | "disabled";
4015
- compute_node_status: "online" | "offline";
4016
- server_status: "created" | "online" | "offline" | "error";
4394
+ openclaw_status: "disabled" | "pending" | "starting" | "running" | "stopping" | "stopped" | "error" | "migrating";
4017
4395
  sys_log_level: "error" | "warn" | "info";
4018
4396
  task_code_type: "sql" | "bash" | "python" | "agent" | "javascript";
4019
4397
  task_status: "draft" | "pending" | "queued" | "running" | "completed" | "failed" | "cancelled" | "paused";
4398
+ telegram_login_state: "idle" | "wait_code" | "need_2fa" | "wait_password" | "success" | "failed";
4020
4399
  telegram_login_step: "pending" | "send_code" | "wait_code" | "verify_code" | "need_2fa" | "success" | "failed" | "fetch_info";
4021
4400
  };
4022
4401
  CompositeTypes: {
4023
- adk_artifact_key_record: {
4024
- filename: string | null;
4025
- };
4026
- adk_artifact_meta_record: {
4027
- version: number | null;
4028
- canonical_uri: string | null;
4029
- custom_metadata: Json | null;
4030
- create_time: number | null;
4031
- mime_type: string | null;
4032
- };
4033
- audit_project_record: {
4034
- id: string | null;
4035
- created_at: string | null;
4036
- updated_at: string | null;
4037
- user_id: string | null;
4038
- name: string | null;
4039
- target: string | null;
4040
- repo_url: string | null;
4041
- repo_branch: string | null;
4042
- config: Json | null;
4043
- worker_id: string | null;
4044
- };
4045
4402
  audit_project_stats_record: {
4046
4403
  asset_count: number | null;
4047
4404
  finding_count: number | null;
4048
4405
  high_risk_count: number | null;
4049
4406
  task_count: number | null;
4050
4407
  };
4051
- bootstrap_result: {
4052
- success: boolean | null;
4053
- error: string | null;
4054
- config: Json | null;
4055
- };
4056
- browser_record: {
4057
- id: string | null;
4058
- created_at: string | null;
4059
- updated_at: string | null;
4060
- title: string | null;
4061
- description: string | null;
4062
- profile_id: string | null;
4063
- provider: string | null;
4064
- provider_config: Json | null;
4065
- config: Json | null;
4066
- sandbox_id: string | null;
4067
- vnc_url: string | null;
4068
- browser_api_url: string | null;
4069
- worker_name: string | null;
4070
- is_running: boolean | null;
4071
- };
4072
- campaign_record: {
4073
- id: string | null;
4074
- created_at: string | null;
4075
- updated_at: string | null;
4076
- started_at: string | null;
4077
- completed_at: string | null;
4078
- user_id: string | null;
4079
- name: string | null;
4080
- description: string | null;
4081
- platform: string | null;
4082
- status: string | null;
4083
- config: Json | null;
4084
- message_template: string | null;
4085
- target_filter: Json | null;
4086
- schedule: Json | null;
4087
- stats: Json | null;
4088
- };
4089
4408
  cloud_account_record: {
4090
4409
  id: string | null;
4091
4410
  created_at: string | null;
@@ -4111,98 +4430,23 @@ export type Database = {
4111
4430
  device_history: Json[] | null;
4112
4431
  credentials: Json | null;
4113
4432
  };
4114
- compute_node_list_record: {
4115
- id: string | null;
4116
- user_id: string | null;
4117
- name: string | null;
4118
- provider: string | null;
4119
- host: string | null;
4120
- port: number | null;
4121
- username: string | null;
4122
- auth_secret: string | null;
4123
- status: Database["public"]["Enums"]["compute_node_status"] | null;
4124
- worker_count: number | null;
4125
- updated_at: string | null;
4126
- is_public: boolean | null;
4127
- created_at: string | null;
4128
- full_count: number | null;
4129
- };
4130
- compute_node_record: {
4131
- id: string | null;
4132
- user_id: string | null;
4133
- name: string | null;
4134
- provider: string | null;
4135
- host: string | null;
4136
- port: number | null;
4137
- username: string | null;
4138
- auth_secret: string | null;
4139
- status: Database["public"]["Enums"]["compute_node_status"] | null;
4140
- worker_count: number | null;
4141
- updated_at: string | null;
4142
- is_public: boolean | null;
4143
- created_at: string | null;
4144
- };
4145
- compute_node_secret_record: {
4146
- host: string | null;
4147
- port: number | null;
4148
- username: string | null;
4149
- auth_secret: string | null;
4150
- };
4151
- contact_record: {
4152
- id: string | null;
4153
- created_at: string | null;
4154
- updated_at: string | null;
4155
- user_id: string | null;
4156
- name: string | null;
4157
- phone: string | null;
4158
- telegram_id: number | null;
4159
- telegram_username: string | null;
4160
- email: string | null;
4161
- platform: string | null;
4162
- source: string | null;
4163
- tags: string[] | null;
4164
- status: string | null;
4165
- metadata: Json | null;
4166
- };
4167
- dba_lint_issue: {
4168
- object_type: string | null;
4169
- object_name: string | null;
4170
- issue_category: string | null;
4171
- issue: string | null;
4172
- suggestion: string | null;
4173
- severity: string | null;
4174
- };
4175
4433
  job_queue_dlq_record: {
4176
4434
  msg_id: number | null;
4177
4435
  read_ct: number | null;
4178
4436
  enqueued_at: string | null;
4179
4437
  message: Json | null;
4180
4438
  };
4181
- outreach_task_record: {
4182
- id: string | null;
4183
- created_at: string | null;
4184
- updated_at: string | null;
4185
- user_id: string | null;
4186
- campaign_id: string | null;
4187
- contact_id: string | null;
4188
- cloud_account_id: string | null;
4189
- status: string | null;
4190
- priority: number | null;
4191
- scheduled_at: string | null;
4192
- executed_at: string | null;
4193
- retry_count: number | null;
4194
- error_message: string | null;
4195
- metadata: Json | null;
4196
- };
4197
- proxy_record: {
4439
+ log_unified_record: {
4198
4440
  id: string | null;
4441
+ source: string | null;
4199
4442
  created_at: string | null;
4200
- updated_at: string | null;
4201
- name: string | null;
4202
- description: string | null;
4203
- url: string | null;
4204
- type: string | null;
4205
- enabled: boolean | null;
4443
+ event_type: string | null;
4444
+ level: string | null;
4445
+ module: string | null;
4446
+ content: string | null;
4447
+ meta: Json | null;
4448
+ resource_type: string | null;
4449
+ resource_id: string | null;
4206
4450
  user_id: string | null;
4207
4451
  };
4208
4452
  resource_list_record: {
@@ -4215,73 +4459,12 @@ export type Database = {
4215
4459
  url: string | null;
4216
4460
  updated_at: string | null;
4217
4461
  };
4218
- server_instance_record: {
4219
- id: string | null;
4220
- name: string | null;
4221
- updated_at: string | null;
4222
- config: Json | null;
4223
- status: Database["public"]["Enums"]["server_status"] | null;
4224
- is_public: boolean | null;
4225
- state: Json | null;
4226
- created_at: string | null;
4227
- user_id: string | null;
4228
- is_shared: boolean | null;
4229
- };
4230
- service_health_record: {
4231
- module: string | null;
4232
- status: string | null;
4233
- last_error_at: string | null;
4234
- last_error_message: string | null;
4235
- error_count_24h: number | null;
4236
- };
4237
- sys_log_record: {
4238
- id: number | null;
4239
- created_at: string | null;
4240
- text: string | null;
4241
- level: Database["public"]["Enums"]["sys_log_level"] | null;
4242
- module: string | null;
4243
- event_type: string | null;
4244
- meta: Json | null;
4245
- resource_type: string | null;
4246
- resource_id: string | null;
4247
- resource_name: string | null;
4248
- user_id: string | null;
4249
- };
4250
- tag_record: {
4251
- id: string | null;
4252
- name: string | null;
4253
- color: string | null;
4254
- user_id: string | null;
4255
- created_at: string | null;
4256
- updated_at: string | null;
4257
- instance_count: number | null;
4258
- };
4259
- user_notification_record: {
4260
- id: string | null;
4261
- created_at: string | null;
4262
- updated_at: string | null;
4263
- user_id: string | null;
4264
- title: string | null;
4265
- message: string | null;
4266
- notification_type: string | null;
4267
- priority: string | null;
4268
- source_type: string | null;
4269
- source_id: string | null;
4270
- action_type: string | null;
4271
- action_payload: Json | null;
4272
- action_completed_at: string | null;
4273
- is_read: boolean | null;
4274
- read_at: string | null;
4275
- dismissed_at: string | null;
4276
- expires_at: string | null;
4277
- };
4278
- user_profile_record: {
4279
- id: string | null;
4280
- full_name: string | null;
4281
- username: string | null;
4282
- website: string | null;
4283
- avatar_url: string | null;
4284
- updated_at: string | null;
4462
+ telegram_login_response: {
4463
+ success: boolean | null;
4464
+ step: string | null;
4465
+ timeout_seconds: number | null;
4466
+ error_message: string | null;
4467
+ user_info: Json | null;
4285
4468
  };
4286
4469
  };
4287
4470
  };
@@ -4346,11 +4529,11 @@ export declare const Constants: {
4346
4529
  readonly chat_role: readonly ["system", "user", "assistant", "model", "error", "tool"];
4347
4530
  readonly chat_visibility: readonly ["private", "public"];
4348
4531
  readonly cloud_account_status: readonly ["pending", "active", "token_expired", "needs_reauth", "quota_exceeded", "suspended", "disabled"];
4349
- readonly compute_node_status: readonly ["online", "offline"];
4350
- readonly server_status: readonly ["created", "online", "offline", "error"];
4532
+ readonly openclaw_status: readonly ["disabled", "pending", "starting", "running", "stopping", "stopped", "error", "migrating"];
4351
4533
  readonly sys_log_level: readonly ["error", "warn", "info"];
4352
4534
  readonly task_code_type: readonly ["sql", "bash", "python", "agent", "javascript"];
4353
4535
  readonly task_status: readonly ["draft", "pending", "queued", "running", "completed", "failed", "cancelled", "paused"];
4536
+ readonly telegram_login_state: readonly ["idle", "wait_code", "need_2fa", "wait_password", "success", "failed"];
4354
4537
  readonly telegram_login_step: readonly ["pending", "send_code", "wait_code", "verify_code", "need_2fa", "success", "failed", "fetch_info"];
4355
4538
  };
4356
4539
  };