mtmsdk 0.0.46 → 0.0.47

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 (195) hide show
  1. package/dist/gomtmapi/@tanstack/react-query.gen.d.ts +45 -45
  2. package/dist/gomtmapi/@tanstack/react-query.gen.d.ts.map +1 -1
  3. package/dist/gomtmapi/@tanstack/react-query.gen.js +69 -69
  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 +91 -52
  10. package/dist/gomtmapi/schemas.gen.d.ts.map +1 -1
  11. package/dist/gomtmapi/schemas.gen.js +91 -56
  12. package/dist/gomtmapi/schemas.gen.js.map +1 -1
  13. package/dist/gomtmapi/sdk.gen.d.ts +41 -41
  14. package/dist/gomtmapi/sdk.gen.d.ts.map +1 -1
  15. package/dist/gomtmapi/sdk.gen.js +55 -55
  16. package/dist/gomtmapi/sdk.gen.js.map +1 -1
  17. package/dist/gomtmapi/types.gen.d.ts +120 -131
  18. package/dist/gomtmapi/types.gen.d.ts.map +1 -1
  19. package/dist/gomtmapi/zod.gen.d.ts +96 -74
  20. package/dist/gomtmapi/zod.gen.d.ts.map +1 -1
  21. package/dist/gomtmapi/zod.gen.js +67 -58
  22. package/dist/gomtmapi/zod.gen.js.map +1 -1
  23. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts +4 -101
  24. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts.map +1 -1
  25. package/dist/mtgate_api/@tanstack/react-query.gen.js +1 -14
  26. package/dist/mtgate_api/@tanstack/react-query.gen.js.map +1 -1
  27. package/dist/mtgate_api/index.d.ts +2 -2
  28. package/dist/mtgate_api/index.d.ts.map +1 -1
  29. package/dist/mtgate_api/index.js +1 -1
  30. package/dist/mtgate_api/index.js.map +1 -1
  31. package/dist/mtgate_api/schemas.gen.d.ts +0 -31
  32. package/dist/mtgate_api/schemas.gen.d.ts.map +1 -1
  33. package/dist/mtgate_api/schemas.gen.js +0 -46
  34. package/dist/mtgate_api/schemas.gen.js.map +1 -1
  35. package/dist/mtgate_api/sdk.gen.d.ts +1 -2
  36. package/dist/mtgate_api/sdk.gen.d.ts.map +1 -1
  37. package/dist/mtgate_api/sdk.gen.js +0 -1
  38. package/dist/mtgate_api/sdk.gen.js.map +1 -1
  39. package/dist/mtgate_api/types.gen.d.ts +1 -73
  40. package/dist/mtgate_api/types.gen.d.ts.map +1 -1
  41. package/dist/mtgate_api/zod.gen.d.ts +0 -77
  42. package/dist/mtgate_api/zod.gen.d.ts.map +1 -1
  43. package/dist/mtgate_api/zod.gen.js +0 -47
  44. package/dist/mtgate_api/zod.gen.js.map +1 -1
  45. package/dist/openclaw/gateway.d.ts.map +1 -1
  46. package/dist/openclaw/gateway.js +1 -5
  47. package/dist/openclaw/gateway.js.map +1 -1
  48. package/dist/sbmng/schemas.gen.d.ts +15 -2
  49. package/dist/sbmng/schemas.gen.d.ts.map +1 -1
  50. package/dist/sbmng/schemas.gen.js +55 -2
  51. package/dist/sbmng/schemas.gen.js.map +1 -1
  52. package/dist/sbmng/types.gen.d.ts +5 -2
  53. package/dist/sbmng/types.gen.d.ts.map +1 -1
  54. package/dist/supabase/schema/index.d.ts +0 -9
  55. package/dist/supabase/schema/index.d.ts.map +1 -1
  56. package/dist/supabase/schema/index.js +0 -13
  57. package/dist/supabase/schema/index.js.map +1 -1
  58. package/dist/supabase/supabase-client.d.ts +985 -739
  59. package/dist/supabase/supabase-client.d.ts.map +1 -1
  60. package/dist/supabase/supabase.d.ts +2182 -1689
  61. package/dist/supabase/supabase.d.ts.map +1 -1
  62. package/dist/supabase/supabase.js.map +1 -1
  63. package/dist/types/database.schemas.d.ts +1322 -743
  64. package/dist/types/database.schemas.d.ts.map +1 -1
  65. package/dist/types/database.schemas.js +822 -610
  66. package/dist/types/database.schemas.js.map +1 -1
  67. package/dist/types/database.types.d.ts +1004 -734
  68. package/dist/types/database.types.d.ts.map +1 -1
  69. package/dist/types/database.types.js +16 -1
  70. package/dist/types/database.types.js.map +1 -1
  71. package/dist/types/index.d.ts +32 -48
  72. package/dist/types/index.d.ts.map +1 -1
  73. package/dist/types/index.js +0 -25
  74. package/dist/types/index.js.map +1 -1
  75. package/dist/types/rpc.schemas.d.ts +1 -13
  76. package/dist/types/rpc.schemas.d.ts.map +1 -1
  77. package/dist/types/rpc.schemas.js +7 -21
  78. package/dist/types/rpc.schemas.js.map +1 -1
  79. package/package.json +3 -4
  80. package/src/gomtmapi/@tanstack/react-query.gen.ts +73 -73
  81. package/src/gomtmapi/index.ts +2 -2
  82. package/src/gomtmapi/schemas.gen.ts +92 -58
  83. package/src/gomtmapi/sdk.gen.ts +58 -58
  84. package/src/gomtmapi/types.gen.ts +131 -143
  85. package/src/gomtmapi/zod.gen.ts +72 -64
  86. package/src/mtgate_api/@tanstack/react-query.gen.ts +3 -18
  87. package/src/mtgate_api/index.ts +2 -2
  88. package/src/mtgate_api/schemas.gen.ts +0 -47
  89. package/src/mtgate_api/sdk.gen.ts +1 -3
  90. package/src/mtgate_api/types.gen.ts +1 -79
  91. package/src/mtgate_api/zod.gen.ts +0 -52
  92. package/src/openclaw/gateway.ts +5 -10
  93. package/src/sbmng/schemas.gen.ts +55 -2
  94. package/src/sbmng/types.gen.ts +5 -2
  95. package/src/supabase/schema/index.ts +0 -20
  96. package/src/supabase/supabase.ts +4 -2
  97. package/src/types/database.schemas.ts +956 -732
  98. package/src/types/database.types.ts +977 -707
  99. package/src/types/index.ts +33 -66
  100. package/src/types/rpc.schemas.ts +8 -23
  101. package/dist/sbapi/@tanstack/react-query.gen.d.ts +0 -3280
  102. package/dist/sbapi/@tanstack/react-query.gen.d.ts.map +0 -1
  103. package/dist/sbapi/@tanstack/react-query.gen.js +0 -6084
  104. package/dist/sbapi/@tanstack/react-query.gen.js.map +0 -1
  105. package/dist/sbapi/client/client.gen.d.ts +0 -3
  106. package/dist/sbapi/client/client.gen.d.ts.map +0 -1
  107. package/dist/sbapi/client/client.gen.js +0 -236
  108. package/dist/sbapi/client/client.gen.js.map +0 -1
  109. package/dist/sbapi/client/index.d.ts +0 -9
  110. package/dist/sbapi/client/index.d.ts.map +0 -1
  111. package/dist/sbapi/client/index.js +0 -7
  112. package/dist/sbapi/client/index.js.map +0 -1
  113. package/dist/sbapi/client/types.gen.d.ts +0 -118
  114. package/dist/sbapi/client/types.gen.d.ts.map +0 -1
  115. package/dist/sbapi/client/types.gen.js +0 -3
  116. package/dist/sbapi/client/types.gen.js.map +0 -1
  117. package/dist/sbapi/client/utils.gen.d.ts +0 -34
  118. package/dist/sbapi/client/utils.gen.d.ts.map +0 -1
  119. package/dist/sbapi/client/utils.gen.js +0 -232
  120. package/dist/sbapi/client/utils.gen.js.map +0 -1
  121. package/dist/sbapi/client.gen.d.ts +0 -13
  122. package/dist/sbapi/client.gen.d.ts.map +0 -1
  123. package/dist/sbapi/client.gen.js +0 -4
  124. package/dist/sbapi/client.gen.js.map +0 -1
  125. package/dist/sbapi/core/auth.gen.d.ts +0 -19
  126. package/dist/sbapi/core/auth.gen.d.ts.map +0 -1
  127. package/dist/sbapi/core/auth.gen.js +0 -15
  128. package/dist/sbapi/core/auth.gen.js.map +0 -1
  129. package/dist/sbapi/core/bodySerializer.gen.d.ts +0 -26
  130. package/dist/sbapi/core/bodySerializer.gen.d.ts.map +0 -1
  131. package/dist/sbapi/core/bodySerializer.gen.js +0 -58
  132. package/dist/sbapi/core/bodySerializer.gen.js.map +0 -1
  133. package/dist/sbapi/core/params.gen.d.ts +0 -44
  134. package/dist/sbapi/core/params.gen.d.ts.map +0 -1
  135. package/dist/sbapi/core/params.gen.js +0 -101
  136. package/dist/sbapi/core/params.gen.js.map +0 -1
  137. package/dist/sbapi/core/pathSerializer.gen.d.ts +0 -34
  138. package/dist/sbapi/core/pathSerializer.gen.d.ts.map +0 -1
  139. package/dist/sbapi/core/pathSerializer.gen.js +0 -115
  140. package/dist/sbapi/core/pathSerializer.gen.js.map +0 -1
  141. package/dist/sbapi/core/queryKeySerializer.gen.d.ts +0 -19
  142. package/dist/sbapi/core/queryKeySerializer.gen.d.ts.map +0 -1
  143. package/dist/sbapi/core/queryKeySerializer.gen.js +0 -100
  144. package/dist/sbapi/core/queryKeySerializer.gen.js.map +0 -1
  145. package/dist/sbapi/core/serverSentEvents.gen.d.ts +0 -72
  146. package/dist/sbapi/core/serverSentEvents.gen.d.ts.map +0 -1
  147. package/dist/sbapi/core/serverSentEvents.gen.js +0 -138
  148. package/dist/sbapi/core/serverSentEvents.gen.js.map +0 -1
  149. package/dist/sbapi/core/types.gen.d.ts +0 -79
  150. package/dist/sbapi/core/types.gen.d.ts.map +0 -1
  151. package/dist/sbapi/core/types.gen.js +0 -3
  152. package/dist/sbapi/core/types.gen.js.map +0 -1
  153. package/dist/sbapi/core/utils.gen.d.ts +0 -20
  154. package/dist/sbapi/core/utils.gen.d.ts.map +0 -1
  155. package/dist/sbapi/core/utils.gen.js +0 -88
  156. package/dist/sbapi/core/utils.gen.js.map +0 -1
  157. package/dist/sbapi/index.d.ts +0 -3
  158. package/dist/sbapi/index.d.ts.map +0 -1
  159. package/dist/sbapi/index.js +0 -3
  160. package/dist/sbapi/index.js.map +0 -1
  161. package/dist/sbapi/schemas.gen.d.ts +0 -2322
  162. package/dist/sbapi/schemas.gen.d.ts.map +0 -1
  163. package/dist/sbapi/schemas.gen.js +0 -2596
  164. package/dist/sbapi/schemas.gen.js.map +0 -1
  165. package/dist/sbapi/sdk.gen.d.ts +0 -834
  166. package/dist/sbapi/sdk.gen.d.ts.map +0 -1
  167. package/dist/sbapi/sdk.gen.js +0 -2466
  168. package/dist/sbapi/sdk.gen.js.map +0 -1
  169. package/dist/sbapi/types.gen.d.ts +0 -11726
  170. package/dist/sbapi/types.gen.d.ts.map +0 -1
  171. package/dist/sbapi/types.gen.js +0 -3
  172. package/dist/sbapi/types.gen.js.map +0 -1
  173. package/dist/sbapi/zod.gen.d.ts +0 -8147
  174. package/dist/sbapi/zod.gen.d.ts.map +0 -1
  175. package/dist/sbapi/zod.gen.js +0 -6585
  176. package/dist/sbapi/zod.gen.js.map +0 -1
  177. package/src/sbapi/@tanstack/react-query.gen.ts +0 -6591
  178. package/src/sbapi/client/client.gen.ts +0 -311
  179. package/src/sbapi/client/index.ts +0 -25
  180. package/src/sbapi/client/types.gen.ts +0 -241
  181. package/src/sbapi/client/utils.gen.ts +0 -332
  182. package/src/sbapi/client.gen.ts +0 -16
  183. package/src/sbapi/core/auth.gen.ts +0 -42
  184. package/src/sbapi/core/bodySerializer.gen.ts +0 -100
  185. package/src/sbapi/core/params.gen.ts +0 -176
  186. package/src/sbapi/core/pathSerializer.gen.ts +0 -181
  187. package/src/sbapi/core/queryKeySerializer.gen.ts +0 -136
  188. package/src/sbapi/core/serverSentEvents.gen.ts +0 -266
  189. package/src/sbapi/core/types.gen.ts +0 -118
  190. package/src/sbapi/core/utils.gen.ts +0 -143
  191. package/src/sbapi/index.ts +0 -4
  192. package/src/sbapi/schemas.gen.ts +0 -2643
  193. package/src/sbapi/sdk.gen.ts +0 -2822
  194. package/src/sbapi/types.gen.ts +0 -12503
  195. package/src/sbapi/zod.gen.ts +0 -7021
@@ -346,7 +346,7 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
346
346
  foreignKeyName: "audit_findings_task_id_fkey";
347
347
  columns: ["task_id"];
348
348
  isOneToOne: false;
349
- referencedRelation: "audit_tasks";
349
+ referencedRelation: "tasks";
350
350
  referencedColumns: ["id"];
351
351
  }];
352
352
  };
@@ -482,66 +482,6 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
482
482
  referencedColumns: ["id"];
483
483
  }];
484
484
  };
485
- audit_tasks: {
486
- Row: {
487
- created_at: string;
488
- id: string;
489
- instructions: string | null;
490
- logs_url: string | null;
491
- project_id: string;
492
- result_summary: string | null;
493
- sandbox_id: string | null;
494
- skill_id: string | null;
495
- status: string | null;
496
- updated_at: string;
497
- user_id: string | null;
498
- };
499
- Insert: {
500
- created_at?: string;
501
- id?: string;
502
- instructions?: string | null;
503
- logs_url?: string | null;
504
- project_id: string;
505
- result_summary?: string | null;
506
- sandbox_id?: string | null;
507
- skill_id?: string | null;
508
- status?: string | null;
509
- updated_at?: string;
510
- user_id?: string | null;
511
- };
512
- Update: {
513
- created_at?: string;
514
- id?: string;
515
- instructions?: string | null;
516
- logs_url?: string | null;
517
- project_id?: string;
518
- result_summary?: string | null;
519
- sandbox_id?: string | null;
520
- skill_id?: string | null;
521
- status?: string | null;
522
- updated_at?: string;
523
- user_id?: string | null;
524
- };
525
- Relationships: [{
526
- foreignKeyName: "audit_tasks_project_id_fkey";
527
- columns: ["project_id"];
528
- isOneToOne: false;
529
- referencedRelation: "audit_projects";
530
- referencedColumns: ["id"];
531
- }, {
532
- foreignKeyName: "audit_tasks_sandbox_id_fkey";
533
- columns: ["sandbox_id"];
534
- isOneToOne: false;
535
- referencedRelation: "resources";
536
- referencedColumns: ["id"];
537
- }, {
538
- foreignKeyName: "audit_tasks_skill_id_fkey";
539
- columns: ["skill_id"];
540
- isOneToOne: false;
541
- referencedRelation: "audit_skills";
542
- referencedColumns: ["id"];
543
- }];
544
- };
545
485
  browsers: {
546
486
  Row: {
547
487
  cdpUrl: string | null;
@@ -1270,54 +1210,42 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
1270
1210
  };
1271
1211
  servers: {
1272
1212
  Row: {
1273
- cloudflared_token: string | null;
1213
+ config: import("../types/database.types").Json | null;
1274
1214
  created_at: string;
1275
- host_id: string | null;
1276
1215
  id: string;
1216
+ is_public: boolean | null;
1277
1217
  is_shared: boolean | null;
1278
- latest_pull_at: string | null;
1279
1218
  name: string | null;
1280
- runtime: string | null;
1281
1219
  state: import("../types/database.types").Json | null;
1282
- status: Database["public"]["Enums"]["worker_status"] | null;
1220
+ status: Database["public"]["Enums"]["server_status"] | null;
1283
1221
  updated_at: string;
1284
1222
  user_id: string | null;
1285
1223
  };
1286
1224
  Insert: {
1287
- cloudflared_token?: string | null;
1225
+ config?: import("../types/database.types").Json | null;
1288
1226
  created_at?: string;
1289
- host_id?: string | null;
1290
1227
  id: string;
1228
+ is_public?: boolean | null;
1291
1229
  is_shared?: boolean | null;
1292
- latest_pull_at?: string | null;
1293
1230
  name?: string | null;
1294
- runtime?: string | null;
1295
1231
  state?: import("../types/database.types").Json | null;
1296
- status?: Database["public"]["Enums"]["worker_status"] | null;
1232
+ status?: Database["public"]["Enums"]["server_status"] | null;
1297
1233
  updated_at?: string;
1298
1234
  user_id?: string | null;
1299
1235
  };
1300
1236
  Update: {
1301
- cloudflared_token?: string | null;
1237
+ config?: import("../types/database.types").Json | null;
1302
1238
  created_at?: string;
1303
- host_id?: string | null;
1304
1239
  id?: string;
1240
+ is_public?: boolean | null;
1305
1241
  is_shared?: boolean | null;
1306
- latest_pull_at?: string | null;
1307
1242
  name?: string | null;
1308
- runtime?: string | null;
1309
1243
  state?: import("../types/database.types").Json | null;
1310
- status?: Database["public"]["Enums"]["worker_status"] | null;
1244
+ status?: Database["public"]["Enums"]["server_status"] | null;
1311
1245
  updated_at?: string;
1312
1246
  user_id?: string | null;
1313
1247
  };
1314
- Relationships: [{
1315
- foreignKeyName: "workers_host_id_fkey";
1316
- columns: ["host_id"];
1317
- isOneToOne: false;
1318
- referencedRelation: "compute_nodes";
1319
- referencedColumns: ["id"];
1320
- }];
1248
+ Relationships: [];
1321
1249
  };
1322
1250
  sys_config: {
1323
1251
  Row: {
@@ -1346,25 +1274,37 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
1346
1274
  sys_logs: {
1347
1275
  Row: {
1348
1276
  created_at: string;
1277
+ event_type: string | null;
1349
1278
  id: number;
1350
- level: number | null;
1279
+ level: Database["public"]["Enums"]["sys_log_level"] | null;
1280
+ meta: import("../types/database.types").Json | null;
1351
1281
  module: string | null;
1282
+ resource_id: string | null;
1283
+ resource_type: string | null;
1352
1284
  text: string | null;
1353
1285
  user_id: string | null;
1354
1286
  };
1355
1287
  Insert: {
1356
1288
  created_at?: string;
1289
+ event_type?: string | null;
1357
1290
  id?: number;
1358
- level?: number | null;
1291
+ level?: Database["public"]["Enums"]["sys_log_level"] | null;
1292
+ meta?: import("../types/database.types").Json | null;
1359
1293
  module?: string | null;
1294
+ resource_id?: string | null;
1295
+ resource_type?: string | null;
1360
1296
  text?: string | null;
1361
1297
  user_id?: string | null;
1362
1298
  };
1363
1299
  Update: {
1364
1300
  created_at?: string;
1301
+ event_type?: string | null;
1365
1302
  id?: number;
1366
- level?: number | null;
1303
+ level?: Database["public"]["Enums"]["sys_log_level"] | null;
1304
+ meta?: import("../types/database.types").Json | null;
1367
1305
  module?: string | null;
1306
+ resource_id?: string | null;
1307
+ resource_type?: string | null;
1368
1308
  text?: string | null;
1369
1309
  user_id?: string | null;
1370
1310
  };
@@ -1421,6 +1361,150 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
1421
1361
  };
1422
1362
  Relationships: [];
1423
1363
  };
1364
+ tasks: {
1365
+ Row: {
1366
+ code: string | null;
1367
+ code_type: Database["public"]["Enums"]["task_code_type"] | null;
1368
+ completed_at: string | null;
1369
+ context_id: string | null;
1370
+ context_type: string | null;
1371
+ created_at: string;
1372
+ description: string | null;
1373
+ error: string | null;
1374
+ executor_id: string | null;
1375
+ executor_type: string | null;
1376
+ id: string;
1377
+ max_retries: number;
1378
+ meta: import("../types/database.types").Json;
1379
+ parent_id: string | null;
1380
+ priority: number;
1381
+ result: import("../types/database.types").Json | null;
1382
+ result_text: string | null;
1383
+ retry_count: number;
1384
+ scheduled_at: string | null;
1385
+ started_at: string | null;
1386
+ status: Database["public"]["Enums"]["task_status"];
1387
+ tags: string[];
1388
+ title: string;
1389
+ updated_at: string;
1390
+ user_id: string;
1391
+ };
1392
+ Insert: {
1393
+ code?: string | null;
1394
+ code_type?: Database["public"]["Enums"]["task_code_type"] | null;
1395
+ completed_at?: string | null;
1396
+ context_id?: string | null;
1397
+ context_type?: string | null;
1398
+ created_at?: string;
1399
+ description?: string | null;
1400
+ error?: string | null;
1401
+ executor_id?: string | null;
1402
+ executor_type?: string | null;
1403
+ id?: string;
1404
+ max_retries?: number;
1405
+ meta?: import("../types/database.types").Json;
1406
+ parent_id?: string | null;
1407
+ priority?: number;
1408
+ result?: import("../types/database.types").Json | null;
1409
+ result_text?: string | null;
1410
+ retry_count?: number;
1411
+ scheduled_at?: string | null;
1412
+ started_at?: string | null;
1413
+ status?: Database["public"]["Enums"]["task_status"];
1414
+ tags?: string[];
1415
+ title: string;
1416
+ updated_at?: string;
1417
+ user_id: string;
1418
+ };
1419
+ Update: {
1420
+ code?: string | null;
1421
+ code_type?: Database["public"]["Enums"]["task_code_type"] | null;
1422
+ completed_at?: string | null;
1423
+ context_id?: string | null;
1424
+ context_type?: string | null;
1425
+ created_at?: string;
1426
+ description?: string | null;
1427
+ error?: string | null;
1428
+ executor_id?: string | null;
1429
+ executor_type?: string | null;
1430
+ id?: string;
1431
+ max_retries?: number;
1432
+ meta?: import("../types/database.types").Json;
1433
+ parent_id?: string | null;
1434
+ priority?: number;
1435
+ result?: import("../types/database.types").Json | null;
1436
+ result_text?: string | null;
1437
+ retry_count?: number;
1438
+ scheduled_at?: string | null;
1439
+ started_at?: string | null;
1440
+ status?: Database["public"]["Enums"]["task_status"];
1441
+ tags?: string[];
1442
+ title?: string;
1443
+ updated_at?: string;
1444
+ user_id?: string;
1445
+ };
1446
+ Relationships: [{
1447
+ foreignKeyName: "tasks_parent_id_fkey";
1448
+ columns: ["parent_id"];
1449
+ isOneToOne: false;
1450
+ referencedRelation: "tasks";
1451
+ referencedColumns: ["id"];
1452
+ }];
1453
+ };
1454
+ traffic_logs: {
1455
+ Row: {
1456
+ client_ip: string | null;
1457
+ created_at: string | null;
1458
+ error: string | null;
1459
+ host: string | null;
1460
+ id: string;
1461
+ method: string | null;
1462
+ path: string | null;
1463
+ request_headers: import("../types/database.types").Json | null;
1464
+ response_headers: import("../types/database.types").Json | null;
1465
+ scheme: string | null;
1466
+ started_at: string | null;
1467
+ status_code: number | null;
1468
+ url: string | null;
1469
+ user_id: string | null;
1470
+ worker_id: string | null;
1471
+ };
1472
+ Insert: {
1473
+ client_ip?: string | null;
1474
+ created_at?: string | null;
1475
+ error?: string | null;
1476
+ host?: string | null;
1477
+ id?: string;
1478
+ method?: string | null;
1479
+ path?: string | null;
1480
+ request_headers?: import("../types/database.types").Json | null;
1481
+ response_headers?: import("../types/database.types").Json | null;
1482
+ scheme?: string | null;
1483
+ started_at?: string | null;
1484
+ status_code?: number | null;
1485
+ url?: string | null;
1486
+ user_id?: string | null;
1487
+ worker_id?: string | null;
1488
+ };
1489
+ Update: {
1490
+ client_ip?: string | null;
1491
+ created_at?: string | null;
1492
+ error?: string | null;
1493
+ host?: string | null;
1494
+ id?: string;
1495
+ method?: string | null;
1496
+ path?: string | null;
1497
+ request_headers?: import("../types/database.types").Json | null;
1498
+ response_headers?: import("../types/database.types").Json | null;
1499
+ scheme?: string | null;
1500
+ started_at?: string | null;
1501
+ status_code?: number | null;
1502
+ url?: string | null;
1503
+ user_id?: string | null;
1504
+ worker_id?: string | null;
1505
+ };
1506
+ Relationships: [];
1507
+ };
1424
1508
  user_logs: {
1425
1509
  Row: {
1426
1510
  content: string | null;
@@ -1538,48 +1622,6 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
1538
1622
  };
1539
1623
  Relationships: [];
1540
1624
  };
1541
- worker_tasks: {
1542
- Row: {
1543
- created_at: string;
1544
- error: string | null;
1545
- id: string;
1546
- payload: import("../types/database.types").Json;
1547
- result: import("../types/database.types").Json | null;
1548
- session_id: string | null;
1549
- status: string | null;
1550
- type: string;
1551
- updated_at: string;
1552
- user_id: string | null;
1553
- worker_id: string | null;
1554
- };
1555
- Insert: {
1556
- created_at?: string;
1557
- error?: string | null;
1558
- id?: string;
1559
- payload: import("../types/database.types").Json;
1560
- result?: import("../types/database.types").Json | null;
1561
- session_id?: string | null;
1562
- status?: string | null;
1563
- type: string;
1564
- updated_at?: string;
1565
- user_id?: string | null;
1566
- worker_id?: string | null;
1567
- };
1568
- Update: {
1569
- created_at?: string;
1570
- error?: string | null;
1571
- id?: string;
1572
- payload?: import("../types/database.types").Json;
1573
- result?: import("../types/database.types").Json | null;
1574
- session_id?: string | null;
1575
- status?: string | null;
1576
- type?: string;
1577
- updated_at?: string;
1578
- user_id?: string | null;
1579
- worker_id?: string | null;
1580
- };
1581
- Relationships: [];
1582
- };
1583
1625
  };
1584
1626
  Views: { [_ in never]: never; };
1585
1627
  Functions: {
@@ -1645,9 +1687,13 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
1645
1687
  p_session_id: string;
1646
1688
  p_user_id: string;
1647
1689
  };
1648
- Returns: {
1649
- filename: string;
1650
- }[];
1690
+ Returns: Database["public"]["CompositeTypes"]["adk_artifact_key_record"][];
1691
+ SetofOptions: {
1692
+ from: "*";
1693
+ to: "adk_artifact_key_record";
1694
+ isOneToOne: false;
1695
+ isSetofReturn: true;
1696
+ };
1651
1697
  };
1652
1698
  adk_artifact_list_versions_meta: {
1653
1699
  Args: {
@@ -1905,28 +1951,6 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
1905
1951
  isSetofReturn: true;
1906
1952
  };
1907
1953
  };
1908
- audit_asset_list: {
1909
- Args: {
1910
- p_project_id: string;
1911
- p_type?: string;
1912
- };
1913
- Returns: {
1914
- content: string;
1915
- created_at: string;
1916
- id: string;
1917
- metadata: import("../types/database.types").Json | null;
1918
- project_id: string;
1919
- status: string | null;
1920
- type: string;
1921
- updated_at: string;
1922
- }[];
1923
- SetofOptions: {
1924
- from: "*";
1925
- to: "audit_assets";
1926
- isOneToOne: false;
1927
- isSetofReturn: true;
1928
- };
1929
- };
1930
1954
  audit_asset_list_cursor: {
1931
1955
  Args: {
1932
1956
  p_cursor?: string;
@@ -1952,31 +1976,6 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
1952
1976
  isSetofReturn: true;
1953
1977
  };
1954
1978
  };
1955
- audit_finding_list: {
1956
- Args: {
1957
- p_project_id: string;
1958
- };
1959
- Returns: {
1960
- ai_analysis: string | null;
1961
- created_at: string;
1962
- description: string | null;
1963
- id: string;
1964
- project_id: string;
1965
- proof_poc: string | null;
1966
- remediation: string | null;
1967
- severity: Database["public"]["Enums"]["audit_finding_severity"] | null;
1968
- status: string | null;
1969
- task_id: string | null;
1970
- title: string;
1971
- updated_at: string;
1972
- }[];
1973
- SetofOptions: {
1974
- from: "*";
1975
- to: "audit_findings";
1976
- isOneToOne: false;
1977
- isSetofReturn: true;
1978
- };
1979
- };
1980
1979
  audit_finding_list_cursor: {
1981
1980
  Args: {
1982
1981
  p_cursor?: string;
@@ -2027,12 +2026,13 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
2027
2026
  Args: {
2028
2027
  p_project_id: string;
2029
2028
  };
2030
- Returns: {
2031
- asset_count: number;
2032
- finding_count: number;
2033
- high_risk_count: number;
2034
- task_count: number;
2035
- }[];
2029
+ Returns: Database["public"]["CompositeTypes"]["audit_project_stats_record"][];
2030
+ SetofOptions: {
2031
+ from: "*";
2032
+ to: "audit_project_stats_record";
2033
+ isOneToOne: false;
2034
+ isSetofReturn: true;
2035
+ };
2036
2036
  };
2037
2037
  audit_project_delete: {
2038
2038
  Args: {
@@ -2044,21 +2044,10 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
2044
2044
  Args: {
2045
2045
  p_id: string;
2046
2046
  };
2047
- Returns: {
2048
- config: import("../types/database.types").Json | null;
2049
- created_at: string;
2050
- id: string;
2051
- name: string;
2052
- repo_branch: string | null;
2053
- repo_url: string | null;
2054
- target: string | null;
2055
- updated_at: string;
2056
- user_id: string;
2057
- worker_id: string | null;
2058
- }[];
2047
+ Returns: Database["public"]["CompositeTypes"]["audit_project_record"][];
2059
2048
  SetofOptions: {
2060
2049
  from: "*";
2061
- to: "audit_projects";
2050
+ to: "audit_project_record";
2062
2051
  isOneToOne: false;
2063
2052
  isSetofReturn: true;
2064
2053
  };
@@ -2069,21 +2058,10 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
2069
2058
  p_page_no?: number;
2070
2059
  p_page_size?: number;
2071
2060
  };
2072
- Returns: {
2073
- config: import("../types/database.types").Json | null;
2074
- created_at: string;
2075
- id: string;
2076
- name: string;
2077
- repo_branch: string | null;
2078
- repo_url: string | null;
2079
- target: string | null;
2080
- updated_at: string;
2081
- user_id: string;
2082
- worker_id: string | null;
2083
- }[];
2061
+ Returns: Database["public"]["CompositeTypes"]["audit_project_record"][];
2084
2062
  SetofOptions: {
2085
2063
  from: "*";
2086
- to: "audit_projects";
2064
+ to: "audit_project_record";
2087
2065
  isOneToOne: false;
2088
2066
  isSetofReturn: true;
2089
2067
  };
@@ -2095,21 +2073,10 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
2095
2073
  p_kw?: string;
2096
2074
  p_limit?: number;
2097
2075
  };
2098
- Returns: {
2099
- config: import("../types/database.types").Json | null;
2100
- created_at: string;
2101
- id: string;
2102
- name: string;
2103
- repo_branch: string | null;
2104
- repo_url: string | null;
2105
- target: string | null;
2106
- updated_at: string;
2107
- user_id: string;
2108
- worker_id: string | null;
2109
- }[];
2076
+ Returns: Database["public"]["CompositeTypes"]["audit_project_record"][];
2110
2077
  SetofOptions: {
2111
2078
  from: "*";
2112
- to: "audit_projects";
2079
+ to: "audit_project_record";
2113
2080
  isOneToOne: false;
2114
2081
  isSetofReturn: true;
2115
2082
  };
@@ -2117,18 +2084,7 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
2117
2084
  audit_project_upsert: {
2118
2085
  Args: {
2119
2086
  p_config?: import("../types/database.types").Json;
2120
- p_id?: string;
2121
- p_name?: string;
2122
- p_repo_branch?: string;
2123
- p_repo_url?: string;
2124
- p_target?: string;
2125
- p_worker_id?: string;
2126
- };
2127
- Returns: string;
2128
- } | {
2129
- Args: {
2130
- p_config?: import("../types/database.types").Json;
2131
- p_id?: string;
2087
+ p_id: string;
2132
2088
  p_name: string;
2133
2089
  p_repo_branch?: string;
2134
2090
  p_repo_url?: string;
@@ -2160,85 +2116,6 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
2160
2116
  isSetofReturn: true;
2161
2117
  };
2162
2118
  };
2163
- audit_task_get: {
2164
- Args: {
2165
- p_id: string;
2166
- };
2167
- Returns: {
2168
- created_at: string;
2169
- id: string;
2170
- instructions: string | null;
2171
- logs_url: string | null;
2172
- project_id: string;
2173
- result_summary: string | null;
2174
- sandbox_id: string | null;
2175
- skill_id: string | null;
2176
- status: string | null;
2177
- updated_at: string;
2178
- user_id: string | null;
2179
- }[];
2180
- SetofOptions: {
2181
- from: "*";
2182
- to: "audit_tasks";
2183
- isOneToOne: false;
2184
- isSetofReturn: true;
2185
- };
2186
- };
2187
- audit_task_list: {
2188
- Args: {
2189
- p_project_id: string;
2190
- };
2191
- Returns: {
2192
- created_at: string;
2193
- id: string;
2194
- instructions: string | null;
2195
- logs_url: string | null;
2196
- project_id: string;
2197
- result_summary: string | null;
2198
- sandbox_id: string | null;
2199
- skill_id: string | null;
2200
- status: string | null;
2201
- updated_at: string;
2202
- user_id: string | null;
2203
- }[];
2204
- SetofOptions: {
2205
- from: "*";
2206
- to: "audit_tasks";
2207
- isOneToOne: false;
2208
- isSetofReturn: true;
2209
- };
2210
- };
2211
- audit_task_upsert: {
2212
- Args: {
2213
- p_id: string;
2214
- p_instructions: string;
2215
- p_logs_url?: string;
2216
- p_project_id: string;
2217
- p_result_summary?: string;
2218
- p_sandbox_id?: string;
2219
- p_skill_id?: string;
2220
- p_status?: string;
2221
- };
2222
- Returns: {
2223
- created_at: string;
2224
- id: string;
2225
- instructions: string | null;
2226
- logs_url: string | null;
2227
- project_id: string;
2228
- result_summary: string | null;
2229
- sandbox_id: string | null;
2230
- skill_id: string | null;
2231
- status: string | null;
2232
- updated_at: string;
2233
- user_id: string | null;
2234
- }[];
2235
- SetofOptions: {
2236
- from: "*";
2237
- to: "audit_tasks";
2238
- isOneToOne: false;
2239
- isSetofReturn: true;
2240
- };
2241
- };
2242
2119
  auth_role: {
2243
2120
  Args: never;
2244
2121
  Returns: string;
@@ -2260,23 +2137,10 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
2260
2137
  Args: {
2261
2138
  p_id: string;
2262
2139
  };
2263
- Returns: {
2264
- cdpUrl: string | null;
2265
- config: import("../types/database.types").Json | null;
2266
- created_at: string;
2267
- description: string | null;
2268
- id: string;
2269
- profile_id: string | null;
2270
- provider: string | null;
2271
- provider_config: import("../types/database.types").Json | null;
2272
- sandbox_id: string | null;
2273
- title: string | null;
2274
- updated_at: string | null;
2275
- user_id: string | null;
2276
- }[];
2140
+ Returns: Database["public"]["CompositeTypes"]["browser_record"][];
2277
2141
  SetofOptions: {
2278
2142
  from: "*";
2279
- to: "browsers";
2143
+ to: "browser_record";
2280
2144
  isOneToOne: false;
2281
2145
  isSetofReturn: true;
2282
2146
  };
@@ -2312,23 +2176,10 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
2312
2176
  p_provider_config?: import("../types/database.types").Json;
2313
2177
  p_title?: string;
2314
2178
  };
2315
- Returns: {
2316
- cdpUrl: string | null;
2317
- config: import("../types/database.types").Json | null;
2318
- created_at: string;
2319
- description: string | null;
2320
- id: string;
2321
- profile_id: string | null;
2322
- provider: string | null;
2323
- provider_config: import("../types/database.types").Json | null;
2324
- sandbox_id: string | null;
2325
- title: string | null;
2326
- updated_at: string | null;
2327
- user_id: string | null;
2328
- }[];
2179
+ Returns: Database["public"]["CompositeTypes"]["browser_record"][];
2329
2180
  SetofOptions: {
2330
2181
  from: "*";
2331
- to: "browsers";
2182
+ to: "browser_record";
2332
2183
  isOneToOne: false;
2333
2184
  isSetofReturn: true;
2334
2185
  };
@@ -2526,24 +2377,12 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
2526
2377
  isSetofReturn: false;
2527
2378
  };
2528
2379
  };
2529
- cleanup_tunnel_async: {
2530
- Args: {
2531
- p_worker_id: string;
2532
- };
2533
- Returns: number;
2534
- };
2535
- cloud_account_bind_device: {
2380
+ check_account_rate_limit: {
2536
2381
  Args: {
2537
- p_fingerprint: import("../types/database.types").Json;
2538
- p_id: string;
2539
- };
2540
- Returns: Database["public"]["CompositeTypes"]["cloud_account_record"][];
2541
- SetofOptions: {
2542
- from: "*";
2543
- to: "cloud_account_record";
2544
- isOneToOne: false;
2545
- isSetofReturn: true;
2382
+ p_account_id: string;
2383
+ p_campaign_config: import("../types/database.types").Json;
2546
2384
  };
2385
+ Returns: boolean;
2547
2386
  };
2548
2387
  cloud_account_bulk_create: {
2549
2388
  Args: {
@@ -2559,13 +2398,6 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
2559
2398
  isSetofReturn: true;
2560
2399
  };
2561
2400
  };
2562
- cloud_account_check_expired_tokens: {
2563
- Args: never;
2564
- Returns: {
2565
- total_checked: number;
2566
- total_expired: number;
2567
- }[];
2568
- };
2569
2401
  cloud_account_delete: {
2570
2402
  Args: {
2571
2403
  p_id: string;
@@ -2580,10 +2412,10 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
2580
2412
  };
2581
2413
  cloud_account_device_delete_version: {
2582
2414
  Args: {
2583
- p_id: string;
2584
- p_version_id: string;
2415
+ p_account_id: string;
2416
+ p_version: number;
2585
2417
  };
2586
- Returns: boolean;
2418
+ Returns: undefined;
2587
2419
  };
2588
2420
  cloud_account_device_restore: {
2589
2421
  Args: {
@@ -2631,41 +2463,15 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
2631
2463
  p_error: string;
2632
2464
  p_id: string;
2633
2465
  };
2634
- Returns: Database["public"]["CompositeTypes"]["cloud_account_record"][];
2635
- SetofOptions: {
2636
- from: "*";
2637
- to: "cloud_account_record";
2638
- isOneToOne: false;
2639
- isSetofReturn: true;
2640
- };
2466
+ Returns: undefined;
2641
2467
  };
2642
2468
  cloud_account_refresh_token: {
2643
2469
  Args: {
2644
2470
  p_access_token: string;
2645
- p_expires_in?: unknown;
2471
+ p_expires_in?: number;
2646
2472
  p_id: string;
2647
- p_refresh_expires_in?: unknown;
2648
2473
  p_refresh_token?: string;
2649
2474
  };
2650
- Returns: Database["public"]["CompositeTypes"]["cloud_account_record"][];
2651
- SetofOptions: {
2652
- from: "*";
2653
- to: "cloud_account_record";
2654
- isOneToOne: false;
2655
- isSetofReturn: true;
2656
- };
2657
- };
2658
- cloud_account_session_load: {
2659
- Args: {
2660
- p_id: string;
2661
- };
2662
- Returns: string;
2663
- };
2664
- cloud_account_session_set: {
2665
- Args: {
2666
- p_id: string;
2667
- p_session_data: import("../types/database.types").Json;
2668
- };
2669
2475
  Returns: undefined;
2670
2476
  };
2671
2477
  cloud_account_session_store: {
@@ -2732,25 +2538,24 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
2732
2538
  Args: {
2733
2539
  target_id: string;
2734
2540
  };
2735
- Returns: {
2736
- auth_secret: string;
2737
- host: string;
2738
- port: number;
2739
- username: string;
2740
- }[];
2541
+ Returns: Database["public"]["CompositeTypes"]["compute_node_secret_record"][];
2542
+ SetofOptions: {
2543
+ from: "*";
2544
+ to: "compute_node_secret_record";
2545
+ isOneToOne: false;
2546
+ isSetofReturn: true;
2547
+ };
2741
2548
  };
2742
2549
  compute_node_list: {
2743
2550
  Args: {
2744
2551
  p_kw?: string;
2745
2552
  p_page_no?: number;
2746
2553
  p_page_size?: number;
2747
- p_provider?: string;
2748
- p_user_id?: string;
2749
2554
  };
2750
- Returns: Database["public"]["CompositeTypes"]["compute_node_record"][];
2555
+ Returns: Database["public"]["CompositeTypes"]["compute_node_list_record"][];
2751
2556
  SetofOptions: {
2752
2557
  from: "*";
2753
- to: "compute_node_record";
2558
+ to: "compute_node_list_record";
2754
2559
  isOneToOne: false;
2755
2560
  isSetofReturn: true;
2756
2561
  };
@@ -2773,6 +2578,12 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
2773
2578
  isSetofReturn: true;
2774
2579
  };
2775
2580
  };
2581
+ compute_server_public_url: {
2582
+ Args: {
2583
+ p_server_id: string;
2584
+ };
2585
+ Returns: string;
2586
+ };
2776
2587
  contact_add_tags: {
2777
2588
  Args: {
2778
2589
  p_ids: string[];
@@ -2827,6 +2638,17 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
2827
2638
  isSetofReturn: true;
2828
2639
  };
2829
2640
  };
2641
+ contact_list_tags: {
2642
+ Args: never;
2643
+ Returns: string[];
2644
+ };
2645
+ contact_remove_tags: {
2646
+ Args: {
2647
+ p_ids: string[];
2648
+ p_tags: string[];
2649
+ };
2650
+ Returns: number;
2651
+ };
2830
2652
  contact_upsert: {
2831
2653
  Args: {
2832
2654
  p_email?: string;
@@ -2853,13 +2675,13 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
2853
2675
  Args: {
2854
2676
  p_action_payload?: import("../types/database.types").Json;
2855
2677
  p_action_type?: string;
2856
- p_expires_in?: unknown;
2857
- p_message?: string;
2678
+ p_expires_in?: string;
2679
+ p_message: string;
2680
+ p_notification_type?: string;
2858
2681
  p_priority?: string;
2859
2682
  p_source_id?: string;
2860
2683
  p_source_type?: string;
2861
2684
  p_title: string;
2862
- p_type?: string;
2863
2685
  p_user_id: string;
2864
2686
  };
2865
2687
  Returns: string;
@@ -2900,10 +2722,6 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
2900
2722
  Args: never;
2901
2723
  Returns: string;
2902
2724
  };
2903
- get_lint_test_v1: {
2904
- Args: never;
2905
- Returns: string;
2906
- };
2907
2725
  get_user_id_from_token: {
2908
2726
  Args: {
2909
2727
  p_token: string;
@@ -2948,28 +2766,6 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
2948
2766
  isSetofReturn: false;
2949
2767
  };
2950
2768
  };
2951
- gomtm_model_list: {
2952
- Args: {
2953
- p_is_active?: boolean;
2954
- p_limit?: number;
2955
- p_offset?: number;
2956
- p_provider?: string;
2957
- };
2958
- Returns: {
2959
- api_base: string;
2960
- api_key: string;
2961
- config: import("../types/database.types").Json;
2962
- created_at: string;
2963
- id: string;
2964
- is_active: boolean;
2965
- linked_account_id: string;
2966
- model: string;
2967
- name: string;
2968
- provider: string;
2969
- updated_at: string;
2970
- user_id: string;
2971
- }[];
2972
- };
2973
2769
  gomtm_model_list_cursor: {
2974
2770
  Args: {
2975
2771
  p_cursor_id?: string;
@@ -2978,19 +2774,25 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
2978
2774
  p_provider?: string;
2979
2775
  };
2980
2776
  Returns: {
2981
- api_base: string;
2982
- api_key: string;
2983
- config: import("../types/database.types").Json;
2777
+ api_base: string | null;
2778
+ api_key: string | null;
2779
+ config: import("../types/database.types").Json | null;
2984
2780
  created_at: string;
2985
2781
  id: string;
2986
2782
  is_active: boolean;
2987
- linked_account_id: string;
2783
+ linked_account_id: string | null;
2988
2784
  model: string;
2989
2785
  name: string;
2990
2786
  provider: string;
2991
2787
  updated_at: string;
2992
2788
  user_id: string;
2993
2789
  }[];
2790
+ SetofOptions: {
2791
+ from: "*";
2792
+ to: "gomtm_models";
2793
+ isOneToOne: false;
2794
+ isSetofReturn: true;
2795
+ };
2994
2796
  };
2995
2797
  gomtm_model_upsert: {
2996
2798
  Args: {
@@ -3025,47 +2827,70 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
3025
2827
  isSetofReturn: false;
3026
2828
  };
3027
2829
  };
3028
- handle_job_outreach_process: {
2830
+ handle_http_response_health: {
3029
2831
  Args: {
3030
- p_payload?: import("../types/database.types").Json;
2832
+ p_body: import("../types/database.types").Json;
2833
+ p_request_id: number;
2834
+ p_success: boolean;
3031
2835
  };
3032
- Returns: undefined;
2836
+ Returns: boolean;
3033
2837
  };
3034
- handle_job_telegram_fetch_info: {
2838
+ handle_http_response_outreach: {
3035
2839
  Args: {
3036
- p_payload: import("../types/database.types").Json;
2840
+ p_body: import("../types/database.types").Json;
2841
+ p_request_id: number;
2842
+ p_success: boolean;
3037
2843
  };
3038
- Returns: undefined;
2844
+ Returns: boolean;
3039
2845
  };
3040
- handle_job_telegram_fetch_sms: {
2846
+ handle_http_response_task: {
3041
2847
  Args: {
3042
- p_payload: import("../types/database.types").Json;
2848
+ p_body: import("../types/database.types").Json;
2849
+ p_request_id: number;
2850
+ p_success: boolean;
3043
2851
  };
3044
- Returns: undefined;
2852
+ Returns: boolean;
3045
2853
  };
3046
- handle_job_tunnel_check_responses: {
2854
+ handle_http_response_telegram: {
3047
2855
  Args: {
3048
- p_payload: import("../types/database.types").Json;
2856
+ p_body: import("../types/database.types").Json;
2857
+ p_request_id: number;
2858
+ p_success: boolean;
2859
+ };
2860
+ Returns: boolean;
2861
+ };
2862
+ handle_job_outreach_process: {
2863
+ Args: {
2864
+ p_payload?: import("../types/database.types").Json;
3049
2865
  };
3050
2866
  Returns: undefined;
3051
2867
  };
3052
- handle_job_tunnel_setup: {
2868
+ handle_job_telegram_fetch_info: {
3053
2869
  Args: {
3054
2870
  p_payload: import("../types/database.types").Json;
3055
2871
  };
3056
2872
  Returns: undefined;
3057
2873
  };
3058
- handle_job_worker_cleanup: {
2874
+ handle_job_telegram_fetch_sms: {
3059
2875
  Args: {
3060
2876
  p_payload: import("../types/database.types").Json;
3061
2877
  };
3062
2878
  Returns: undefined;
3063
2879
  };
3064
- init_tunnel_async: {
2880
+ has_permission: {
3065
2881
  Args: {
3066
- p_instance_id: string;
2882
+ p_action: string;
2883
+ p_resource: string;
3067
2884
  };
3068
- Returns: number;
2885
+ Returns: boolean;
2886
+ };
2887
+ install_script: {
2888
+ Args: {
2889
+ p_instance_id?: string;
2890
+ p_token?: string;
2891
+ p_version?: string;
2892
+ };
2893
+ Returns: string;
3069
2894
  };
3070
2895
  instance_tag_add: {
3071
2896
  Args: {
@@ -3106,44 +2931,33 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
3106
2931
  isSetofReturn: true;
3107
2932
  };
3108
2933
  };
3109
- is_admin: {
3110
- Args: never;
3111
- Returns: boolean;
3112
- };
3113
- job_queue_get_stats: {
3114
- Args: never;
3115
- Returns: {
3116
- dlq_count: number;
3117
- msg_count: number;
3118
- queue_name: string;
3119
- }[];
3120
- };
3121
2934
  job_queue_list_dlq: {
3122
2935
  Args: {
3123
2936
  p_limit?: number;
3124
2937
  p_offset?: number;
3125
2938
  p_queue: string;
3126
2939
  };
3127
- Returns: {
3128
- enqueued_at: string;
3129
- message: import("../types/database.types").Json;
3130
- msg_id: number;
3131
- read_ct: number;
3132
- }[];
2940
+ Returns: Database["public"]["CompositeTypes"]["job_queue_dlq_record"][];
2941
+ SetofOptions: {
2942
+ from: "*";
2943
+ to: "job_queue_dlq_record";
2944
+ isOneToOne: false;
2945
+ isSetofReturn: true;
2946
+ };
3133
2947
  };
3134
2948
  job_queue_purge_dlq: {
3135
2949
  Args: {
3136
2950
  p_msg_ids: number[];
3137
2951
  p_queue: string;
3138
2952
  };
3139
- Returns: undefined;
2953
+ Returns: boolean;
3140
2954
  };
3141
2955
  job_queue_retry_dlq: {
3142
2956
  Args: {
3143
2957
  p_msg_ids: number[];
3144
2958
  p_queue: string;
3145
2959
  };
3146
- Returns: undefined;
2960
+ Returns: boolean;
3147
2961
  };
3148
2962
  job_submit: {
3149
2963
  Args: {
@@ -3154,23 +2968,6 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
3154
2968
  };
3155
2969
  Returns: import("../types/database.types").Json;
3156
2970
  };
3157
- lint_test_error_code: {
3158
- Args: never;
3159
- Returns: undefined;
3160
- };
3161
- lint_test_table_return: {
3162
- Args: never;
3163
- Returns: {
3164
- id: number;
3165
- name: string;
3166
- }[];
3167
- };
3168
- log: {
3169
- Args: {
3170
- content: string;
3171
- };
3172
- Returns: undefined;
3173
- };
3174
2971
  notification_complete_action: {
3175
2972
  Args: {
3176
2973
  p_id: string;
@@ -3229,6 +3026,7 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
3229
3026
  };
3230
3027
  outreach_process_pending_tasks: {
3231
3028
  Args: {
3029
+ p_campaign_id?: string;
3232
3030
  p_limit?: number;
3233
3031
  };
3234
3032
  Returns: number;
@@ -3264,22 +3062,12 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
3264
3062
  Args: {
3265
3063
  p_id: string;
3266
3064
  };
3267
- Returns: {
3268
- created_at: string;
3269
- description: string | null;
3270
- enabled: boolean;
3271
- id: string;
3272
- name: string | null;
3273
- type: string | null;
3274
- updated_at: string | null;
3275
- url: string;
3276
- user_id: string | null;
3277
- };
3065
+ Returns: Database["public"]["CompositeTypes"]["proxy_record"][];
3278
3066
  SetofOptions: {
3279
3067
  from: "*";
3280
- to: "proxies";
3281
- isOneToOne: true;
3282
- isSetofReturn: false;
3068
+ to: "proxy_record";
3069
+ isOneToOne: false;
3070
+ isSetofReturn: true;
3283
3071
  };
3284
3072
  };
3285
3073
  proxy_list: {
@@ -3288,20 +3076,10 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
3288
3076
  p_page_no?: number;
3289
3077
  p_page_size?: number;
3290
3078
  };
3291
- Returns: {
3292
- created_at: string;
3293
- description: string | null;
3294
- enabled: boolean;
3295
- id: string;
3296
- name: string | null;
3297
- type: string | null;
3298
- updated_at: string | null;
3299
- url: string;
3300
- user_id: string | null;
3301
- }[];
3079
+ Returns: Database["public"]["CompositeTypes"]["proxy_record"][];
3302
3080
  SetofOptions: {
3303
3081
  from: "*";
3304
- to: "proxies";
3082
+ to: "proxy_record";
3305
3083
  isOneToOne: false;
3306
3084
  isSetofReturn: true;
3307
3085
  };
@@ -3315,20 +3093,10 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
3315
3093
  p_type: string;
3316
3094
  p_url: string;
3317
3095
  };
3318
- Returns: {
3319
- created_at: string;
3320
- description: string | null;
3321
- enabled: boolean;
3322
- id: string;
3323
- name: string | null;
3324
- type: string | null;
3325
- updated_at: string | null;
3326
- url: string;
3327
- user_id: string | null;
3328
- }[];
3096
+ Returns: Database["public"]["CompositeTypes"]["proxy_record"][];
3329
3097
  SetofOptions: {
3330
3098
  from: "*";
3331
- to: "proxies";
3099
+ to: "proxy_record";
3332
3100
  isOneToOne: false;
3333
3101
  isSetofReturn: true;
3334
3102
  };
@@ -3353,26 +3121,23 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
3353
3121
  p_slug?: string;
3354
3122
  p_type?: string;
3355
3123
  };
3356
- Returns: {
3357
- description: string;
3358
- icon: string;
3359
- id: string;
3360
- target_id: string;
3361
- title: string;
3362
- type: string;
3363
- updated_at: string;
3364
- url: string;
3365
- }[];
3124
+ Returns: Database["public"]["CompositeTypes"]["resource_list_record"][];
3125
+ SetofOptions: {
3126
+ from: "*";
3127
+ to: "resource_list_record";
3128
+ isOneToOne: false;
3129
+ isSetofReturn: true;
3130
+ };
3366
3131
  };
3367
3132
  resource_upsert: {
3368
3133
  Args: {
3369
- content: import("../types/database.types").Json;
3370
- description: string;
3371
- key: string;
3134
+ p_content?: import("../types/database.types").Json;
3135
+ p_description?: string;
3372
3136
  p_id?: string;
3373
- target_id?: string;
3374
- title: string;
3375
- type: string;
3137
+ p_key?: string;
3138
+ p_target_id?: string;
3139
+ p_title?: string;
3140
+ p_type?: string;
3376
3141
  };
3377
3142
  Returns: string;
3378
3143
  };
@@ -3406,71 +3171,32 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
3406
3171
  isSetofReturn: true;
3407
3172
  };
3408
3173
  };
3409
- server_instance_delete: {
3410
- Args: {
3411
- target_id: string;
3412
- };
3413
- Returns: undefined;
3414
- };
3415
- server_instance_get: {
3174
+ server_instance_bootstrap: {
3416
3175
  Args: {
3417
- p_id?: string;
3176
+ p_instance_id: string;
3418
3177
  };
3419
- Returns: {
3420
- cloudflared_token: string | null;
3421
- created_at: string;
3422
- host_id: string | null;
3423
- id: string;
3424
- is_shared: boolean | null;
3425
- latest_pull_at: string | null;
3426
- name: string | null;
3427
- runtime: string | null;
3428
- state: import("../types/database.types").Json | null;
3429
- status: Database["public"]["Enums"]["worker_status"] | null;
3430
- updated_at: string;
3431
- user_id: string | null;
3432
- }[];
3178
+ Returns: Database["public"]["CompositeTypes"]["bootstrap_result"][];
3433
3179
  SetofOptions: {
3434
3180
  from: "*";
3435
- to: "servers";
3181
+ to: "bootstrap_result";
3436
3182
  isOneToOne: false;
3437
3183
  isSetofReturn: true;
3438
3184
  };
3439
3185
  };
3440
- server_instance_heartbeat: {
3186
+ server_instance_delete: {
3441
3187
  Args: {
3442
- p_instance_id: string;
3188
+ p_id: string;
3443
3189
  };
3444
- Returns: {
3445
- error: string;
3446
- success: boolean;
3447
- temp_domain: string;
3448
- }[];
3190
+ Returns: undefined;
3449
3191
  };
3450
- server_instance_list: {
3192
+ server_instance_get: {
3451
3193
  Args: {
3452
- kw?: string;
3453
- p_host_id?: string;
3454
- page_no?: number;
3455
- page_size?: number;
3194
+ p_id: string;
3456
3195
  };
3457
- Returns: {
3458
- cloudflared_token: string | null;
3459
- created_at: string;
3460
- host_id: string | null;
3461
- id: string;
3462
- is_shared: boolean | null;
3463
- latest_pull_at: string | null;
3464
- name: string | null;
3465
- runtime: string | null;
3466
- state: import("../types/database.types").Json | null;
3467
- status: Database["public"]["Enums"]["worker_status"] | null;
3468
- updated_at: string;
3469
- user_id: string | null;
3470
- }[];
3196
+ Returns: Database["public"]["CompositeTypes"]["server_instance_record"][];
3471
3197
  SetofOptions: {
3472
3198
  from: "*";
3473
- to: "servers";
3199
+ to: "server_instance_record";
3474
3200
  isOneToOne: false;
3475
3201
  isSetofReturn: true;
3476
3202
  };
@@ -3480,63 +3206,49 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
3480
3206
  p_cursor_id?: string;
3481
3207
  p_cursor_is_shared?: boolean;
3482
3208
  p_cursor_updated_at?: string;
3483
- p_host_id?: string;
3484
3209
  p_is_shared?: boolean;
3485
3210
  p_kw?: string;
3486
3211
  p_limit?: number;
3487
3212
  p_tag_ids?: string[];
3488
3213
  };
3489
- Returns: {
3490
- cloudflared_token: string | null;
3491
- created_at: string;
3492
- host_id: string | null;
3493
- id: string;
3494
- is_shared: boolean | null;
3495
- latest_pull_at: string | null;
3496
- name: string | null;
3497
- runtime: string | null;
3498
- state: import("../types/database.types").Json | null;
3499
- status: Database["public"]["Enums"]["worker_status"] | null;
3500
- updated_at: string;
3501
- user_id: string | null;
3502
- }[];
3214
+ Returns: Database["public"]["CompositeTypes"]["server_instance_record"][];
3503
3215
  SetofOptions: {
3504
3216
  from: "*";
3505
- to: "servers";
3217
+ to: "server_instance_record";
3506
3218
  isOneToOne: false;
3507
3219
  isSetofReturn: true;
3508
3220
  };
3509
3221
  };
3222
+ server_instance_probe: {
3223
+ Args: {
3224
+ p_instance_id: string;
3225
+ };
3226
+ Returns: undefined;
3227
+ };
3510
3228
  server_instance_upsert: {
3511
3229
  Args: {
3512
- p_cloudflared_token?: string;
3513
- p_host_id?: string;
3514
- p_id: string;
3515
- p_is_managed?: boolean;
3230
+ p_config?: import("../types/database.types").Json;
3231
+ p_id?: string;
3232
+ p_is_public?: boolean;
3516
3233
  p_is_shared?: boolean;
3517
3234
  p_name?: string;
3518
- p_runtime?: string;
3519
3235
  p_state?: import("../types/database.types").Json;
3520
- p_status?: Database["public"]["Enums"]["worker_status"];
3521
- p_user_id?: string;
3236
+ p_status?: Database["public"]["Enums"]["server_status"];
3522
3237
  };
3523
- Returns: {
3524
- cloudflared_token: string | null;
3525
- created_at: string;
3526
- host_id: string | null;
3527
- id: string;
3528
- is_shared: boolean | null;
3529
- latest_pull_at: string | null;
3530
- name: string | null;
3531
- runtime: string | null;
3532
- state: import("../types/database.types").Json | null;
3533
- status: Database["public"]["Enums"]["worker_status"] | null;
3534
- updated_at: string;
3535
- user_id: string | null;
3536
- }[];
3238
+ Returns: Database["public"]["CompositeTypes"]["server_instance_record"][];
3239
+ SetofOptions: {
3240
+ from: "*";
3241
+ to: "server_instance_record";
3242
+ isOneToOne: false;
3243
+ isSetofReturn: true;
3244
+ };
3245
+ };
3246
+ service_health_summary: {
3247
+ Args: never;
3248
+ Returns: Database["public"]["CompositeTypes"]["service_health_record"][];
3537
3249
  SetofOptions: {
3538
3250
  from: "*";
3539
- to: "servers";
3251
+ to: "service_health_record";
3540
3252
  isOneToOne: false;
3541
3253
  isSetofReturn: true;
3542
3254
  };
@@ -3555,6 +3267,19 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
3555
3267
  };
3556
3268
  Returns: undefined;
3557
3269
  };
3270
+ sys_event_log: {
3271
+ Args: {
3272
+ p_content: string;
3273
+ p_event_type: string;
3274
+ p_level?: string;
3275
+ p_meta?: import("../types/database.types").Json;
3276
+ p_module?: string;
3277
+ p_notify_admins?: boolean;
3278
+ p_resource_id?: string;
3279
+ p_resource_type?: string;
3280
+ };
3281
+ Returns: string;
3282
+ };
3558
3283
  sys_get_db_schema: {
3559
3284
  Args: {
3560
3285
  p_excluded_tables?: string[];
@@ -3569,6 +3294,37 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
3569
3294
  };
3570
3295
  Returns: undefined;
3571
3296
  };
3297
+ sys_log_list: {
3298
+ Args: {
3299
+ p_cursor?: string;
3300
+ p_event_type?: string;
3301
+ p_level_max?: Database["public"]["Enums"]["sys_log_level"];
3302
+ p_limit?: number;
3303
+ p_module?: string;
3304
+ p_resource_id?: string;
3305
+ p_resource_type?: string;
3306
+ };
3307
+ Returns: Database["public"]["CompositeTypes"]["sys_log_record"][];
3308
+ SetofOptions: {
3309
+ from: "*";
3310
+ to: "sys_log_record";
3311
+ isOneToOne: false;
3312
+ isSetofReturn: true;
3313
+ };
3314
+ };
3315
+ sys_log_validate_meta: {
3316
+ Args: {
3317
+ p_event_type: string;
3318
+ p_meta: import("../types/database.types").Json;
3319
+ };
3320
+ Returns: boolean;
3321
+ };
3322
+ sys_logs_cleanup: {
3323
+ Args: {
3324
+ p_retention_days?: number;
3325
+ };
3326
+ Returns: undefined;
3327
+ };
3572
3328
  system_config_public_delete: {
3573
3329
  Args: {
3574
3330
  p_key: string;
@@ -3584,15 +3340,21 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
3584
3340
  system_config_public_list: {
3585
3341
  Args: never;
3586
3342
  Returns: {
3587
- description: string;
3343
+ created_at: string | null;
3344
+ description: string | null;
3588
3345
  key: string;
3589
- updated_at: string;
3346
+ updated_at: string | null;
3590
3347
  value: import("../types/database.types").Json;
3591
3348
  }[];
3349
+ SetofOptions: {
3350
+ from: "*";
3351
+ to: "system_config_public";
3352
+ isOneToOne: false;
3353
+ isSetofReturn: true;
3354
+ };
3592
3355
  };
3593
3356
  system_config_public_set: {
3594
3357
  Args: {
3595
- p_description?: string;
3596
3358
  p_key: string;
3597
3359
  p_value: import("../types/database.types").Json;
3598
3360
  };
@@ -3628,80 +3390,493 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
3628
3390
  isSetofReturn: true;
3629
3391
  };
3630
3392
  };
3631
- task_submit: {
3632
- Args: {
3633
- p_payload: import("../types/database.types").Json;
3634
- p_type: string;
3635
- };
3636
- Returns: import("../types/database.types").Json;
3637
- };
3638
- tear_down_test_data: {
3639
- Args: never;
3640
- Returns: import("../types/database.types").Json;
3641
- };
3642
- telegram_login_start: {
3643
- Args: {
3644
- p_account_id: string;
3645
- };
3646
- Returns: undefined;
3647
- };
3648
- telegram_login_submit_2fa: {
3649
- Args: {
3650
- p_account_id: string;
3651
- p_password: string;
3652
- };
3653
- Returns: undefined;
3654
- };
3655
- telegram_login_submit_code: {
3393
+ task_ack: {
3656
3394
  Args: {
3657
- p_account_id: string;
3658
- p_code: string;
3395
+ p_msg_id: number;
3659
3396
  };
3660
3397
  Returns: undefined;
3661
3398
  };
3662
- test_lint_all_plpgsql_functions: {
3663
- Args: never;
3664
- Returns: {
3665
- check_result: string;
3666
- function_name: string;
3667
- severity: string;
3668
- }[];
3669
- };
3670
- uid_by_email: {
3399
+ task_attempt_dispatch: {
3671
3400
  Args: {
3672
- email: string;
3401
+ p_task: Database["public"]["Tables"]["tasks"]["Row"];
3673
3402
  };
3674
3403
  Returns: {
3404
+ code: string | null;
3405
+ code_type: Database["public"]["Enums"]["task_code_type"] | null;
3406
+ completed_at: string | null;
3407
+ context_id: string | null;
3408
+ context_type: string | null;
3409
+ created_at: string;
3410
+ description: string | null;
3411
+ error: string | null;
3412
+ executor_id: string | null;
3413
+ executor_type: string | null;
3675
3414
  id: string;
3676
- }[];
3415
+ max_retries: number;
3416
+ meta: import("../types/database.types").Json;
3417
+ parent_id: string | null;
3418
+ priority: number;
3419
+ result: import("../types/database.types").Json | null;
3420
+ result_text: string | null;
3421
+ retry_count: number;
3422
+ scheduled_at: string | null;
3423
+ started_at: string | null;
3424
+ status: Database["public"]["Enums"]["task_status"];
3425
+ tags: string[];
3426
+ title: string;
3427
+ updated_at: string;
3428
+ user_id: string;
3429
+ };
3430
+ SetofOptions: {
3431
+ from: "tasks";
3432
+ to: "tasks";
3433
+ isOneToOne: true;
3434
+ isSetofReturn: false;
3435
+ };
3677
3436
  };
3678
- user_log_list: {
3437
+ task_cancel: {
3679
3438
  Args: {
3680
- p_page?: number;
3681
- p_page_size?: number;
3439
+ p_id: string;
3682
3440
  };
3683
3441
  Returns: {
3684
- content: string;
3442
+ code: string | null;
3443
+ code_type: Database["public"]["Enums"]["task_code_type"] | null;
3444
+ completed_at: string | null;
3445
+ context_id: string | null;
3446
+ context_type: string | null;
3685
3447
  created_at: string;
3686
- event_type: string;
3687
- id: string;
3688
- level: string;
3448
+ description: string | null;
3449
+ error: string | null;
3450
+ executor_id: string | null;
3451
+ executor_type: string | null;
3452
+ id: string;
3453
+ max_retries: number;
3689
3454
  meta: import("../types/database.types").Json;
3690
- resource_id: string;
3691
- resource_type: string;
3455
+ parent_id: string | null;
3456
+ priority: number;
3457
+ result: import("../types/database.types").Json | null;
3458
+ result_text: string | null;
3459
+ retry_count: number;
3460
+ scheduled_at: string | null;
3461
+ started_at: string | null;
3462
+ status: Database["public"]["Enums"]["task_status"];
3463
+ tags: string[];
3464
+ title: string;
3465
+ updated_at: string;
3466
+ user_id: string;
3692
3467
  }[];
3468
+ SetofOptions: {
3469
+ from: "*";
3470
+ to: "tasks";
3471
+ isOneToOne: false;
3472
+ isSetofReturn: true;
3473
+ };
3693
3474
  };
3694
- user_log_record: {
3475
+ task_complete: {
3695
3476
  Args: {
3696
- p_content: string;
3697
- p_event_type: string;
3698
- p_level?: string;
3477
+ p_error?: string;
3478
+ p_id: string;
3479
+ p_result?: import("../types/database.types").Json;
3480
+ p_result_text?: string;
3481
+ p_success: boolean;
3482
+ };
3483
+ Returns: {
3484
+ code: string | null;
3485
+ code_type: Database["public"]["Enums"]["task_code_type"] | null;
3486
+ completed_at: string | null;
3487
+ context_id: string | null;
3488
+ context_type: string | null;
3489
+ created_at: string;
3490
+ description: string | null;
3491
+ error: string | null;
3492
+ executor_id: string | null;
3493
+ executor_type: string | null;
3494
+ id: string;
3495
+ max_retries: number;
3496
+ meta: import("../types/database.types").Json;
3497
+ parent_id: string | null;
3498
+ priority: number;
3499
+ result: import("../types/database.types").Json | null;
3500
+ result_text: string | null;
3501
+ retry_count: number;
3502
+ scheduled_at: string | null;
3503
+ started_at: string | null;
3504
+ status: Database["public"]["Enums"]["task_status"];
3505
+ tags: string[];
3506
+ title: string;
3507
+ updated_at: string;
3508
+ user_id: string;
3509
+ }[];
3510
+ SetofOptions: {
3511
+ from: "*";
3512
+ to: "tasks";
3513
+ isOneToOne: false;
3514
+ isSetofReturn: true;
3515
+ };
3516
+ };
3517
+ task_derive: {
3518
+ Args: {
3519
+ p_code: string;
3520
+ p_code_type: Database["public"]["Enums"]["task_code_type"];
3521
+ p_description?: string;
3699
3522
  p_meta?: import("../types/database.types").Json;
3700
- p_resource_id?: string;
3701
- p_resource_type?: string;
3523
+ p_parent_id: string;
3524
+ p_title: string;
3525
+ };
3526
+ Returns: {
3527
+ code: string | null;
3528
+ code_type: Database["public"]["Enums"]["task_code_type"] | null;
3529
+ completed_at: string | null;
3530
+ context_id: string | null;
3531
+ context_type: string | null;
3532
+ created_at: string;
3533
+ description: string | null;
3534
+ error: string | null;
3535
+ executor_id: string | null;
3536
+ executor_type: string | null;
3537
+ id: string;
3538
+ max_retries: number;
3539
+ meta: import("../types/database.types").Json;
3540
+ parent_id: string | null;
3541
+ priority: number;
3542
+ result: import("../types/database.types").Json | null;
3543
+ result_text: string | null;
3544
+ retry_count: number;
3545
+ scheduled_at: string | null;
3546
+ started_at: string | null;
3547
+ status: Database["public"]["Enums"]["task_status"];
3548
+ tags: string[];
3549
+ title: string;
3550
+ updated_at: string;
3551
+ user_id: string;
3552
+ }[];
3553
+ SetofOptions: {
3554
+ from: "*";
3555
+ to: "tasks";
3556
+ isOneToOne: false;
3557
+ isSetofReturn: true;
3558
+ };
3559
+ };
3560
+ task_get: {
3561
+ Args: {
3562
+ p_id: string;
3563
+ };
3564
+ Returns: {
3565
+ code: string | null;
3566
+ code_type: Database["public"]["Enums"]["task_code_type"] | null;
3567
+ completed_at: string | null;
3568
+ context_id: string | null;
3569
+ context_type: string | null;
3570
+ created_at: string;
3571
+ description: string | null;
3572
+ error: string | null;
3573
+ executor_id: string | null;
3574
+ executor_type: string | null;
3575
+ id: string;
3576
+ max_retries: number;
3577
+ meta: import("../types/database.types").Json;
3578
+ parent_id: string | null;
3579
+ priority: number;
3580
+ result: import("../types/database.types").Json | null;
3581
+ result_text: string | null;
3582
+ retry_count: number;
3583
+ scheduled_at: string | null;
3584
+ started_at: string | null;
3585
+ status: Database["public"]["Enums"]["task_status"];
3586
+ tags: string[];
3587
+ title: string;
3588
+ updated_at: string;
3589
+ user_id: string;
3590
+ }[];
3591
+ SetofOptions: {
3592
+ from: "*";
3593
+ to: "tasks";
3594
+ isOneToOne: false;
3595
+ isSetofReturn: true;
3596
+ };
3597
+ };
3598
+ task_list_cursor: {
3599
+ Args: {
3600
+ p_code_type?: Database["public"]["Enums"]["task_code_type"];
3601
+ p_context_id?: string;
3602
+ p_context_type?: string;
3603
+ p_cursor?: string;
3604
+ p_limit?: number;
3605
+ p_parent_id?: string;
3606
+ p_status?: Database["public"]["Enums"]["task_status"];
3607
+ p_tag?: string;
3608
+ };
3609
+ Returns: {
3610
+ code: string | null;
3611
+ code_type: Database["public"]["Enums"]["task_code_type"] | null;
3612
+ completed_at: string | null;
3613
+ context_id: string | null;
3614
+ context_type: string | null;
3615
+ created_at: string;
3616
+ description: string | null;
3617
+ error: string | null;
3618
+ executor_id: string | null;
3619
+ executor_type: string | null;
3620
+ id: string;
3621
+ max_retries: number;
3622
+ meta: import("../types/database.types").Json;
3623
+ parent_id: string | null;
3624
+ priority: number;
3625
+ result: import("../types/database.types").Json | null;
3626
+ result_text: string | null;
3627
+ retry_count: number;
3628
+ scheduled_at: string | null;
3629
+ started_at: string | null;
3630
+ status: Database["public"]["Enums"]["task_status"];
3631
+ tags: string[];
3632
+ title: string;
3633
+ updated_at: string;
3634
+ user_id: string;
3635
+ }[];
3636
+ SetofOptions: {
3637
+ from: "*";
3638
+ to: "tasks";
3639
+ isOneToOne: false;
3640
+ isSetofReturn: true;
3641
+ };
3642
+ };
3643
+ task_schedule_next: {
3644
+ Args: never;
3645
+ Returns: undefined;
3646
+ };
3647
+ task_submit: {
3648
+ Args: {
3649
+ p_id: string;
3650
+ };
3651
+ Returns: {
3652
+ code: string | null;
3653
+ code_type: Database["public"]["Enums"]["task_code_type"] | null;
3654
+ completed_at: string | null;
3655
+ context_id: string | null;
3656
+ context_type: string | null;
3657
+ created_at: string;
3658
+ description: string | null;
3659
+ error: string | null;
3660
+ executor_id: string | null;
3661
+ executor_type: string | null;
3662
+ id: string;
3663
+ max_retries: number;
3664
+ meta: import("../types/database.types").Json;
3665
+ parent_id: string | null;
3666
+ priority: number;
3667
+ result: import("../types/database.types").Json | null;
3668
+ result_text: string | null;
3669
+ retry_count: number;
3670
+ scheduled_at: string | null;
3671
+ started_at: string | null;
3672
+ status: Database["public"]["Enums"]["task_status"];
3673
+ tags: string[];
3674
+ title: string;
3675
+ updated_at: string;
3676
+ user_id: string;
3677
+ }[];
3678
+ SetofOptions: {
3679
+ from: "*";
3680
+ to: "tasks";
3681
+ isOneToOne: false;
3682
+ isSetofReturn: true;
3683
+ };
3684
+ };
3685
+ task_timeout_check: {
3686
+ Args: never;
3687
+ Returns: undefined;
3688
+ };
3689
+ task_tree: {
3690
+ Args: {
3691
+ p_task_id: string;
3692
+ };
3693
+ Returns: {
3694
+ code: string | null;
3695
+ code_type: Database["public"]["Enums"]["task_code_type"] | null;
3696
+ completed_at: string | null;
3697
+ context_id: string | null;
3698
+ context_type: string | null;
3699
+ created_at: string;
3700
+ description: string | null;
3701
+ error: string | null;
3702
+ executor_id: string | null;
3703
+ executor_type: string | null;
3704
+ id: string;
3705
+ max_retries: number;
3706
+ meta: import("../types/database.types").Json;
3707
+ parent_id: string | null;
3708
+ priority: number;
3709
+ result: import("../types/database.types").Json | null;
3710
+ result_text: string | null;
3711
+ retry_count: number;
3712
+ scheduled_at: string | null;
3713
+ started_at: string | null;
3714
+ status: Database["public"]["Enums"]["task_status"];
3715
+ tags: string[];
3716
+ title: string;
3717
+ updated_at: string;
3718
+ user_id: string;
3719
+ }[];
3720
+ SetofOptions: {
3721
+ from: "*";
3722
+ to: "tasks";
3723
+ isOneToOne: false;
3724
+ isSetofReturn: true;
3725
+ };
3726
+ };
3727
+ task_upsert: {
3728
+ Args: {
3729
+ p_code?: string;
3730
+ p_code_type?: Database["public"]["Enums"]["task_code_type"];
3731
+ p_context_id?: string;
3732
+ p_context_type?: string;
3733
+ p_description?: string;
3734
+ p_executor_id?: string;
3735
+ p_executor_type?: string;
3736
+ p_id?: string;
3737
+ p_max_retries?: number;
3738
+ p_meta?: import("../types/database.types").Json;
3739
+ p_parent_id?: string;
3740
+ p_priority?: number;
3741
+ p_scheduled_at?: string;
3742
+ p_status?: Database["public"]["Enums"]["task_status"];
3743
+ p_tags?: string[];
3744
+ p_title?: string;
3745
+ };
3746
+ Returns: {
3747
+ code: string | null;
3748
+ code_type: Database["public"]["Enums"]["task_code_type"] | null;
3749
+ completed_at: string | null;
3750
+ context_id: string | null;
3751
+ context_type: string | null;
3752
+ created_at: string;
3753
+ description: string | null;
3754
+ error: string | null;
3755
+ executor_id: string | null;
3756
+ executor_type: string | null;
3757
+ id: string;
3758
+ max_retries: number;
3759
+ meta: import("../types/database.types").Json;
3760
+ parent_id: string | null;
3761
+ priority: number;
3762
+ result: import("../types/database.types").Json | null;
3763
+ result_text: string | null;
3764
+ retry_count: number;
3765
+ scheduled_at: string | null;
3766
+ started_at: string | null;
3767
+ status: Database["public"]["Enums"]["task_status"];
3768
+ tags: string[];
3769
+ title: string;
3770
+ updated_at: string;
3771
+ user_id: string;
3772
+ }[];
3773
+ SetofOptions: {
3774
+ from: "*";
3775
+ to: "tasks";
3776
+ isOneToOne: false;
3777
+ isSetofReturn: true;
3778
+ };
3779
+ };
3780
+ telegram_login_start: {
3781
+ Args: {
3782
+ p_account_id: string;
3783
+ p_use_sms?: boolean;
3784
+ };
3785
+ Returns: undefined;
3786
+ };
3787
+ telegram_login_submit_2fa: {
3788
+ Args: {
3789
+ p_account_id: string;
3790
+ p_password: string;
3791
+ };
3792
+ Returns: undefined;
3793
+ };
3794
+ telegram_login_submit_code: {
3795
+ Args: {
3796
+ p_account_id: string;
3797
+ p_code: string;
3798
+ };
3799
+ Returns: undefined;
3800
+ };
3801
+ traffic_log_delete: {
3802
+ Args: never;
3803
+ Returns: undefined;
3804
+ };
3805
+ traffic_log_insert: {
3806
+ Args: {
3807
+ p_logs: import("../types/database.types").Json;
3808
+ };
3809
+ Returns: undefined;
3810
+ };
3811
+ traffic_log_list: {
3812
+ Args: {
3813
+ p_limit?: number;
3814
+ p_offset?: number;
3815
+ };
3816
+ Returns: {
3817
+ client_ip: string | null;
3818
+ created_at: string | null;
3819
+ error: string | null;
3820
+ host: string | null;
3821
+ id: string;
3822
+ method: string | null;
3823
+ path: string | null;
3824
+ request_headers: import("../types/database.types").Json | null;
3825
+ response_headers: import("../types/database.types").Json | null;
3826
+ scheme: string | null;
3827
+ started_at: string | null;
3828
+ status_code: number | null;
3829
+ url: string | null;
3830
+ user_id: string | null;
3831
+ worker_id: string | null;
3832
+ }[];
3833
+ SetofOptions: {
3834
+ from: "*";
3835
+ to: "traffic_logs";
3836
+ isOneToOne: false;
3837
+ isSetofReturn: true;
3838
+ };
3839
+ };
3840
+ user_create: {
3841
+ Args: {
3842
+ p_email: string;
3843
+ p_full_name?: string;
3844
+ p_password: string;
3845
+ p_role?: Database["public"]["Enums"]["app_role"];
3846
+ p_user_id?: string;
3702
3847
  };
3703
3848
  Returns: string;
3704
- } | {
3849
+ };
3850
+ user_delete: {
3851
+ Args: {
3852
+ p_user_id: string;
3853
+ };
3854
+ Returns: undefined;
3855
+ };
3856
+ user_log_list: {
3857
+ Args: {
3858
+ p_page?: number;
3859
+ p_page_size?: number;
3860
+ };
3861
+ Returns: {
3862
+ content: string | null;
3863
+ created_at: string | null;
3864
+ event_type: string;
3865
+ id: string;
3866
+ level: string;
3867
+ meta: import("../types/database.types").Json | null;
3868
+ resource_id: string | null;
3869
+ resource_type: string | null;
3870
+ user_id: string;
3871
+ }[];
3872
+ SetofOptions: {
3873
+ from: "*";
3874
+ to: "user_logs";
3875
+ isOneToOne: false;
3876
+ isSetofReturn: true;
3877
+ };
3878
+ };
3879
+ user_log_record: {
3705
3880
  Args: {
3706
3881
  p_content: string;
3707
3882
  p_event_type: string;
@@ -3713,6 +3888,12 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
3713
3888
  };
3714
3889
  Returns: string;
3715
3890
  };
3891
+ user_notifications_cleanup: {
3892
+ Args: {
3893
+ p_retention_days?: number;
3894
+ };
3895
+ Returns: undefined;
3896
+ };
3716
3897
  user_profile_get: {
3717
3898
  Args: never;
3718
3899
  Returns: Database["public"]["CompositeTypes"]["user_profile_record"][];
@@ -3745,42 +3926,25 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
3745
3926
  isSetofReturn: false;
3746
3927
  };
3747
3928
  };
3748
- worker_ack: {
3929
+ user_role_delete: {
3749
3930
  Args: {
3750
- p_instance_id: string;
3751
- p_msg_id: number;
3931
+ p_role: Database["public"]["Enums"]["app_role"];
3932
+ p_user_id: string;
3752
3933
  };
3753
3934
  Returns: undefined;
3754
3935
  };
3755
- worker_process_queue: {
3936
+ user_role_list: {
3756
3937
  Args: {
3757
- p_limit?: number;
3758
- p_queue: string;
3759
- };
3760
- Returns: undefined;
3761
- };
3762
- worker_prune_queues: {
3763
- Args: never;
3764
- Returns: undefined;
3765
- };
3766
- worker_pull: {
3767
- Args: {
3768
- p_instance_id: string;
3938
+ p_user_id: string;
3769
3939
  };
3770
- Returns: import("../types/database.types").Json[];
3940
+ Returns: Database["public"]["Enums"]["app_role"][];
3771
3941
  };
3772
- worker_task_upsert: {
3942
+ user_role_upsert: {
3773
3943
  Args: {
3774
- p_error?: string;
3775
- p_id?: string;
3776
- p_payload?: import("../types/database.types").Json;
3777
- p_result?: import("../types/database.types").Json;
3778
- p_session_id?: string;
3779
- p_status?: string;
3780
- p_type?: string;
3781
- p_user_id?: string;
3944
+ p_role: Database["public"]["Enums"]["app_role"];
3945
+ p_user_id: string;
3782
3946
  };
3783
- Returns: string;
3947
+ Returns: undefined;
3784
3948
  };
3785
3949
  };
3786
3950
  Enums: {
@@ -3790,10 +3954,16 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
3790
3954
  chat_visibility: "private" | "public";
3791
3955
  cloud_account_status: "pending" | "active" | "token_expired" | "needs_reauth" | "quota_exceeded" | "suspended" | "disabled";
3792
3956
  compute_node_status: "online" | "offline";
3957
+ server_status: "created" | "online" | "offline" | "error";
3958
+ sys_log_level: "error" | "warn" | "info";
3959
+ task_code_type: "sql" | "bash" | "python" | "agent" | "javascript";
3960
+ task_status: "draft" | "pending" | "queued" | "running" | "completed" | "failed" | "cancelled" | "paused";
3793
3961
  telegram_login_step: "pending" | "send_code" | "wait_code" | "verify_code" | "need_2fa" | "success" | "failed" | "fetch_info";
3794
- worker_status: "starting" | "running" | "stopping" | "stopped" | "offline";
3795
3962
  };
3796
3963
  CompositeTypes: {
3964
+ adk_artifact_key_record: {
3965
+ filename: string | null;
3966
+ };
3797
3967
  adk_artifact_meta_record: {
3798
3968
  version: number | null;
3799
3969
  canonical_uri: string | null;
@@ -3801,6 +3971,29 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
3801
3971
  create_time: number | null;
3802
3972
  mime_type: string | null;
3803
3973
  };
3974
+ audit_project_record: {
3975
+ id: string | null;
3976
+ created_at: string | null;
3977
+ updated_at: string | null;
3978
+ user_id: string | null;
3979
+ name: string | null;
3980
+ target: string | null;
3981
+ repo_url: string | null;
3982
+ repo_branch: string | null;
3983
+ config: import("../types/database.types").Json | null;
3984
+ worker_id: string | null;
3985
+ };
3986
+ audit_project_stats_record: {
3987
+ asset_count: number | null;
3988
+ finding_count: number | null;
3989
+ high_risk_count: number | null;
3990
+ task_count: number | null;
3991
+ };
3992
+ bootstrap_result: {
3993
+ success: boolean | null;
3994
+ error: string | null;
3995
+ config: import("../types/database.types").Json | null;
3996
+ };
3804
3997
  browser_record: {
3805
3998
  id: string | null;
3806
3999
  created_at: string | null;
@@ -3859,6 +4052,22 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
3859
4052
  device_history: import("../types/database.types").Json[] | null;
3860
4053
  credentials: import("../types/database.types").Json | null;
3861
4054
  };
4055
+ compute_node_list_record: {
4056
+ id: string | null;
4057
+ user_id: string | null;
4058
+ name: string | null;
4059
+ provider: string | null;
4060
+ host: string | null;
4061
+ port: number | null;
4062
+ username: string | null;
4063
+ auth_secret: string | null;
4064
+ status: Database["public"]["Enums"]["compute_node_status"] | null;
4065
+ worker_count: number | null;
4066
+ updated_at: string | null;
4067
+ is_public: boolean | null;
4068
+ created_at: string | null;
4069
+ full_count: number | null;
4070
+ };
3862
4071
  compute_node_record: {
3863
4072
  id: string | null;
3864
4073
  user_id: string | null;
@@ -3874,6 +4083,12 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
3874
4083
  is_public: boolean | null;
3875
4084
  created_at: string | null;
3876
4085
  };
4086
+ compute_node_secret_record: {
4087
+ host: string | null;
4088
+ port: number | null;
4089
+ username: string | null;
4090
+ auth_secret: string | null;
4091
+ };
3877
4092
  contact_record: {
3878
4093
  id: string | null;
3879
4094
  created_at: string | null;
@@ -3898,6 +4113,12 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
3898
4113
  suggestion: string | null;
3899
4114
  severity: string | null;
3900
4115
  };
4116
+ job_queue_dlq_record: {
4117
+ msg_id: number | null;
4118
+ read_ct: number | null;
4119
+ enqueued_at: string | null;
4120
+ message: import("../types/database.types").Json | null;
4121
+ };
3901
4122
  outreach_task_record: {
3902
4123
  id: string | null;
3903
4124
  created_at: string | null;
@@ -3914,28 +4135,58 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
3914
4135
  error_message: string | null;
3915
4136
  metadata: import("../types/database.types").Json | null;
3916
4137
  };
4138
+ proxy_record: {
4139
+ id: string | null;
4140
+ created_at: string | null;
4141
+ updated_at: string | null;
4142
+ name: string | null;
4143
+ description: string | null;
4144
+ url: string | null;
4145
+ type: string | null;
4146
+ enabled: boolean | null;
4147
+ user_id: string | null;
4148
+ };
4149
+ resource_list_record: {
4150
+ id: string | null;
4151
+ target_id: string | null;
4152
+ title: string | null;
4153
+ description: string | null;
4154
+ icon: string | null;
4155
+ type: string | null;
4156
+ url: string | null;
4157
+ updated_at: string | null;
4158
+ };
3917
4159
  server_instance_record: {
3918
4160
  id: string | null;
3919
4161
  name: string | null;
3920
4162
  updated_at: string | null;
3921
4163
  config: import("../types/database.types").Json | null;
3922
- status: Database["public"]["Enums"]["worker_status"] | null;
3923
- host_id: string | null;
4164
+ status: Database["public"]["Enums"]["server_status"] | null;
3924
4165
  is_public: boolean | null;
3925
4166
  state: import("../types/database.types").Json | null;
3926
4167
  created_at: string | null;
3927
4168
  user_id: string | null;
3928
- container_id: string | null;
3929
- is_managed: boolean | null;
3930
- type: string | null;
3931
- runtime: string | null;
3932
4169
  is_shared: boolean | null;
3933
- latest_pull_at: string | null;
3934
- host_name: string | null;
3935
- host_address: string | null;
3936
- host_user: string | null;
3937
- host_port: number | null;
3938
- host_auth_secret: string | null;
4170
+ };
4171
+ service_health_record: {
4172
+ module: string | null;
4173
+ status: string | null;
4174
+ last_error_at: string | null;
4175
+ last_error_message: string | null;
4176
+ error_count_24h: number | null;
4177
+ };
4178
+ sys_log_record: {
4179
+ id: number | null;
4180
+ created_at: string | null;
4181
+ text: string | null;
4182
+ level: Database["public"]["Enums"]["sys_log_level"] | null;
4183
+ module: string | null;
4184
+ event_type: string | null;
4185
+ meta: import("../types/database.types").Json | null;
4186
+ resource_type: string | null;
4187
+ resource_id: string | null;
4188
+ resource_name: string | null;
4189
+ user_id: string | null;
3939
4190
  };
3940
4191
  tag_record: {
3941
4192
  id: string | null;
@@ -3946,11 +4197,6 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
3946
4197
  updated_at: string | null;
3947
4198
  instance_count: number | null;
3948
4199
  };
3949
- test_result: {
3950
- test_name: string | null;
3951
- passed: boolean | null;
3952
- message: string | null;
3953
- };
3954
4200
  user_notification_record: {
3955
4201
  id: string | null;
3956
4202
  created_at: string | null;
@@ -3980,6 +4226,6 @@ export declare function useSupabaseServer(cookieStore: Awaited<ReturnType<typeof
3980
4226
  };
3981
4227
  };
3982
4228
  }, {
3983
- PostgrestVersion: "13.0.5";
4229
+ PostgrestVersion: "12";
3984
4230
  }>;
3985
4231
  //# sourceMappingURL=supabase-client.d.ts.map