mtmsdk 0.0.45 → 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
@@ -7,10 +7,30 @@ export type Json =
7
7
  | Json[]
8
8
 
9
9
  export type Database = {
10
- // Allows to automatically instantiate createClient with right options
11
- // instead of createClient<Database, { PostgrestVersion: 'XX' }>(URL, KEY)
12
- __InternalSupabase: {
13
- PostgrestVersion: "13.0.5"
10
+ graphql_public: {
11
+ Tables: {
12
+ [_ in never]: never
13
+ }
14
+ Views: {
15
+ [_ in never]: never
16
+ }
17
+ Functions: {
18
+ graphql: {
19
+ Args: {
20
+ extensions?: Json
21
+ operationName?: string
22
+ query?: string
23
+ variables?: Json
24
+ }
25
+ Returns: Json
26
+ }
27
+ }
28
+ Enums: {
29
+ [_ in never]: never
30
+ }
31
+ CompositeTypes: {
32
+ [_ in never]: never
33
+ }
14
34
  }
15
35
  public: {
16
36
  Tables: {
@@ -368,7 +388,7 @@ export type Database = {
368
388
  foreignKeyName: "audit_findings_task_id_fkey"
369
389
  columns: ["task_id"]
370
390
  isOneToOne: false
371
- referencedRelation: "audit_tasks"
391
+ referencedRelation: "tasks"
372
392
  referencedColumns: ["id"]
373
393
  },
374
394
  ]
@@ -511,70 +531,6 @@ export type Database = {
511
531
  },
512
532
  ]
513
533
  }
514
- audit_tasks: {
515
- Row: {
516
- created_at: string
517
- id: string
518
- instructions: string | null
519
- logs_url: string | null
520
- project_id: string
521
- result_summary: string | null
522
- sandbox_id: string | null
523
- skill_id: string | null
524
- status: string | null
525
- updated_at: string
526
- user_id: string | null
527
- }
528
- Insert: {
529
- created_at?: string
530
- id?: string
531
- instructions?: string | null
532
- logs_url?: string | null
533
- project_id: string
534
- result_summary?: string | null
535
- sandbox_id?: string | null
536
- skill_id?: string | null
537
- status?: string | null
538
- updated_at?: string
539
- user_id?: string | null
540
- }
541
- Update: {
542
- created_at?: string
543
- id?: string
544
- instructions?: string | null
545
- logs_url?: string | null
546
- project_id?: string
547
- result_summary?: string | null
548
- sandbox_id?: string | null
549
- skill_id?: string | null
550
- status?: string | null
551
- updated_at?: string
552
- user_id?: string | null
553
- }
554
- Relationships: [
555
- {
556
- foreignKeyName: "audit_tasks_project_id_fkey"
557
- columns: ["project_id"]
558
- isOneToOne: false
559
- referencedRelation: "audit_projects"
560
- referencedColumns: ["id"]
561
- },
562
- {
563
- foreignKeyName: "audit_tasks_sandbox_id_fkey"
564
- columns: ["sandbox_id"]
565
- isOneToOne: false
566
- referencedRelation: "resources"
567
- referencedColumns: ["id"]
568
- },
569
- {
570
- foreignKeyName: "audit_tasks_skill_id_fkey"
571
- columns: ["skill_id"]
572
- isOneToOne: false
573
- referencedRelation: "audit_skills"
574
- referencedColumns: ["id"]
575
- },
576
- ]
577
- }
578
534
  browsers: {
579
535
  Row: {
580
536
  cdpUrl: string | null
@@ -1318,56 +1274,42 @@ export type Database = {
1318
1274
  }
1319
1275
  servers: {
1320
1276
  Row: {
1321
- cloudflared_token: string | null
1277
+ config: Json | null
1322
1278
  created_at: string
1323
- host_id: string | null
1324
1279
  id: string
1280
+ is_public: boolean | null
1325
1281
  is_shared: boolean | null
1326
- latest_pull_at: string | null
1327
1282
  name: string | null
1328
- runtime: string | null
1329
1283
  state: Json | null
1330
- status: Database["public"]["Enums"]["worker_status"] | null
1284
+ status: Database["public"]["Enums"]["server_status"] | null
1331
1285
  updated_at: string
1332
1286
  user_id: string | null
1333
1287
  }
1334
1288
  Insert: {
1335
- cloudflared_token?: string | null
1289
+ config?: Json | null
1336
1290
  created_at?: string
1337
- host_id?: string | null
1338
1291
  id: string
1292
+ is_public?: boolean | null
1339
1293
  is_shared?: boolean | null
1340
- latest_pull_at?: string | null
1341
1294
  name?: string | null
1342
- runtime?: string | null
1343
1295
  state?: Json | null
1344
- status?: Database["public"]["Enums"]["worker_status"] | null
1296
+ status?: Database["public"]["Enums"]["server_status"] | null
1345
1297
  updated_at?: string
1346
1298
  user_id?: string | null
1347
1299
  }
1348
1300
  Update: {
1349
- cloudflared_token?: string | null
1301
+ config?: Json | null
1350
1302
  created_at?: string
1351
- host_id?: string | null
1352
1303
  id?: string
1304
+ is_public?: boolean | null
1353
1305
  is_shared?: boolean | null
1354
- latest_pull_at?: string | null
1355
1306
  name?: string | null
1356
- runtime?: string | null
1357
1307
  state?: Json | null
1358
- status?: Database["public"]["Enums"]["worker_status"] | null
1308
+ status?: Database["public"]["Enums"]["server_status"] | null
1359
1309
  updated_at?: string
1360
1310
  user_id?: string | null
1361
1311
  }
1362
- Relationships: [
1363
- {
1364
- foreignKeyName: "workers_host_id_fkey"
1365
- columns: ["host_id"]
1366
- isOneToOne: false
1367
- referencedRelation: "compute_nodes"
1368
- referencedColumns: ["id"]
1369
- },
1370
- ]
1312
+ Relationships: []
1371
1313
  }
1372
1314
  sys_config: {
1373
1315
  Row: {
@@ -1396,25 +1338,37 @@ export type Database = {
1396
1338
  sys_logs: {
1397
1339
  Row: {
1398
1340
  created_at: string
1341
+ event_type: string | null
1399
1342
  id: number
1400
- level: number | null
1343
+ level: Database["public"]["Enums"]["sys_log_level"] | null
1344
+ meta: Json | null
1401
1345
  module: string | null
1346
+ resource_id: string | null
1347
+ resource_type: string | null
1402
1348
  text: string | null
1403
1349
  user_id: string | null
1404
1350
  }
1405
1351
  Insert: {
1406
1352
  created_at?: string
1353
+ event_type?: string | null
1407
1354
  id?: number
1408
- level?: number | null
1355
+ level?: Database["public"]["Enums"]["sys_log_level"] | null
1356
+ meta?: Json | null
1409
1357
  module?: string | null
1358
+ resource_id?: string | null
1359
+ resource_type?: string | null
1410
1360
  text?: string | null
1411
1361
  user_id?: string | null
1412
1362
  }
1413
1363
  Update: {
1414
1364
  created_at?: string
1365
+ event_type?: string | null
1415
1366
  id?: number
1416
- level?: number | null
1367
+ level?: Database["public"]["Enums"]["sys_log_level"] | null
1368
+ meta?: Json | null
1417
1369
  module?: string | null
1370
+ resource_id?: string | null
1371
+ resource_type?: string | null
1418
1372
  text?: string | null
1419
1373
  user_id?: string | null
1420
1374
  }
@@ -1471,6 +1425,152 @@ export type Database = {
1471
1425
  }
1472
1426
  Relationships: []
1473
1427
  }
1428
+ tasks: {
1429
+ Row: {
1430
+ code: string | null
1431
+ code_type: Database["public"]["Enums"]["task_code_type"] | null
1432
+ completed_at: string | null
1433
+ context_id: string | null
1434
+ context_type: string | null
1435
+ created_at: string
1436
+ description: string | null
1437
+ error: string | null
1438
+ executor_id: string | null
1439
+ executor_type: string | null
1440
+ id: string
1441
+ max_retries: number
1442
+ meta: Json
1443
+ parent_id: string | null
1444
+ priority: number
1445
+ result: Json | null
1446
+ result_text: string | null
1447
+ retry_count: number
1448
+ scheduled_at: string | null
1449
+ started_at: string | null
1450
+ status: Database["public"]["Enums"]["task_status"]
1451
+ tags: string[]
1452
+ title: string
1453
+ updated_at: string
1454
+ user_id: string
1455
+ }
1456
+ Insert: {
1457
+ code?: string | null
1458
+ code_type?: Database["public"]["Enums"]["task_code_type"] | null
1459
+ completed_at?: string | null
1460
+ context_id?: string | null
1461
+ context_type?: string | null
1462
+ created_at?: string
1463
+ description?: string | null
1464
+ error?: string | null
1465
+ executor_id?: string | null
1466
+ executor_type?: string | null
1467
+ id?: string
1468
+ max_retries?: number
1469
+ meta?: Json
1470
+ parent_id?: string | null
1471
+ priority?: number
1472
+ result?: Json | null
1473
+ result_text?: string | null
1474
+ retry_count?: number
1475
+ scheduled_at?: string | null
1476
+ started_at?: string | null
1477
+ status?: Database["public"]["Enums"]["task_status"]
1478
+ tags?: string[]
1479
+ title: string
1480
+ updated_at?: string
1481
+ user_id: string
1482
+ }
1483
+ Update: {
1484
+ code?: string | null
1485
+ code_type?: Database["public"]["Enums"]["task_code_type"] | null
1486
+ completed_at?: string | null
1487
+ context_id?: string | null
1488
+ context_type?: string | null
1489
+ created_at?: string
1490
+ description?: string | null
1491
+ error?: string | null
1492
+ executor_id?: string | null
1493
+ executor_type?: string | null
1494
+ id?: string
1495
+ max_retries?: number
1496
+ meta?: Json
1497
+ parent_id?: string | null
1498
+ priority?: number
1499
+ result?: Json | null
1500
+ result_text?: string | null
1501
+ retry_count?: number
1502
+ scheduled_at?: string | null
1503
+ started_at?: string | null
1504
+ status?: Database["public"]["Enums"]["task_status"]
1505
+ tags?: string[]
1506
+ title?: string
1507
+ updated_at?: string
1508
+ user_id?: string
1509
+ }
1510
+ Relationships: [
1511
+ {
1512
+ foreignKeyName: "tasks_parent_id_fkey"
1513
+ columns: ["parent_id"]
1514
+ isOneToOne: false
1515
+ referencedRelation: "tasks"
1516
+ referencedColumns: ["id"]
1517
+ },
1518
+ ]
1519
+ }
1520
+ traffic_logs: {
1521
+ Row: {
1522
+ client_ip: string | null
1523
+ created_at: string | null
1524
+ error: string | null
1525
+ host: string | null
1526
+ id: string
1527
+ method: string | null
1528
+ path: string | null
1529
+ request_headers: Json | null
1530
+ response_headers: Json | null
1531
+ scheme: string | null
1532
+ started_at: string | null
1533
+ status_code: number | null
1534
+ url: string | null
1535
+ user_id: string | null
1536
+ worker_id: string | null
1537
+ }
1538
+ Insert: {
1539
+ client_ip?: string | null
1540
+ created_at?: string | null
1541
+ error?: string | null
1542
+ host?: string | null
1543
+ id?: string
1544
+ method?: string | null
1545
+ path?: string | null
1546
+ request_headers?: Json | null
1547
+ response_headers?: Json | null
1548
+ scheme?: string | null
1549
+ started_at?: string | null
1550
+ status_code?: number | null
1551
+ url?: string | null
1552
+ user_id?: string | null
1553
+ worker_id?: string | null
1554
+ }
1555
+ Update: {
1556
+ client_ip?: string | null
1557
+ created_at?: string | null
1558
+ error?: string | null
1559
+ host?: string | null
1560
+ id?: string
1561
+ method?: string | null
1562
+ path?: string | null
1563
+ request_headers?: Json | null
1564
+ response_headers?: Json | null
1565
+ scheme?: string | null
1566
+ started_at?: string | null
1567
+ status_code?: number | null
1568
+ url?: string | null
1569
+ user_id?: string | null
1570
+ worker_id?: string | null
1571
+ }
1572
+ Relationships: []
1573
+ }
1474
1574
  user_logs: {
1475
1575
  Row: {
1476
1576
  content: string | null
@@ -1588,48 +1688,6 @@ export type Database = {
1588
1688
  }
1589
1689
  Relationships: []
1590
1690
  }
1591
- worker_tasks: {
1592
- Row: {
1593
- created_at: string
1594
- error: string | null
1595
- id: string
1596
- payload: Json
1597
- result: Json | null
1598
- session_id: string | null
1599
- status: string | null
1600
- type: string
1601
- updated_at: string
1602
- user_id: string | null
1603
- worker_id: string | null
1604
- }
1605
- Insert: {
1606
- created_at?: string
1607
- error?: string | null
1608
- id?: string
1609
- payload: Json
1610
- result?: Json | null
1611
- session_id?: string | null
1612
- status?: string | null
1613
- type: string
1614
- updated_at?: string
1615
- user_id?: string | null
1616
- worker_id?: string | null
1617
- }
1618
- Update: {
1619
- created_at?: string
1620
- error?: string | null
1621
- id?: string
1622
- payload?: Json
1623
- result?: Json | null
1624
- session_id?: string | null
1625
- status?: string | null
1626
- type?: string
1627
- updated_at?: string
1628
- user_id?: string | null
1629
- worker_id?: string | null
1630
- }
1631
- Relationships: []
1632
- }
1633
1691
  }
1634
1692
  Views: {
1635
1693
  [_ in never]: never
@@ -1683,9 +1741,13 @@ export type Database = {
1683
1741
  }
1684
1742
  adk_artifact_list_keys: {
1685
1743
  Args: { p_app_name: string; p_session_id: string; p_user_id: string }
1686
- Returns: {
1687
- filename: string
1688
- }[]
1744
+ Returns: Database["public"]["CompositeTypes"]["adk_artifact_key_record"][]
1745
+ SetofOptions: {
1746
+ from: "*"
1747
+ to: "adk_artifact_key_record"
1748
+ isOneToOne: false
1749
+ isSetofReturn: true
1750
+ }
1689
1751
  }
1690
1752
  adk_artifact_list_versions_meta: {
1691
1753
  Args: {
@@ -1918,25 +1980,6 @@ export type Database = {
1918
1980
  isSetofReturn: true
1919
1981
  }
1920
1982
  }
1921
- audit_asset_list: {
1922
- Args: { p_project_id: string; p_type?: string }
1923
- Returns: {
1924
- content: string
1925
- created_at: string
1926
- id: string
1927
- metadata: Json | null
1928
- project_id: string
1929
- status: string | null
1930
- type: string
1931
- updated_at: string
1932
- }[]
1933
- SetofOptions: {
1934
- from: "*"
1935
- to: "audit_assets"
1936
- isOneToOne: false
1937
- isSetofReturn: true
1938
- }
1939
- }
1940
1983
  audit_asset_list_cursor: {
1941
1984
  Args: {
1942
1985
  p_cursor?: string
@@ -1962,29 +2005,6 @@ export type Database = {
1962
2005
  isSetofReturn: true
1963
2006
  }
1964
2007
  }
1965
- audit_finding_list: {
1966
- Args: { p_project_id: string }
1967
- Returns: {
1968
- ai_analysis: string | null
1969
- created_at: string
1970
- description: string | null
1971
- id: string
1972
- project_id: string
1973
- proof_poc: string | null
1974
- remediation: string | null
1975
- severity: Database["public"]["Enums"]["audit_finding_severity"] | null
1976
- status: string | null
1977
- task_id: string | null
1978
- title: string
1979
- updated_at: string
1980
- }[]
1981
- SetofOptions: {
1982
- from: "*"
1983
- to: "audit_findings"
1984
- isOneToOne: false
1985
- isSetofReturn: true
1986
- }
1987
- }
1988
2008
  audit_finding_list_cursor: {
1989
2009
  Args: {
1990
2010
  p_cursor?: string
@@ -2028,52 +2048,31 @@ export type Database = {
2028
2048
  audit_project_count: { Args: { p_kw?: string }; Returns: number }
2029
2049
  audit_project_dashboard_stats: {
2030
2050
  Args: { p_project_id: string }
2031
- Returns: {
2032
- asset_count: number
2033
- finding_count: number
2034
- high_risk_count: number
2035
- task_count: number
2036
- }[]
2037
- }
2038
- audit_project_delete: { Args: { p_id: string }; Returns: undefined }
2051
+ Returns: Database["public"]["CompositeTypes"]["audit_project_stats_record"][]
2052
+ SetofOptions: {
2053
+ from: "*"
2054
+ to: "audit_project_stats_record"
2055
+ isOneToOne: false
2056
+ isSetofReturn: true
2057
+ }
2058
+ }
2059
+ audit_project_delete: { Args: { p_id: string }; Returns: undefined }
2039
2060
  audit_project_get: {
2040
2061
  Args: { p_id: string }
2041
- Returns: {
2042
- config: Json | null
2043
- created_at: string
2044
- id: string
2045
- name: string
2046
- repo_branch: string | null
2047
- repo_url: string | null
2048
- target: string | null
2049
- updated_at: string
2050
- user_id: string
2051
- worker_id: string | null
2052
- }[]
2062
+ Returns: Database["public"]["CompositeTypes"]["audit_project_record"][]
2053
2063
  SetofOptions: {
2054
2064
  from: "*"
2055
- to: "audit_projects"
2065
+ to: "audit_project_record"
2056
2066
  isOneToOne: false
2057
2067
  isSetofReturn: true
2058
2068
  }
2059
2069
  }
2060
2070
  audit_project_list: {
2061
2071
  Args: { p_kw?: string; p_page_no?: number; p_page_size?: number }
2062
- Returns: {
2063
- config: Json | null
2064
- created_at: string
2065
- id: string
2066
- name: string
2067
- repo_branch: string | null
2068
- repo_url: string | null
2069
- target: string | null
2070
- updated_at: string
2071
- user_id: string
2072
- worker_id: string | null
2073
- }[]
2072
+ Returns: Database["public"]["CompositeTypes"]["audit_project_record"][]
2074
2073
  SetofOptions: {
2075
2074
  from: "*"
2076
- to: "audit_projects"
2075
+ to: "audit_project_record"
2077
2076
  isOneToOne: false
2078
2077
  isSetofReturn: true
2079
2078
  }
@@ -2085,50 +2084,26 @@ export type Database = {
2085
2084
  p_kw?: string
2086
2085
  p_limit?: number
2087
2086
  }
2088
- Returns: {
2089
- config: Json | null
2090
- created_at: string
2091
- id: string
2092
- name: string
2093
- repo_branch: string | null
2094
- repo_url: string | null
2095
- target: string | null
2096
- updated_at: string
2097
- user_id: string
2098
- worker_id: string | null
2099
- }[]
2087
+ Returns: Database["public"]["CompositeTypes"]["audit_project_record"][]
2100
2088
  SetofOptions: {
2101
2089
  from: "*"
2102
- to: "audit_projects"
2103
- isOneToOne: false
2104
- isSetofReturn: true
2105
- }
2106
- }
2107
- audit_project_upsert:
2108
- | {
2109
- Args: {
2110
- p_config?: Json
2111
- p_id?: string
2112
- p_name?: string
2113
- p_repo_branch?: string
2114
- p_repo_url?: string
2115
- p_target?: string
2116
- p_worker_id?: string
2117
- }
2118
- Returns: string
2119
- }
2120
- | {
2121
- Args: {
2122
- p_config?: Json
2123
- p_id?: string
2124
- p_name: string
2125
- p_repo_branch?: string
2126
- p_repo_url?: string
2127
- p_target?: string
2128
- p_worker_id?: string
2129
- }
2130
- Returns: string
2131
- }
2090
+ to: "audit_project_record"
2091
+ isOneToOne: false
2092
+ isSetofReturn: true
2093
+ }
2094
+ }
2095
+ audit_project_upsert: {
2096
+ Args: {
2097
+ p_config?: Json
2098
+ p_id: string
2099
+ p_name: string
2100
+ p_repo_branch?: string
2101
+ p_repo_url?: string
2102
+ p_target?: string
2103
+ p_worker_id?: string
2104
+ }
2105
+ Returns: string
2106
+ }
2132
2107
  audit_skill_list: {
2133
2108
  Args: { p_project_id: string }
2134
2109
  Returns: {
@@ -2150,81 +2125,6 @@ export type Database = {
2150
2125
  isSetofReturn: true
2151
2126
  }
2152
2127
  }
2153
- audit_task_get: {
2154
- Args: { p_id: string }
2155
- Returns: {
2156
- created_at: string
2157
- id: string
2158
- instructions: string | null
2159
- logs_url: string | null
2160
- project_id: string
2161
- result_summary: string | null
2162
- sandbox_id: string | null
2163
- skill_id: string | null
2164
- status: string | null
2165
- updated_at: string
2166
- user_id: string | null
2167
- }[]
2168
- SetofOptions: {
2169
- from: "*"
2170
- to: "audit_tasks"
2171
- isOneToOne: false
2172
- isSetofReturn: true
2173
- }
2174
- }
2175
- audit_task_list: {
2176
- Args: { p_project_id: string }
2177
- Returns: {
2178
- created_at: string
2179
- id: string
2180
- instructions: string | null
2181
- logs_url: string | null
2182
- project_id: string
2183
- result_summary: string | null
2184
- sandbox_id: string | null
2185
- skill_id: string | null
2186
- status: string | null
2187
- updated_at: string
2188
- user_id: string | null
2189
- }[]
2190
- SetofOptions: {
2191
- from: "*"
2192
- to: "audit_tasks"
2193
- isOneToOne: false
2194
- isSetofReturn: true
2195
- }
2196
- }
2197
- audit_task_upsert: {
2198
- Args: {
2199
- p_id: string
2200
- p_instructions: string
2201
- p_logs_url?: string
2202
- p_project_id: string
2203
- p_result_summary?: string
2204
- p_sandbox_id?: string
2205
- p_skill_id?: string
2206
- p_status?: string
2207
- }
2208
- Returns: {
2209
- created_at: string
2210
- id: string
2211
- instructions: string | null
2212
- logs_url: string | null
2213
- project_id: string
2214
- result_summary: string | null
2215
- sandbox_id: string | null
2216
- skill_id: string | null
2217
- status: string | null
2218
- updated_at: string
2219
- user_id: string | null
2220
- }[]
2221
- SetofOptions: {
2222
- from: "*"
2223
- to: "audit_tasks"
2224
- isOneToOne: false
2225
- isSetofReturn: true
2226
- }
2227
- }
2228
2128
  auth_role: { Args: never; Returns: string }
2229
2129
  browser_delete: { Args: { p_id: string }; Returns: undefined }
2230
2130
  browser_ensure_association: {
@@ -2233,23 +2133,10 @@ export type Database = {
2233
2133
  }
2234
2134
  browser_get: {
2235
2135
  Args: { p_id: string }
2236
- Returns: {
2237
- cdpUrl: string | null
2238
- config: Json | null
2239
- created_at: string
2240
- description: string | null
2241
- id: string
2242
- profile_id: string | null
2243
- provider: string | null
2244
- provider_config: Json | null
2245
- sandbox_id: string | null
2246
- title: string | null
2247
- updated_at: string | null
2248
- user_id: string | null
2249
- }[]
2136
+ Returns: Database["public"]["CompositeTypes"]["browser_record"][]
2250
2137
  SetofOptions: {
2251
2138
  from: "*"
2252
- to: "browsers"
2139
+ to: "browser_record"
2253
2140
  isOneToOne: false
2254
2141
  isSetofReturn: true
2255
2142
  }
@@ -2278,23 +2165,10 @@ export type Database = {
2278
2165
  p_provider_config?: Json
2279
2166
  p_title?: string
2280
2167
  }
2281
- Returns: {
2282
- cdpUrl: string | null
2283
- config: Json | null
2284
- created_at: string
2285
- description: string | null
2286
- id: string
2287
- profile_id: string | null
2288
- provider: string | null
2289
- provider_config: Json | null
2290
- sandbox_id: string | null
2291
- title: string | null
2292
- updated_at: string | null
2293
- user_id: string | null
2294
- }[]
2168
+ Returns: Database["public"]["CompositeTypes"]["browser_record"][]
2295
2169
  SetofOptions: {
2296
2170
  from: "*"
2297
- to: "browsers"
2171
+ to: "browser_record"
2298
2172
  isOneToOne: false
2299
2173
  isSetofReturn: true
2300
2174
  }
@@ -2464,16 +2338,9 @@ export type Database = {
2464
2338
  isSetofReturn: false
2465
2339
  }
2466
2340
  }
2467
- cleanup_tunnel_async: { Args: { p_worker_id: string }; Returns: number }
2468
- cloud_account_bind_device: {
2469
- Args: { p_fingerprint: Json; p_id: string }
2470
- Returns: Database["public"]["CompositeTypes"]["cloud_account_record"][]
2471
- SetofOptions: {
2472
- from: "*"
2473
- to: "cloud_account_record"
2474
- isOneToOne: false
2475
- isSetofReturn: true
2476
- }
2341
+ check_account_rate_limit: {
2342
+ Args: { p_account_id: string; p_campaign_config: Json }
2343
+ Returns: boolean
2477
2344
  }
2478
2345
  cloud_account_bulk_create: {
2479
2346
  Args: {
@@ -2489,13 +2356,6 @@ export type Database = {
2489
2356
  isSetofReturn: true
2490
2357
  }
2491
2358
  }
2492
- cloud_account_check_expired_tokens: {
2493
- Args: never
2494
- Returns: {
2495
- total_checked: number
2496
- total_expired: number
2497
- }[]
2498
- }
2499
2359
  cloud_account_delete: {
2500
2360
  Args: { p_id: string }
2501
2361
  Returns: Database["public"]["CompositeTypes"]["cloud_account_record"][]
@@ -2507,8 +2367,8 @@ export type Database = {
2507
2367
  }
2508
2368
  }
2509
2369
  cloud_account_device_delete_version: {
2510
- Args: { p_id: string; p_version_id: string }
2511
- Returns: boolean
2370
+ Args: { p_account_id: string; p_version: number }
2371
+ Returns: undefined
2512
2372
  }
2513
2373
  cloud_account_device_restore: {
2514
2374
  Args: { p_id: string; p_version_id: string }
@@ -2548,33 +2408,15 @@ export type Database = {
2548
2408
  }
2549
2409
  cloud_account_mark_refresh_failed: {
2550
2410
  Args: { p_error: string; p_id: string }
2551
- Returns: Database["public"]["CompositeTypes"]["cloud_account_record"][]
2552
- SetofOptions: {
2553
- from: "*"
2554
- to: "cloud_account_record"
2555
- isOneToOne: false
2556
- isSetofReturn: true
2557
- }
2411
+ Returns: undefined
2558
2412
  }
2559
2413
  cloud_account_refresh_token: {
2560
2414
  Args: {
2561
2415
  p_access_token: string
2562
- p_expires_in?: unknown
2416
+ p_expires_in?: number
2563
2417
  p_id: string
2564
- p_refresh_expires_in?: unknown
2565
2418
  p_refresh_token?: string
2566
2419
  }
2567
- Returns: Database["public"]["CompositeTypes"]["cloud_account_record"][]
2568
- SetofOptions: {
2569
- from: "*"
2570
- to: "cloud_account_record"
2571
- isOneToOne: false
2572
- isSetofReturn: true
2573
- }
2574
- }
2575
- cloud_account_session_load: { Args: { p_id: string }; Returns: string }
2576
- cloud_account_session_set: {
2577
- Args: { p_id: string; p_session_data: Json }
2578
2420
  Returns: undefined
2579
2421
  }
2580
2422
  cloud_account_session_store: {
@@ -2626,25 +2468,20 @@ export type Database = {
2626
2468
  }
2627
2469
  compute_node_get_secret: {
2628
2470
  Args: { target_id: string }
2629
- Returns: {
2630
- auth_secret: string
2631
- host: string
2632
- port: number
2633
- username: string
2634
- }[]
2471
+ Returns: Database["public"]["CompositeTypes"]["compute_node_secret_record"][]
2472
+ SetofOptions: {
2473
+ from: "*"
2474
+ to: "compute_node_secret_record"
2475
+ isOneToOne: false
2476
+ isSetofReturn: true
2477
+ }
2635
2478
  }
2636
2479
  compute_node_list: {
2637
- Args: {
2638
- p_kw?: string
2639
- p_page_no?: number
2640
- p_page_size?: number
2641
- p_provider?: string
2642
- p_user_id?: string
2643
- }
2644
- Returns: Database["public"]["CompositeTypes"]["compute_node_record"][]
2480
+ Args: { p_kw?: string; p_page_no?: number; p_page_size?: number }
2481
+ Returns: Database["public"]["CompositeTypes"]["compute_node_list_record"][]
2645
2482
  SetofOptions: {
2646
2483
  from: "*"
2647
- to: "compute_node_record"
2484
+ to: "compute_node_list_record"
2648
2485
  isOneToOne: false
2649
2486
  isSetofReturn: true
2650
2487
  }
@@ -2667,6 +2504,10 @@ export type Database = {
2667
2504
  isSetofReturn: true
2668
2505
  }
2669
2506
  }
2507
+ compute_server_public_url: {
2508
+ Args: { p_server_id: string }
2509
+ Returns: string
2510
+ }
2670
2511
  contact_add_tags: {
2671
2512
  Args: { p_ids: string[]; p_tags: string[] }
2672
2513
  Returns: number
@@ -2713,6 +2554,11 @@ export type Database = {
2713
2554
  isSetofReturn: true
2714
2555
  }
2715
2556
  }
2557
+ contact_list_tags: { Args: never; Returns: string[] }
2558
+ contact_remove_tags: {
2559
+ Args: { p_ids: string[]; p_tags: string[] }
2560
+ Returns: number
2561
+ }
2716
2562
  contact_upsert: {
2717
2563
  Args: {
2718
2564
  p_email?: string
@@ -2739,13 +2585,13 @@ export type Database = {
2739
2585
  Args: {
2740
2586
  p_action_payload?: Json
2741
2587
  p_action_type?: string
2742
- p_expires_in?: unknown
2743
- p_message?: string
2588
+ p_expires_in?: string
2589
+ p_message: string
2590
+ p_notification_type?: string
2744
2591
  p_priority?: string
2745
2592
  p_source_id?: string
2746
2593
  p_source_type?: string
2747
2594
  p_title: string
2748
- p_type?: string
2749
2595
  p_user_id: string
2750
2596
  }
2751
2597
  Returns: string
@@ -2766,7 +2612,6 @@ export type Database = {
2766
2612
  get_encryption_key: { Args: never; Returns: string }
2767
2613
  get_github_app_public_info: { Args: never; Returns: Json }
2768
2614
  get_jwt_role: { Args: never; Returns: string }
2769
- get_lint_test_v1: { Args: never; Returns: string }
2770
2615
  get_user_id_from_token: { Args: { p_token: string }; Returns: string }
2771
2616
  gomtm_model_count: {
2772
2617
  Args: { p_is_active?: boolean; p_provider?: string }
@@ -2796,28 +2641,6 @@ export type Database = {
2796
2641
  isSetofReturn: false
2797
2642
  }
2798
2643
  }
2799
- gomtm_model_list: {
2800
- Args: {
2801
- p_is_active?: boolean
2802
- p_limit?: number
2803
- p_offset?: number
2804
- p_provider?: string
2805
- }
2806
- Returns: {
2807
- api_base: string
2808
- api_key: string
2809
- config: Json
2810
- created_at: string
2811
- id: string
2812
- is_active: boolean
2813
- linked_account_id: string
2814
- model: string
2815
- name: string
2816
- provider: string
2817
- updated_at: string
2818
- user_id: string
2819
- }[]
2820
- }
2821
2644
  gomtm_model_list_cursor: {
2822
2645
  Args: {
2823
2646
  p_cursor_id?: string
@@ -2826,19 +2649,25 @@ export type Database = {
2826
2649
  p_provider?: string
2827
2650
  }
2828
2651
  Returns: {
2829
- api_base: string
2830
- api_key: string
2831
- config: Json
2652
+ api_base: string | null
2653
+ api_key: string | null
2654
+ config: Json | null
2832
2655
  created_at: string
2833
2656
  id: string
2834
2657
  is_active: boolean
2835
- linked_account_id: string
2658
+ linked_account_id: string | null
2836
2659
  model: string
2837
2660
  name: string
2838
2661
  provider: string
2839
2662
  updated_at: string
2840
2663
  user_id: string
2841
2664
  }[]
2665
+ SetofOptions: {
2666
+ from: "*"
2667
+ to: "gomtm_models"
2668
+ isOneToOne: false
2669
+ isSetofReturn: true
2670
+ }
2842
2671
  }
2843
2672
  gomtm_model_upsert: {
2844
2673
  Args: {
@@ -2873,6 +2702,22 @@ export type Database = {
2873
2702
  isSetofReturn: false
2874
2703
  }
2875
2704
  }
2705
+ handle_http_response_health: {
2706
+ Args: { p_body: Json; p_request_id: number; p_success: boolean }
2707
+ Returns: boolean
2708
+ }
2709
+ handle_http_response_outreach: {
2710
+ Args: { p_body: Json; p_request_id: number; p_success: boolean }
2711
+ Returns: boolean
2712
+ }
2713
+ handle_http_response_task: {
2714
+ Args: { p_body: Json; p_request_id: number; p_success: boolean }
2715
+ Returns: boolean
2716
+ }
2717
+ handle_http_response_telegram: {
2718
+ Args: { p_body: Json; p_request_id: number; p_success: boolean }
2719
+ Returns: boolean
2720
+ }
2876
2721
  handle_job_outreach_process: {
2877
2722
  Args: { p_payload?: Json }
2878
2723
  Returns: undefined
@@ -2885,16 +2730,14 @@ export type Database = {
2885
2730
  Args: { p_payload: Json }
2886
2731
  Returns: undefined
2887
2732
  }
2888
- handle_job_tunnel_check_responses: {
2889
- Args: { p_payload: Json }
2890
- Returns: undefined
2733
+ has_permission: {
2734
+ Args: { p_action: string; p_resource: string }
2735
+ Returns: boolean
2891
2736
  }
2892
- handle_job_tunnel_setup: { Args: { p_payload: Json }; Returns: undefined }
2893
- handle_job_worker_cleanup: {
2894
- Args: { p_payload: Json }
2895
- Returns: undefined
2737
+ install_script: {
2738
+ Args: { p_instance_id?: string; p_token?: string; p_version?: string }
2739
+ Returns: string
2896
2740
  }
2897
- init_tunnel_async: { Args: { p_instance_id: string }; Returns: number }
2898
2741
  instance_tag_add: {
2899
2742
  Args: { p_instance_id: string; p_tag_id: string }
2900
2743
  Returns: boolean
@@ -2923,31 +2766,23 @@ export type Database = {
2923
2766
  isSetofReturn: true
2924
2767
  }
2925
2768
  }
2926
- is_admin: { Args: never; Returns: boolean }
2927
- job_queue_get_stats: {
2928
- Args: never
2929
- Returns: {
2930
- dlq_count: number
2931
- msg_count: number
2932
- queue_name: string
2933
- }[]
2934
- }
2935
2769
  job_queue_list_dlq: {
2936
2770
  Args: { p_limit?: number; p_offset?: number; p_queue: string }
2937
- Returns: {
2938
- enqueued_at: string
2939
- message: Json
2940
- msg_id: number
2941
- read_ct: number
2942
- }[]
2771
+ Returns: Database["public"]["CompositeTypes"]["job_queue_dlq_record"][]
2772
+ SetofOptions: {
2773
+ from: "*"
2774
+ to: "job_queue_dlq_record"
2775
+ isOneToOne: false
2776
+ isSetofReturn: true
2777
+ }
2943
2778
  }
2944
2779
  job_queue_purge_dlq: {
2945
2780
  Args: { p_msg_ids: number[]; p_queue: string }
2946
- Returns: undefined
2781
+ Returns: boolean
2947
2782
  }
2948
2783
  job_queue_retry_dlq: {
2949
2784
  Args: { p_msg_ids: number[]; p_queue: string }
2950
- Returns: undefined
2785
+ Returns: boolean
2951
2786
  }
2952
2787
  job_submit: {
2953
2788
  Args: {
@@ -2958,15 +2793,6 @@ export type Database = {
2958
2793
  }
2959
2794
  Returns: Json
2960
2795
  }
2961
- lint_test_error_code: { Args: never; Returns: undefined }
2962
- lint_test_table_return: {
2963
- Args: never
2964
- Returns: {
2965
- id: number
2966
- name: string
2967
- }[]
2968
- }
2969
- log: { Args: { content: string }; Returns: undefined }
2970
2796
  notification_complete_action: { Args: { p_id: string }; Returns: boolean }
2971
2797
  notification_count: {
2972
2798
  Args: { p_include_dismissed?: boolean; p_unread_only?: boolean }
@@ -3013,7 +2839,7 @@ export type Database = {
3013
2839
  Returns: number
3014
2840
  }
3015
2841
  outreach_process_pending_tasks: {
3016
- Args: { p_limit?: number }
2842
+ Args: { p_campaign_id?: string; p_limit?: number }
3017
2843
  Returns: number
3018
2844
  }
3019
2845
  outreach_retry_failed_tasks: {
@@ -3038,40 +2864,20 @@ export type Database = {
3038
2864
  proxy_delete: { Args: { p_id: string }; Returns: boolean }
3039
2865
  proxy_get: {
3040
2866
  Args: { p_id: string }
3041
- Returns: {
3042
- created_at: string
3043
- description: string | null
3044
- enabled: boolean
3045
- id: string
3046
- name: string | null
3047
- type: string | null
3048
- updated_at: string | null
3049
- url: string
3050
- user_id: string | null
3051
- }
2867
+ Returns: Database["public"]["CompositeTypes"]["proxy_record"][]
3052
2868
  SetofOptions: {
3053
2869
  from: "*"
3054
- to: "proxies"
3055
- isOneToOne: true
3056
- isSetofReturn: false
2870
+ to: "proxy_record"
2871
+ isOneToOne: false
2872
+ isSetofReturn: true
3057
2873
  }
3058
2874
  }
3059
2875
  proxy_list: {
3060
2876
  Args: { p_kw?: string; p_page_no?: number; p_page_size?: number }
3061
- Returns: {
3062
- created_at: string
3063
- description: string | null
3064
- enabled: boolean
3065
- id: string
3066
- name: string | null
3067
- type: string | null
3068
- updated_at: string | null
3069
- url: string
3070
- user_id: string | null
3071
- }[]
2877
+ Returns: Database["public"]["CompositeTypes"]["proxy_record"][]
3072
2878
  SetofOptions: {
3073
2879
  from: "*"
3074
- to: "proxies"
2880
+ to: "proxy_record"
3075
2881
  isOneToOne: false
3076
2882
  isSetofReturn: true
3077
2883
  }
@@ -3085,20 +2891,10 @@ export type Database = {
3085
2891
  p_type: string
3086
2892
  p_url: string
3087
2893
  }
3088
- Returns: {
3089
- created_at: string
3090
- description: string | null
3091
- enabled: boolean
3092
- id: string
3093
- name: string | null
3094
- type: string | null
3095
- updated_at: string | null
3096
- url: string
3097
- user_id: string | null
3098
- }[]
2894
+ Returns: Database["public"]["CompositeTypes"]["proxy_record"][]
3099
2895
  SetofOptions: {
3100
2896
  from: "*"
3101
- to: "proxies"
2897
+ to: "proxy_record"
3102
2898
  isOneToOne: false
3103
2899
  isSetofReturn: true
3104
2900
  }
@@ -3113,26 +2909,23 @@ export type Database = {
3113
2909
  p_slug?: string
3114
2910
  p_type?: string
3115
2911
  }
3116
- Returns: {
3117
- description: string
3118
- icon: string
3119
- id: string
3120
- target_id: string
3121
- title: string
3122
- type: string
3123
- updated_at: string
3124
- url: string
3125
- }[]
2912
+ Returns: Database["public"]["CompositeTypes"]["resource_list_record"][]
2913
+ SetofOptions: {
2914
+ from: "*"
2915
+ to: "resource_list_record"
2916
+ isOneToOne: false
2917
+ isSetofReturn: true
2918
+ }
3126
2919
  }
3127
2920
  resource_upsert: {
3128
2921
  Args: {
3129
- content: Json
3130
- description: string
3131
- key: string
2922
+ p_content?: Json
2923
+ p_description?: string
3132
2924
  p_id?: string
3133
- target_id?: string
3134
- title: string
3135
- type: string
2925
+ p_key?: string
2926
+ p_target_id?: string
2927
+ p_title?: string
2928
+ p_type?: string
3136
2929
  }
3137
2930
  Returns: string
3138
2931
  }
@@ -3161,65 +2954,23 @@ export type Database = {
3161
2954
  isSetofReturn: true
3162
2955
  }
3163
2956
  }
3164
- server_instance_delete: {
3165
- Args: { target_id: string }
3166
- Returns: undefined
3167
- }
3168
- server_instance_get: {
3169
- Args: { p_id?: string }
3170
- Returns: {
3171
- cloudflared_token: string | null
3172
- created_at: string
3173
- host_id: string | null
3174
- id: string
3175
- is_shared: boolean | null
3176
- latest_pull_at: string | null
3177
- name: string | null
3178
- runtime: string | null
3179
- state: Json | null
3180
- status: Database["public"]["Enums"]["worker_status"] | null
3181
- updated_at: string
3182
- user_id: string | null
3183
- }[]
2957
+ server_instance_bootstrap: {
2958
+ Args: { p_instance_id: string }
2959
+ Returns: Database["public"]["CompositeTypes"]["bootstrap_result"][]
3184
2960
  SetofOptions: {
3185
2961
  from: "*"
3186
- to: "servers"
2962
+ to: "bootstrap_result"
3187
2963
  isOneToOne: false
3188
2964
  isSetofReturn: true
3189
2965
  }
3190
2966
  }
3191
- server_instance_heartbeat: {
3192
- Args: { p_instance_id: string }
3193
- Returns: {
3194
- error: string
3195
- success: boolean
3196
- temp_domain: string
3197
- }[]
3198
- }
3199
- server_instance_list: {
3200
- Args: {
3201
- kw?: string
3202
- p_host_id?: string
3203
- page_no?: number
3204
- page_size?: number
3205
- }
3206
- Returns: {
3207
- cloudflared_token: string | null
3208
- created_at: string
3209
- host_id: string | null
3210
- id: string
3211
- is_shared: boolean | null
3212
- latest_pull_at: string | null
3213
- name: string | null
3214
- runtime: string | null
3215
- state: Json | null
3216
- status: Database["public"]["Enums"]["worker_status"] | null
3217
- updated_at: string
3218
- user_id: string | null
3219
- }[]
2967
+ server_instance_delete: { Args: { p_id: string }; Returns: undefined }
2968
+ server_instance_get: {
2969
+ Args: { p_id: string }
2970
+ Returns: Database["public"]["CompositeTypes"]["server_instance_record"][]
3220
2971
  SetofOptions: {
3221
2972
  from: "*"
3222
- to: "servers"
2973
+ to: "server_instance_record"
3223
2974
  isOneToOne: false
3224
2975
  isSetofReturn: true
3225
2976
  }
@@ -3229,63 +2980,47 @@ export type Database = {
3229
2980
  p_cursor_id?: string
3230
2981
  p_cursor_is_shared?: boolean
3231
2982
  p_cursor_updated_at?: string
3232
- p_host_id?: string
3233
2983
  p_is_shared?: boolean
3234
2984
  p_kw?: string
3235
2985
  p_limit?: number
3236
2986
  p_tag_ids?: string[]
3237
2987
  }
3238
- Returns: {
3239
- cloudflared_token: string | null
3240
- created_at: string
3241
- host_id: string | null
3242
- id: string
3243
- is_shared: boolean | null
3244
- latest_pull_at: string | null
3245
- name: string | null
3246
- runtime: string | null
3247
- state: Json | null
3248
- status: Database["public"]["Enums"]["worker_status"] | null
3249
- updated_at: string
3250
- user_id: string | null
3251
- }[]
2988
+ Returns: Database["public"]["CompositeTypes"]["server_instance_record"][]
3252
2989
  SetofOptions: {
3253
2990
  from: "*"
3254
- to: "servers"
2991
+ to: "server_instance_record"
3255
2992
  isOneToOne: false
3256
2993
  isSetofReturn: true
3257
2994
  }
3258
2995
  }
2996
+ server_instance_probe: {
2997
+ Args: { p_instance_id: string }
2998
+ Returns: undefined
2999
+ }
3259
3000
  server_instance_upsert: {
3260
3001
  Args: {
3261
- p_cloudflared_token?: string
3262
- p_host_id?: string
3263
- p_id: string
3264
- p_is_managed?: boolean
3002
+ p_config?: Json
3003
+ p_id?: string
3004
+ p_is_public?: boolean
3265
3005
  p_is_shared?: boolean
3266
3006
  p_name?: string
3267
- p_runtime?: string
3268
3007
  p_state?: Json
3269
- p_status?: Database["public"]["Enums"]["worker_status"]
3270
- p_user_id?: string
3008
+ p_status?: Database["public"]["Enums"]["server_status"]
3271
3009
  }
3272
- Returns: {
3273
- cloudflared_token: string | null
3274
- created_at: string
3275
- host_id: string | null
3276
- id: string
3277
- is_shared: boolean | null
3278
- latest_pull_at: string | null
3279
- name: string | null
3280
- runtime: string | null
3281
- state: Json | null
3282
- status: Database["public"]["Enums"]["worker_status"] | null
3283
- updated_at: string
3284
- user_id: string | null
3285
- }[]
3010
+ Returns: Database["public"]["CompositeTypes"]["server_instance_record"][]
3011
+ SetofOptions: {
3012
+ from: "*"
3013
+ to: "server_instance_record"
3014
+ isOneToOne: false
3015
+ isSetofReturn: true
3016
+ }
3017
+ }
3018
+ service_health_summary: {
3019
+ Args: never
3020
+ Returns: Database["public"]["CompositeTypes"]["service_health_record"][]
3286
3021
  SetofOptions: {
3287
3022
  from: "*"
3288
- to: "servers"
3023
+ to: "service_health_record"
3289
3024
  isOneToOne: false
3290
3025
  isSetofReturn: true
3291
3026
  }
@@ -3295,6 +3030,19 @@ export type Database = {
3295
3030
  Args: { p_description?: string; p_key: string; p_value: Json }
3296
3031
  Returns: undefined
3297
3032
  }
3033
+ sys_event_log: {
3034
+ Args: {
3035
+ p_content: string
3036
+ p_event_type: string
3037
+ p_level?: string
3038
+ p_meta?: Json
3039
+ p_module?: string
3040
+ p_notify_admins?: boolean
3041
+ p_resource_id?: string
3042
+ p_resource_type?: string
3043
+ }
3044
+ Returns: string
3045
+ }
3298
3046
  sys_get_db_schema: {
3299
3047
  Args: {
3300
3048
  p_excluded_tables?: string[]
@@ -3304,6 +3052,32 @@ export type Database = {
3304
3052
  Returns: string
3305
3053
  }
3306
3054
  sys_init_queue: { Args: { name: string }; Returns: undefined }
3055
+ sys_log_list: {
3056
+ Args: {
3057
+ p_cursor?: string
3058
+ p_event_type?: string
3059
+ p_level_max?: Database["public"]["Enums"]["sys_log_level"]
3060
+ p_limit?: number
3061
+ p_module?: string
3062
+ p_resource_id?: string
3063
+ p_resource_type?: string
3064
+ }
3065
+ Returns: Database["public"]["CompositeTypes"]["sys_log_record"][]
3066
+ SetofOptions: {
3067
+ from: "*"
3068
+ to: "sys_log_record"
3069
+ isOneToOne: false
3070
+ isSetofReturn: true
3071
+ }
3072
+ }
3073
+ sys_log_validate_meta: {
3074
+ Args: { p_event_type: string; p_meta: Json }
3075
+ Returns: boolean
3076
+ }
3077
+ sys_logs_cleanup: {
3078
+ Args: { p_retention_days?: number }
3079
+ Returns: undefined
3080
+ }
3307
3081
  system_config_public_delete: {
3308
3082
  Args: { p_key: string }
3309
3083
  Returns: undefined
@@ -3312,14 +3086,21 @@ export type Database = {
3312
3086
  system_config_public_list: {
3313
3087
  Args: never
3314
3088
  Returns: {
3315
- description: string
3089
+ created_at: string | null
3090
+ description: string | null
3316
3091
  key: string
3317
- updated_at: string
3092
+ updated_at: string | null
3318
3093
  value: Json
3319
3094
  }[]
3095
+ SetofOptions: {
3096
+ from: "*"
3097
+ to: "system_config_public"
3098
+ isOneToOne: false
3099
+ isSetofReturn: true
3100
+ }
3320
3101
  }
3321
3102
  system_config_public_set: {
3322
- Args: { p_description?: string; p_key: string; p_value: Json }
3103
+ Args: { p_key: string; p_value: Json }
3323
3104
  Returns: undefined
3324
3105
  }
3325
3106
  tag_delete: { Args: { p_id: string }; Returns: boolean }
@@ -3343,10 +3124,374 @@ export type Database = {
3343
3124
  isSetofReturn: true
3344
3125
  }
3345
3126
  }
3346
- task_submit: { Args: { p_payload: Json; p_type: string }; Returns: Json }
3347
- tear_down_test_data: { Args: never; Returns: Json }
3127
+ task_ack: { Args: { p_msg_id: number }; Returns: undefined }
3128
+ task_attempt_dispatch: {
3129
+ Args: { p_task: Database["public"]["Tables"]["tasks"]["Row"] }
3130
+ Returns: {
3131
+ code: string | null
3132
+ code_type: Database["public"]["Enums"]["task_code_type"] | null
3133
+ completed_at: string | null
3134
+ context_id: string | null
3135
+ context_type: string | null
3136
+ created_at: string
3137
+ description: string | null
3138
+ error: string | null
3139
+ executor_id: string | null
3140
+ executor_type: string | null
3141
+ id: string
3142
+ max_retries: number
3143
+ meta: Json
3144
+ parent_id: string | null
3145
+ priority: number
3146
+ result: Json | null
3147
+ result_text: string | null
3148
+ retry_count: number
3149
+ scheduled_at: string | null
3150
+ started_at: string | null
3151
+ status: Database["public"]["Enums"]["task_status"]
3152
+ tags: string[]
3153
+ title: string
3154
+ updated_at: string
3155
+ user_id: string
3156
+ }
3157
+ SetofOptions: {
3158
+ from: "tasks"
3159
+ to: "tasks"
3160
+ isOneToOne: true
3161
+ isSetofReturn: false
3162
+ }
3163
+ }
3164
+ task_cancel: {
3165
+ Args: { p_id: string }
3166
+ Returns: {
3167
+ code: string | null
3168
+ code_type: Database["public"]["Enums"]["task_code_type"] | null
3169
+ completed_at: string | null
3170
+ context_id: string | null
3171
+ context_type: string | null
3172
+ created_at: string
3173
+ description: string | null
3174
+ error: string | null
3175
+ executor_id: string | null
3176
+ executor_type: string | null
3177
+ id: string
3178
+ max_retries: number
3179
+ meta: Json
3180
+ parent_id: string | null
3181
+ priority: number
3182
+ result: Json | null
3183
+ result_text: string | null
3184
+ retry_count: number
3185
+ scheduled_at: string | null
3186
+ started_at: string | null
3187
+ status: Database["public"]["Enums"]["task_status"]
3188
+ tags: string[]
3189
+ title: string
3190
+ updated_at: string
3191
+ user_id: string
3192
+ }[]
3193
+ SetofOptions: {
3194
+ from: "*"
3195
+ to: "tasks"
3196
+ isOneToOne: false
3197
+ isSetofReturn: true
3198
+ }
3199
+ }
3200
+ task_complete: {
3201
+ Args: {
3202
+ p_error?: string
3203
+ p_id: string
3204
+ p_result?: Json
3205
+ p_result_text?: string
3206
+ p_success: boolean
3207
+ }
3208
+ Returns: {
3209
+ code: string | null
3210
+ code_type: Database["public"]["Enums"]["task_code_type"] | null
3211
+ completed_at: string | null
3212
+ context_id: string | null
3213
+ context_type: string | null
3214
+ created_at: string
3215
+ description: string | null
3216
+ error: string | null
3217
+ executor_id: string | null
3218
+ executor_type: string | null
3219
+ id: string
3220
+ max_retries: number
3221
+ meta: Json
3222
+ parent_id: string | null
3223
+ priority: number
3224
+ result: Json | null
3225
+ result_text: string | null
3226
+ retry_count: number
3227
+ scheduled_at: string | null
3228
+ started_at: string | null
3229
+ status: Database["public"]["Enums"]["task_status"]
3230
+ tags: string[]
3231
+ title: string
3232
+ updated_at: string
3233
+ user_id: string
3234
+ }[]
3235
+ SetofOptions: {
3236
+ from: "*"
3237
+ to: "tasks"
3238
+ isOneToOne: false
3239
+ isSetofReturn: true
3240
+ }
3241
+ }
3242
+ task_derive: {
3243
+ Args: {
3244
+ p_code: string
3245
+ p_code_type: Database["public"]["Enums"]["task_code_type"]
3246
+ p_description?: string
3247
+ p_meta?: Json
3248
+ p_parent_id: string
3249
+ p_title: string
3250
+ }
3251
+ Returns: {
3252
+ code: string | null
3253
+ code_type: Database["public"]["Enums"]["task_code_type"] | null
3254
+ completed_at: string | null
3255
+ context_id: string | null
3256
+ context_type: string | null
3257
+ created_at: string
3258
+ description: string | null
3259
+ error: string | null
3260
+ executor_id: string | null
3261
+ executor_type: string | null
3262
+ id: string
3263
+ max_retries: number
3264
+ meta: Json
3265
+ parent_id: string | null
3266
+ priority: number
3267
+ result: Json | null
3268
+ result_text: string | null
3269
+ retry_count: number
3270
+ scheduled_at: string | null
3271
+ started_at: string | null
3272
+ status: Database["public"]["Enums"]["task_status"]
3273
+ tags: string[]
3274
+ title: string
3275
+ updated_at: string
3276
+ user_id: string
3277
+ }[]
3278
+ SetofOptions: {
3279
+ from: "*"
3280
+ to: "tasks"
3281
+ isOneToOne: false
3282
+ isSetofReturn: true
3283
+ }
3284
+ }
3285
+ task_get: {
3286
+ Args: { p_id: string }
3287
+ Returns: {
3288
+ code: string | null
3289
+ code_type: Database["public"]["Enums"]["task_code_type"] | null
3290
+ completed_at: string | null
3291
+ context_id: string | null
3292
+ context_type: string | null
3293
+ created_at: string
3294
+ description: string | null
3295
+ error: string | null
3296
+ executor_id: string | null
3297
+ executor_type: string | null
3298
+ id: string
3299
+ max_retries: number
3300
+ meta: Json
3301
+ parent_id: string | null
3302
+ priority: number
3303
+ result: Json | null
3304
+ result_text: string | null
3305
+ retry_count: number
3306
+ scheduled_at: string | null
3307
+ started_at: string | null
3308
+ status: Database["public"]["Enums"]["task_status"]
3309
+ tags: string[]
3310
+ title: string
3311
+ updated_at: string
3312
+ user_id: string
3313
+ }[]
3314
+ SetofOptions: {
3315
+ from: "*"
3316
+ to: "tasks"
3317
+ isOneToOne: false
3318
+ isSetofReturn: true
3319
+ }
3320
+ }
3321
+ task_list_cursor: {
3322
+ Args: {
3323
+ p_code_type?: Database["public"]["Enums"]["task_code_type"]
3324
+ p_context_id?: string
3325
+ p_context_type?: string
3326
+ p_cursor?: string
3327
+ p_limit?: number
3328
+ p_parent_id?: string
3329
+ p_status?: Database["public"]["Enums"]["task_status"]
3330
+ p_tag?: string
3331
+ }
3332
+ Returns: {
3333
+ code: string | null
3334
+ code_type: Database["public"]["Enums"]["task_code_type"] | null
3335
+ completed_at: string | null
3336
+ context_id: string | null
3337
+ context_type: string | null
3338
+ created_at: string
3339
+ description: string | null
3340
+ error: string | null
3341
+ executor_id: string | null
3342
+ executor_type: string | null
3343
+ id: string
3344
+ max_retries: number
3345
+ meta: Json
3346
+ parent_id: string | null
3347
+ priority: number
3348
+ result: Json | null
3349
+ result_text: string | null
3350
+ retry_count: number
3351
+ scheduled_at: string | null
3352
+ started_at: string | null
3353
+ status: Database["public"]["Enums"]["task_status"]
3354
+ tags: string[]
3355
+ title: string
3356
+ updated_at: string
3357
+ user_id: string
3358
+ }[]
3359
+ SetofOptions: {
3360
+ from: "*"
3361
+ to: "tasks"
3362
+ isOneToOne: false
3363
+ isSetofReturn: true
3364
+ }
3365
+ }
3366
+ task_schedule_next: { Args: never; Returns: undefined }
3367
+ task_submit: {
3368
+ Args: { p_id: string }
3369
+ Returns: {
3370
+ code: string | null
3371
+ code_type: Database["public"]["Enums"]["task_code_type"] | null
3372
+ completed_at: string | null
3373
+ context_id: string | null
3374
+ context_type: string | null
3375
+ created_at: string
3376
+ description: string | null
3377
+ error: string | null
3378
+ executor_id: string | null
3379
+ executor_type: string | null
3380
+ id: string
3381
+ max_retries: number
3382
+ meta: Json
3383
+ parent_id: string | null
3384
+ priority: number
3385
+ result: Json | null
3386
+ result_text: string | null
3387
+ retry_count: number
3388
+ scheduled_at: string | null
3389
+ started_at: string | null
3390
+ status: Database["public"]["Enums"]["task_status"]
3391
+ tags: string[]
3392
+ title: string
3393
+ updated_at: string
3394
+ user_id: string
3395
+ }[]
3396
+ SetofOptions: {
3397
+ from: "*"
3398
+ to: "tasks"
3399
+ isOneToOne: false
3400
+ isSetofReturn: true
3401
+ }
3402
+ }
3403
+ task_timeout_check: { Args: never; Returns: undefined }
3404
+ task_tree: {
3405
+ Args: { p_task_id: string }
3406
+ Returns: {
3407
+ code: string | null
3408
+ code_type: Database["public"]["Enums"]["task_code_type"] | null
3409
+ completed_at: string | null
3410
+ context_id: string | null
3411
+ context_type: string | null
3412
+ created_at: string
3413
+ description: string | null
3414
+ error: string | null
3415
+ executor_id: string | null
3416
+ executor_type: string | null
3417
+ id: string
3418
+ max_retries: number
3419
+ meta: Json
3420
+ parent_id: string | null
3421
+ priority: number
3422
+ result: Json | null
3423
+ result_text: string | null
3424
+ retry_count: number
3425
+ scheduled_at: string | null
3426
+ started_at: string | null
3427
+ status: Database["public"]["Enums"]["task_status"]
3428
+ tags: string[]
3429
+ title: string
3430
+ updated_at: string
3431
+ user_id: string
3432
+ }[]
3433
+ SetofOptions: {
3434
+ from: "*"
3435
+ to: "tasks"
3436
+ isOneToOne: false
3437
+ isSetofReturn: true
3438
+ }
3439
+ }
3440
+ task_upsert: {
3441
+ Args: {
3442
+ p_code?: string
3443
+ p_code_type?: Database["public"]["Enums"]["task_code_type"]
3444
+ p_context_id?: string
3445
+ p_context_type?: string
3446
+ p_description?: string
3447
+ p_executor_id?: string
3448
+ p_executor_type?: string
3449
+ p_id?: string
3450
+ p_max_retries?: number
3451
+ p_meta?: Json
3452
+ p_parent_id?: string
3453
+ p_priority?: number
3454
+ p_scheduled_at?: string
3455
+ p_status?: Database["public"]["Enums"]["task_status"]
3456
+ p_tags?: string[]
3457
+ p_title?: string
3458
+ }
3459
+ Returns: {
3460
+ code: string | null
3461
+ code_type: Database["public"]["Enums"]["task_code_type"] | null
3462
+ completed_at: string | null
3463
+ context_id: string | null
3464
+ context_type: string | null
3465
+ created_at: string
3466
+ description: string | null
3467
+ error: string | null
3468
+ executor_id: string | null
3469
+ executor_type: string | null
3470
+ id: string
3471
+ max_retries: number
3472
+ meta: Json
3473
+ parent_id: string | null
3474
+ priority: number
3475
+ result: Json | null
3476
+ result_text: string | null
3477
+ retry_count: number
3478
+ scheduled_at: string | null
3479
+ started_at: string | null
3480
+ status: Database["public"]["Enums"]["task_status"]
3481
+ tags: string[]
3482
+ title: string
3483
+ updated_at: string
3484
+ user_id: string
3485
+ }[]
3486
+ SetofOptions: {
3487
+ from: "*"
3488
+ to: "tasks"
3489
+ isOneToOne: false
3490
+ isSetofReturn: true
3491
+ }
3492
+ }
3348
3493
  telegram_login_start: {
3349
- Args: { p_account_id: string }
3494
+ Args: { p_account_id: string; p_use_sms?: boolean }
3350
3495
  Returns: undefined
3351
3496
  }
3352
3497
  telegram_login_submit_2fa: {
@@ -3357,57 +3502,81 @@ export type Database = {
3357
3502
  Args: { p_account_id: string; p_code: string }
3358
3503
  Returns: undefined
3359
3504
  }
3360
- test_lint_all_plpgsql_functions: {
3361
- Args: never
3362
- Returns: {
3363
- check_result: string
3364
- function_name: string
3365
- severity: string
3366
- }[]
3367
- }
3368
- uid_by_email: {
3369
- Args: { email: string }
3505
+ traffic_log_delete: { Args: never; Returns: undefined }
3506
+ traffic_log_insert: { Args: { p_logs: Json }; Returns: undefined }
3507
+ traffic_log_list: {
3508
+ Args: { p_limit?: number; p_offset?: number }
3370
3509
  Returns: {
3510
+ client_ip: string | null
3511
+ created_at: string | null
3512
+ error: string | null
3513
+ host: string | null
3371
3514
  id: string
3515
+ method: string | null
3516
+ path: string | null
3517
+ request_headers: Json | null
3518
+ response_headers: Json | null
3519
+ scheme: string | null
3520
+ started_at: string | null
3521
+ status_code: number | null
3522
+ url: string | null
3523
+ user_id: string | null
3524
+ worker_id: string | null
3372
3525
  }[]
3526
+ SetofOptions: {
3527
+ from: "*"
3528
+ to: "traffic_logs"
3529
+ isOneToOne: false
3530
+ isSetofReturn: true
3531
+ }
3373
3532
  }
3533
+ user_create: {
3534
+ Args: {
3535
+ p_email: string
3536
+ p_full_name?: string
3537
+ p_password: string
3538
+ p_role?: Database["public"]["Enums"]["app_role"]
3539
+ p_user_id?: string
3540
+ }
3541
+ Returns: string
3542
+ }
3543
+ user_delete: { Args: { p_user_id: string }; Returns: undefined }
3374
3544
  user_log_list: {
3375
3545
  Args: { p_page?: number; p_page_size?: number }
3376
3546
  Returns: {
3377
- content: string
3378
- created_at: string
3547
+ content: string | null
3548
+ created_at: string | null
3379
3549
  event_type: string
3380
3550
  id: string
3381
3551
  level: string
3382
- meta: Json
3383
- resource_id: string
3384
- resource_type: string
3552
+ meta: Json | null
3553
+ resource_id: string | null
3554
+ resource_type: string | null
3555
+ user_id: string
3385
3556
  }[]
3557
+ SetofOptions: {
3558
+ from: "*"
3559
+ to: "user_logs"
3560
+ isOneToOne: false
3561
+ isSetofReturn: true
3562
+ }
3563
+ }
3564
+ user_log_record: {
3565
+ Args: {
3566
+ p_content: string
3567
+ p_event_type: string
3568
+ p_level?: string
3569
+ p_meta?: Json
3570
+ p_resource_id?: string
3571
+ p_resource_type?: string
3572
+ p_user_id?: string
3573
+ }
3574
+ Returns: string
3575
+ }
3576
+ user_notifications_cleanup: {
3577
+ Args: { p_retention_days?: number }
3578
+ Returns: undefined
3386
3579
  }
3387
- user_log_record:
3388
- | {
3389
- Args: {
3390
- p_content: string
3391
- p_event_type: string
3392
- p_level?: string
3393
- p_meta?: Json
3394
- p_resource_id?: string
3395
- p_resource_type?: string
3396
- }
3397
- Returns: string
3398
- }
3399
- | {
3400
- Args: {
3401
- p_content: string
3402
- p_event_type: string
3403
- p_level?: string
3404
- p_meta?: Json
3405
- p_resource_id?: string
3406
- p_resource_type?: string
3407
- p_user_id?: string
3408
- }
3409
- Returns: string
3410
- }
3411
3580
  user_profile_get: {
3412
3581
  Args: never
3413
3582
  Returns: Database["public"]["CompositeTypes"]["user_profile_record"][]
@@ -3440,28 +3609,23 @@ export type Database = {
3440
3609
  isSetofReturn: false
3441
3610
  }
3442
3611
  }
3443
- worker_ack: {
3444
- Args: { p_instance_id: string; p_msg_id: number }
3612
+ user_role_delete: {
3613
+ Args: {
3614
+ p_role: Database["public"]["Enums"]["app_role"]
3615
+ p_user_id: string
3616
+ }
3445
3617
  Returns: undefined
3446
3618
  }
3447
- worker_process_queue: {
3448
- Args: { p_limit?: number; p_queue: string }
3449
- Returns: undefined
3619
+ user_role_list: {
3620
+ Args: { p_user_id: string }
3621
+ Returns: Database["public"]["Enums"]["app_role"][]
3450
3622
  }
3451
- worker_prune_queues: { Args: never; Returns: undefined }
3452
- worker_pull: { Args: { p_instance_id: string }; Returns: Json[] }
3453
- worker_task_upsert: {
3623
+ user_role_upsert: {
3454
3624
  Args: {
3455
- p_error?: string
3456
- p_id?: string
3457
- p_payload?: Json
3458
- p_result?: Json
3459
- p_session_id?: string
3460
- p_status?: string
3461
- p_type?: string
3462
- p_user_id?: string
3625
+ p_role: Database["public"]["Enums"]["app_role"]
3626
+ p_user_id: string
3463
3627
  }
3464
- Returns: string
3628
+ Returns: undefined
3465
3629
  }
3466
3630
  }
3467
3631
  Enums: {
@@ -3478,6 +3642,18 @@ export type Database = {
3478
3642
  | "suspended"
3479
3643
  | "disabled"
3480
3644
  compute_node_status: "online" | "offline"
3645
+ server_status: "created" | "online" | "offline" | "error"
3646
+ sys_log_level: "error" | "warn" | "info"
3647
+ task_code_type: "sql" | "bash" | "python" | "agent" | "javascript"
3648
+ task_status:
3649
+ | "draft"
3650
+ | "pending"
3651
+ | "queued"
3652
+ | "running"
3653
+ | "completed"
3654
+ | "failed"
3655
+ | "cancelled"
3656
+ | "paused"
3481
3657
  telegram_login_step:
3482
3658
  | "pending"
3483
3659
  | "send_code"
@@ -3487,9 +3663,11 @@ export type Database = {
3487
3663
  | "success"
3488
3664
  | "failed"
3489
3665
  | "fetch_info"
3490
- worker_status: "starting" | "running" | "stopping" | "stopped" | "offline"
3491
3666
  }
3492
3667
  CompositeTypes: {
3668
+ adk_artifact_key_record: {
3669
+ filename: string | null
3670
+ }
3493
3671
  adk_artifact_meta_record: {
3494
3672
  version: number | null
3495
3673
  canonical_uri: string | null
@@ -3497,6 +3675,29 @@ export type Database = {
3497
3675
  create_time: number | null
3498
3676
  mime_type: string | null
3499
3677
  }
3678
+ audit_project_record: {
3679
+ id: string | null
3680
+ created_at: string | null
3681
+ updated_at: string | null
3682
+ user_id: string | null
3683
+ name: string | null
3684
+ target: string | null
3685
+ repo_url: string | null
3686
+ repo_branch: string | null
3687
+ config: Json | null
3688
+ worker_id: string | null
3689
+ }
3690
+ audit_project_stats_record: {
3691
+ asset_count: number | null
3692
+ finding_count: number | null
3693
+ high_risk_count: number | null
3694
+ task_count: number | null
3695
+ }
3696
+ bootstrap_result: {
3697
+ success: boolean | null
3698
+ error: string | null
3699
+ config: Json | null
3700
+ }
3500
3701
  browser_record: {
3501
3702
  id: string | null
3502
3703
  created_at: string | null
@@ -3555,6 +3756,22 @@ export type Database = {
3555
3756
  device_history: Json[] | null
3556
3757
  credentials: Json | null
3557
3758
  }
3759
+ compute_node_list_record: {
3760
+ id: string | null
3761
+ user_id: string | null
3762
+ name: string | null
3763
+ provider: string | null
3764
+ host: string | null
3765
+ port: number | null
3766
+ username: string | null
3767
+ auth_secret: string | null
3768
+ status: Database["public"]["Enums"]["compute_node_status"] | null
3769
+ worker_count: number | null
3770
+ updated_at: string | null
3771
+ is_public: boolean | null
3772
+ created_at: string | null
3773
+ full_count: number | null
3774
+ }
3558
3775
  compute_node_record: {
3559
3776
  id: string | null
3560
3777
  user_id: string | null
@@ -3570,6 +3787,12 @@ export type Database = {
3570
3787
  is_public: boolean | null
3571
3788
  created_at: string | null
3572
3789
  }
3790
+ compute_node_secret_record: {
3791
+ host: string | null
3792
+ port: number | null
3793
+ username: string | null
3794
+ auth_secret: string | null
3795
+ }
3573
3796
  contact_record: {
3574
3797
  id: string | null
3575
3798
  created_at: string | null
@@ -3594,6 +3817,12 @@ export type Database = {
3594
3817
  suggestion: string | null
3595
3818
  severity: string | null
3596
3819
  }
3820
+ job_queue_dlq_record: {
3821
+ msg_id: number | null
3822
+ read_ct: number | null
3823
+ enqueued_at: string | null
3824
+ message: Json | null
3825
+ }
3597
3826
  outreach_task_record: {
3598
3827
  id: string | null
3599
3828
  created_at: string | null
@@ -3610,28 +3839,58 @@ export type Database = {
3610
3839
  error_message: string | null
3611
3840
  metadata: Json | null
3612
3841
  }
3842
+ proxy_record: {
3843
+ id: string | null
3844
+ created_at: string | null
3845
+ updated_at: string | null
3846
+ name: string | null
3847
+ description: string | null
3848
+ url: string | null
3849
+ type: string | null
3850
+ enabled: boolean | null
3851
+ user_id: string | null
3852
+ }
3853
+ resource_list_record: {
3854
+ id: string | null
3855
+ target_id: string | null
3856
+ title: string | null
3857
+ description: string | null
3858
+ icon: string | null
3859
+ type: string | null
3860
+ url: string | null
3861
+ updated_at: string | null
3862
+ }
3613
3863
  server_instance_record: {
3614
3864
  id: string | null
3615
3865
  name: string | null
3616
3866
  updated_at: string | null
3617
3867
  config: Json | null
3618
- status: Database["public"]["Enums"]["worker_status"] | null
3619
- host_id: string | null
3868
+ status: Database["public"]["Enums"]["server_status"] | null
3620
3869
  is_public: boolean | null
3621
3870
  state: Json | null
3622
3871
  created_at: string | null
3623
3872
  user_id: string | null
3624
- container_id: string | null
3625
- is_managed: boolean | null
3626
- type: string | null
3627
- runtime: string | null
3628
3873
  is_shared: boolean | null
3629
- latest_pull_at: string | null
3630
- host_name: string | null
3631
- host_address: string | null
3632
- host_user: string | null
3633
- host_port: number | null
3634
- host_auth_secret: string | null
3874
+ }
3875
+ service_health_record: {
3876
+ module: string | null
3877
+ status: string | null
3878
+ last_error_at: string | null
3879
+ last_error_message: string | null
3880
+ error_count_24h: number | null
3881
+ }
3882
+ sys_log_record: {
3883
+ id: number | null
3884
+ created_at: string | null
3885
+ text: string | null
3886
+ level: Database["public"]["Enums"]["sys_log_level"] | null
3887
+ module: string | null
3888
+ event_type: string | null
3889
+ meta: Json | null
3890
+ resource_type: string | null
3891
+ resource_id: string | null
3892
+ resource_name: string | null
3893
+ user_id: string | null
3635
3894
  }
3636
3895
  tag_record: {
3637
3896
  id: string | null
@@ -3642,11 +3901,6 @@ export type Database = {
3642
3901
  updated_at: string | null
3643
3902
  instance_count: number | null
3644
3903
  }
3645
- test_result: {
3646
- test_name: string | null
3647
- passed: boolean | null
3648
- message: string | null
3649
- }
3650
3904
  user_notification_record: {
3651
3905
  id: string | null
3652
3906
  created_at: string | null
@@ -3796,6 +4050,9 @@ export type CompositeTypes<
3796
4050
  : never
3797
4051
 
3798
4052
  export const Constants = {
4053
+ graphql_public: {
4054
+ Enums: {},
4055
+ },
3799
4056
  public: {
3800
4057
  Enums: {
3801
4058
  app_role: ["admin", "moderator", "member"],
@@ -3812,6 +4069,19 @@ export const Constants = {
3812
4069
  "disabled",
3813
4070
  ],
3814
4071
  compute_node_status: ["online", "offline"],
4072
+ server_status: ["created", "online", "offline", "error"],
4073
+ sys_log_level: ["error", "warn", "info"],
4074
+ task_code_type: ["sql", "bash", "python", "agent", "javascript"],
4075
+ task_status: [
4076
+ "draft",
4077
+ "pending",
4078
+ "queued",
4079
+ "running",
4080
+ "completed",
4081
+ "failed",
4082
+ "cancelled",
4083
+ "paused",
4084
+ ],
3815
4085
  telegram_login_step: [
3816
4086
  "pending",
3817
4087
  "send_code",
@@ -3822,7 +4092,7 @@ export const Constants = {
3822
4092
  "failed",
3823
4093
  "fetch_info",
3824
4094
  ],
3825
- worker_status: ["starting", "running", "stopping", "stopped", "offline"],
3826
4095
  },
3827
4096
  },
3828
4097
  } as const
4098
+