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
@@ -400,62 +400,54 @@ export type Database = {
400
400
  };
401
401
  audit_projects: {
402
402
  Row: {
403
- agent_config: Json | null;
404
403
  config: Json | null;
405
404
  created_at: string;
406
- github_branch: string | null;
407
- github_installation_id: number | null;
408
- github_repo_full_name: string | null;
409
- github_repo_id: number | null;
410
405
  id: string;
411
406
  name: string;
412
407
  repo_branch: string | null;
413
408
  repo_url: string | null;
414
- sandbox_id: string | null;
415
409
  target: string | null;
416
410
  updated_at: string;
417
- user_id: string | null;
411
+ user_id: string;
412
+ worker_id: string | null;
418
413
  };
419
414
  Insert: {
420
- agent_config?: Json | null;
421
415
  config?: Json | null;
422
416
  created_at?: string;
423
- github_branch?: string | null;
424
- github_installation_id?: number | null;
425
- github_repo_full_name?: string | null;
426
- github_repo_id?: number | null;
427
417
  id?: string;
428
418
  name: string;
429
419
  repo_branch?: string | null;
430
420
  repo_url?: string | null;
431
- sandbox_id?: string | null;
432
421
  target?: string | null;
433
422
  updated_at?: string;
434
- user_id?: string | null;
423
+ user_id: string;
424
+ worker_id?: string | null;
435
425
  };
436
426
  Update: {
437
- agent_config?: Json | null;
438
427
  config?: Json | null;
439
428
  created_at?: string;
440
- github_branch?: string | null;
441
- github_installation_id?: number | null;
442
- github_repo_full_name?: string | null;
443
- github_repo_id?: number | null;
444
429
  id?: string;
445
430
  name?: string;
446
431
  repo_branch?: string | null;
447
432
  repo_url?: string | null;
448
- sandbox_id?: string | null;
449
433
  target?: string | null;
450
434
  updated_at?: string;
451
- user_id?: string | null;
435
+ user_id?: string;
436
+ worker_id?: string | null;
452
437
  };
453
438
  Relationships: [
454
439
  {
455
- foreignKeyName: "audit_projects_sandbox_id_fkey";
456
- columns: ["sandbox_id"];
440
+ foreignKeyName: "audit_projects_worker_id_fkey";
441
+ columns: ["worker_id"];
457
442
  isOneToOne: false;
458
- referencedRelation: "resources";
443
+ referencedRelation: "worker_summary";
444
+ referencedColumns: ["id"];
445
+ },
446
+ {
447
+ foreignKeyName: "audit_projects_worker_id_fkey";
448
+ columns: ["worker_id"];
449
+ isOneToOne: false;
450
+ referencedRelation: "workers";
459
451
  referencedColumns: ["id"];
460
452
  }
461
453
  ];
@@ -702,56 +694,44 @@ export type Database = {
702
694
  compute_nodes: {
703
695
  Row: {
704
696
  auth_secret: string | null;
705
- auth_type: string | null;
706
- config: Json | null;
707
697
  created_at: string;
708
- enabled: boolean | null;
698
+ host: string;
709
699
  id: string;
710
- ip: string;
711
- max_instances: number | null;
700
+ is_public: boolean | null;
712
701
  name: string;
713
702
  port: number;
714
703
  provider: string;
715
704
  status: string | null;
716
- tags: Json | null;
717
705
  updated_at: string;
718
- user_id: string | null;
706
+ user_id: string;
719
707
  username: string | null;
720
708
  };
721
709
  Insert: {
722
710
  auth_secret?: string | null;
723
- auth_type?: string | null;
724
- config?: Json | null;
725
711
  created_at?: string;
726
- enabled?: boolean | null;
712
+ host: string;
727
713
  id?: string;
728
- ip: string;
729
- max_instances?: number | null;
714
+ is_public?: boolean | null;
730
715
  name: string;
731
716
  port?: number;
732
717
  provider?: string;
733
718
  status?: string | null;
734
- tags?: Json | null;
735
719
  updated_at?: string;
736
- user_id?: string | null;
720
+ user_id?: string;
737
721
  username?: string | null;
738
722
  };
739
723
  Update: {
740
724
  auth_secret?: string | null;
741
- auth_type?: string | null;
742
- config?: Json | null;
743
725
  created_at?: string;
744
- enabled?: boolean | null;
726
+ host?: string;
745
727
  id?: string;
746
- ip?: string;
747
- max_instances?: number | null;
728
+ is_public?: boolean | null;
748
729
  name?: string;
749
730
  port?: number;
750
731
  provider?: string;
751
732
  status?: string | null;
752
- tags?: Json | null;
753
733
  updated_at?: string;
754
- user_id?: string | null;
734
+ user_id?: string;
755
735
  username?: string | null;
756
736
  };
757
737
  Relationships: [];
@@ -1355,41 +1335,23 @@ export type Database = {
1355
1335
  };
1356
1336
  Relationships: [];
1357
1337
  };
1358
- sys_settings_laji: {
1359
- Row: {
1360
- description: string | null;
1361
- key: string;
1362
- updated_at: string | null;
1363
- value: string | null;
1364
- };
1365
- Insert: {
1366
- description?: string | null;
1367
- key: string;
1368
- updated_at?: string | null;
1369
- value?: string | null;
1370
- };
1371
- Update: {
1372
- description?: string | null;
1373
- key?: string;
1374
- updated_at?: string | null;
1375
- value?: string | null;
1376
- };
1377
- Relationships: [];
1378
- };
1379
- system_settings_laji: {
1338
+ system_config_public: {
1380
1339
  Row: {
1340
+ created_at: string | null;
1381
1341
  description: string | null;
1382
1342
  key: string;
1383
1343
  updated_at: string | null;
1384
1344
  value: Json;
1385
1345
  };
1386
1346
  Insert: {
1347
+ created_at?: string | null;
1387
1348
  description?: string | null;
1388
1349
  key: string;
1389
1350
  updated_at?: string | null;
1390
- value: Json;
1351
+ value?: Json;
1391
1352
  };
1392
1353
  Update: {
1354
+ created_at?: string | null;
1393
1355
  description?: string | null;
1394
1356
  key?: string;
1395
1357
  updated_at?: string | null;
@@ -1397,27 +1359,6 @@ export type Database = {
1397
1359
  };
1398
1360
  Relationships: [];
1399
1361
  };
1400
- sysviews: {
1401
- Row: {
1402
- created_at: string;
1403
- id: string;
1404
- name: string | null;
1405
- updated_at: string | null;
1406
- };
1407
- Insert: {
1408
- created_at?: string;
1409
- id: string;
1410
- name?: string | null;
1411
- updated_at?: string | null;
1412
- };
1413
- Update: {
1414
- created_at?: string;
1415
- id?: string;
1416
- name?: string | null;
1417
- updated_at?: string | null;
1418
- };
1419
- Relationships: [];
1420
- };
1421
1362
  user_logs: {
1422
1363
  Row: {
1423
1364
  content: string | null;
@@ -1727,10 +1668,12 @@ export type Database = {
1727
1668
  config: Json | null;
1728
1669
  container_id: string | null;
1729
1670
  created_at: string;
1730
- host_id: string | null;
1671
+ host_id: string;
1731
1672
  id: string;
1673
+ is_managed: boolean | null;
1732
1674
  latest_pull_at: string | null;
1733
1675
  name: string | null;
1676
+ public_domain: string | null;
1734
1677
  state: Json | null;
1735
1678
  status: string | null;
1736
1679
  updated_at: string;
@@ -1740,10 +1683,12 @@ export type Database = {
1740
1683
  config?: Json | null;
1741
1684
  container_id?: string | null;
1742
1685
  created_at?: string;
1743
- host_id?: string | null;
1686
+ host_id: string;
1744
1687
  id: string;
1688
+ is_managed?: boolean | null;
1745
1689
  latest_pull_at?: string | null;
1746
1690
  name?: string | null;
1691
+ public_domain?: string | null;
1747
1692
  state?: Json | null;
1748
1693
  status?: string | null;
1749
1694
  updated_at?: string;
@@ -1753,10 +1698,12 @@ export type Database = {
1753
1698
  config?: Json | null;
1754
1699
  container_id?: string | null;
1755
1700
  created_at?: string;
1756
- host_id?: string | null;
1701
+ host_id?: string;
1757
1702
  id?: string;
1703
+ is_managed?: boolean | null;
1758
1704
  latest_pull_at?: string | null;
1759
1705
  name?: string | null;
1706
+ public_domain?: string | null;
1760
1707
  state?: Json | null;
1761
1708
  status?: string | null;
1762
1709
  updated_at?: string;
@@ -1866,7 +1813,53 @@ export type Database = {
1866
1813
  };
1867
1814
  };
1868
1815
  Views: {
1869
- [_ in never]: never;
1816
+ worker_summary: {
1817
+ Row: {
1818
+ created_at: string | null;
1819
+ host_id: string | null;
1820
+ id: string | null;
1821
+ is_online: boolean | null;
1822
+ latest_pull_at: string | null;
1823
+ latest_task: Json | null;
1824
+ name: string | null;
1825
+ public_url: string | null;
1826
+ status: string | null;
1827
+ user_id: string | null;
1828
+ };
1829
+ Insert: {
1830
+ created_at?: string | null;
1831
+ host_id?: string | null;
1832
+ id?: string | null;
1833
+ is_online?: never;
1834
+ latest_pull_at?: string | null;
1835
+ latest_task?: never;
1836
+ name?: string | null;
1837
+ public_url?: never;
1838
+ status?: string | null;
1839
+ user_id?: string | null;
1840
+ };
1841
+ Update: {
1842
+ created_at?: string | null;
1843
+ host_id?: string | null;
1844
+ id?: string | null;
1845
+ is_online?: never;
1846
+ latest_pull_at?: string | null;
1847
+ latest_task?: never;
1848
+ name?: string | null;
1849
+ public_url?: never;
1850
+ status?: string | null;
1851
+ user_id?: string | null;
1852
+ };
1853
+ Relationships: [
1854
+ {
1855
+ foreignKeyName: "workers_host_id_fkey";
1856
+ columns: ["host_id"];
1857
+ isOneToOne: false;
1858
+ referencedRelation: "compute_nodes";
1859
+ referencedColumns: ["id"];
1860
+ }
1861
+ ];
1862
+ };
1870
1863
  };
1871
1864
  Functions: {
1872
1865
  action_tool_query: {
@@ -2339,29 +2332,7 @@ export type Database = {
2339
2332
  Args: {
2340
2333
  p_id: string;
2341
2334
  };
2342
- Returns: {
2343
- agent_config: Json | null;
2344
- config: Json | null;
2345
- created_at: string;
2346
- github_branch: string | null;
2347
- github_installation_id: number | null;
2348
- github_repo_full_name: string | null;
2349
- github_repo_id: number | null;
2350
- id: string;
2351
- name: string;
2352
- repo_branch: string | null;
2353
- repo_url: string | null;
2354
- sandbox_id: string | null;
2355
- target: string | null;
2356
- updated_at: string;
2357
- user_id: string | null;
2358
- }[];
2359
- SetofOptions: {
2360
- from: "*";
2361
- to: "audit_projects";
2362
- isOneToOne: false;
2363
- isSetofReturn: true;
2364
- };
2335
+ Returns: Json;
2365
2336
  };
2366
2337
  audit_project_list: {
2367
2338
  Args: {
@@ -2369,26 +2340,17 @@ export type Database = {
2369
2340
  page_no?: number;
2370
2341
  page_size?: number;
2371
2342
  };
2372
- Returns: {
2373
- created_at: string;
2374
- id: string;
2375
- name: string;
2376
- repo_branch: string;
2377
- repo_url: string;
2378
- sandbox_id: string;
2379
- target: string;
2380
- updated_at: string;
2381
- user_id: string;
2382
- }[];
2343
+ Returns: Json;
2383
2344
  };
2384
2345
  audit_project_upsert: {
2385
2346
  Args: {
2386
- p_agent_config?: Json;
2347
+ p_config?: Json;
2387
2348
  p_id?: string;
2388
2349
  p_name?: string;
2389
2350
  p_repo_branch?: string;
2390
2351
  p_repo_url?: string;
2391
2352
  p_target?: string;
2353
+ p_worker_id?: string;
2392
2354
  };
2393
2355
  Returns: string;
2394
2356
  };
@@ -2555,7 +2517,6 @@ export type Database = {
2555
2517
  chat_list: {
2556
2518
  Args: {
2557
2519
  p_agent_id?: string;
2558
- p_user_id?: string;
2559
2520
  };
2560
2521
  Returns: {
2561
2522
  agent_id: string;
@@ -2615,7 +2576,6 @@ export type Database = {
2615
2576
  p_id: string;
2616
2577
  p_parts: Json;
2617
2578
  p_role: string;
2618
- p_user_id?: string;
2619
2579
  };
2620
2580
  Returns: {
2621
2581
  attachments: Json | null;
@@ -2686,8 +2646,7 @@ export type Database = {
2686
2646
  };
2687
2647
  Returns: {
2688
2648
  auth_secret: string;
2689
- auth_type: string;
2690
- ip: string;
2649
+ host: string;
2691
2650
  port: number;
2692
2651
  username: string;
2693
2652
  }[];
@@ -2702,17 +2661,15 @@ export type Database = {
2702
2661
  };
2703
2662
  Returns: {
2704
2663
  auth_secret: string;
2705
- auth_type: string;
2706
- config: Json;
2707
- enabled: boolean;
2664
+ host: string;
2708
2665
  id: string;
2709
- ip: string;
2710
- max_instances: number;
2666
+ is_public: boolean;
2711
2667
  name: string;
2712
2668
  port: number;
2713
2669
  provider: string;
2714
2670
  status: string;
2715
2671
  updated_at: string;
2672
+ user_id: string;
2716
2673
  username: string;
2717
2674
  worker_count: number;
2718
2675
  }[];
@@ -2720,12 +2677,8 @@ export type Database = {
2720
2677
  compute_node_upsert: {
2721
2678
  Args: {
2722
2679
  p_auth_secret?: string;
2723
- p_auth_type?: string;
2724
- p_config?: Json;
2725
- p_enabled?: boolean;
2680
+ p_host?: string;
2726
2681
  p_id?: string;
2727
- p_ip?: string;
2728
- p_max_instances?: number;
2729
2682
  p_name?: string;
2730
2683
  p_port?: number;
2731
2684
  p_provider?: string;
@@ -2890,22 +2843,11 @@ export type Database = {
2890
2843
  Returns: Json;
2891
2844
  };
2892
2845
  resource_upsert: {
2893
- Args: {
2894
- content: Json;
2895
- description: string;
2896
- key: string;
2897
- target_id?: string;
2898
- title: string;
2899
- type: string;
2900
- };
2901
- Returns: undefined;
2902
- } | {
2903
2846
  Args: {
2904
2847
  content: Json;
2905
2848
  description: string;
2906
2849
  key: string;
2907
2850
  p_id?: string;
2908
- p_user_id?: string;
2909
2851
  target_id?: string;
2910
2852
  title: string;
2911
2853
  type: string;
@@ -2913,9 +2855,7 @@ export type Database = {
2913
2855
  Returns: string;
2914
2856
  };
2915
2857
  sandbox_find_active: {
2916
- Args: {
2917
- p_user_id: string;
2918
- };
2858
+ Args: never;
2919
2859
  Returns: Json;
2920
2860
  };
2921
2861
  sandbox_get: {
@@ -2944,12 +2884,6 @@ export type Database = {
2944
2884
  isSetofReturn: true;
2945
2885
  };
2946
2886
  };
2947
- sandbox_get_active: {
2948
- Args: {
2949
- p_user_id: string;
2950
- };
2951
- Returns: Json;
2952
- };
2953
2887
  service_get: {
2954
2888
  Args: {
2955
2889
  p_service_id?: string;
@@ -3052,22 +2986,34 @@ export type Database = {
3052
2986
  };
3053
2987
  Returns: undefined;
3054
2988
  };
3055
- sysview_list: {
2989
+ system_config_public_delete: {
2990
+ Args: {
2991
+ p_key: string;
2992
+ };
2993
+ Returns: undefined;
2994
+ };
2995
+ system_config_public_get: {
3056
2996
  Args: {
3057
- kw: string;
2997
+ p_key: string;
3058
2998
  };
2999
+ Returns: Json;
3000
+ };
3001
+ system_config_public_list: {
3002
+ Args: never;
3059
3003
  Returns: {
3060
- created_at: string;
3061
- id: string;
3062
- name: string | null;
3063
- updated_at: string | null;
3004
+ description: string;
3005
+ key: string;
3006
+ updated_at: string;
3007
+ value: Json;
3064
3008
  }[];
3065
- SetofOptions: {
3066
- from: "*";
3067
- to: "sysviews";
3068
- isOneToOne: false;
3069
- isSetofReturn: true;
3009
+ };
3010
+ system_config_public_set: {
3011
+ Args: {
3012
+ p_description?: string;
3013
+ p_key: string;
3014
+ p_value: Json;
3070
3015
  };
3016
+ Returns: undefined;
3071
3017
  };
3072
3018
  task_call_demo_api: {
3073
3019
  Args: never;
@@ -3158,50 +3104,48 @@ export type Database = {
3158
3104
  };
3159
3105
  worker_get: {
3160
3106
  Args: {
3161
- worker_id: string;
3107
+ p_id?: string;
3108
+ p_is_active?: boolean;
3109
+ };
3110
+ Returns: Json;
3111
+ };
3112
+ worker_get_active: {
3113
+ Args: never;
3114
+ Returns: Json;
3115
+ };
3116
+ worker_get_detail: {
3117
+ Args: {
3118
+ resource_id?: string;
3162
3119
  };
3163
3120
  Returns: {
3164
- config: Json | null;
3165
- container_id: string | null;
3166
3121
  created_at: string;
3167
- host_id: string | null;
3122
+ data: Json | null;
3123
+ description: string | null;
3124
+ hash1: string | null;
3125
+ icon: string | null;
3168
3126
  id: string;
3169
- latest_pull_at: string | null;
3170
- name: string | null;
3171
- state: Json | null;
3172
- status: string | null;
3173
- updated_at: string;
3127
+ is_public: boolean | null;
3128
+ meta: Json | null;
3129
+ target_id: string | null;
3130
+ title: string | null;
3131
+ type: string | null;
3132
+ updated_at: string | null;
3174
3133
  user_id: string | null;
3175
- };
3134
+ }[];
3176
3135
  SetofOptions: {
3177
3136
  from: "*";
3178
- to: "workers";
3179
- isOneToOne: true;
3180
- isSetofReturn: false;
3137
+ to: "resources";
3138
+ isOneToOne: false;
3139
+ isSetofReturn: true;
3181
3140
  };
3182
3141
  };
3183
- worker_keepalive: {
3142
+ worker_heartbeat: {
3184
3143
  Args: {
3185
- p_user_id?: string;
3186
3144
  p_worker_id: string;
3187
3145
  };
3188
3146
  Returns: Json;
3189
3147
  };
3190
3148
  worker_list: {
3191
- Args: {
3192
- kw?: string;
3193
- page_no?: number;
3194
- page_size?: number;
3195
- };
3196
- Returns: {
3197
- config: Json;
3198
- host_id: string;
3199
- id: string;
3200
- name: string;
3201
- status: string;
3202
- updated_at: string;
3203
- }[];
3204
- } | {
3205
3149
  Args: {
3206
3150
  kw?: string;
3207
3151
  p_host_id?: string;
@@ -3212,7 +3156,9 @@ export type Database = {
3212
3156
  config: Json;
3213
3157
  host_id: string;
3214
3158
  id: string;
3159
+ is_public: boolean;
3215
3160
  name: string;
3161
+ state: Json;
3216
3162
  status: string;
3217
3163
  updated_at: string;
3218
3164
  }[];
@@ -3223,15 +3169,9 @@ export type Database = {
3223
3169
  };
3224
3170
  worker_pull: {
3225
3171
  Args: {
3226
- worker_id: string;
3227
- };
3228
- Returns: unknown[];
3229
- SetofOptions: {
3230
- from: "*";
3231
- to: "message_record";
3232
- isOneToOne: false;
3233
- isSetofReturn: true;
3172
+ p_worker_id: string;
3234
3173
  };
3174
+ Returns: Json[];
3235
3175
  };
3236
3176
  worker_task_list: {
3237
3177
  Args: {
@@ -3279,9 +3219,9 @@ export type Database = {
3279
3219
  p_config?: Json;
3280
3220
  p_host_id?: string;
3281
3221
  p_id?: string;
3222
+ p_is_managed?: boolean;
3282
3223
  p_name?: string;
3283
3224
  p_status?: string;
3284
- p_user_id?: string;
3285
3225
  };
3286
3226
  Returns: Json;
3287
3227
  };