mtmsdk 0.0.39 → 0.0.41

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 (32) hide show
  1. package/dist/gomtmapi_v2/@tanstack/react-query.gen.d.ts +1 -31
  2. package/dist/gomtmapi_v2/@tanstack/react-query.gen.d.ts.map +1 -1
  3. package/dist/gomtmapi_v2/@tanstack/react-query.gen.js +1 -91
  4. package/dist/gomtmapi_v2/@tanstack/react-query.gen.js.map +1 -1
  5. package/dist/gomtmapi_v2/index.d.ts +2 -2
  6. package/dist/gomtmapi_v2/index.d.ts.map +1 -1
  7. package/dist/gomtmapi_v2/index.js +1 -1
  8. package/dist/gomtmapi_v2/index.js.map +1 -1
  9. package/dist/gomtmapi_v2/schemas.gen.d.ts +0 -141
  10. package/dist/gomtmapi_v2/schemas.gen.d.ts.map +1 -1
  11. package/dist/gomtmapi_v2/schemas.gen.js +1 -142
  12. package/dist/gomtmapi_v2/schemas.gen.js.map +1 -1
  13. package/dist/gomtmapi_v2/sdk.gen.d.ts +1 -31
  14. package/dist/gomtmapi_v2/sdk.gen.d.ts.map +1 -1
  15. package/dist/gomtmapi_v2/sdk.gen.js +0 -65
  16. package/dist/gomtmapi_v2/sdk.gen.js.map +1 -1
  17. package/dist/gomtmapi_v2/types.gen.d.ts +1 -248
  18. package/dist/gomtmapi_v2/types.gen.d.ts.map +1 -1
  19. package/dist/gomtmapi_v2/zod.gen.d.ts +2 -146
  20. package/dist/gomtmapi_v2/zod.gen.d.ts.map +1 -1
  21. package/dist/gomtmapi_v2/zod.gen.js +1 -115
  22. package/dist/gomtmapi_v2/zod.gen.js.map +1 -1
  23. package/dist/supabase/supabase-client.d.ts +150 -211
  24. package/dist/supabase/supabase-client.d.ts.map +1 -1
  25. package/dist/supabase/supabase.d.ts +300 -422
  26. package/dist/supabase/supabase.d.ts.map +1 -1
  27. package/dist/types/database.types.d.ts +151 -211
  28. package/dist/types/database.types.d.ts.map +1 -1
  29. package/dist/types/database.types.js.map +1 -1
  30. package/dist/types/index.d.ts +1 -0
  31. package/dist/types/index.d.ts.map +1 -1
  32. package/package.json +1 -1
@@ -390,61 +390,52 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
390
390
  };
391
391
  audit_projects: {
392
392
  Row: {
393
- agent_config: import("../types/database.types").Json | null;
394
393
  config: import("../types/database.types").Json | null;
395
394
  created_at: string;
396
- github_branch: string | null;
397
- github_installation_id: number | null;
398
- github_repo_full_name: string | null;
399
- github_repo_id: number | null;
400
395
  id: string;
401
396
  name: string;
402
397
  repo_branch: string | null;
403
398
  repo_url: string | null;
404
- sandbox_id: string | null;
405
399
  target: string | null;
406
400
  updated_at: string;
407
- user_id: string | null;
401
+ user_id: string;
402
+ worker_id: string | null;
408
403
  };
409
404
  Insert: {
410
- agent_config?: import("../types/database.types").Json | null;
411
405
  config?: import("../types/database.types").Json | null;
412
406
  created_at?: string;
413
- github_branch?: string | null;
414
- github_installation_id?: number | null;
415
- github_repo_full_name?: string | null;
416
- github_repo_id?: number | null;
417
407
  id?: string;
418
408
  name: string;
419
409
  repo_branch?: string | null;
420
410
  repo_url?: string | null;
421
- sandbox_id?: string | null;
422
411
  target?: string | null;
423
412
  updated_at?: string;
424
- user_id?: string | null;
413
+ user_id: string;
414
+ worker_id?: string | null;
425
415
  };
426
416
  Update: {
427
- agent_config?: import("../types/database.types").Json | null;
428
417
  config?: import("../types/database.types").Json | null;
429
418
  created_at?: string;
430
- github_branch?: string | null;
431
- github_installation_id?: number | null;
432
- github_repo_full_name?: string | null;
433
- github_repo_id?: number | null;
434
419
  id?: string;
435
420
  name?: string;
436
421
  repo_branch?: string | null;
437
422
  repo_url?: string | null;
438
- sandbox_id?: string | null;
439
423
  target?: string | null;
440
424
  updated_at?: string;
441
- user_id?: string | null;
425
+ user_id?: string;
426
+ worker_id?: string | null;
442
427
  };
443
428
  Relationships: [{
444
- foreignKeyName: "audit_projects_sandbox_id_fkey";
445
- columns: ["sandbox_id"];
429
+ foreignKeyName: "audit_projects_worker_id_fkey";
430
+ columns: ["worker_id"];
446
431
  isOneToOne: false;
447
- referencedRelation: "resources";
432
+ referencedRelation: "worker_summary";
433
+ referencedColumns: ["id"];
434
+ }, {
435
+ foreignKeyName: "audit_projects_worker_id_fkey";
436
+ columns: ["worker_id"];
437
+ isOneToOne: false;
438
+ referencedRelation: "workers";
448
439
  referencedColumns: ["id"];
449
440
  }];
450
441
  };
@@ -682,56 +673,44 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
682
673
  compute_nodes: {
683
674
  Row: {
684
675
  auth_secret: string | null;
685
- auth_type: string | null;
686
- config: import("../types/database.types").Json | null;
687
676
  created_at: string;
688
- enabled: boolean | null;
677
+ host: string;
689
678
  id: string;
690
- ip: string;
691
- max_instances: number | null;
679
+ is_public: boolean | null;
692
680
  name: string;
693
681
  port: number;
694
682
  provider: string;
695
683
  status: string | null;
696
- tags: import("../types/database.types").Json | null;
697
684
  updated_at: string;
698
- user_id: string | null;
685
+ user_id: string;
699
686
  username: string | null;
700
687
  };
701
688
  Insert: {
702
689
  auth_secret?: string | null;
703
- auth_type?: string | null;
704
- config?: import("../types/database.types").Json | null;
705
690
  created_at?: string;
706
- enabled?: boolean | null;
691
+ host: string;
707
692
  id?: string;
708
- ip: string;
709
- max_instances?: number | null;
693
+ is_public?: boolean | null;
710
694
  name: string;
711
695
  port?: number;
712
696
  provider?: string;
713
697
  status?: string | null;
714
- tags?: import("../types/database.types").Json | null;
715
698
  updated_at?: string;
716
- user_id?: string | null;
699
+ user_id?: string;
717
700
  username?: string | null;
718
701
  };
719
702
  Update: {
720
703
  auth_secret?: string | null;
721
- auth_type?: string | null;
722
- config?: import("../types/database.types").Json | null;
723
704
  created_at?: string;
724
- enabled?: boolean | null;
705
+ host?: string;
725
706
  id?: string;
726
- ip?: string;
727
- max_instances?: number | null;
707
+ is_public?: boolean | null;
728
708
  name?: string;
729
709
  port?: number;
730
710
  provider?: string;
731
711
  status?: string | null;
732
- tags?: import("../types/database.types").Json | null;
733
712
  updated_at?: string;
734
- user_id?: string | null;
713
+ user_id?: string;
735
714
  username?: string | null;
736
715
  };
737
716
  Relationships: [];
@@ -1327,41 +1306,23 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
1327
1306
  };
1328
1307
  Relationships: [];
1329
1308
  };
1330
- sys_settings_laji: {
1331
- Row: {
1332
- description: string | null;
1333
- key: string;
1334
- updated_at: string | null;
1335
- value: string | null;
1336
- };
1337
- Insert: {
1338
- description?: string | null;
1339
- key: string;
1340
- updated_at?: string | null;
1341
- value?: string | null;
1342
- };
1343
- Update: {
1344
- description?: string | null;
1345
- key?: string;
1346
- updated_at?: string | null;
1347
- value?: string | null;
1348
- };
1349
- Relationships: [];
1350
- };
1351
- system_settings_laji: {
1309
+ system_config_public: {
1352
1310
  Row: {
1311
+ created_at: string | null;
1353
1312
  description: string | null;
1354
1313
  key: string;
1355
1314
  updated_at: string | null;
1356
1315
  value: import("../types/database.types").Json;
1357
1316
  };
1358
1317
  Insert: {
1318
+ created_at?: string | null;
1359
1319
  description?: string | null;
1360
1320
  key: string;
1361
1321
  updated_at?: string | null;
1362
- value: import("../types/database.types").Json;
1322
+ value?: import("../types/database.types").Json;
1363
1323
  };
1364
1324
  Update: {
1325
+ created_at?: string | null;
1365
1326
  description?: string | null;
1366
1327
  key?: string;
1367
1328
  updated_at?: string | null;
@@ -1369,27 +1330,6 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
1369
1330
  };
1370
1331
  Relationships: [];
1371
1332
  };
1372
- sysviews: {
1373
- Row: {
1374
- created_at: string;
1375
- id: string;
1376
- name: string | null;
1377
- updated_at: string | null;
1378
- };
1379
- Insert: {
1380
- created_at?: string;
1381
- id: string;
1382
- name?: string | null;
1383
- updated_at?: string | null;
1384
- };
1385
- Update: {
1386
- created_at?: string;
1387
- id?: string;
1388
- name?: string | null;
1389
- updated_at?: string | null;
1390
- };
1391
- Relationships: [];
1392
- };
1393
1333
  user_logs: {
1394
1334
  Row: {
1395
1335
  content: string | null;
@@ -1695,10 +1635,12 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
1695
1635
  config: import("../types/database.types").Json | null;
1696
1636
  container_id: string | null;
1697
1637
  created_at: string;
1698
- host_id: string | null;
1638
+ host_id: string;
1699
1639
  id: string;
1640
+ is_managed: boolean | null;
1700
1641
  latest_pull_at: string | null;
1701
1642
  name: string | null;
1643
+ public_domain: string | null;
1702
1644
  state: import("../types/database.types").Json | null;
1703
1645
  status: string | null;
1704
1646
  updated_at: string;
@@ -1708,10 +1650,12 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
1708
1650
  config?: import("../types/database.types").Json | null;
1709
1651
  container_id?: string | null;
1710
1652
  created_at?: string;
1711
- host_id?: string | null;
1653
+ host_id: string;
1712
1654
  id: string;
1655
+ is_managed?: boolean | null;
1713
1656
  latest_pull_at?: string | null;
1714
1657
  name?: string | null;
1658
+ public_domain?: string | null;
1715
1659
  state?: import("../types/database.types").Json | null;
1716
1660
  status?: string | null;
1717
1661
  updated_at?: string;
@@ -1721,10 +1665,12 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
1721
1665
  config?: import("../types/database.types").Json | null;
1722
1666
  container_id?: string | null;
1723
1667
  created_at?: string;
1724
- host_id?: string | null;
1668
+ host_id?: string;
1725
1669
  id?: string;
1670
+ is_managed?: boolean | null;
1726
1671
  latest_pull_at?: string | null;
1727
1672
  name?: string | null;
1673
+ public_domain?: string | null;
1728
1674
  state?: import("../types/database.types").Json | null;
1729
1675
  status?: string | null;
1730
1676
  updated_at?: string;
@@ -1829,7 +1775,53 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
1829
1775
  }];
1830
1776
  };
1831
1777
  };
1832
- Views: { [_ in never]: never; };
1778
+ Views: {
1779
+ worker_summary: {
1780
+ Row: {
1781
+ created_at: string | null;
1782
+ host_id: string | null;
1783
+ id: string | null;
1784
+ is_online: boolean | null;
1785
+ latest_pull_at: string | null;
1786
+ latest_task: import("../types/database.types").Json | null;
1787
+ name: string | null;
1788
+ public_url: string | null;
1789
+ status: string | null;
1790
+ user_id: string | null;
1791
+ };
1792
+ Insert: {
1793
+ created_at?: string | null;
1794
+ host_id?: string | null;
1795
+ id?: string | null;
1796
+ is_online?: never;
1797
+ latest_pull_at?: string | null;
1798
+ latest_task?: never;
1799
+ name?: string | null;
1800
+ public_url?: never;
1801
+ status?: string | null;
1802
+ user_id?: string | null;
1803
+ };
1804
+ Update: {
1805
+ created_at?: string | null;
1806
+ host_id?: string | null;
1807
+ id?: string | null;
1808
+ is_online?: never;
1809
+ latest_pull_at?: string | null;
1810
+ latest_task?: never;
1811
+ name?: string | null;
1812
+ public_url?: never;
1813
+ status?: string | null;
1814
+ user_id?: string | null;
1815
+ };
1816
+ Relationships: [{
1817
+ foreignKeyName: "workers_host_id_fkey";
1818
+ columns: ["host_id"];
1819
+ isOneToOne: false;
1820
+ referencedRelation: "compute_nodes";
1821
+ referencedColumns: ["id"];
1822
+ }];
1823
+ };
1824
+ };
1833
1825
  Functions: {
1834
1826
  action_tool_query: {
1835
1827
  Args: {
@@ -2301,29 +2293,7 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
2301
2293
  Args: {
2302
2294
  p_id: string;
2303
2295
  };
2304
- Returns: {
2305
- agent_config: import("../types/database.types").Json | null;
2306
- config: import("../types/database.types").Json | null;
2307
- created_at: string;
2308
- github_branch: string | null;
2309
- github_installation_id: number | null;
2310
- github_repo_full_name: string | null;
2311
- github_repo_id: number | null;
2312
- id: string;
2313
- name: string;
2314
- repo_branch: string | null;
2315
- repo_url: string | null;
2316
- sandbox_id: string | null;
2317
- target: string | null;
2318
- updated_at: string;
2319
- user_id: string | null;
2320
- }[];
2321
- SetofOptions: {
2322
- from: "*";
2323
- to: "audit_projects";
2324
- isOneToOne: false;
2325
- isSetofReturn: true;
2326
- };
2296
+ Returns: import("../types/database.types").Json;
2327
2297
  };
2328
2298
  audit_project_list: {
2329
2299
  Args: {
@@ -2331,26 +2301,17 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
2331
2301
  page_no?: number;
2332
2302
  page_size?: number;
2333
2303
  };
2334
- Returns: {
2335
- created_at: string;
2336
- id: string;
2337
- name: string;
2338
- repo_branch: string;
2339
- repo_url: string;
2340
- sandbox_id: string;
2341
- target: string;
2342
- updated_at: string;
2343
- user_id: string;
2344
- }[];
2304
+ Returns: import("../types/database.types").Json;
2345
2305
  };
2346
2306
  audit_project_upsert: {
2347
2307
  Args: {
2348
- p_agent_config?: import("../types/database.types").Json;
2308
+ p_config?: import("../types/database.types").Json;
2349
2309
  p_id?: string;
2350
2310
  p_name?: string;
2351
2311
  p_repo_branch?: string;
2352
2312
  p_repo_url?: string;
2353
2313
  p_target?: string;
2314
+ p_worker_id?: string;
2354
2315
  };
2355
2316
  Returns: string;
2356
2317
  };
@@ -2517,7 +2478,6 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
2517
2478
  chat_list: {
2518
2479
  Args: {
2519
2480
  p_agent_id?: string;
2520
- p_user_id?: string;
2521
2481
  };
2522
2482
  Returns: {
2523
2483
  agent_id: string;
@@ -2577,7 +2537,6 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
2577
2537
  p_id: string;
2578
2538
  p_parts: import("../types/database.types").Json;
2579
2539
  p_role: string;
2580
- p_user_id?: string;
2581
2540
  };
2582
2541
  Returns: {
2583
2542
  attachments: import("../types/database.types").Json | null;
@@ -2648,8 +2607,7 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
2648
2607
  };
2649
2608
  Returns: {
2650
2609
  auth_secret: string;
2651
- auth_type: string;
2652
- ip: string;
2610
+ host: string;
2653
2611
  port: number;
2654
2612
  username: string;
2655
2613
  }[];
@@ -2664,17 +2622,15 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
2664
2622
  };
2665
2623
  Returns: {
2666
2624
  auth_secret: string;
2667
- auth_type: string;
2668
- config: import("../types/database.types").Json;
2669
- enabled: boolean;
2625
+ host: string;
2670
2626
  id: string;
2671
- ip: string;
2672
- max_instances: number;
2627
+ is_public: boolean;
2673
2628
  name: string;
2674
2629
  port: number;
2675
2630
  provider: string;
2676
2631
  status: string;
2677
2632
  updated_at: string;
2633
+ user_id: string;
2678
2634
  username: string;
2679
2635
  worker_count: number;
2680
2636
  }[];
@@ -2682,12 +2638,8 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
2682
2638
  compute_node_upsert: {
2683
2639
  Args: {
2684
2640
  p_auth_secret?: string;
2685
- p_auth_type?: string;
2686
- p_config?: import("../types/database.types").Json;
2687
- p_enabled?: boolean;
2641
+ p_host?: string;
2688
2642
  p_id?: string;
2689
- p_ip?: string;
2690
- p_max_instances?: number;
2691
2643
  p_name?: string;
2692
2644
  p_port?: number;
2693
2645
  p_provider?: string;
@@ -2852,22 +2804,11 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
2852
2804
  Returns: import("../types/database.types").Json;
2853
2805
  };
2854
2806
  resource_upsert: {
2855
- Args: {
2856
- content: import("../types/database.types").Json;
2857
- description: string;
2858
- key: string;
2859
- target_id?: string;
2860
- title: string;
2861
- type: string;
2862
- };
2863
- Returns: undefined;
2864
- } | {
2865
2807
  Args: {
2866
2808
  content: import("../types/database.types").Json;
2867
2809
  description: string;
2868
2810
  key: string;
2869
2811
  p_id?: string;
2870
- p_user_id?: string;
2871
2812
  target_id?: string;
2872
2813
  title: string;
2873
2814
  type: string;
@@ -2875,9 +2816,7 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
2875
2816
  Returns: string;
2876
2817
  };
2877
2818
  sandbox_find_active: {
2878
- Args: {
2879
- p_user_id: string;
2880
- };
2819
+ Args: never;
2881
2820
  Returns: import("../types/database.types").Json;
2882
2821
  };
2883
2822
  sandbox_get: {
@@ -2906,12 +2845,6 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
2906
2845
  isSetofReturn: true;
2907
2846
  };
2908
2847
  };
2909
- sandbox_get_active: {
2910
- Args: {
2911
- p_user_id: string;
2912
- };
2913
- Returns: import("../types/database.types").Json;
2914
- };
2915
2848
  service_get: {
2916
2849
  Args: {
2917
2850
  p_service_id?: string;
@@ -3014,22 +2947,34 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
3014
2947
  };
3015
2948
  Returns: undefined;
3016
2949
  };
3017
- sysview_list: {
2950
+ system_config_public_delete: {
2951
+ Args: {
2952
+ p_key: string;
2953
+ };
2954
+ Returns: undefined;
2955
+ };
2956
+ system_config_public_get: {
3018
2957
  Args: {
3019
- kw: string;
2958
+ p_key: string;
3020
2959
  };
2960
+ Returns: import("../types/database.types").Json;
2961
+ };
2962
+ system_config_public_list: {
2963
+ Args: never;
3021
2964
  Returns: {
3022
- created_at: string;
3023
- id: string;
3024
- name: string | null;
3025
- updated_at: string | null;
2965
+ description: string;
2966
+ key: string;
2967
+ updated_at: string;
2968
+ value: import("../types/database.types").Json;
3026
2969
  }[];
3027
- SetofOptions: {
3028
- from: "*";
3029
- to: "sysviews";
3030
- isOneToOne: false;
3031
- isSetofReturn: true;
2970
+ };
2971
+ system_config_public_set: {
2972
+ Args: {
2973
+ p_description?: string;
2974
+ p_key: string;
2975
+ p_value: import("../types/database.types").Json;
3032
2976
  };
2977
+ Returns: undefined;
3033
2978
  };
3034
2979
  task_call_demo_api: {
3035
2980
  Args: never;
@@ -3120,50 +3065,48 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
3120
3065
  };
3121
3066
  worker_get: {
3122
3067
  Args: {
3123
- worker_id: string;
3068
+ p_id?: string;
3069
+ p_is_active?: boolean;
3070
+ };
3071
+ Returns: import("../types/database.types").Json;
3072
+ };
3073
+ worker_get_active: {
3074
+ Args: never;
3075
+ Returns: import("../types/database.types").Json;
3076
+ };
3077
+ worker_get_detail: {
3078
+ Args: {
3079
+ resource_id?: string;
3124
3080
  };
3125
3081
  Returns: {
3126
- config: import("../types/database.types").Json | null;
3127
- container_id: string | null;
3128
3082
  created_at: string;
3129
- host_id: string | null;
3083
+ data: import("../types/database.types").Json | null;
3084
+ description: string | null;
3085
+ hash1: string | null;
3086
+ icon: string | null;
3130
3087
  id: string;
3131
- latest_pull_at: string | null;
3132
- name: string | null;
3133
- state: import("../types/database.types").Json | null;
3134
- status: string | null;
3135
- updated_at: string;
3088
+ is_public: boolean | null;
3089
+ meta: import("../types/database.types").Json | null;
3090
+ target_id: string | null;
3091
+ title: string | null;
3092
+ type: string | null;
3093
+ updated_at: string | null;
3136
3094
  user_id: string | null;
3137
- };
3095
+ }[];
3138
3096
  SetofOptions: {
3139
3097
  from: "*";
3140
- to: "workers";
3141
- isOneToOne: true;
3142
- isSetofReturn: false;
3098
+ to: "resources";
3099
+ isOneToOne: false;
3100
+ isSetofReturn: true;
3143
3101
  };
3144
3102
  };
3145
- worker_keepalive: {
3103
+ worker_heartbeat: {
3146
3104
  Args: {
3147
- p_user_id?: string;
3148
3105
  p_worker_id: string;
3149
3106
  };
3150
3107
  Returns: import("../types/database.types").Json;
3151
3108
  };
3152
3109
  worker_list: {
3153
- Args: {
3154
- kw?: string;
3155
- page_no?: number;
3156
- page_size?: number;
3157
- };
3158
- Returns: {
3159
- config: import("../types/database.types").Json;
3160
- host_id: string;
3161
- id: string;
3162
- name: string;
3163
- status: string;
3164
- updated_at: string;
3165
- }[];
3166
- } | {
3167
3110
  Args: {
3168
3111
  kw?: string;
3169
3112
  p_host_id?: string;
@@ -3174,7 +3117,9 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
3174
3117
  config: import("../types/database.types").Json;
3175
3118
  host_id: string;
3176
3119
  id: string;
3120
+ is_public: boolean;
3177
3121
  name: string;
3122
+ state: import("../types/database.types").Json;
3178
3123
  status: string;
3179
3124
  updated_at: string;
3180
3125
  }[];
@@ -3185,15 +3130,9 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
3185
3130
  };
3186
3131
  worker_pull: {
3187
3132
  Args: {
3188
- worker_id: string;
3189
- };
3190
- Returns: unknown[];
3191
- SetofOptions: {
3192
- from: "*";
3193
- to: "message_record";
3194
- isOneToOne: false;
3195
- isSetofReturn: true;
3133
+ p_worker_id: string;
3196
3134
  };
3135
+ Returns: import("../types/database.types").Json[];
3197
3136
  };
3198
3137
  worker_task_list: {
3199
3138
  Args: {
@@ -3241,9 +3180,9 @@ export declare const getSupabase: (c: Context) => import("@supabase/supabase-js"
3241
3180
  p_config?: import("../types/database.types").Json;
3242
3181
  p_host_id?: string;
3243
3182
  p_id?: string;
3183
+ p_is_managed?: boolean;
3244
3184
  p_name?: string;
3245
3185
  p_status?: string;
3246
- p_user_id?: string;
3247
3186
  };
3248
3187
  Returns: import("../types/database.types").Json;
3249
3188
  };
@@ -3649,61 +3588,52 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
3649
3588
  };
3650
3589
  audit_projects: {
3651
3590
  Row: {
3652
- agent_config: import("../types/database.types").Json | null;
3653
3591
  config: import("../types/database.types").Json | null;
3654
3592
  created_at: string;
3655
- github_branch: string | null;
3656
- github_installation_id: number | null;
3657
- github_repo_full_name: string | null;
3658
- github_repo_id: number | null;
3659
3593
  id: string;
3660
3594
  name: string;
3661
3595
  repo_branch: string | null;
3662
3596
  repo_url: string | null;
3663
- sandbox_id: string | null;
3664
3597
  target: string | null;
3665
3598
  updated_at: string;
3666
- user_id: string | null;
3599
+ user_id: string;
3600
+ worker_id: string | null;
3667
3601
  };
3668
3602
  Insert: {
3669
- agent_config?: import("../types/database.types").Json | null;
3670
3603
  config?: import("../types/database.types").Json | null;
3671
3604
  created_at?: string;
3672
- github_branch?: string | null;
3673
- github_installation_id?: number | null;
3674
- github_repo_full_name?: string | null;
3675
- github_repo_id?: number | null;
3676
3605
  id?: string;
3677
3606
  name: string;
3678
3607
  repo_branch?: string | null;
3679
3608
  repo_url?: string | null;
3680
- sandbox_id?: string | null;
3681
3609
  target?: string | null;
3682
3610
  updated_at?: string;
3683
- user_id?: string | null;
3611
+ user_id: string;
3612
+ worker_id?: string | null;
3684
3613
  };
3685
3614
  Update: {
3686
- agent_config?: import("../types/database.types").Json | null;
3687
3615
  config?: import("../types/database.types").Json | null;
3688
3616
  created_at?: string;
3689
- github_branch?: string | null;
3690
- github_installation_id?: number | null;
3691
- github_repo_full_name?: string | null;
3692
- github_repo_id?: number | null;
3693
3617
  id?: string;
3694
3618
  name?: string;
3695
3619
  repo_branch?: string | null;
3696
3620
  repo_url?: string | null;
3697
- sandbox_id?: string | null;
3698
3621
  target?: string | null;
3699
3622
  updated_at?: string;
3700
- user_id?: string | null;
3623
+ user_id?: string;
3624
+ worker_id?: string | null;
3701
3625
  };
3702
3626
  Relationships: [{
3703
- foreignKeyName: "audit_projects_sandbox_id_fkey";
3704
- columns: ["sandbox_id"];
3627
+ foreignKeyName: "audit_projects_worker_id_fkey";
3628
+ columns: ["worker_id"];
3705
3629
  isOneToOne: false;
3706
- referencedRelation: "resources";
3630
+ referencedRelation: "worker_summary";
3631
+ referencedColumns: ["id"];
3632
+ }, {
3633
+ foreignKeyName: "audit_projects_worker_id_fkey";
3634
+ columns: ["worker_id"];
3635
+ isOneToOne: false;
3636
+ referencedRelation: "workers";
3707
3637
  referencedColumns: ["id"];
3708
3638
  }];
3709
3639
  };
@@ -3941,56 +3871,44 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
3941
3871
  compute_nodes: {
3942
3872
  Row: {
3943
3873
  auth_secret: string | null;
3944
- auth_type: string | null;
3945
- config: import("../types/database.types").Json | null;
3946
3874
  created_at: string;
3947
- enabled: boolean | null;
3875
+ host: string;
3948
3876
  id: string;
3949
- ip: string;
3950
- max_instances: number | null;
3877
+ is_public: boolean | null;
3951
3878
  name: string;
3952
3879
  port: number;
3953
3880
  provider: string;
3954
3881
  status: string | null;
3955
- tags: import("../types/database.types").Json | null;
3956
3882
  updated_at: string;
3957
- user_id: string | null;
3883
+ user_id: string;
3958
3884
  username: string | null;
3959
3885
  };
3960
3886
  Insert: {
3961
3887
  auth_secret?: string | null;
3962
- auth_type?: string | null;
3963
- config?: import("../types/database.types").Json | null;
3964
3888
  created_at?: string;
3965
- enabled?: boolean | null;
3889
+ host: string;
3966
3890
  id?: string;
3967
- ip: string;
3968
- max_instances?: number | null;
3891
+ is_public?: boolean | null;
3969
3892
  name: string;
3970
3893
  port?: number;
3971
3894
  provider?: string;
3972
3895
  status?: string | null;
3973
- tags?: import("../types/database.types").Json | null;
3974
3896
  updated_at?: string;
3975
- user_id?: string | null;
3897
+ user_id?: string;
3976
3898
  username?: string | null;
3977
3899
  };
3978
3900
  Update: {
3979
3901
  auth_secret?: string | null;
3980
- auth_type?: string | null;
3981
- config?: import("../types/database.types").Json | null;
3982
3902
  created_at?: string;
3983
- enabled?: boolean | null;
3903
+ host?: string;
3984
3904
  id?: string;
3985
- ip?: string;
3986
- max_instances?: number | null;
3905
+ is_public?: boolean | null;
3987
3906
  name?: string;
3988
3907
  port?: number;
3989
3908
  provider?: string;
3990
3909
  status?: string | null;
3991
- tags?: import("../types/database.types").Json | null;
3992
3910
  updated_at?: string;
3993
- user_id?: string | null;
3911
+ user_id?: string;
3994
3912
  username?: string | null;
3995
3913
  };
3996
3914
  Relationships: [];
@@ -4586,41 +4504,23 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
4586
4504
  };
4587
4505
  Relationships: [];
4588
4506
  };
4589
- sys_settings_laji: {
4590
- Row: {
4591
- description: string | null;
4592
- key: string;
4593
- updated_at: string | null;
4594
- value: string | null;
4595
- };
4596
- Insert: {
4597
- description?: string | null;
4598
- key: string;
4599
- updated_at?: string | null;
4600
- value?: string | null;
4601
- };
4602
- Update: {
4603
- description?: string | null;
4604
- key?: string;
4605
- updated_at?: string | null;
4606
- value?: string | null;
4607
- };
4608
- Relationships: [];
4609
- };
4610
- system_settings_laji: {
4507
+ system_config_public: {
4611
4508
  Row: {
4509
+ created_at: string | null;
4612
4510
  description: string | null;
4613
4511
  key: string;
4614
4512
  updated_at: string | null;
4615
4513
  value: import("../types/database.types").Json;
4616
4514
  };
4617
4515
  Insert: {
4516
+ created_at?: string | null;
4618
4517
  description?: string | null;
4619
4518
  key: string;
4620
4519
  updated_at?: string | null;
4621
- value: import("../types/database.types").Json;
4520
+ value?: import("../types/database.types").Json;
4622
4521
  };
4623
4522
  Update: {
4523
+ created_at?: string | null;
4624
4524
  description?: string | null;
4625
4525
  key?: string;
4626
4526
  updated_at?: string | null;
@@ -4628,27 +4528,6 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
4628
4528
  };
4629
4529
  Relationships: [];
4630
4530
  };
4631
- sysviews: {
4632
- Row: {
4633
- created_at: string;
4634
- id: string;
4635
- name: string | null;
4636
- updated_at: string | null;
4637
- };
4638
- Insert: {
4639
- created_at?: string;
4640
- id: string;
4641
- name?: string | null;
4642
- updated_at?: string | null;
4643
- };
4644
- Update: {
4645
- created_at?: string;
4646
- id?: string;
4647
- name?: string | null;
4648
- updated_at?: string | null;
4649
- };
4650
- Relationships: [];
4651
- };
4652
4531
  user_logs: {
4653
4532
  Row: {
4654
4533
  content: string | null;
@@ -4954,10 +4833,12 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
4954
4833
  config: import("../types/database.types").Json | null;
4955
4834
  container_id: string | null;
4956
4835
  created_at: string;
4957
- host_id: string | null;
4836
+ host_id: string;
4958
4837
  id: string;
4838
+ is_managed: boolean | null;
4959
4839
  latest_pull_at: string | null;
4960
4840
  name: string | null;
4841
+ public_domain: string | null;
4961
4842
  state: import("../types/database.types").Json | null;
4962
4843
  status: string | null;
4963
4844
  updated_at: string;
@@ -4967,10 +4848,12 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
4967
4848
  config?: import("../types/database.types").Json | null;
4968
4849
  container_id?: string | null;
4969
4850
  created_at?: string;
4970
- host_id?: string | null;
4851
+ host_id: string;
4971
4852
  id: string;
4853
+ is_managed?: boolean | null;
4972
4854
  latest_pull_at?: string | null;
4973
4855
  name?: string | null;
4856
+ public_domain?: string | null;
4974
4857
  state?: import("../types/database.types").Json | null;
4975
4858
  status?: string | null;
4976
4859
  updated_at?: string;
@@ -4980,10 +4863,12 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
4980
4863
  config?: import("../types/database.types").Json | null;
4981
4864
  container_id?: string | null;
4982
4865
  created_at?: string;
4983
- host_id?: string | null;
4866
+ host_id?: string;
4984
4867
  id?: string;
4868
+ is_managed?: boolean | null;
4985
4869
  latest_pull_at?: string | null;
4986
4870
  name?: string | null;
4871
+ public_domain?: string | null;
4987
4872
  state?: import("../types/database.types").Json | null;
4988
4873
  status?: string | null;
4989
4874
  updated_at?: string;
@@ -5088,7 +4973,53 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
5088
4973
  }];
5089
4974
  };
5090
4975
  };
5091
- Views: { [_ in never]: never; };
4976
+ Views: {
4977
+ worker_summary: {
4978
+ Row: {
4979
+ created_at: string | null;
4980
+ host_id: string | null;
4981
+ id: string | null;
4982
+ is_online: boolean | null;
4983
+ latest_pull_at: string | null;
4984
+ latest_task: import("../types/database.types").Json | null;
4985
+ name: string | null;
4986
+ public_url: string | null;
4987
+ status: string | null;
4988
+ user_id: string | null;
4989
+ };
4990
+ Insert: {
4991
+ created_at?: string | null;
4992
+ host_id?: string | null;
4993
+ id?: string | null;
4994
+ is_online?: never;
4995
+ latest_pull_at?: string | null;
4996
+ latest_task?: never;
4997
+ name?: string | null;
4998
+ public_url?: never;
4999
+ status?: string | null;
5000
+ user_id?: string | null;
5001
+ };
5002
+ Update: {
5003
+ created_at?: string | null;
5004
+ host_id?: string | null;
5005
+ id?: string | null;
5006
+ is_online?: never;
5007
+ latest_pull_at?: string | null;
5008
+ latest_task?: never;
5009
+ name?: string | null;
5010
+ public_url?: never;
5011
+ status?: string | null;
5012
+ user_id?: string | null;
5013
+ };
5014
+ Relationships: [{
5015
+ foreignKeyName: "workers_host_id_fkey";
5016
+ columns: ["host_id"];
5017
+ isOneToOne: false;
5018
+ referencedRelation: "compute_nodes";
5019
+ referencedColumns: ["id"];
5020
+ }];
5021
+ };
5022
+ };
5092
5023
  Functions: {
5093
5024
  action_tool_query: {
5094
5025
  Args: {
@@ -5560,29 +5491,7 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
5560
5491
  Args: {
5561
5492
  p_id: string;
5562
5493
  };
5563
- Returns: {
5564
- agent_config: import("../types/database.types").Json | null;
5565
- config: import("../types/database.types").Json | null;
5566
- created_at: string;
5567
- github_branch: string | null;
5568
- github_installation_id: number | null;
5569
- github_repo_full_name: string | null;
5570
- github_repo_id: number | null;
5571
- id: string;
5572
- name: string;
5573
- repo_branch: string | null;
5574
- repo_url: string | null;
5575
- sandbox_id: string | null;
5576
- target: string | null;
5577
- updated_at: string;
5578
- user_id: string | null;
5579
- }[];
5580
- SetofOptions: {
5581
- from: "*";
5582
- to: "audit_projects";
5583
- isOneToOne: false;
5584
- isSetofReturn: true;
5585
- };
5494
+ Returns: import("../types/database.types").Json;
5586
5495
  };
5587
5496
  audit_project_list: {
5588
5497
  Args: {
@@ -5590,26 +5499,17 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
5590
5499
  page_no?: number;
5591
5500
  page_size?: number;
5592
5501
  };
5593
- Returns: {
5594
- created_at: string;
5595
- id: string;
5596
- name: string;
5597
- repo_branch: string;
5598
- repo_url: string;
5599
- sandbox_id: string;
5600
- target: string;
5601
- updated_at: string;
5602
- user_id: string;
5603
- }[];
5502
+ Returns: import("../types/database.types").Json;
5604
5503
  };
5605
5504
  audit_project_upsert: {
5606
5505
  Args: {
5607
- p_agent_config?: import("../types/database.types").Json;
5506
+ p_config?: import("../types/database.types").Json;
5608
5507
  p_id?: string;
5609
5508
  p_name?: string;
5610
5509
  p_repo_branch?: string;
5611
5510
  p_repo_url?: string;
5612
5511
  p_target?: string;
5512
+ p_worker_id?: string;
5613
5513
  };
5614
5514
  Returns: string;
5615
5515
  };
@@ -5776,7 +5676,6 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
5776
5676
  chat_list: {
5777
5677
  Args: {
5778
5678
  p_agent_id?: string;
5779
- p_user_id?: string;
5780
5679
  };
5781
5680
  Returns: {
5782
5681
  agent_id: string;
@@ -5836,7 +5735,6 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
5836
5735
  p_id: string;
5837
5736
  p_parts: import("../types/database.types").Json;
5838
5737
  p_role: string;
5839
- p_user_id?: string;
5840
5738
  };
5841
5739
  Returns: {
5842
5740
  attachments: import("../types/database.types").Json | null;
@@ -5907,8 +5805,7 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
5907
5805
  };
5908
5806
  Returns: {
5909
5807
  auth_secret: string;
5910
- auth_type: string;
5911
- ip: string;
5808
+ host: string;
5912
5809
  port: number;
5913
5810
  username: string;
5914
5811
  }[];
@@ -5923,17 +5820,15 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
5923
5820
  };
5924
5821
  Returns: {
5925
5822
  auth_secret: string;
5926
- auth_type: string;
5927
- config: import("../types/database.types").Json;
5928
- enabled: boolean;
5823
+ host: string;
5929
5824
  id: string;
5930
- ip: string;
5931
- max_instances: number;
5825
+ is_public: boolean;
5932
5826
  name: string;
5933
5827
  port: number;
5934
5828
  provider: string;
5935
5829
  status: string;
5936
5830
  updated_at: string;
5831
+ user_id: string;
5937
5832
  username: string;
5938
5833
  worker_count: number;
5939
5834
  }[];
@@ -5941,12 +5836,8 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
5941
5836
  compute_node_upsert: {
5942
5837
  Args: {
5943
5838
  p_auth_secret?: string;
5944
- p_auth_type?: string;
5945
- p_config?: import("../types/database.types").Json;
5946
- p_enabled?: boolean;
5839
+ p_host?: string;
5947
5840
  p_id?: string;
5948
- p_ip?: string;
5949
- p_max_instances?: number;
5950
5841
  p_name?: string;
5951
5842
  p_port?: number;
5952
5843
  p_provider?: string;
@@ -6111,22 +6002,11 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
6111
6002
  Returns: import("../types/database.types").Json;
6112
6003
  };
6113
6004
  resource_upsert: {
6114
- Args: {
6115
- content: import("../types/database.types").Json;
6116
- description: string;
6117
- key: string;
6118
- target_id?: string;
6119
- title: string;
6120
- type: string;
6121
- };
6122
- Returns: undefined;
6123
- } | {
6124
6005
  Args: {
6125
6006
  content: import("../types/database.types").Json;
6126
6007
  description: string;
6127
6008
  key: string;
6128
6009
  p_id?: string;
6129
- p_user_id?: string;
6130
6010
  target_id?: string;
6131
6011
  title: string;
6132
6012
  type: string;
@@ -6134,9 +6014,7 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
6134
6014
  Returns: string;
6135
6015
  };
6136
6016
  sandbox_find_active: {
6137
- Args: {
6138
- p_user_id: string;
6139
- };
6017
+ Args: never;
6140
6018
  Returns: import("../types/database.types").Json;
6141
6019
  };
6142
6020
  sandbox_get: {
@@ -6165,12 +6043,6 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
6165
6043
  isSetofReturn: true;
6166
6044
  };
6167
6045
  };
6168
- sandbox_get_active: {
6169
- Args: {
6170
- p_user_id: string;
6171
- };
6172
- Returns: import("../types/database.types").Json;
6173
- };
6174
6046
  service_get: {
6175
6047
  Args: {
6176
6048
  p_service_id?: string;
@@ -6273,22 +6145,34 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
6273
6145
  };
6274
6146
  Returns: undefined;
6275
6147
  };
6276
- sysview_list: {
6148
+ system_config_public_delete: {
6149
+ Args: {
6150
+ p_key: string;
6151
+ };
6152
+ Returns: undefined;
6153
+ };
6154
+ system_config_public_get: {
6277
6155
  Args: {
6278
- kw: string;
6156
+ p_key: string;
6279
6157
  };
6158
+ Returns: import("../types/database.types").Json;
6159
+ };
6160
+ system_config_public_list: {
6161
+ Args: never;
6280
6162
  Returns: {
6281
- created_at: string;
6282
- id: string;
6283
- name: string | null;
6284
- updated_at: string | null;
6163
+ description: string;
6164
+ key: string;
6165
+ updated_at: string;
6166
+ value: import("../types/database.types").Json;
6285
6167
  }[];
6286
- SetofOptions: {
6287
- from: "*";
6288
- to: "sysviews";
6289
- isOneToOne: false;
6290
- isSetofReturn: true;
6168
+ };
6169
+ system_config_public_set: {
6170
+ Args: {
6171
+ p_description?: string;
6172
+ p_key: string;
6173
+ p_value: import("../types/database.types").Json;
6291
6174
  };
6175
+ Returns: undefined;
6292
6176
  };
6293
6177
  task_call_demo_api: {
6294
6178
  Args: never;
@@ -6379,50 +6263,48 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
6379
6263
  };
6380
6264
  worker_get: {
6381
6265
  Args: {
6382
- worker_id: string;
6266
+ p_id?: string;
6267
+ p_is_active?: boolean;
6268
+ };
6269
+ Returns: import("../types/database.types").Json;
6270
+ };
6271
+ worker_get_active: {
6272
+ Args: never;
6273
+ Returns: import("../types/database.types").Json;
6274
+ };
6275
+ worker_get_detail: {
6276
+ Args: {
6277
+ resource_id?: string;
6383
6278
  };
6384
6279
  Returns: {
6385
- config: import("../types/database.types").Json | null;
6386
- container_id: string | null;
6387
6280
  created_at: string;
6388
- host_id: string | null;
6281
+ data: import("../types/database.types").Json | null;
6282
+ description: string | null;
6283
+ hash1: string | null;
6284
+ icon: string | null;
6389
6285
  id: string;
6390
- latest_pull_at: string | null;
6391
- name: string | null;
6392
- state: import("../types/database.types").Json | null;
6393
- status: string | null;
6394
- updated_at: string;
6286
+ is_public: boolean | null;
6287
+ meta: import("../types/database.types").Json | null;
6288
+ target_id: string | null;
6289
+ title: string | null;
6290
+ type: string | null;
6291
+ updated_at: string | null;
6395
6292
  user_id: string | null;
6396
- };
6293
+ }[];
6397
6294
  SetofOptions: {
6398
6295
  from: "*";
6399
- to: "workers";
6400
- isOneToOne: true;
6401
- isSetofReturn: false;
6296
+ to: "resources";
6297
+ isOneToOne: false;
6298
+ isSetofReturn: true;
6402
6299
  };
6403
6300
  };
6404
- worker_keepalive: {
6301
+ worker_heartbeat: {
6405
6302
  Args: {
6406
- p_user_id?: string;
6407
6303
  p_worker_id: string;
6408
6304
  };
6409
6305
  Returns: import("../types/database.types").Json;
6410
6306
  };
6411
6307
  worker_list: {
6412
- Args: {
6413
- kw?: string;
6414
- page_no?: number;
6415
- page_size?: number;
6416
- };
6417
- Returns: {
6418
- config: import("../types/database.types").Json;
6419
- host_id: string;
6420
- id: string;
6421
- name: string;
6422
- status: string;
6423
- updated_at: string;
6424
- }[];
6425
- } | {
6426
6308
  Args: {
6427
6309
  kw?: string;
6428
6310
  p_host_id?: string;
@@ -6433,7 +6315,9 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
6433
6315
  config: import("../types/database.types").Json;
6434
6316
  host_id: string;
6435
6317
  id: string;
6318
+ is_public: boolean;
6436
6319
  name: string;
6320
+ state: import("../types/database.types").Json;
6437
6321
  status: string;
6438
6322
  updated_at: string;
6439
6323
  }[];
@@ -6444,15 +6328,9 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
6444
6328
  };
6445
6329
  worker_pull: {
6446
6330
  Args: {
6447
- worker_id: string;
6448
- };
6449
- Returns: unknown[];
6450
- SetofOptions: {
6451
- from: "*";
6452
- to: "message_record";
6453
- isOneToOne: false;
6454
- isSetofReturn: true;
6331
+ p_worker_id: string;
6455
6332
  };
6333
+ Returns: import("../types/database.types").Json[];
6456
6334
  };
6457
6335
  worker_task_list: {
6458
6336
  Args: {
@@ -6500,9 +6378,9 @@ export declare const getSupabaseAdmin: () => import("@supabase/supabase-js").Sup
6500
6378
  p_config?: import("../types/database.types").Json;
6501
6379
  p_host_id?: string;
6502
6380
  p_id?: string;
6381
+ p_is_managed?: boolean;
6503
6382
  p_name?: string;
6504
6383
  p_status?: string;
6505
- p_user_id?: string;
6506
6384
  };
6507
6385
  Returns: import("../types/database.types").Json;
6508
6386
  };