mtmsdk 0.0.35 → 0.0.38

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 (243) hide show
  1. package/dist/api_hatchet/client/client.gen.d.ts.map +1 -1
  2. package/dist/api_hatchet/client/client.gen.js +8 -1
  3. package/dist/api_hatchet/client/client.gen.js.map +1 -1
  4. package/dist/api_hatchet/index.d.ts +2 -2
  5. package/dist/api_hatchet/index.d.ts.map +1 -1
  6. package/dist/api_hatchet/index.js +2 -2
  7. package/dist/api_hatchet/index.js.map +1 -1
  8. package/dist/api_hatchet/zod.gen.d.ts +3 -3
  9. package/dist/api_hatchet/zod.gen.js +53 -53
  10. package/dist/api_hatchet/zod.gen.js.map +1 -1
  11. package/dist/gomtmapi_v2/@tanstack/react-query.gen.d.ts +73 -979
  12. package/dist/gomtmapi_v2/@tanstack/react-query.gen.d.ts.map +1 -1
  13. package/dist/gomtmapi_v2/@tanstack/react-query.gen.js +208 -1000
  14. package/dist/gomtmapi_v2/@tanstack/react-query.gen.js.map +1 -1
  15. package/dist/gomtmapi_v2/client/client.gen.d.ts.map +1 -1
  16. package/dist/gomtmapi_v2/client/client.gen.js +8 -1
  17. package/dist/gomtmapi_v2/client/client.gen.js.map +1 -1
  18. package/dist/gomtmapi_v2/index.d.ts +2 -2
  19. package/dist/gomtmapi_v2/index.d.ts.map +1 -1
  20. package/dist/gomtmapi_v2/index.js +1 -1
  21. package/dist/gomtmapi_v2/index.js.map +1 -1
  22. package/dist/gomtmapi_v2/schemas.gen.d.ts +305 -1415
  23. package/dist/gomtmapi_v2/schemas.gen.d.ts.map +1 -1
  24. package/dist/gomtmapi_v2/schemas.gen.js +282 -1407
  25. package/dist/gomtmapi_v2/schemas.gen.js.map +1 -1
  26. package/dist/gomtmapi_v2/sdk.gen.d.ts +63 -513
  27. package/dist/gomtmapi_v2/sdk.gen.d.ts.map +1 -1
  28. package/dist/gomtmapi_v2/sdk.gen.js +94 -537
  29. package/dist/gomtmapi_v2/sdk.gen.js.map +1 -1
  30. package/dist/gomtmapi_v2/types.gen.d.ts +443 -1531
  31. package/dist/gomtmapi_v2/types.gen.d.ts.map +1 -1
  32. package/dist/gomtmapi_v2/zod.gen.d.ts +293 -1292
  33. package/dist/gomtmapi_v2/zod.gen.d.ts.map +1 -1
  34. package/dist/gomtmapi_v2/zod.gen.js +187 -793
  35. package/dist/gomtmapi_v2/zod.gen.js.map +1 -1
  36. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts +4 -158
  37. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts.map +1 -1
  38. package/dist/mtgate_api/@tanstack/react-query.gen.js +17 -212
  39. package/dist/mtgate_api/@tanstack/react-query.gen.js.map +1 -1
  40. package/dist/mtgate_api/client/client.gen.d.ts.map +1 -1
  41. package/dist/mtgate_api/client/client.gen.js +8 -1
  42. package/dist/mtgate_api/client/client.gen.js.map +1 -1
  43. package/dist/mtgate_api/index.d.ts +2 -2
  44. package/dist/mtgate_api/index.d.ts.map +1 -1
  45. package/dist/mtgate_api/index.js +1 -1
  46. package/dist/mtgate_api/index.js.map +1 -1
  47. package/dist/mtgate_api/schemas.gen.d.ts +0 -396
  48. package/dist/mtgate_api/schemas.gen.d.ts.map +1 -1
  49. package/dist/mtgate_api/schemas.gen.js +0 -439
  50. package/dist/mtgate_api/schemas.gen.js.map +1 -1
  51. package/dist/mtgate_api/sdk.gen.d.ts +1 -26
  52. package/dist/mtgate_api/sdk.gen.d.ts.map +1 -1
  53. package/dist/mtgate_api/sdk.gen.js +0 -67
  54. package/dist/mtgate_api/sdk.gen.js.map +1 -1
  55. package/dist/mtgate_api/types.gen.d.ts +0 -310
  56. package/dist/mtgate_api/types.gen.d.ts.map +1 -1
  57. package/dist/mtgate_api/zod.gen.d.ts +0 -771
  58. package/dist/mtgate_api/zod.gen.d.ts.map +1 -1
  59. package/dist/mtgate_api/zod.gen.js +0 -249
  60. package/dist/mtgate_api/zod.gen.js.map +1 -1
  61. package/dist/mtmai_api/client/client.gen.d.ts.map +1 -1
  62. package/dist/mtmai_api/client/client.gen.js +8 -1
  63. package/dist/mtmai_api/client/client.gen.js.map +1 -1
  64. package/dist/mtmai_api/index.d.ts +2 -2
  65. package/dist/mtmai_api/index.d.ts.map +1 -1
  66. package/dist/mtmai_api/index.js +2 -2
  67. package/dist/mtmai_api/index.js.map +1 -1
  68. package/dist/opencode/@tanstack/react-query.gen.d.ts +1903 -0
  69. package/dist/opencode/@tanstack/react-query.gen.d.ts.map +1 -0
  70. package/dist/opencode/@tanstack/react-query.gen.js +1696 -0
  71. package/dist/opencode/@tanstack/react-query.gen.js.map +1 -0
  72. package/dist/opencode/client/client.gen.d.ts +3 -0
  73. package/dist/opencode/client/client.gen.d.ts.map +1 -0
  74. package/dist/opencode/client/client.gen.js +236 -0
  75. package/dist/opencode/client/client.gen.js.map +1 -0
  76. package/dist/opencode/client/index.d.ts +9 -0
  77. package/dist/opencode/client/index.d.ts.map +1 -0
  78. package/dist/opencode/client/index.js +7 -0
  79. package/dist/opencode/client/index.js.map +1 -0
  80. package/dist/opencode/client/types.gen.d.ts +118 -0
  81. package/dist/opencode/client/types.gen.d.ts.map +1 -0
  82. package/dist/opencode/client/types.gen.js +3 -0
  83. package/dist/opencode/client/types.gen.js.map +1 -0
  84. package/dist/opencode/client/utils.gen.d.ts +34 -0
  85. package/dist/opencode/client/utils.gen.d.ts.map +1 -0
  86. package/dist/opencode/client/utils.gen.js +232 -0
  87. package/dist/opencode/client/utils.gen.js.map +1 -0
  88. package/dist/opencode/client.gen.d.ts +13 -0
  89. package/dist/opencode/client.gen.d.ts.map +1 -0
  90. package/dist/opencode/client.gen.js +4 -0
  91. package/dist/opencode/client.gen.js.map +1 -0
  92. package/dist/opencode/core/auth.gen.d.ts +19 -0
  93. package/dist/opencode/core/auth.gen.d.ts.map +1 -0
  94. package/dist/opencode/core/auth.gen.js +15 -0
  95. package/dist/opencode/core/auth.gen.js.map +1 -0
  96. package/dist/opencode/core/bodySerializer.gen.d.ts +26 -0
  97. package/dist/opencode/core/bodySerializer.gen.d.ts.map +1 -0
  98. package/dist/opencode/core/bodySerializer.gen.js +58 -0
  99. package/dist/opencode/core/bodySerializer.gen.js.map +1 -0
  100. package/dist/opencode/core/params.gen.d.ts +44 -0
  101. package/dist/opencode/core/params.gen.d.ts.map +1 -0
  102. package/dist/opencode/core/params.gen.js +101 -0
  103. package/dist/opencode/core/params.gen.js.map +1 -0
  104. package/dist/opencode/core/pathSerializer.gen.d.ts +34 -0
  105. package/dist/opencode/core/pathSerializer.gen.d.ts.map +1 -0
  106. package/dist/opencode/core/pathSerializer.gen.js +115 -0
  107. package/dist/opencode/core/pathSerializer.gen.js.map +1 -0
  108. package/dist/opencode/core/queryKeySerializer.gen.d.ts +19 -0
  109. package/dist/opencode/core/queryKeySerializer.gen.d.ts.map +1 -0
  110. package/dist/opencode/core/queryKeySerializer.gen.js +100 -0
  111. package/dist/opencode/core/queryKeySerializer.gen.js.map +1 -0
  112. package/dist/opencode/core/serverSentEvents.gen.d.ts +72 -0
  113. package/dist/opencode/core/serverSentEvents.gen.d.ts.map +1 -0
  114. package/dist/opencode/core/serverSentEvents.gen.js +138 -0
  115. package/dist/opencode/core/serverSentEvents.gen.js.map +1 -0
  116. package/dist/opencode/core/types.gen.d.ts +79 -0
  117. package/dist/opencode/core/types.gen.d.ts.map +1 -0
  118. package/dist/opencode/core/types.gen.js +3 -0
  119. package/dist/opencode/core/types.gen.js.map +1 -0
  120. package/dist/opencode/core/utils.gen.d.ts +20 -0
  121. package/dist/opencode/core/utils.gen.d.ts.map +1 -0
  122. package/dist/opencode/core/utils.gen.js +88 -0
  123. package/dist/opencode/core/utils.gen.js.map +1 -0
  124. package/dist/opencode/index.d.ts +3 -0
  125. package/dist/opencode/index.d.ts.map +1 -0
  126. package/dist/opencode/index.js +4 -0
  127. package/dist/opencode/index.js.map +1 -0
  128. package/dist/opencode/schemas.gen.d.ts +4823 -0
  129. package/dist/opencode/schemas.gen.d.ts.map +1 -0
  130. package/dist/opencode/schemas.gen.js +5816 -0
  131. package/dist/opencode/schemas.gen.js.map +1 -0
  132. package/dist/opencode/sdk.gen.d.ts +562 -0
  133. package/dist/opencode/sdk.gen.d.ts.map +1 -0
  134. package/dist/opencode/sdk.gen.js +766 -0
  135. package/dist/opencode/sdk.gen.js.map +1 -0
  136. package/dist/opencode/types.gen.d.ts +4213 -0
  137. package/dist/opencode/types.gen.d.ts.map +1 -0
  138. package/dist/opencode/types.gen.js +25 -0
  139. package/dist/opencode/types.gen.js.map +1 -0
  140. package/dist/opencode/zod.gen.d.ts +17243 -0
  141. package/dist/opencode/zod.gen.d.ts.map +1 -0
  142. package/dist/opencode/zod.gen.js +2876 -0
  143. package/dist/opencode/zod.gen.js.map +1 -0
  144. package/dist/sbapi/client/client.gen.d.ts.map +1 -1
  145. package/dist/sbapi/client/client.gen.js +8 -1
  146. package/dist/sbapi/client/client.gen.js.map +1 -1
  147. package/dist/sbapi/index.d.ts +2 -2
  148. package/dist/sbapi/index.d.ts.map +1 -1
  149. package/dist/sbapi/index.js +1 -1
  150. package/dist/sbapi/index.js.map +1 -1
  151. package/dist/sbmng/@tanstack/react-query.gen.d.ts +2418 -0
  152. package/dist/sbmng/@tanstack/react-query.gen.d.ts.map +1 -0
  153. package/dist/sbmng/@tanstack/react-query.gen.js +2657 -0
  154. package/dist/sbmng/@tanstack/react-query.gen.js.map +1 -0
  155. package/dist/sbmng/client/client.gen.d.ts +3 -0
  156. package/dist/sbmng/client/client.gen.d.ts.map +1 -0
  157. package/dist/sbmng/client/client.gen.js +236 -0
  158. package/dist/sbmng/client/client.gen.js.map +1 -0
  159. package/dist/sbmng/client/index.d.ts +9 -0
  160. package/dist/sbmng/client/index.d.ts.map +1 -0
  161. package/dist/sbmng/client/index.js +7 -0
  162. package/dist/sbmng/client/index.js.map +1 -0
  163. package/dist/sbmng/client/types.gen.d.ts +118 -0
  164. package/dist/sbmng/client/types.gen.d.ts.map +1 -0
  165. package/dist/sbmng/client/types.gen.js +3 -0
  166. package/dist/sbmng/client/types.gen.js.map +1 -0
  167. package/dist/sbmng/client/utils.gen.d.ts +34 -0
  168. package/dist/sbmng/client/utils.gen.d.ts.map +1 -0
  169. package/dist/sbmng/client/utils.gen.js +232 -0
  170. package/dist/sbmng/client/utils.gen.js.map +1 -0
  171. package/dist/sbmng/client.gen.d.ts +13 -0
  172. package/dist/sbmng/client.gen.d.ts.map +1 -0
  173. package/dist/sbmng/client.gen.js +4 -0
  174. package/dist/sbmng/client.gen.js.map +1 -0
  175. package/dist/sbmng/core/auth.gen.d.ts +19 -0
  176. package/dist/sbmng/core/auth.gen.d.ts.map +1 -0
  177. package/dist/sbmng/core/auth.gen.js +15 -0
  178. package/dist/sbmng/core/auth.gen.js.map +1 -0
  179. package/dist/sbmng/core/bodySerializer.gen.d.ts +26 -0
  180. package/dist/sbmng/core/bodySerializer.gen.d.ts.map +1 -0
  181. package/dist/sbmng/core/bodySerializer.gen.js +58 -0
  182. package/dist/sbmng/core/bodySerializer.gen.js.map +1 -0
  183. package/dist/sbmng/core/params.gen.d.ts +44 -0
  184. package/dist/sbmng/core/params.gen.d.ts.map +1 -0
  185. package/dist/sbmng/core/params.gen.js +101 -0
  186. package/dist/sbmng/core/params.gen.js.map +1 -0
  187. package/dist/sbmng/core/pathSerializer.gen.d.ts +34 -0
  188. package/dist/sbmng/core/pathSerializer.gen.d.ts.map +1 -0
  189. package/dist/sbmng/core/pathSerializer.gen.js +115 -0
  190. package/dist/sbmng/core/pathSerializer.gen.js.map +1 -0
  191. package/dist/sbmng/core/queryKeySerializer.gen.d.ts +19 -0
  192. package/dist/sbmng/core/queryKeySerializer.gen.d.ts.map +1 -0
  193. package/dist/sbmng/core/queryKeySerializer.gen.js +100 -0
  194. package/dist/sbmng/core/queryKeySerializer.gen.js.map +1 -0
  195. package/dist/sbmng/core/serverSentEvents.gen.d.ts +72 -0
  196. package/dist/sbmng/core/serverSentEvents.gen.d.ts.map +1 -0
  197. package/dist/sbmng/core/serverSentEvents.gen.js +138 -0
  198. package/dist/sbmng/core/serverSentEvents.gen.js.map +1 -0
  199. package/dist/sbmng/core/types.gen.d.ts +79 -0
  200. package/dist/sbmng/core/types.gen.d.ts.map +1 -0
  201. package/dist/sbmng/core/types.gen.js +3 -0
  202. package/dist/sbmng/core/types.gen.js.map +1 -0
  203. package/dist/sbmng/core/utils.gen.d.ts +20 -0
  204. package/dist/sbmng/core/utils.gen.d.ts.map +1 -0
  205. package/dist/sbmng/core/utils.gen.js +88 -0
  206. package/dist/sbmng/core/utils.gen.js.map +1 -0
  207. package/dist/sbmng/index.d.ts +3 -0
  208. package/dist/sbmng/index.d.ts.map +1 -0
  209. package/dist/sbmng/index.js +3 -0
  210. package/dist/sbmng/index.js.map +1 -0
  211. package/dist/sbmng/schemas.gen.d.ts +7220 -0
  212. package/dist/sbmng/schemas.gen.d.ts.map +1 -0
  213. package/dist/sbmng/schemas.gen.js +9392 -0
  214. package/dist/sbmng/schemas.gen.js.map +1 -0
  215. package/dist/sbmng/sdk.gen.d.ts +743 -0
  216. package/dist/sbmng/sdk.gen.d.ts.map +1 -0
  217. package/dist/sbmng/sdk.gen.js +1543 -0
  218. package/dist/sbmng/sdk.gen.js.map +1 -0
  219. package/dist/sbmng/types.gen.d.ts +7003 -0
  220. package/dist/sbmng/types.gen.d.ts.map +1 -0
  221. package/dist/sbmng/types.gen.js +3 -0
  222. package/dist/sbmng/types.gen.js.map +1 -0
  223. package/dist/supabase/context.d.ts +14 -0
  224. package/dist/supabase/context.d.ts.map +1 -0
  225. package/dist/supabase/context.js +33 -0
  226. package/dist/supabase/context.js.map +1 -0
  227. package/dist/supabase/supabase-client.d.ts +1625 -304
  228. package/dist/supabase/supabase-client.d.ts.map +1 -1
  229. package/dist/supabase/supabase.d.ts +3551 -909
  230. package/dist/supabase/supabase.d.ts.map +1 -1
  231. package/dist/supabase/supabase.js +1 -34
  232. package/dist/supabase/supabase.js.map +1 -1
  233. package/dist/types/database.types.d.ts +1656 -314
  234. package/dist/types/database.types.d.ts.map +1 -1
  235. package/dist/types/database.types.js +3 -1
  236. package/dist/types/database.types.js.map +1 -1
  237. package/dist/types/index.d.ts +30 -1
  238. package/dist/types/index.d.ts.map +1 -1
  239. package/package.json +45 -42
  240. package/dist/supabase/supabase-browser.d.ts +0 -4
  241. package/dist/supabase/supabase-browser.d.ts.map +0 -1
  242. package/dist/supabase/supabase-browser.js +0 -20
  243. package/dist/supabase/supabase-browser.js.map +0 -1
@@ -7,21 +7,69 @@ export type Database = {
7
7
  };
8
8
  public: {
9
9
  Tables: {
10
- adk_app_states: {
10
+ adk_agents: {
11
+ Row: {
12
+ avatar_url: string | null;
13
+ created_at: string | null;
14
+ description: string | null;
15
+ name: string;
16
+ updated_at: string | null;
17
+ };
18
+ Insert: {
19
+ avatar_url?: string | null;
20
+ created_at?: string | null;
21
+ description?: string | null;
22
+ name: string;
23
+ updated_at?: string | null;
24
+ };
25
+ Update: {
26
+ avatar_url?: string | null;
27
+ created_at?: string | null;
28
+ description?: string | null;
29
+ name?: string;
30
+ updated_at?: string | null;
31
+ };
32
+ Relationships: [];
33
+ };
34
+ adk_artifacts: {
11
35
  Row: {
12
36
  app_name: string;
13
- state: Json;
14
- updated_at: string;
37
+ canonical_uri: string | null;
38
+ created_at: string | null;
39
+ custom_metadata: Json | null;
40
+ data: Json | null;
41
+ filename: string;
42
+ id: string;
43
+ mime_type: string | null;
44
+ session_id: string | null;
45
+ user_id: string;
46
+ version: number;
15
47
  };
16
48
  Insert: {
17
49
  app_name: string;
18
- state: Json;
19
- updated_at: string;
50
+ canonical_uri?: string | null;
51
+ created_at?: string | null;
52
+ custom_metadata?: Json | null;
53
+ data?: Json | null;
54
+ filename: string;
55
+ id?: string;
56
+ mime_type?: string | null;
57
+ session_id?: string | null;
58
+ user_id: string;
59
+ version: number;
20
60
  };
21
61
  Update: {
22
62
  app_name?: string;
23
- state?: Json;
24
- updated_at?: string;
63
+ canonical_uri?: string | null;
64
+ created_at?: string | null;
65
+ custom_metadata?: Json | null;
66
+ data?: Json | null;
67
+ filename?: string;
68
+ id?: string;
69
+ mime_type?: string | null;
70
+ session_id?: string | null;
71
+ user_id?: string;
72
+ version?: number;
25
73
  };
26
74
  Relationships: [];
27
75
  };
@@ -106,6 +154,42 @@ export type Database = {
106
154
  };
107
155
  Relationships: [];
108
156
  };
157
+ adk_quick_starts: {
158
+ Row: {
159
+ agent_name: string;
160
+ created_at: string | null;
161
+ description: string | null;
162
+ id: string;
163
+ is_active: boolean | null;
164
+ ord: number | null;
165
+ prompt: string;
166
+ title: string;
167
+ updated_at: string | null;
168
+ };
169
+ Insert: {
170
+ agent_name?: string;
171
+ created_at?: string | null;
172
+ description?: string | null;
173
+ id?: string;
174
+ is_active?: boolean | null;
175
+ ord?: number | null;
176
+ prompt: string;
177
+ title: string;
178
+ updated_at?: string | null;
179
+ };
180
+ Update: {
181
+ agent_name?: string;
182
+ created_at?: string | null;
183
+ description?: string | null;
184
+ id?: string;
185
+ is_active?: boolean | null;
186
+ ord?: number | null;
187
+ prompt?: string;
188
+ title?: string;
189
+ updated_at?: string | null;
190
+ };
191
+ Relationships: [];
192
+ };
109
193
  adk_sessions: {
110
194
  Row: {
111
195
  app_name: string;
@@ -133,33 +217,6 @@ export type Database = {
133
217
  };
134
218
  Relationships: [];
135
219
  };
136
- adk_user_states: {
137
- Row: {
138
- app_name: string | null;
139
- created_at: string;
140
- id: number;
141
- state: Json | null;
142
- updated_at: string;
143
- user_id: string | null;
144
- };
145
- Insert: {
146
- app_name?: string | null;
147
- created_at?: string;
148
- id?: number;
149
- state?: Json | null;
150
- updated_at?: string;
151
- user_id?: string | null;
152
- };
153
- Update: {
154
- app_name?: string | null;
155
- created_at?: string;
156
- id?: number;
157
- state?: Json | null;
158
- updated_at?: string;
159
- user_id?: string | null;
160
- };
161
- Relationships: [];
162
- };
163
220
  agents: {
164
221
  Row: {
165
222
  config: Json | null;
@@ -196,166 +253,561 @@ export type Database = {
196
253
  };
197
254
  Relationships: [];
198
255
  };
199
- browsers: {
256
+ audit_assets: {
200
257
  Row: {
201
- cdpUrl: string | null;
202
- config: Json | null;
258
+ content: string;
259
+ created_at: string;
260
+ id: string;
261
+ metadata: Json | null;
262
+ project_id: string;
263
+ status: string | null;
264
+ type: string;
265
+ updated_at: string;
266
+ };
267
+ Insert: {
268
+ content: string;
269
+ created_at?: string;
270
+ id?: string;
271
+ metadata?: Json | null;
272
+ project_id: string;
273
+ status?: string | null;
274
+ type: string;
275
+ updated_at?: string;
276
+ };
277
+ Update: {
278
+ content?: string;
279
+ created_at?: string;
280
+ id?: string;
281
+ metadata?: Json | null;
282
+ project_id?: string;
283
+ status?: string | null;
284
+ type?: string;
285
+ updated_at?: string;
286
+ };
287
+ Relationships: [
288
+ {
289
+ foreignKeyName: "audit_assets_project_id_fkey";
290
+ columns: ["project_id"];
291
+ isOneToOne: false;
292
+ referencedRelation: "audit_projects";
293
+ referencedColumns: ["id"];
294
+ }
295
+ ];
296
+ };
297
+ audit_findings: {
298
+ Row: {
299
+ ai_analysis: string | null;
203
300
  created_at: string;
204
301
  description: string | null;
205
302
  id: string;
206
- profile_id: string | null;
207
- provider: string | null;
208
- provider_config: Json | null;
209
- sandbox_id: string | null;
210
- title: string | null;
211
- updated_at: string | null;
212
- user_id: string | null;
303
+ project_id: string;
304
+ proof_poc: string | null;
305
+ remediation: string | null;
306
+ severity: string | null;
307
+ status: string | null;
308
+ task_id: string | null;
309
+ title: string;
310
+ updated_at: string;
213
311
  };
214
312
  Insert: {
215
- cdpUrl?: string | null;
216
- config?: Json | null;
313
+ ai_analysis?: string | null;
217
314
  created_at?: string;
218
315
  description?: string | null;
219
316
  id?: string;
220
- profile_id?: string | null;
221
- provider?: string | null;
222
- provider_config?: Json | null;
223
- sandbox_id?: string | null;
224
- title?: string | null;
225
- updated_at?: string | null;
226
- user_id?: string | null;
317
+ project_id: string;
318
+ proof_poc?: string | null;
319
+ remediation?: string | null;
320
+ severity?: string | null;
321
+ status?: string | null;
322
+ task_id?: string | null;
323
+ title: string;
324
+ updated_at?: string;
227
325
  };
228
326
  Update: {
229
- cdpUrl?: string | null;
230
- config?: Json | null;
327
+ ai_analysis?: string | null;
231
328
  created_at?: string;
232
329
  description?: string | null;
233
330
  id?: string;
234
- profile_id?: string | null;
235
- provider?: string | null;
236
- provider_config?: Json | null;
237
- sandbox_id?: string | null;
238
- title?: string | null;
239
- updated_at?: string | null;
240
- user_id?: string | null;
331
+ project_id?: string;
332
+ proof_poc?: string | null;
333
+ remediation?: string | null;
334
+ severity?: string | null;
335
+ status?: string | null;
336
+ task_id?: string | null;
337
+ title?: string;
338
+ updated_at?: string;
241
339
  };
242
- Relationships: [];
340
+ Relationships: [
341
+ {
342
+ foreignKeyName: "audit_findings_project_id_fkey";
343
+ columns: ["project_id"];
344
+ isOneToOne: false;
345
+ referencedRelation: "audit_projects";
346
+ referencedColumns: ["id"];
347
+ },
348
+ {
349
+ foreignKeyName: "audit_findings_task_id_fkey";
350
+ columns: ["task_id"];
351
+ isOneToOne: false;
352
+ referencedRelation: "audit_tasks";
353
+ referencedColumns: ["id"];
354
+ }
355
+ ];
243
356
  };
244
- chat_messages: {
357
+ audit_pocs: {
245
358
  Row: {
246
- attachments: Json | null;
247
- chat_id: string;
248
359
  created_at: string;
249
- grounding_metadata: Json | null;
360
+ cve_id: string | null;
250
361
  id: string;
251
- parts: Json;
252
- role: string;
362
+ name: string;
363
+ path: string | null;
364
+ project_id: string;
365
+ severity: string | null;
366
+ status: string | null;
253
367
  updated_at: string;
254
- user_id: string | null;
255
368
  };
256
369
  Insert: {
257
- attachments?: Json | null;
258
- chat_id: string;
259
370
  created_at?: string;
260
- grounding_metadata?: Json | null;
371
+ cve_id?: string | null;
261
372
  id?: string;
262
- parts: Json;
263
- role: string;
373
+ name: string;
374
+ path?: string | null;
375
+ project_id: string;
376
+ severity?: string | null;
377
+ status?: string | null;
264
378
  updated_at?: string;
265
- user_id?: string | null;
266
379
  };
267
380
  Update: {
268
- attachments?: Json | null;
269
- chat_id?: string;
270
381
  created_at?: string;
271
- grounding_metadata?: Json | null;
382
+ cve_id?: string | null;
272
383
  id?: string;
273
- parts?: Json;
274
- role?: string;
384
+ name?: string;
385
+ path?: string | null;
386
+ project_id?: string;
387
+ severity?: string | null;
388
+ status?: string | null;
275
389
  updated_at?: string;
276
- user_id?: string | null;
277
390
  };
278
391
  Relationships: [
279
392
  {
280
- foreignKeyName: "chat_messages_chat_id_fkey";
281
- columns: ["chat_id"];
393
+ foreignKeyName: "audit_pocs_project_id_fkey";
394
+ columns: ["project_id"];
282
395
  isOneToOne: false;
283
- referencedRelation: "chats";
396
+ referencedRelation: "audit_projects";
284
397
  referencedColumns: ["id"];
285
398
  }
286
399
  ];
287
400
  };
288
- chats: {
401
+ audit_projects: {
289
402
  Row: {
290
- agent_id: string;
403
+ agent_config: Json | null;
404
+ config: Json | null;
291
405
  created_at: string;
406
+ github_branch: string | null;
407
+ github_installation_id: number | null;
408
+ github_repo_full_name: string | null;
409
+ github_repo_id: number | null;
292
410
  id: string;
293
- lastContext: Json | null;
294
- state: Json | null;
295
- title: string;
296
- updated_at: string | null;
411
+ name: string;
412
+ repo_branch: string | null;
413
+ repo_url: string | null;
414
+ sandbox_id: string | null;
415
+ target: string | null;
416
+ updated_at: string;
297
417
  user_id: string | null;
298
- visibility: string;
299
418
  };
300
419
  Insert: {
301
- agent_id: string;
420
+ agent_config?: Json | null;
421
+ config?: Json | null;
302
422
  created_at?: string;
423
+ github_branch?: string | null;
424
+ github_installation_id?: number | null;
425
+ github_repo_full_name?: string | null;
426
+ github_repo_id?: number | null;
303
427
  id?: string;
304
- lastContext?: Json | null;
305
- state?: Json | null;
306
- title: string;
307
- updated_at?: string | null;
428
+ name: string;
429
+ repo_branch?: string | null;
430
+ repo_url?: string | null;
431
+ sandbox_id?: string | null;
432
+ target?: string | null;
433
+ updated_at?: string;
308
434
  user_id?: string | null;
309
- visibility?: string;
310
435
  };
311
436
  Update: {
312
- agent_id?: string;
437
+ agent_config?: Json | null;
438
+ config?: Json | null;
313
439
  created_at?: string;
440
+ github_branch?: string | null;
441
+ github_installation_id?: number | null;
442
+ github_repo_full_name?: string | null;
443
+ github_repo_id?: number | null;
314
444
  id?: string;
315
- lastContext?: Json | null;
316
- state?: Json | null;
317
- title?: string;
318
- updated_at?: string | null;
445
+ name?: string;
446
+ repo_branch?: string | null;
447
+ repo_url?: string | null;
448
+ sandbox_id?: string | null;
449
+ target?: string | null;
450
+ updated_at?: string;
319
451
  user_id?: string | null;
320
- visibility?: string;
321
452
  };
322
- Relationships: [];
453
+ Relationships: [
454
+ {
455
+ foreignKeyName: "audit_projects_sandbox_id_fkey";
456
+ columns: ["sandbox_id"];
457
+ isOneToOne: false;
458
+ referencedRelation: "resources";
459
+ referencedColumns: ["id"];
460
+ }
461
+ ];
323
462
  };
324
- dash_navitems: {
463
+ audit_skills: {
325
464
  Row: {
326
- badge: string | null;
327
465
  created_at: string;
328
- enabled: boolean | null;
329
- icon: string | null;
466
+ dependencies: Json | null;
467
+ description: string | null;
330
468
  id: string;
331
- label: string;
332
- ord: number | null;
333
- tooltip: string | null;
334
- url: string | null;
469
+ name: string;
470
+ params_schema: Json | null;
471
+ project_id: string;
472
+ source_path: string | null;
473
+ updated_at: string;
474
+ version: string | null;
335
475
  };
336
476
  Insert: {
337
- badge?: string | null;
338
477
  created_at?: string;
339
- enabled?: boolean | null;
340
- icon?: string | null;
478
+ dependencies?: Json | null;
479
+ description?: string | null;
341
480
  id?: string;
342
- label: string;
343
- ord?: number | null;
344
- tooltip?: string | null;
345
- url?: string | null;
481
+ name: string;
482
+ params_schema?: Json | null;
483
+ project_id: string;
484
+ source_path?: string | null;
485
+ updated_at?: string;
486
+ version?: string | null;
346
487
  };
347
488
  Update: {
348
- badge?: string | null;
349
489
  created_at?: string;
350
- enabled?: boolean | null;
351
- icon?: string | null;
490
+ dependencies?: Json | null;
491
+ description?: string | null;
352
492
  id?: string;
353
- label?: string;
354
- ord?: number | null;
355
- tooltip?: string | null;
356
- url?: string | null;
493
+ name?: string;
494
+ params_schema?: Json | null;
495
+ project_id?: string;
496
+ source_path?: string | null;
497
+ updated_at?: string;
498
+ version?: string | null;
357
499
  };
358
- Relationships: [];
500
+ Relationships: [
501
+ {
502
+ foreignKeyName: "audit_skills_project_id_fkey";
503
+ columns: ["project_id"];
504
+ isOneToOne: false;
505
+ referencedRelation: "audit_projects";
506
+ referencedColumns: ["id"];
507
+ }
508
+ ];
509
+ };
510
+ audit_tasks: {
511
+ Row: {
512
+ created_at: string;
513
+ id: string;
514
+ instructions: string | null;
515
+ logs_url: string | null;
516
+ project_id: string;
517
+ result_summary: string | null;
518
+ sandbox_id: string | null;
519
+ skill_id: string | null;
520
+ status: string | null;
521
+ updated_at: string;
522
+ user_id: string | null;
523
+ };
524
+ Insert: {
525
+ created_at?: string;
526
+ id?: string;
527
+ instructions?: string | null;
528
+ logs_url?: string | null;
529
+ project_id: string;
530
+ result_summary?: string | null;
531
+ sandbox_id?: string | null;
532
+ skill_id?: string | null;
533
+ status?: string | null;
534
+ updated_at?: string;
535
+ user_id?: string | null;
536
+ };
537
+ Update: {
538
+ created_at?: string;
539
+ id?: string;
540
+ instructions?: string | null;
541
+ logs_url?: string | null;
542
+ project_id?: string;
543
+ result_summary?: string | null;
544
+ sandbox_id?: string | null;
545
+ skill_id?: string | null;
546
+ status?: string | null;
547
+ updated_at?: string;
548
+ user_id?: string | null;
549
+ };
550
+ Relationships: [
551
+ {
552
+ foreignKeyName: "audit_tasks_project_id_fkey";
553
+ columns: ["project_id"];
554
+ isOneToOne: false;
555
+ referencedRelation: "audit_projects";
556
+ referencedColumns: ["id"];
557
+ },
558
+ {
559
+ foreignKeyName: "audit_tasks_sandbox_id_fkey";
560
+ columns: ["sandbox_id"];
561
+ isOneToOne: false;
562
+ referencedRelation: "resources";
563
+ referencedColumns: ["id"];
564
+ },
565
+ {
566
+ foreignKeyName: "audit_tasks_skill_id_fkey";
567
+ columns: ["skill_id"];
568
+ isOneToOne: false;
569
+ referencedRelation: "audit_skills";
570
+ referencedColumns: ["id"];
571
+ }
572
+ ];
573
+ };
574
+ browsers: {
575
+ Row: {
576
+ cdpUrl: string | null;
577
+ config: Json | null;
578
+ created_at: string;
579
+ description: string | null;
580
+ id: string;
581
+ profile_id: string | null;
582
+ provider: string | null;
583
+ provider_config: Json | null;
584
+ sandbox_id: string | null;
585
+ title: string | null;
586
+ updated_at: string | null;
587
+ user_id: string | null;
588
+ };
589
+ Insert: {
590
+ cdpUrl?: string | null;
591
+ config?: Json | null;
592
+ created_at?: string;
593
+ description?: string | null;
594
+ id?: string;
595
+ profile_id?: string | null;
596
+ provider?: string | null;
597
+ provider_config?: Json | null;
598
+ sandbox_id?: string | null;
599
+ title?: string | null;
600
+ updated_at?: string | null;
601
+ user_id?: string | null;
602
+ };
603
+ Update: {
604
+ cdpUrl?: string | null;
605
+ config?: Json | null;
606
+ created_at?: string;
607
+ description?: string | null;
608
+ id?: string;
609
+ profile_id?: string | null;
610
+ provider?: string | null;
611
+ provider_config?: Json | null;
612
+ sandbox_id?: string | null;
613
+ title?: string | null;
614
+ updated_at?: string | null;
615
+ user_id?: string | null;
616
+ };
617
+ Relationships: [];
618
+ };
619
+ chat_messages: {
620
+ Row: {
621
+ attachments: Json | null;
622
+ chat_id: string;
623
+ created_at: string;
624
+ grounding_metadata: Json | null;
625
+ id: string;
626
+ parts: Json;
627
+ role: string;
628
+ updated_at: string;
629
+ user_id: string | null;
630
+ };
631
+ Insert: {
632
+ attachments?: Json | null;
633
+ chat_id: string;
634
+ created_at?: string;
635
+ grounding_metadata?: Json | null;
636
+ id?: string;
637
+ parts: Json;
638
+ role: string;
639
+ updated_at?: string;
640
+ user_id?: string | null;
641
+ };
642
+ Update: {
643
+ attachments?: Json | null;
644
+ chat_id?: string;
645
+ created_at?: string;
646
+ grounding_metadata?: Json | null;
647
+ id?: string;
648
+ parts?: Json;
649
+ role?: string;
650
+ updated_at?: string;
651
+ user_id?: string | null;
652
+ };
653
+ Relationships: [
654
+ {
655
+ foreignKeyName: "chat_messages_chat_id_fkey";
656
+ columns: ["chat_id"];
657
+ isOneToOne: false;
658
+ referencedRelation: "chats";
659
+ referencedColumns: ["id"];
660
+ }
661
+ ];
662
+ };
663
+ chats: {
664
+ Row: {
665
+ agent_id: string;
666
+ created_at: string;
667
+ id: string;
668
+ lastContext: Json | null;
669
+ state: Json | null;
670
+ title: string;
671
+ type: string;
672
+ updated_at: string | null;
673
+ user_id: string | null;
674
+ visibility: string;
675
+ };
676
+ Insert: {
677
+ agent_id: string;
678
+ created_at?: string;
679
+ id?: string;
680
+ lastContext?: Json | null;
681
+ state?: Json | null;
682
+ title: string;
683
+ type?: string;
684
+ updated_at?: string | null;
685
+ user_id?: string | null;
686
+ visibility?: string;
687
+ };
688
+ Update: {
689
+ agent_id?: string;
690
+ created_at?: string;
691
+ id?: string;
692
+ lastContext?: Json | null;
693
+ state?: Json | null;
694
+ title?: string;
695
+ type?: string;
696
+ updated_at?: string | null;
697
+ user_id?: string | null;
698
+ visibility?: string;
699
+ };
700
+ Relationships: [];
701
+ };
702
+ compute_nodes: {
703
+ Row: {
704
+ auth_secret: string | null;
705
+ auth_type: string | null;
706
+ config: Json | null;
707
+ created_at: string;
708
+ enabled: boolean | null;
709
+ id: string;
710
+ ip: string;
711
+ max_instances: number | null;
712
+ name: string;
713
+ port: number;
714
+ provider: string;
715
+ status: string | null;
716
+ tags: Json | null;
717
+ updated_at: string;
718
+ user_id: string | null;
719
+ username: string | null;
720
+ };
721
+ Insert: {
722
+ auth_secret?: string | null;
723
+ auth_type?: string | null;
724
+ config?: Json | null;
725
+ created_at?: string;
726
+ enabled?: boolean | null;
727
+ id?: string;
728
+ ip: string;
729
+ max_instances?: number | null;
730
+ name: string;
731
+ port?: number;
732
+ provider?: string;
733
+ status?: string | null;
734
+ tags?: Json | null;
735
+ updated_at?: string;
736
+ user_id?: string | null;
737
+ username?: string | null;
738
+ };
739
+ Update: {
740
+ auth_secret?: string | null;
741
+ auth_type?: string | null;
742
+ config?: Json | null;
743
+ created_at?: string;
744
+ enabled?: boolean | null;
745
+ id?: string;
746
+ ip?: string;
747
+ max_instances?: number | null;
748
+ name?: string;
749
+ port?: number;
750
+ provider?: string;
751
+ status?: string | null;
752
+ tags?: Json | null;
753
+ updated_at?: string;
754
+ user_id?: string | null;
755
+ username?: string | null;
756
+ };
757
+ Relationships: [];
758
+ };
759
+ dash_navitems: {
760
+ Row: {
761
+ badge: string | null;
762
+ created_at: string;
763
+ enabled: boolean | null;
764
+ icon: string | null;
765
+ id: string;
766
+ label: string;
767
+ location: string | null;
768
+ ord: number | null;
769
+ parent_id: string | null;
770
+ required_role: Database["public"]["Enums"]["app_role"] | null;
771
+ tooltip: string | null;
772
+ url: string | null;
773
+ };
774
+ Insert: {
775
+ badge?: string | null;
776
+ created_at?: string;
777
+ enabled?: boolean | null;
778
+ icon?: string | null;
779
+ id?: string;
780
+ label: string;
781
+ location?: string | null;
782
+ ord?: number | null;
783
+ parent_id?: string | null;
784
+ required_role?: Database["public"]["Enums"]["app_role"] | null;
785
+ tooltip?: string | null;
786
+ url?: string | null;
787
+ };
788
+ Update: {
789
+ badge?: string | null;
790
+ created_at?: string;
791
+ enabled?: boolean | null;
792
+ icon?: string | null;
793
+ id?: string;
794
+ label?: string;
795
+ location?: string | null;
796
+ ord?: number | null;
797
+ parent_id?: string | null;
798
+ required_role?: Database["public"]["Enums"]["app_role"] | null;
799
+ tooltip?: string | null;
800
+ url?: string | null;
801
+ };
802
+ Relationships: [
803
+ {
804
+ foreignKeyName: "dash_navitems_parent_id_fkey";
805
+ columns: ["parent_id"];
806
+ isOneToOne: false;
807
+ referencedRelation: "dash_navitems";
808
+ referencedColumns: ["id"];
809
+ }
810
+ ];
359
811
  };
360
812
  endpoints: {
361
813
  Row: {
@@ -396,7 +848,7 @@ export type Database = {
396
848
  };
397
849
  Relationships: [];
398
850
  };
399
- event_results: {
851
+ event_results_laji: {
400
852
  Row: {
401
853
  created_at: string;
402
854
  error: string | null;
@@ -433,31 +885,31 @@ export type Database = {
433
885
  };
434
886
  event_streams: {
435
887
  Row: {
436
- channel: string;
437
- created_at: string;
438
- data: Json | null;
439
- deleted_at: string | null;
440
- event: string | null;
888
+ created_at: string | null;
889
+ data: Json;
890
+ event: string;
441
891
  id: string;
442
- user_id: string | null;
892
+ session_id: string;
893
+ updated_at: string | null;
894
+ user_id: string;
443
895
  };
444
896
  Insert: {
445
- channel?: string;
446
- created_at?: string;
447
- data?: Json | null;
448
- deleted_at?: string | null;
449
- event?: string | null;
897
+ created_at?: string | null;
898
+ data: Json;
899
+ event?: string;
450
900
  id: string;
451
- user_id?: string | null;
901
+ session_id: string;
902
+ updated_at?: string | null;
903
+ user_id?: string;
452
904
  };
453
905
  Update: {
454
- channel?: string;
455
- created_at?: string;
456
- data?: Json | null;
457
- deleted_at?: string | null;
458
- event?: string | null;
906
+ created_at?: string | null;
907
+ data?: Json;
908
+ event?: string;
459
909
  id?: string;
460
- user_id?: string | null;
910
+ session_id?: string;
911
+ updated_at?: string | null;
912
+ user_id?: string;
461
913
  };
462
914
  Relationships: [];
463
915
  };
@@ -485,77 +937,130 @@ export type Database = {
485
937
  };
486
938
  Relationships: [];
487
939
  };
488
- paccounts: {
940
+ linked_accounts: {
941
+ Row: {
942
+ created_at: string;
943
+ credentials: Json | null;
944
+ id: string;
945
+ last_used_at: string | null;
946
+ name: string | null;
947
+ platform_id: string | null;
948
+ session_data: Json | null;
949
+ status: string | null;
950
+ updated_at: string | null;
951
+ user_id: string;
952
+ };
953
+ Insert: {
954
+ created_at?: string;
955
+ credentials?: Json | null;
956
+ id?: string;
957
+ last_used_at?: string | null;
958
+ name?: string | null;
959
+ platform_id?: string | null;
960
+ session_data?: Json | null;
961
+ status?: string | null;
962
+ updated_at?: string | null;
963
+ user_id: string;
964
+ };
965
+ Update: {
966
+ created_at?: string;
967
+ credentials?: Json | null;
968
+ id?: string;
969
+ last_used_at?: string | null;
970
+ name?: string | null;
971
+ platform_id?: string | null;
972
+ session_data?: Json | null;
973
+ status?: string | null;
974
+ updated_at?: string | null;
975
+ user_id?: string;
976
+ };
977
+ Relationships: [
978
+ {
979
+ foreignKeyName: "linked_accounts_platform_id_fkey";
980
+ columns: ["platform_id"];
981
+ isOneToOne: false;
982
+ referencedRelation: "platforms";
983
+ referencedColumns: ["id"];
984
+ }
985
+ ];
986
+ };
987
+ mitm_rules: {
489
988
  Row: {
490
- config: Json | null;
491
- created_at: string;
492
- description: string | null;
493
- enabled: boolean;
989
+ action_config: Json | null;
990
+ action_type: string | null;
991
+ created_at: string | null;
494
992
  id: string;
993
+ is_active: boolean | null;
994
+ match_pattern: string | null;
495
995
  name: string | null;
496
- platform_id: string | null;
497
- state: Json | null;
498
- updated_at: string | null;
996
+ resource_id: string | null;
499
997
  user_id: string | null;
500
998
  };
501
999
  Insert: {
502
- config?: Json | null;
503
- created_at?: string;
504
- description?: string | null;
505
- enabled?: boolean;
1000
+ action_config?: Json | null;
1001
+ action_type?: string | null;
1002
+ created_at?: string | null;
506
1003
  id?: string;
1004
+ is_active?: boolean | null;
1005
+ match_pattern?: string | null;
507
1006
  name?: string | null;
508
- platform_id?: string | null;
509
- state?: Json | null;
510
- updated_at?: string | null;
1007
+ resource_id?: string | null;
511
1008
  user_id?: string | null;
512
1009
  };
513
1010
  Update: {
514
- config?: Json | null;
515
- created_at?: string;
516
- description?: string | null;
517
- enabled?: boolean;
1011
+ action_config?: Json | null;
1012
+ action_type?: string | null;
1013
+ created_at?: string | null;
518
1014
  id?: string;
1015
+ is_active?: boolean | null;
1016
+ match_pattern?: string | null;
519
1017
  name?: string | null;
520
- platform_id?: string | null;
521
- state?: Json | null;
522
- updated_at?: string | null;
1018
+ resource_id?: string | null;
523
1019
  user_id?: string | null;
524
1020
  };
525
1021
  Relationships: [
526
1022
  {
527
- foreignKeyName: "paccounts_platform_id_fkey";
528
- columns: ["platform_id"];
1023
+ foreignKeyName: "mitm_rules_resource_id_fkey";
1024
+ columns: ["resource_id"];
529
1025
  isOneToOne: false;
530
- referencedRelation: "platforms";
1026
+ referencedRelation: "resources";
531
1027
  referencedColumns: ["id"];
532
1028
  }
533
1029
  ];
534
1030
  };
535
1031
  platforms: {
536
1032
  Row: {
1033
+ auth_config: Json | null;
1034
+ base_url: string | null;
537
1035
  created_at: string;
1036
+ display_name: string | null;
538
1037
  id: string;
539
- name: string | null;
1038
+ is_active: boolean;
1039
+ name: string;
540
1040
  type: string;
541
1041
  updated_at: string | null;
542
- url: string;
543
1042
  };
544
1043
  Insert: {
1044
+ auth_config?: Json | null;
1045
+ base_url?: string | null;
545
1046
  created_at?: string;
1047
+ display_name?: string | null;
546
1048
  id?: string;
547
- name?: string | null;
1049
+ is_active?: boolean;
1050
+ name: string;
548
1051
  type?: string;
549
1052
  updated_at?: string | null;
550
- url: string;
551
1053
  };
552
1054
  Update: {
1055
+ auth_config?: Json | null;
1056
+ base_url?: string | null;
553
1057
  created_at?: string;
1058
+ display_name?: string | null;
554
1059
  id?: string;
555
- name?: string | null;
1060
+ is_active?: boolean;
1061
+ name?: string;
556
1062
  type?: string;
557
1063
  updated_at?: string | null;
558
- url?: string;
559
1064
  };
560
1065
  Relationships: [];
561
1066
  };
@@ -736,7 +1241,7 @@ export type Database = {
736
1241
  };
737
1242
  Relationships: [];
738
1243
  };
739
- service_tunnels: {
1244
+ service_tunnels_laji: {
740
1245
  Row: {
741
1246
  cfd_token: string | null;
742
1247
  created_at: string;
@@ -763,7 +1268,7 @@ export type Database = {
763
1268
  };
764
1269
  Relationships: [];
765
1270
  };
766
- services: {
1271
+ services_laji: {
767
1272
  Row: {
768
1273
  created_at: string;
769
1274
  id: string;
@@ -799,6 +1304,30 @@ export type Database = {
799
1304
  };
800
1305
  Relationships: [];
801
1306
  };
1307
+ sys_config: {
1308
+ Row: {
1309
+ created_at: string | null;
1310
+ description: string | null;
1311
+ key: string;
1312
+ updated_at: string | null;
1313
+ value: Json;
1314
+ };
1315
+ Insert: {
1316
+ created_at?: string | null;
1317
+ description?: string | null;
1318
+ key: string;
1319
+ updated_at?: string | null;
1320
+ value?: Json;
1321
+ };
1322
+ Update: {
1323
+ created_at?: string | null;
1324
+ description?: string | null;
1325
+ key?: string;
1326
+ updated_at?: string | null;
1327
+ value?: Json;
1328
+ };
1329
+ Relationships: [];
1330
+ };
802
1331
  sys_logs: {
803
1332
  Row: {
804
1333
  created_at: string;
@@ -826,6 +1355,48 @@ export type Database = {
826
1355
  };
827
1356
  Relationships: [];
828
1357
  };
1358
+ sys_settings_laji: {
1359
+ Row: {
1360
+ description: string | null;
1361
+ key: string;
1362
+ updated_at: string | null;
1363
+ value: string | null;
1364
+ };
1365
+ Insert: {
1366
+ description?: string | null;
1367
+ key: string;
1368
+ updated_at?: string | null;
1369
+ value?: string | null;
1370
+ };
1371
+ Update: {
1372
+ description?: string | null;
1373
+ key?: string;
1374
+ updated_at?: string | null;
1375
+ value?: string | null;
1376
+ };
1377
+ Relationships: [];
1378
+ };
1379
+ system_settings_laji: {
1380
+ Row: {
1381
+ description: string | null;
1382
+ key: string;
1383
+ updated_at: string | null;
1384
+ value: Json;
1385
+ };
1386
+ Insert: {
1387
+ description?: string | null;
1388
+ key: string;
1389
+ updated_at?: string | null;
1390
+ value: Json;
1391
+ };
1392
+ Update: {
1393
+ description?: string | null;
1394
+ key?: string;
1395
+ updated_at?: string | null;
1396
+ value?: Json;
1397
+ };
1398
+ Relationships: [];
1399
+ };
829
1400
  sysviews: {
830
1401
  Row: {
831
1402
  created_at: string;
@@ -847,6 +1418,63 @@ export type Database = {
847
1418
  };
848
1419
  Relationships: [];
849
1420
  };
1421
+ user_logs: {
1422
+ Row: {
1423
+ content: string | null;
1424
+ created_at: string | null;
1425
+ event_type: string;
1426
+ id: string;
1427
+ level: string;
1428
+ meta: Json | null;
1429
+ resource_id: string | null;
1430
+ resource_type: string | null;
1431
+ user_id: string;
1432
+ };
1433
+ Insert: {
1434
+ content?: string | null;
1435
+ created_at?: string | null;
1436
+ event_type: string;
1437
+ id?: string;
1438
+ level: string;
1439
+ meta?: Json | null;
1440
+ resource_id?: string | null;
1441
+ resource_type?: string | null;
1442
+ user_id?: string;
1443
+ };
1444
+ Update: {
1445
+ content?: string | null;
1446
+ created_at?: string | null;
1447
+ event_type?: string;
1448
+ id?: string;
1449
+ level?: string;
1450
+ meta?: Json | null;
1451
+ resource_id?: string | null;
1452
+ resource_type?: string | null;
1453
+ user_id?: string;
1454
+ };
1455
+ Relationships: [];
1456
+ };
1457
+ user_roles: {
1458
+ Row: {
1459
+ created_at: string | null;
1460
+ id: number;
1461
+ role: Database["public"]["Enums"]["app_role"];
1462
+ user_id: string;
1463
+ };
1464
+ Insert: {
1465
+ created_at?: string | null;
1466
+ id?: number;
1467
+ role: Database["public"]["Enums"]["app_role"];
1468
+ user_id: string;
1469
+ };
1470
+ Update: {
1471
+ created_at?: string | null;
1472
+ id?: number;
1473
+ role?: Database["public"]["Enums"]["app_role"];
1474
+ user_id?: string;
1475
+ };
1476
+ Relationships: [];
1477
+ };
850
1478
  voltagent_memory_conversations: {
851
1479
  Row: {
852
1480
  created_at: string;
@@ -1054,89 +1682,281 @@ export type Database = {
1054
1682
  };
1055
1683
  worker_tasks: {
1056
1684
  Row: {
1057
- browser_id: string | null;
1058
1685
  created_at: string;
1059
1686
  error: string | null;
1060
1687
  id: string;
1061
1688
  payload: Json;
1062
1689
  result: Json | null;
1690
+ session_id: string | null;
1063
1691
  status: string | null;
1064
1692
  type: string;
1065
1693
  updated_at: string;
1694
+ user_id: string | null;
1066
1695
  worker_id: string | null;
1067
1696
  };
1068
1697
  Insert: {
1069
- browser_id?: string | null;
1070
1698
  created_at?: string;
1071
1699
  error?: string | null;
1072
1700
  id?: string;
1073
1701
  payload: Json;
1074
1702
  result?: Json | null;
1703
+ session_id?: string | null;
1075
1704
  status?: string | null;
1076
1705
  type: string;
1077
1706
  updated_at?: string;
1707
+ user_id?: string | null;
1078
1708
  worker_id?: string | null;
1079
1709
  };
1080
1710
  Update: {
1081
- browser_id?: string | null;
1082
1711
  created_at?: string;
1083
1712
  error?: string | null;
1084
1713
  id?: string;
1085
1714
  payload?: Json;
1086
1715
  result?: Json | null;
1716
+ session_id?: string | null;
1087
1717
  status?: string | null;
1088
1718
  type?: string;
1089
1719
  updated_at?: string;
1720
+ user_id?: string | null;
1090
1721
  worker_id?: string | null;
1091
1722
  };
1092
- Relationships: [
1093
- {
1094
- foreignKeyName: "worker_tasks_browser_id_fkey";
1095
- columns: ["browser_id"];
1096
- isOneToOne: false;
1097
- referencedRelation: "browsers";
1098
- referencedColumns: ["id"];
1099
- }
1100
- ];
1723
+ Relationships: [];
1101
1724
  };
1102
1725
  workers: {
1103
1726
  Row: {
1104
1727
  config: Json | null;
1728
+ container_id: string | null;
1105
1729
  created_at: string;
1730
+ host_id: string | null;
1106
1731
  id: string;
1107
1732
  latest_pull_at: string | null;
1108
1733
  name: string | null;
1109
1734
  state: Json | null;
1735
+ status: string | null;
1110
1736
  updated_at: string;
1111
1737
  user_id: string | null;
1112
1738
  };
1113
- Insert: {
1114
- config?: Json | null;
1115
- created_at?: string;
1116
- id: string;
1117
- latest_pull_at?: string | null;
1118
- name?: string | null;
1119
- state?: Json | null;
1120
- updated_at?: string;
1121
- user_id?: string | null;
1739
+ Insert: {
1740
+ config?: Json | null;
1741
+ container_id?: string | null;
1742
+ created_at?: string;
1743
+ host_id?: string | null;
1744
+ id: string;
1745
+ latest_pull_at?: string | null;
1746
+ name?: string | null;
1747
+ state?: Json | null;
1748
+ status?: string | null;
1749
+ updated_at?: string;
1750
+ user_id?: string | null;
1751
+ };
1752
+ Update: {
1753
+ config?: Json | null;
1754
+ container_id?: string | null;
1755
+ created_at?: string;
1756
+ host_id?: string | null;
1757
+ id?: string;
1758
+ latest_pull_at?: string | null;
1759
+ name?: string | null;
1760
+ state?: Json | null;
1761
+ status?: string | null;
1762
+ updated_at?: string;
1763
+ user_id?: string | null;
1764
+ };
1765
+ Relationships: [
1766
+ {
1767
+ foreignKeyName: "workers_host_id_fkey";
1768
+ columns: ["host_id"];
1769
+ isOneToOne: false;
1770
+ referencedRelation: "compute_nodes";
1771
+ referencedColumns: ["id"];
1772
+ }
1773
+ ];
1774
+ };
1775
+ workflow_instances: {
1776
+ Row: {
1777
+ code_content: string | null;
1778
+ created_at: string | null;
1779
+ description: string | null;
1780
+ error_message: string | null;
1781
+ id: string;
1782
+ notebook_json: Json | null;
1783
+ result: Json | null;
1784
+ status: string | null;
1785
+ title: string | null;
1786
+ updated_at: string | null;
1787
+ user_id: string;
1788
+ };
1789
+ Insert: {
1790
+ code_content?: string | null;
1791
+ created_at?: string | null;
1792
+ description?: string | null;
1793
+ error_message?: string | null;
1794
+ id?: string;
1795
+ notebook_json?: Json | null;
1796
+ result?: Json | null;
1797
+ status?: string | null;
1798
+ title?: string | null;
1799
+ updated_at?: string | null;
1800
+ user_id: string;
1801
+ };
1802
+ Update: {
1803
+ code_content?: string | null;
1804
+ created_at?: string | null;
1805
+ description?: string | null;
1806
+ error_message?: string | null;
1807
+ id?: string;
1808
+ notebook_json?: Json | null;
1809
+ result?: Json | null;
1810
+ status?: string | null;
1811
+ title?: string | null;
1812
+ updated_at?: string | null;
1813
+ user_id?: string;
1814
+ };
1815
+ Relationships: [];
1816
+ };
1817
+ workflow_steps: {
1818
+ Row: {
1819
+ cell_output: Json | null;
1820
+ cell_source: string | null;
1821
+ completed_at: string | null;
1822
+ id: string;
1823
+ logs: string | null;
1824
+ output_data: Json | null;
1825
+ started_at: string | null;
1826
+ status: string | null;
1827
+ step_index: number | null;
1828
+ title: string;
1829
+ workflow_id: string | null;
1830
+ };
1831
+ Insert: {
1832
+ cell_output?: Json | null;
1833
+ cell_source?: string | null;
1834
+ completed_at?: string | null;
1835
+ id?: string;
1836
+ logs?: string | null;
1837
+ output_data?: Json | null;
1838
+ started_at?: string | null;
1839
+ status?: string | null;
1840
+ step_index?: number | null;
1841
+ title: string;
1842
+ workflow_id?: string | null;
1843
+ };
1844
+ Update: {
1845
+ cell_output?: Json | null;
1846
+ cell_source?: string | null;
1847
+ completed_at?: string | null;
1848
+ id?: string;
1849
+ logs?: string | null;
1850
+ output_data?: Json | null;
1851
+ started_at?: string | null;
1852
+ status?: string | null;
1853
+ step_index?: number | null;
1854
+ title?: string;
1855
+ workflow_id?: string | null;
1856
+ };
1857
+ Relationships: [
1858
+ {
1859
+ foreignKeyName: "workflow_steps_workflow_id_fkey";
1860
+ columns: ["workflow_id"];
1861
+ isOneToOne: false;
1862
+ referencedRelation: "workflow_instances";
1863
+ referencedColumns: ["id"];
1864
+ }
1865
+ ];
1866
+ };
1867
+ };
1868
+ Views: {
1869
+ [_ in never]: never;
1870
+ };
1871
+ Functions: {
1872
+ action_tool_query: {
1873
+ Args: {
1874
+ p_prefix?: string;
1875
+ };
1876
+ Returns: Json;
1877
+ };
1878
+ action_tool_reply_to_user: {
1879
+ Args: {
1880
+ p_actions?: Json;
1881
+ p_chat_id?: string;
1882
+ p_text?: string;
1883
+ p_user_id?: string;
1884
+ };
1885
+ Returns: Json;
1886
+ };
1887
+ adk_agent_list: {
1888
+ Args: never;
1889
+ Returns: {
1890
+ avatar_url: string | null;
1891
+ created_at: string | null;
1892
+ description: string | null;
1893
+ name: string;
1894
+ updated_at: string | null;
1895
+ }[];
1896
+ SetofOptions: {
1897
+ from: "*";
1898
+ to: "adk_agents";
1899
+ isOneToOne: false;
1900
+ isSetofReturn: true;
1901
+ };
1902
+ };
1903
+ adk_artifact_delete: {
1904
+ Args: {
1905
+ p_app_name: string;
1906
+ p_filename: string;
1907
+ p_session_id: string;
1908
+ p_user_id: string;
1909
+ };
1910
+ Returns: undefined;
1911
+ };
1912
+ adk_artifact_get: {
1913
+ Args: {
1914
+ p_app_name: string;
1915
+ p_filename: string;
1916
+ p_session_id: string;
1917
+ p_user_id: string;
1918
+ p_version?: number;
1919
+ };
1920
+ Returns: Json;
1921
+ };
1922
+ adk_artifact_list_keys: {
1923
+ Args: {
1924
+ p_app_name: string;
1925
+ p_session_id: string;
1926
+ p_user_id: string;
1122
1927
  };
1123
- Update: {
1124
- config?: Json | null;
1125
- created_at?: string;
1126
- id?: string;
1127
- latest_pull_at?: string | null;
1128
- name?: string | null;
1129
- state?: Json | null;
1130
- updated_at?: string;
1131
- user_id?: string | null;
1928
+ Returns: {
1929
+ filename: string;
1930
+ }[];
1931
+ };
1932
+ adk_artifact_list_versions_meta: {
1933
+ Args: {
1934
+ p_app_name: string;
1935
+ p_filename: string;
1936
+ p_session_id: string;
1937
+ p_user_id: string;
1132
1938
  };
1133
- Relationships: [];
1939
+ Returns: {
1940
+ canonical_uri: string;
1941
+ create_time: number;
1942
+ custom_metadata: Json;
1943
+ mime_type: string;
1944
+ version: number;
1945
+ }[];
1946
+ };
1947
+ adk_artifact_save: {
1948
+ Args: {
1949
+ p_app_name: string;
1950
+ p_canonical_uri: string;
1951
+ p_custom_metadata: Json;
1952
+ p_data: Json;
1953
+ p_filename: string;
1954
+ p_mime_type: string;
1955
+ p_session_id: string;
1956
+ p_user_id: string;
1957
+ };
1958
+ Returns: number;
1134
1959
  };
1135
- };
1136
- Views: {
1137
- [_ in never]: never;
1138
- };
1139
- Functions: {
1140
1960
  adk_event_list: {
1141
1961
  Args: {
1142
1962
  p_session_id: string;
@@ -1177,11 +1997,32 @@ export type Database = {
1177
1997
  adk_event_upsert: {
1178
1998
  Args: {
1179
1999
  p_actions?: Json;
2000
+ p_app_name: string;
1180
2001
  p_author: string;
2002
+ p_branch?: string;
2003
+ p_citation_metadata?: Json;
1181
2004
  p_content: Json;
1182
- p_id?: string;
2005
+ p_custom_metadata?: Json;
2006
+ p_error_code?: string;
2007
+ p_error_message?: string;
2008
+ p_grounding_metadata?: Json;
2009
+ p_id: string;
2010
+ p_input_transcription?: Json;
2011
+ p_interrupted?: boolean;
1183
2012
  p_invocation_id?: string;
2013
+ p_long_running_tool_ids_json?: string;
2014
+ p_output_transcription?: Json;
1184
2015
  p_session_id: string;
2016
+ p_timestamp: string;
2017
+ p_turn_complete: boolean;
2018
+ p_usage_metadata?: Json;
2019
+ p_user_id?: string;
2020
+ };
2021
+ Returns: Json;
2022
+ };
2023
+ adk_event_upsert_from_json: {
2024
+ Args: {
2025
+ p_payload: Json;
1185
2026
  };
1186
2027
  Returns: {
1187
2028
  actions: Json | null;
@@ -1216,7 +2057,7 @@ export type Database = {
1216
2057
  isSetofReturn: false;
1217
2058
  };
1218
2059
  };
1219
- adk_event_upsert_from_json: {
2060
+ adk_event_upsert_from_json_laji: {
1220
2061
  Args: {
1221
2062
  p_payload: Json;
1222
2063
  };
@@ -1253,27 +2094,34 @@ export type Database = {
1253
2094
  isSetofReturn: false;
1254
2095
  };
1255
2096
  };
1256
- adk_event_upsert_v2: {
2097
+ adk_quick_start_list: {
1257
2098
  Args: {
1258
- p_actions: Json;
1259
- p_author: string;
1260
- p_branch: string;
1261
- p_citation_metadata: Json;
1262
- p_content: Json;
1263
- p_custom_metadata: Json;
1264
- p_error_code: string;
1265
- p_error_message: string;
1266
- p_grounding_metadata: Json;
1267
- p_id: string;
1268
- p_interrupted: boolean;
1269
- p_invocation_id: string;
1270
- p_long_running_tool_ids_json: string;
2099
+ p_agent_name?: string;
2100
+ };
2101
+ Returns: {
2102
+ agent_name: string;
2103
+ created_at: string | null;
2104
+ description: string | null;
2105
+ id: string;
2106
+ is_active: boolean | null;
2107
+ ord: number | null;
2108
+ prompt: string;
2109
+ title: string;
2110
+ updated_at: string | null;
2111
+ }[];
2112
+ SetofOptions: {
2113
+ from: "*";
2114
+ to: "adk_quick_starts";
2115
+ isOneToOne: false;
2116
+ isSetofReturn: true;
2117
+ };
2118
+ };
2119
+ adk_session_delete: {
2120
+ Args: {
2121
+ p_app_name: string;
1271
2122
  p_session_id: string;
1272
- p_timestamp: string;
1273
- p_turn_complete: boolean;
1274
- p_usage_metadata: Json;
1275
2123
  };
1276
- Returns: Json;
2124
+ Returns: undefined;
1277
2125
  };
1278
2126
  adk_session_get: {
1279
2127
  Args: {
@@ -1296,8 +2144,8 @@ export type Database = {
1296
2144
  };
1297
2145
  adk_session_list: {
1298
2146
  Args: {
1299
- app_name: string;
1300
- user_id?: string;
2147
+ p_app_name: string;
2148
+ p_user_id?: string;
1301
2149
  };
1302
2150
  Returns: {
1303
2151
  app_name: string;
@@ -1314,11 +2162,12 @@ export type Database = {
1314
2162
  isSetofReturn: true;
1315
2163
  };
1316
2164
  };
1317
- adk_session_upsert: {
2165
+ adk_session_list_backup: {
1318
2166
  Args: {
1319
2167
  p_app_name: string;
1320
- p_session_id: string;
1321
- p_state?: Json;
2168
+ p_page_num?: number;
2169
+ p_page_size?: number;
2170
+ p_user_id?: string;
1322
2171
  };
1323
2172
  Returns: {
1324
2173
  app_name: string;
@@ -1327,15 +2176,15 @@ export type Database = {
1327
2176
  state: Json;
1328
2177
  updated_at: string | null;
1329
2178
  user_id: string;
1330
- };
2179
+ }[];
1331
2180
  SetofOptions: {
1332
2181
  from: "*";
1333
2182
  to: "adk_sessions";
1334
- isOneToOne: true;
1335
- isSetofReturn: false;
2183
+ isOneToOne: false;
2184
+ isSetofReturn: true;
1336
2185
  };
1337
2186
  };
1338
- adk_session_upsert_v2: {
2187
+ adk_session_upsert: {
1339
2188
  Args: {
1340
2189
  p_app_name: string;
1341
2190
  p_session_id: string;
@@ -1357,6 +2206,243 @@ export type Database = {
1357
2206
  isSetofReturn: true;
1358
2207
  };
1359
2208
  };
2209
+ agent_signal_wakeup: {
2210
+ Args: {
2211
+ p_session_id: string;
2212
+ };
2213
+ Returns: Json;
2214
+ };
2215
+ agent_task_submit_laji: {
2216
+ Args: {
2217
+ p_app_name?: string;
2218
+ p_invocation_id?: string;
2219
+ p_session_id: string;
2220
+ p_text?: string;
2221
+ p_user_id?: string;
2222
+ };
2223
+ Returns: Json;
2224
+ };
2225
+ agent_tool_exec_read_sql: {
2226
+ Args: {
2227
+ p_max_chars?: number;
2228
+ p_max_rows?: number;
2229
+ sql_query: string;
2230
+ };
2231
+ Returns: string;
2232
+ };
2233
+ agent_tool_get_unanswered_chats_backup: {
2234
+ Args: {
2235
+ p_limit?: number;
2236
+ };
2237
+ Returns: Json;
2238
+ };
2239
+ audit_artifact_list: {
2240
+ Args: {
2241
+ p_project_id: string;
2242
+ };
2243
+ Returns: {
2244
+ app_name: string;
2245
+ canonical_uri: string | null;
2246
+ created_at: string | null;
2247
+ custom_metadata: Json | null;
2248
+ data: Json | null;
2249
+ filename: string;
2250
+ id: string;
2251
+ mime_type: string | null;
2252
+ session_id: string | null;
2253
+ user_id: string;
2254
+ version: number;
2255
+ }[];
2256
+ SetofOptions: {
2257
+ from: "*";
2258
+ to: "adk_artifacts";
2259
+ isOneToOne: false;
2260
+ isSetofReturn: true;
2261
+ };
2262
+ };
2263
+ audit_asset_list: {
2264
+ Args: {
2265
+ p_project_id: string;
2266
+ p_type?: string;
2267
+ };
2268
+ Returns: {
2269
+ content: string;
2270
+ created_at: string;
2271
+ id: string;
2272
+ metadata: Json | null;
2273
+ project_id: string;
2274
+ status: string | null;
2275
+ type: string;
2276
+ updated_at: string;
2277
+ }[];
2278
+ SetofOptions: {
2279
+ from: "*";
2280
+ to: "audit_assets";
2281
+ isOneToOne: false;
2282
+ isSetofReturn: true;
2283
+ };
2284
+ };
2285
+ audit_finding_list: {
2286
+ Args: {
2287
+ p_project_id: string;
2288
+ };
2289
+ Returns: {
2290
+ ai_analysis: string | null;
2291
+ created_at: string;
2292
+ description: string | null;
2293
+ id: string;
2294
+ project_id: string;
2295
+ proof_poc: string | null;
2296
+ remediation: string | null;
2297
+ severity: string | null;
2298
+ status: string | null;
2299
+ task_id: string | null;
2300
+ title: string;
2301
+ updated_at: string;
2302
+ }[];
2303
+ SetofOptions: {
2304
+ from: "*";
2305
+ to: "audit_findings";
2306
+ isOneToOne: false;
2307
+ isSetofReturn: true;
2308
+ };
2309
+ };
2310
+ audit_project_bind_github: {
2311
+ Args: {
2312
+ p_installation_id: number;
2313
+ p_project_id: string;
2314
+ p_repo_branch: string;
2315
+ p_repo_full_name: string;
2316
+ p_repo_id: number;
2317
+ p_repo_url: string;
2318
+ };
2319
+ Returns: Json;
2320
+ };
2321
+ audit_project_dashboard_stats: {
2322
+ Args: {
2323
+ p_project_id: string;
2324
+ };
2325
+ Returns: {
2326
+ asset_count: number;
2327
+ finding_count: number;
2328
+ high_risk_count: number;
2329
+ task_count: number;
2330
+ }[];
2331
+ };
2332
+ audit_project_delete: {
2333
+ Args: {
2334
+ p_id: string;
2335
+ };
2336
+ Returns: undefined;
2337
+ };
2338
+ audit_project_get: {
2339
+ Args: {
2340
+ p_id: string;
2341
+ };
2342
+ Returns: {
2343
+ agent_config: Json | null;
2344
+ config: Json | null;
2345
+ created_at: string;
2346
+ github_branch: string | null;
2347
+ github_installation_id: number | null;
2348
+ github_repo_full_name: string | null;
2349
+ github_repo_id: number | null;
2350
+ id: string;
2351
+ name: string;
2352
+ repo_branch: string | null;
2353
+ repo_url: string | null;
2354
+ sandbox_id: string | null;
2355
+ target: string | null;
2356
+ updated_at: string;
2357
+ user_id: string | null;
2358
+ }[];
2359
+ SetofOptions: {
2360
+ from: "*";
2361
+ to: "audit_projects";
2362
+ isOneToOne: false;
2363
+ isSetofReturn: true;
2364
+ };
2365
+ };
2366
+ audit_project_list: {
2367
+ Args: {
2368
+ kw?: string;
2369
+ page_no?: number;
2370
+ page_size?: number;
2371
+ };
2372
+ Returns: {
2373
+ created_at: string;
2374
+ id: string;
2375
+ name: string;
2376
+ repo_branch: string;
2377
+ repo_url: string;
2378
+ sandbox_id: string;
2379
+ target: string;
2380
+ updated_at: string;
2381
+ user_id: string;
2382
+ }[];
2383
+ };
2384
+ audit_project_upsert: {
2385
+ Args: {
2386
+ p_agent_config?: Json;
2387
+ p_id?: string;
2388
+ p_name?: string;
2389
+ p_repo_branch?: string;
2390
+ p_repo_url?: string;
2391
+ p_target?: string;
2392
+ };
2393
+ Returns: string;
2394
+ };
2395
+ audit_skill_list: {
2396
+ Args: {
2397
+ p_project_id: string;
2398
+ };
2399
+ Returns: {
2400
+ created_at: string;
2401
+ dependencies: Json | null;
2402
+ description: string | null;
2403
+ id: string;
2404
+ name: string;
2405
+ params_schema: Json | null;
2406
+ project_id: string;
2407
+ source_path: string | null;
2408
+ updated_at: string;
2409
+ version: string | null;
2410
+ }[];
2411
+ SetofOptions: {
2412
+ from: "*";
2413
+ to: "audit_skills";
2414
+ isOneToOne: false;
2415
+ isSetofReturn: true;
2416
+ };
2417
+ };
2418
+ audit_task_list: {
2419
+ Args: {
2420
+ p_project_id: string;
2421
+ };
2422
+ Returns: {
2423
+ created_at: string;
2424
+ id: string;
2425
+ instructions: string | null;
2426
+ logs_url: string | null;
2427
+ project_id: string;
2428
+ result_summary: string | null;
2429
+ sandbox_id: string | null;
2430
+ skill_id: string | null;
2431
+ status: string | null;
2432
+ updated_at: string;
2433
+ user_id: string | null;
2434
+ }[];
2435
+ SetofOptions: {
2436
+ from: "*";
2437
+ to: "audit_tasks";
2438
+ isOneToOne: false;
2439
+ isSetofReturn: true;
2440
+ };
2441
+ };
2442
+ auth_role: {
2443
+ Args: never;
2444
+ Returns: string;
2445
+ };
1360
2446
  browser_assign_sandbox_laji: {
1361
2447
  Args: {
1362
2448
  p_browser_id: string;
@@ -1376,6 +2462,13 @@ export type Database = {
1376
2462
  };
1377
2463
  Returns: undefined;
1378
2464
  };
2465
+ browser_ensure_association: {
2466
+ Args: {
2467
+ p_browser_id: string;
2468
+ p_user_id: string;
2469
+ };
2470
+ Returns: Json;
2471
+ };
1379
2472
  browser_get: {
1380
2473
  Args: {
1381
2474
  browser_id: string;
@@ -1411,6 +2504,13 @@ export type Database = {
1411
2504
  };
1412
2505
  Returns: undefined;
1413
2506
  };
2507
+ browser_update_state: {
2508
+ Args: {
2509
+ p_browser_id: string;
2510
+ p_state: Json;
2511
+ };
2512
+ Returns: undefined;
2513
+ };
1414
2514
  browser_upsert: {
1415
2515
  Args: {
1416
2516
  p_config?: Json;
@@ -1423,6 +2523,12 @@ export type Database = {
1423
2523
  };
1424
2524
  Returns: Json;
1425
2525
  };
2526
+ cancel_workflow: {
2527
+ Args: {
2528
+ p_workflow_id: string;
2529
+ };
2530
+ Returns: undefined;
2531
+ };
1426
2532
  chat_get: {
1427
2533
  Args: {
1428
2534
  p_chat_id: string;
@@ -1434,6 +2540,7 @@ export type Database = {
1434
2540
  lastContext: Json | null;
1435
2541
  state: Json | null;
1436
2542
  title: string;
2543
+ type: string;
1437
2544
  updated_at: string | null;
1438
2545
  user_id: string | null;
1439
2546
  visibility: string;
@@ -1457,6 +2564,7 @@ export type Database = {
1457
2564
  lastContext: Json | null;
1458
2565
  state: Json | null;
1459
2566
  title: string;
2567
+ type: string;
1460
2568
  updated_at: string | null;
1461
2569
  user_id: string | null;
1462
2570
  visibility: string;
@@ -1470,14 +2578,17 @@ export type Database = {
1470
2578
  };
1471
2579
  chat_message_insert_json: {
1472
2580
  Args: {
1473
- p_chat_id: string;
1474
- p_data: Json;
2581
+ p_chat_id?: string;
2582
+ p_data?: Json;
2583
+ p_query_mode?: string;
2584
+ p_user_id?: string;
1475
2585
  };
1476
2586
  Returns: number;
1477
2587
  };
1478
2588
  chat_message_list: {
1479
2589
  Args: {
1480
- p_chat_id: string;
2590
+ p_chat_id?: string;
2591
+ p_query_mode?: string;
1481
2592
  };
1482
2593
  Returns: {
1483
2594
  attachments: Json | null;
@@ -1537,6 +2648,7 @@ export type Database = {
1537
2648
  lastContext: Json | null;
1538
2649
  state: Json | null;
1539
2650
  title: string;
2651
+ type: string;
1540
2652
  updated_at: string | null;
1541
2653
  user_id: string | null;
1542
2654
  visibility: string;
@@ -1548,9 +2660,93 @@ export type Database = {
1548
2660
  isSetofReturn: false;
1549
2661
  };
1550
2662
  };
2663
+ cleanup_event_streams: {
2664
+ Args: never;
2665
+ Returns: undefined;
2666
+ };
2667
+ cleanup_inactive_worker_queues: {
2668
+ Args: never;
2669
+ Returns: undefined;
2670
+ };
2671
+ compute_node_delete: {
2672
+ Args: {
2673
+ p_id: string;
2674
+ };
2675
+ Returns: undefined;
2676
+ };
2677
+ compute_node_get: {
2678
+ Args: {
2679
+ p_id: string;
2680
+ };
2681
+ Returns: Json;
2682
+ };
2683
+ compute_node_get_secret: {
2684
+ Args: {
2685
+ target_id: string;
2686
+ };
2687
+ Returns: {
2688
+ auth_secret: string;
2689
+ auth_type: string;
2690
+ ip: string;
2691
+ port: number;
2692
+ username: string;
2693
+ }[];
2694
+ };
2695
+ compute_node_list: {
2696
+ Args: {
2697
+ p_kw?: string;
2698
+ p_page_no?: number;
2699
+ p_page_size?: number;
2700
+ p_provider?: string;
2701
+ p_user_id?: string;
2702
+ };
2703
+ Returns: {
2704
+ auth_secret: string;
2705
+ auth_type: string;
2706
+ config: Json;
2707
+ enabled: boolean;
2708
+ id: string;
2709
+ ip: string;
2710
+ max_instances: number;
2711
+ name: string;
2712
+ port: number;
2713
+ provider: string;
2714
+ status: string;
2715
+ updated_at: string;
2716
+ username: string;
2717
+ worker_count: number;
2718
+ }[];
2719
+ };
2720
+ compute_node_upsert: {
2721
+ Args: {
2722
+ p_auth_secret?: string;
2723
+ p_auth_type?: string;
2724
+ p_config?: Json;
2725
+ p_enabled?: boolean;
2726
+ p_id?: string;
2727
+ p_ip?: string;
2728
+ p_max_instances?: number;
2729
+ p_name?: string;
2730
+ p_port?: number;
2731
+ p_provider?: string;
2732
+ p_username?: string;
2733
+ };
2734
+ Returns: Json;
2735
+ };
1551
2736
  dash_navitems_list: {
1552
2737
  Args: never;
1553
2738
  Returns: Json;
2739
+ } | {
2740
+ Args: {
2741
+ p_location?: string;
2742
+ };
2743
+ Returns: Json;
2744
+ };
2745
+ db_tool_query: {
2746
+ Args: {
2747
+ p_sql: string;
2748
+ };
2749
+ Returns: Json;
1554
2750
  };
1555
2751
  demo_endpoints_check: {
1556
2752
  Args: never;
@@ -1576,10 +2772,30 @@ export type Database = {
1576
2772
  };
1577
2773
  Returns: undefined;
1578
2774
  };
2775
+ event_stream_upsert_batch: {
2776
+ Args: {
2777
+ p_events: Json;
2778
+ };
2779
+ Returns: undefined;
2780
+ };
2781
+ event_stream_upsert_batch_laji: {
2782
+ Args: {
2783
+ p_events: Json;
2784
+ };
2785
+ Returns: undefined;
2786
+ };
2787
+ get_github_app_public_info: {
2788
+ Args: never;
2789
+ Returns: Json;
2790
+ };
1579
2791
  get_mainapi_url: {
1580
2792
  Args: never;
1581
2793
  Returns: Json;
1582
2794
  };
2795
+ is_admin: {
2796
+ Args: never;
2797
+ Returns: boolean;
2798
+ };
1583
2799
  job1: {
1584
2800
  Args: never;
1585
2801
  Returns: number[];
@@ -1610,28 +2826,9 @@ export type Database = {
1610
2826
  };
1611
2827
  Returns: number;
1612
2828
  };
1613
- paccount_get: {
1614
- Args: {
1615
- paccount_id: string;
1616
- };
1617
- Returns: Json;
1618
- };
1619
- paccount_upsert: {
1620
- Args: {
1621
- data: Json;
1622
- id: string;
1623
- };
1624
- Returns: undefined;
1625
- } | {
1626
- Args: {
1627
- paccount_id: string;
1628
- };
1629
- Returns: Json;
1630
- };
1631
- platform_upsert: {
2829
+ resource_delete: {
1632
2830
  Args: {
1633
- data: Json;
1634
- id: string;
2831
+ p_resource_id: string;
1635
2832
  };
1636
2833
  Returns: undefined;
1637
2834
  };
@@ -1641,7 +2838,7 @@ export type Database = {
1641
2838
  };
1642
2839
  Returns: Json;
1643
2840
  };
1644
- resource_get_v2: {
2841
+ resource_get_v2_laji: {
1645
2842
  Args: {
1646
2843
  resource_id: string;
1647
2844
  };
@@ -1682,10 +2879,11 @@ export type Database = {
1682
2879
  target_id: string;
1683
2880
  title: string;
1684
2881
  type: string;
2882
+ updated_at: string;
1685
2883
  url: string;
1686
2884
  }[];
1687
2885
  };
1688
- resource_list_v2: {
2886
+ resource_list_v2_laji: {
1689
2887
  Args: {
1690
2888
  params: Json;
1691
2889
  };
@@ -1701,6 +2899,24 @@ export type Database = {
1701
2899
  type: string;
1702
2900
  };
1703
2901
  Returns: undefined;
2902
+ } | {
2903
+ Args: {
2904
+ content: Json;
2905
+ description: string;
2906
+ key: string;
2907
+ p_id?: string;
2908
+ p_user_id?: string;
2909
+ target_id?: string;
2910
+ title: string;
2911
+ type: string;
2912
+ };
2913
+ Returns: string;
2914
+ };
2915
+ sandbox_find_active: {
2916
+ Args: {
2917
+ p_user_id: string;
2918
+ };
2919
+ Returns: Json;
1704
2920
  };
1705
2921
  sandbox_get: {
1706
2922
  Args: {
@@ -1728,6 +2944,12 @@ export type Database = {
1728
2944
  isSetofReturn: true;
1729
2945
  };
1730
2946
  };
2947
+ sandbox_get_active: {
2948
+ Args: {
2949
+ p_user_id: string;
2950
+ };
2951
+ Returns: Json;
2952
+ };
1731
2953
  service_get: {
1732
2954
  Args: {
1733
2955
  p_service_id?: string;
@@ -1746,13 +2968,14 @@ export type Database = {
1746
2968
  }[];
1747
2969
  SetofOptions: {
1748
2970
  from: "*";
1749
- to: "services";
2971
+ to: "services_laji";
1750
2972
  isOneToOne: false;
1751
2973
  isSetofReturn: true;
1752
2974
  };
1753
2975
  };
1754
2976
  service_list: {
1755
2977
  Args: {
2978
+ p_active_only?: boolean;
1756
2979
  p_kw?: string;
1757
2980
  p_limit?: number;
1758
2981
  p_service_type?: string;
@@ -1770,7 +2993,7 @@ export type Database = {
1770
2993
  }[];
1771
2994
  SetofOptions: {
1772
2995
  from: "*";
1773
- to: "services";
2996
+ to: "services_laji";
1774
2997
  isOneToOne: false;
1775
2998
  isSetofReturn: true;
1776
2999
  };
@@ -1781,6 +3004,7 @@ export type Database = {
1781
3004
  p_public_url: string;
1782
3005
  p_service_id?: string;
1783
3006
  p_service_type: string;
3007
+ p_worker_id?: string;
1784
3008
  };
1785
3009
  Returns: {
1786
3010
  created_at: string;
@@ -1795,11 +3019,39 @@ export type Database = {
1795
3019
  };
1796
3020
  SetofOptions: {
1797
3021
  from: "*";
1798
- to: "services";
3022
+ to: "services_laji";
1799
3023
  isOneToOne: true;
1800
3024
  isSetofReturn: false;
1801
3025
  };
1802
3026
  };
3027
+ sys_config_get: {
3028
+ Args: {
3029
+ p_key: string;
3030
+ };
3031
+ Returns: Json;
3032
+ };
3033
+ sys_config_set: {
3034
+ Args: {
3035
+ p_description?: string;
3036
+ p_key: string;
3037
+ p_value: Json;
3038
+ };
3039
+ Returns: undefined;
3040
+ };
3041
+ sys_get_db_schema: {
3042
+ Args: {
3043
+ p_excluded_tables?: string[];
3044
+ p_include_comments?: boolean;
3045
+ p_include_functions?: boolean;
3046
+ };
3047
+ Returns: string;
3048
+ };
3049
+ sys_init_queue: {
3050
+ Args: {
3051
+ name: string;
3052
+ };
3053
+ Returns: undefined;
3054
+ };
1803
3055
  sysview_list: {
1804
3056
  Args: {
1805
3057
  kw: string;
@@ -1836,11 +3088,67 @@ export type Database = {
1836
3088
  id: string;
1837
3089
  }[];
1838
3090
  };
3091
+ user_log_list: {
3092
+ Args: {
3093
+ p_page?: number;
3094
+ p_page_size?: number;
3095
+ };
3096
+ Returns: {
3097
+ content: string;
3098
+ created_at: string;
3099
+ event_type: string;
3100
+ id: string;
3101
+ level: string;
3102
+ meta: Json;
3103
+ resource_id: string;
3104
+ resource_type: string;
3105
+ }[];
3106
+ };
3107
+ user_log_record: {
3108
+ Args: {
3109
+ p_content: string;
3110
+ p_event_type: string;
3111
+ p_level?: string;
3112
+ p_meta?: Json;
3113
+ p_resource_id?: string;
3114
+ p_resource_type?: string;
3115
+ };
3116
+ Returns: string;
3117
+ } | {
3118
+ Args: {
3119
+ p_content: string;
3120
+ p_event_type: string;
3121
+ p_level?: string;
3122
+ p_meta?: Json;
3123
+ p_resource_id?: string;
3124
+ p_resource_type?: string;
3125
+ p_user_id?: string;
3126
+ };
3127
+ Returns: string;
3128
+ };
1839
3129
  worker_ack: {
1840
3130
  Args: {
1841
3131
  msg_id: number;
1842
3132
  };
1843
3133
  Returns: undefined;
3134
+ } | {
3135
+ Args: {
3136
+ msg_id: number;
3137
+ worker_id: string;
3138
+ };
3139
+ Returns: undefined;
3140
+ };
3141
+ worker_delete: {
3142
+ Args: {
3143
+ target_id: string;
3144
+ };
3145
+ Returns: undefined;
3146
+ };
3147
+ worker_ensure_queue: {
3148
+ Args: {
3149
+ p_worker_id: string;
3150
+ };
3151
+ Returns: undefined;
1844
3152
  };
1845
3153
  worker_fail: {
1846
3154
  Args: {
@@ -1854,11 +3162,14 @@ export type Database = {
1854
3162
  };
1855
3163
  Returns: {
1856
3164
  config: Json | null;
3165
+ container_id: string | null;
1857
3166
  created_at: string;
3167
+ host_id: string | null;
1858
3168
  id: string;
1859
3169
  latest_pull_at: string | null;
1860
3170
  name: string | null;
1861
3171
  state: Json | null;
3172
+ status: string | null;
1862
3173
  updated_at: string;
1863
3174
  user_id: string | null;
1864
3175
  };
@@ -1869,25 +3180,47 @@ export type Database = {
1869
3180
  isSetofReturn: false;
1870
3181
  };
1871
3182
  };
1872
- worker_get_default_config_laji: {
1873
- Args: never;
1874
- Returns: Json;
1875
- };
1876
3183
  worker_keepalive: {
1877
3184
  Args: {
3185
+ p_user_id?: string;
1878
3186
  p_worker_id: string;
1879
3187
  };
1880
3188
  Returns: Json;
1881
3189
  };
1882
3190
  worker_list: {
1883
3191
  Args: {
1884
- kw: string;
3192
+ kw?: string;
3193
+ page_no?: number;
3194
+ page_size?: number;
1885
3195
  };
1886
3196
  Returns: {
3197
+ config: Json;
3198
+ host_id: string;
1887
3199
  id: string;
1888
- title: string;
3200
+ name: string;
3201
+ status: string;
3202
+ updated_at: string;
3203
+ }[];
3204
+ } | {
3205
+ Args: {
3206
+ kw?: string;
3207
+ p_host_id?: string;
3208
+ page_no?: number;
3209
+ page_size?: number;
3210
+ };
3211
+ Returns: {
3212
+ config: Json;
3213
+ host_id: string;
3214
+ id: string;
3215
+ name: string;
3216
+ status: string;
3217
+ updated_at: string;
1889
3218
  }[];
1890
3219
  };
3220
+ worker_prune_queues: {
3221
+ Args: never;
3222
+ Returns: undefined;
3223
+ };
1891
3224
  worker_pull: {
1892
3225
  Args: {
1893
3226
  worker_id: string;
@@ -1900,48 +3233,55 @@ export type Database = {
1900
3233
  isSetofReturn: true;
1901
3234
  };
1902
3235
  };
1903
- worker_push_laji: {
1904
- Args: {
1905
- worker_id: string;
1906
- };
1907
- Returns: number[];
1908
- } | {
1909
- Args: {
1910
- message: Json;
1911
- queue_name: string;
1912
- sleep_seconds?: number;
1913
- worker_id: string;
1914
- };
1915
- Returns: number[];
1916
- } | {
3236
+ worker_task_list: {
1917
3237
  Args: {
1918
- messages: Json[];
1919
- queue_name: string;
1920
- sleep_seconds?: number;
1921
- worker_id: string;
3238
+ p_limit?: number;
3239
+ p_session_id?: string;
3240
+ p_status_in?: string[];
3241
+ p_type?: string;
3242
+ p_user_id?: string;
1922
3243
  };
1923
- Returns: number[];
1924
- };
1925
- worker_register_info: {
1926
- Args: {
1927
- p_config: Json;
1928
- p_worker_id: string;
3244
+ Returns: {
3245
+ created_at: string;
3246
+ error: string | null;
3247
+ id: string;
3248
+ payload: Json;
3249
+ result: Json | null;
3250
+ session_id: string | null;
3251
+ status: string | null;
3252
+ type: string;
3253
+ updated_at: string;
3254
+ user_id: string | null;
3255
+ worker_id: string | null;
3256
+ }[];
3257
+ SetofOptions: {
3258
+ from: "*";
3259
+ to: "worker_tasks";
3260
+ isOneToOne: false;
3261
+ isSetofReturn: true;
1929
3262
  };
1930
- Returns: undefined;
1931
3263
  };
1932
- worker_task_callback: {
3264
+ worker_task_upsert: {
1933
3265
  Args: {
1934
3266
  p_error?: string;
3267
+ p_id?: string;
3268
+ p_payload?: Json;
1935
3269
  p_result?: Json;
1936
- p_status: string;
1937
- p_task_id: string;
3270
+ p_session_id?: string;
3271
+ p_status?: string;
3272
+ p_type?: string;
3273
+ p_user_id?: string;
1938
3274
  };
1939
- Returns: undefined;
3275
+ Returns: string;
1940
3276
  };
1941
- worker_up_laji: {
3277
+ worker_upsert: {
1942
3278
  Args: {
1943
- mac_id: string;
1944
- worker_id: string;
3279
+ p_config?: Json;
3280
+ p_host_id?: string;
3281
+ p_id?: string;
3282
+ p_name?: string;
3283
+ p_status?: string;
3284
+ p_user_id?: string;
1945
3285
  };
1946
3286
  Returns: Json;
1947
3287
  };
@@ -1953,7 +3293,7 @@ export type Database = {
1953
3293
  };
1954
3294
  };
1955
3295
  Enums: {
1956
- [_ in never]: never;
3296
+ app_role: "admin" | "moderator" | "member";
1957
3297
  };
1958
3298
  CompositeTypes: {
1959
3299
  [_ in never]: never;
@@ -2011,7 +3351,9 @@ export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof Defaul
2011
3351
  } ? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] : never;
2012
3352
  export declare const Constants: {
2013
3353
  readonly public: {
2014
- readonly Enums: {};
3354
+ readonly Enums: {
3355
+ readonly app_role: readonly ["admin", "moderator", "member"];
3356
+ };
2015
3357
  };
2016
3358
  };
2017
3359
  export {};