mtmsdk 0.0.52 → 0.0.53

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