@ideascol/agents-generator-sdk 0.2.2 → 0.3.0

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.
package/README.md CHANGED
@@ -80,3 +80,14 @@ npx openapi-typescript-codegen \
80
80
  --output src/lib/clients/agents-generator \
81
81
  --client fetch
82
82
  ```
83
+
84
+ ```bash
85
+ npx openapi-typescript-codegen \
86
+ --input http://localhost:8000/openapi.json \
87
+ --output src/lib/clients/agents-generator \
88
+ --client fetch
89
+ ```
90
+
91
+ ```bash
92
+ curl -s http://localhost:8000/openapi.json -o openapi.json
93
+ ```
package/dist/bin/cli.js CHANGED
@@ -598,7 +598,7 @@ var OpenAPI;
598
598
  var init_OpenAPI = __esm(() => {
599
599
  OpenAPI = {
600
600
  BASE: "",
601
- VERSION: "main-2ca05a009ba704a733f8de2cabfb9379a45d1b79",
601
+ VERSION: "main-1.0.0",
602
602
  WITH_CREDENTIALS: false,
603
603
  CREDENTIALS: "include",
604
604
  TOKEN: undefined,
@@ -846,20 +846,21 @@ class AdminAgentsService {
846
846
  }
847
847
  });
848
848
  }
849
- static getAgents(skip, limit = 100) {
849
+ static getAgents(skip, limit = 100, workspaceId) {
850
850
  return request(OpenAPI, {
851
851
  method: "GET",
852
852
  url: "/agents",
853
853
  query: {
854
854
  skip,
855
- limit
855
+ limit,
856
+ workspace_id: workspaceId
856
857
  },
857
858
  errors: {
858
859
  422: `Validation Error`
859
860
  }
860
861
  });
861
862
  }
862
- static updateAgent(agentId, requestBody, userId) {
863
+ static updateAgent(agentId, requestBody, workspaceId) {
863
864
  return request(OpenAPI, {
864
865
  method: "PUT",
865
866
  url: "/agents/{agent_id}",
@@ -867,7 +868,7 @@ class AdminAgentsService {
867
868
  agent_id: agentId
868
869
  },
869
870
  query: {
870
- user_id: userId
871
+ workspace_id: workspaceId
871
872
  },
872
873
  body: requestBody,
873
874
  mediaType: "application/json",
@@ -876,7 +877,7 @@ class AdminAgentsService {
876
877
  }
877
878
  });
878
879
  }
879
- static getAgent(agentId, userId) {
880
+ static getAgent(agentId, workspaceId) {
880
881
  return request(OpenAPI, {
881
882
  method: "GET",
882
883
  url: "/agents/{agent_id}",
@@ -884,14 +885,14 @@ class AdminAgentsService {
884
885
  agent_id: agentId
885
886
  },
886
887
  query: {
887
- user_id: userId
888
+ workspace_id: workspaceId
888
889
  },
889
890
  errors: {
890
891
  422: `Validation Error`
891
892
  }
892
893
  });
893
894
  }
894
- static deleteAgent(agentId, userId) {
895
+ static deleteAgent(agentId, workspaceId) {
895
896
  return request(OpenAPI, {
896
897
  method: "DELETE",
897
898
  url: "/agents/{agent_id}",
@@ -899,7 +900,7 @@ class AdminAgentsService {
899
900
  agent_id: agentId
900
901
  },
901
902
  query: {
902
- user_id: userId
903
+ workspace_id: workspaceId
903
904
  },
904
905
  errors: {
905
906
  422: `Validation Error`
@@ -1309,6 +1310,82 @@ var init_AdminMcpServersService = __esm(() => {
1309
1310
  init_request();
1310
1311
  });
1311
1312
 
1313
+ // src/lib/clients/agents-generator/services/AdminWorkspacesService.ts
1314
+ class AdminWorkspacesService {
1315
+ static createWorkspace(requestBody) {
1316
+ return request(OpenAPI, {
1317
+ method: "POST",
1318
+ url: "/workspaces",
1319
+ body: requestBody,
1320
+ mediaType: "application/json",
1321
+ errors: {
1322
+ 422: `Validation Error`
1323
+ }
1324
+ });
1325
+ }
1326
+ static getWorkspaces(skip, limit = 100) {
1327
+ return request(OpenAPI, {
1328
+ method: "GET",
1329
+ url: "/workspaces",
1330
+ query: {
1331
+ skip,
1332
+ limit
1333
+ },
1334
+ errors: {
1335
+ 422: `Validation Error`
1336
+ }
1337
+ });
1338
+ }
1339
+ static getDefaultWorkspace() {
1340
+ return request(OpenAPI, {
1341
+ method: "GET",
1342
+ url: "/workspaces/default"
1343
+ });
1344
+ }
1345
+ static getWorkspace(workspaceId) {
1346
+ return request(OpenAPI, {
1347
+ method: "GET",
1348
+ url: "/workspaces/{workspace_id}",
1349
+ path: {
1350
+ workspace_id: workspaceId
1351
+ },
1352
+ errors: {
1353
+ 422: `Validation Error`
1354
+ }
1355
+ });
1356
+ }
1357
+ static updateWorkspace(workspaceId, requestBody) {
1358
+ return request(OpenAPI, {
1359
+ method: "PUT",
1360
+ url: "/workspaces/{workspace_id}",
1361
+ path: {
1362
+ workspace_id: workspaceId
1363
+ },
1364
+ body: requestBody,
1365
+ mediaType: "application/json",
1366
+ errors: {
1367
+ 422: `Validation Error`
1368
+ }
1369
+ });
1370
+ }
1371
+ static deleteWorkspace(workspaceId) {
1372
+ return request(OpenAPI, {
1373
+ method: "DELETE",
1374
+ url: "/workspaces/{workspace_id}",
1375
+ path: {
1376
+ workspace_id: workspaceId
1377
+ },
1378
+ errors: {
1379
+ 422: `Validation Error`
1380
+ }
1381
+ });
1382
+ }
1383
+ }
1384
+ var init_AdminWorkspacesService = __esm(() => {
1385
+ init_OpenAPI();
1386
+ init_request();
1387
+ });
1388
+
1312
1389
  // src/lib/clients/agents-generator/services/AgentService.ts
1313
1390
  class AgentService {
1314
1391
  static createAgent(requestBody) {
@@ -1322,20 +1399,21 @@ class AgentService {
1322
1399
  }
1323
1400
  });
1324
1401
  }
1325
- static getAgents(skip, limit = 100) {
1402
+ static getAgents(skip, limit = 100, workspaceId) {
1326
1403
  return request(OpenAPI, {
1327
1404
  method: "GET",
1328
1405
  url: "/agents",
1329
1406
  query: {
1330
1407
  skip,
1331
- limit
1408
+ limit,
1409
+ workspace_id: workspaceId
1332
1410
  },
1333
1411
  errors: {
1334
1412
  422: `Validation Error`
1335
1413
  }
1336
1414
  });
1337
1415
  }
1338
- static updateAgent(agentId, requestBody, userId) {
1416
+ static updateAgent(agentId, requestBody, workspaceId) {
1339
1417
  return request(OpenAPI, {
1340
1418
  method: "PUT",
1341
1419
  url: "/agents/{agent_id}",
@@ -1343,7 +1421,7 @@ class AgentService {
1343
1421
  agent_id: agentId
1344
1422
  },
1345
1423
  query: {
1346
- user_id: userId
1424
+ workspace_id: workspaceId
1347
1425
  },
1348
1426
  body: requestBody,
1349
1427
  mediaType: "application/json",
@@ -1352,7 +1430,7 @@ class AgentService {
1352
1430
  }
1353
1431
  });
1354
1432
  }
1355
- static getAgent(agentId, userId) {
1433
+ static getAgent(agentId, workspaceId) {
1356
1434
  return request(OpenAPI, {
1357
1435
  method: "GET",
1358
1436
  url: "/agents/{agent_id}",
@@ -1360,14 +1438,14 @@ class AgentService {
1360
1438
  agent_id: agentId
1361
1439
  },
1362
1440
  query: {
1363
- user_id: userId
1441
+ workspace_id: workspaceId
1364
1442
  },
1365
1443
  errors: {
1366
1444
  422: `Validation Error`
1367
1445
  }
1368
1446
  });
1369
1447
  }
1370
- static deleteAgent(agentId, userId) {
1448
+ static deleteAgent(agentId, workspaceId) {
1371
1449
  return request(OpenAPI, {
1372
1450
  method: "DELETE",
1373
1451
  url: "/agents/{agent_id}",
@@ -1375,7 +1453,7 @@ class AgentService {
1375
1453
  agent_id: agentId
1376
1454
  },
1377
1455
  query: {
1378
- user_id: userId
1456
+ workspace_id: workspaceId
1379
1457
  },
1380
1458
  errors: {
1381
1459
  422: `Validation Error`
@@ -1832,7 +1910,7 @@ var init_McpServersService = __esm(() => {
1832
1910
 
1833
1911
  // src/lib/clients/agents-generator/services/PublicAgentsService.ts
1834
1912
  class PublicAgentsService {
1835
- static getAgent(agentId, userId) {
1913
+ static getAgent(agentId, workspaceId) {
1836
1914
  return request(OpenAPI, {
1837
1915
  method: "GET",
1838
1916
  url: "/agents/{agent_id}",
@@ -1840,7 +1918,7 @@ class PublicAgentsService {
1840
1918
  agent_id: agentId
1841
1919
  },
1842
1920
  query: {
1843
- user_id: userId
1921
+ workspace_id: workspaceId
1844
1922
  },
1845
1923
  errors: {
1846
1924
  422: `Validation Error`
@@ -1923,6 +2001,82 @@ var init_RootService = __esm(() => {
1923
2001
  init_request();
1924
2002
  });
1925
2003
 
2004
+ // src/lib/clients/agents-generator/services/WorkspacesService.ts
2005
+ class WorkspacesService {
2006
+ static createWorkspace(requestBody) {
2007
+ return request(OpenAPI, {
2008
+ method: "POST",
2009
+ url: "/workspaces",
2010
+ body: requestBody,
2011
+ mediaType: "application/json",
2012
+ errors: {
2013
+ 422: `Validation Error`
2014
+ }
2015
+ });
2016
+ }
2017
+ static getWorkspaces(skip, limit = 100) {
2018
+ return request(OpenAPI, {
2019
+ method: "GET",
2020
+ url: "/workspaces",
2021
+ query: {
2022
+ skip,
2023
+ limit
2024
+ },
2025
+ errors: {
2026
+ 422: `Validation Error`
2027
+ }
2028
+ });
2029
+ }
2030
+ static getDefaultWorkspace() {
2031
+ return request(OpenAPI, {
2032
+ method: "GET",
2033
+ url: "/workspaces/default"
2034
+ });
2035
+ }
2036
+ static getWorkspace(workspaceId) {
2037
+ return request(OpenAPI, {
2038
+ method: "GET",
2039
+ url: "/workspaces/{workspace_id}",
2040
+ path: {
2041
+ workspace_id: workspaceId
2042
+ },
2043
+ errors: {
2044
+ 422: `Validation Error`
2045
+ }
2046
+ });
2047
+ }
2048
+ static updateWorkspace(workspaceId, requestBody) {
2049
+ return request(OpenAPI, {
2050
+ method: "PUT",
2051
+ url: "/workspaces/{workspace_id}",
2052
+ path: {
2053
+ workspace_id: workspaceId
2054
+ },
2055
+ body: requestBody,
2056
+ mediaType: "application/json",
2057
+ errors: {
2058
+ 422: `Validation Error`
2059
+ }
2060
+ });
2061
+ }
2062
+ static deleteWorkspace(workspaceId) {
2063
+ return request(OpenAPI, {
2064
+ method: "DELETE",
2065
+ url: "/workspaces/{workspace_id}",
2066
+ path: {
2067
+ workspace_id: workspaceId
2068
+ },
2069
+ errors: {
2070
+ 422: `Validation Error`
2071
+ }
2072
+ });
2073
+ }
2074
+ }
2075
+ var init_WorkspacesService = __esm(() => {
2076
+ init_OpenAPI();
2077
+ init_request();
2078
+ });
2079
+
1926
2080
  // src/lib/clients/agents-generator/index.ts
1927
2081
  var init_agents_generator = __esm(() => {
1928
2082
  init_ApiError();
@@ -1933,6 +2087,7 @@ var init_agents_generator = __esm(() => {
1933
2087
  init_AdminCredentialsService();
1934
2088
  init_AdminFileLibraryService();
1935
2089
  init_AdminMcpServersService();
2090
+ init_AdminWorkspacesService();
1936
2091
  init_AgentService();
1937
2092
  init_ConversationsService();
1938
2093
  init_CredentialsService();
@@ -1941,6 +2096,7 @@ var init_agents_generator = __esm(() => {
1941
2096
  init_PublicAgentsService();
1942
2097
  init_PublicConversationsService();
1943
2098
  init_RootService();
2099
+ init_WorkspacesService();
1944
2100
  });
1945
2101
 
1946
2102
  // src/lib/index.ts
package/dist/index.js CHANGED
@@ -166,7 +166,7 @@ var OpenAPI;
166
166
  var init_OpenAPI = __esm(() => {
167
167
  OpenAPI = {
168
168
  BASE: "",
169
- VERSION: "main-2ca05a009ba704a733f8de2cabfb9379a45d1b79",
169
+ VERSION: "main-1.0.0",
170
170
  WITH_CREDENTIALS: false,
171
171
  CREDENTIALS: "include",
172
172
  TOKEN: undefined,
@@ -414,20 +414,21 @@ class AdminAgentsService {
414
414
  }
415
415
  });
416
416
  }
417
- static getAgents(skip, limit = 100) {
417
+ static getAgents(skip, limit = 100, workspaceId) {
418
418
  return request(OpenAPI, {
419
419
  method: "GET",
420
420
  url: "/agents",
421
421
  query: {
422
422
  skip,
423
- limit
423
+ limit,
424
+ workspace_id: workspaceId
424
425
  },
425
426
  errors: {
426
427
  422: `Validation Error`
427
428
  }
428
429
  });
429
430
  }
430
- static updateAgent(agentId, requestBody, userId) {
431
+ static updateAgent(agentId, requestBody, workspaceId) {
431
432
  return request(OpenAPI, {
432
433
  method: "PUT",
433
434
  url: "/agents/{agent_id}",
@@ -435,7 +436,7 @@ class AdminAgentsService {
435
436
  agent_id: agentId
436
437
  },
437
438
  query: {
438
- user_id: userId
439
+ workspace_id: workspaceId
439
440
  },
440
441
  body: requestBody,
441
442
  mediaType: "application/json",
@@ -444,7 +445,7 @@ class AdminAgentsService {
444
445
  }
445
446
  });
446
447
  }
447
- static getAgent(agentId, userId) {
448
+ static getAgent(agentId, workspaceId) {
448
449
  return request(OpenAPI, {
449
450
  method: "GET",
450
451
  url: "/agents/{agent_id}",
@@ -452,14 +453,14 @@ class AdminAgentsService {
452
453
  agent_id: agentId
453
454
  },
454
455
  query: {
455
- user_id: userId
456
+ workspace_id: workspaceId
456
457
  },
457
458
  errors: {
458
459
  422: `Validation Error`
459
460
  }
460
461
  });
461
462
  }
462
- static deleteAgent(agentId, userId) {
463
+ static deleteAgent(agentId, workspaceId) {
463
464
  return request(OpenAPI, {
464
465
  method: "DELETE",
465
466
  url: "/agents/{agent_id}",
@@ -467,7 +468,7 @@ class AdminAgentsService {
467
468
  agent_id: agentId
468
469
  },
469
470
  query: {
470
- user_id: userId
471
+ workspace_id: workspaceId
471
472
  },
472
473
  errors: {
473
474
  422: `Validation Error`
@@ -877,6 +878,82 @@ var init_AdminMcpServersService = __esm(() => {
877
878
  init_request();
878
879
  });
879
880
 
881
+ // src/lib/clients/agents-generator/services/AdminWorkspacesService.ts
882
+ class AdminWorkspacesService {
883
+ static createWorkspace(requestBody) {
884
+ return request(OpenAPI, {
885
+ method: "POST",
886
+ url: "/workspaces",
887
+ body: requestBody,
888
+ mediaType: "application/json",
889
+ errors: {
890
+ 422: `Validation Error`
891
+ }
892
+ });
893
+ }
894
+ static getWorkspaces(skip, limit = 100) {
895
+ return request(OpenAPI, {
896
+ method: "GET",
897
+ url: "/workspaces",
898
+ query: {
899
+ skip,
900
+ limit
901
+ },
902
+ errors: {
903
+ 422: `Validation Error`
904
+ }
905
+ });
906
+ }
907
+ static getDefaultWorkspace() {
908
+ return request(OpenAPI, {
909
+ method: "GET",
910
+ url: "/workspaces/default"
911
+ });
912
+ }
913
+ static getWorkspace(workspaceId) {
914
+ return request(OpenAPI, {
915
+ method: "GET",
916
+ url: "/workspaces/{workspace_id}",
917
+ path: {
918
+ workspace_id: workspaceId
919
+ },
920
+ errors: {
921
+ 422: `Validation Error`
922
+ }
923
+ });
924
+ }
925
+ static updateWorkspace(workspaceId, requestBody) {
926
+ return request(OpenAPI, {
927
+ method: "PUT",
928
+ url: "/workspaces/{workspace_id}",
929
+ path: {
930
+ workspace_id: workspaceId
931
+ },
932
+ body: requestBody,
933
+ mediaType: "application/json",
934
+ errors: {
935
+ 422: `Validation Error`
936
+ }
937
+ });
938
+ }
939
+ static deleteWorkspace(workspaceId) {
940
+ return request(OpenAPI, {
941
+ method: "DELETE",
942
+ url: "/workspaces/{workspace_id}",
943
+ path: {
944
+ workspace_id: workspaceId
945
+ },
946
+ errors: {
947
+ 422: `Validation Error`
948
+ }
949
+ });
950
+ }
951
+ }
952
+ var init_AdminWorkspacesService = __esm(() => {
953
+ init_OpenAPI();
954
+ init_request();
955
+ });
956
+
880
957
  // src/lib/clients/agents-generator/services/AgentService.ts
881
958
  class AgentService {
882
959
  static createAgent(requestBody) {
@@ -890,20 +967,21 @@ class AgentService {
890
967
  }
891
968
  });
892
969
  }
893
- static getAgents(skip, limit = 100) {
970
+ static getAgents(skip, limit = 100, workspaceId) {
894
971
  return request(OpenAPI, {
895
972
  method: "GET",
896
973
  url: "/agents",
897
974
  query: {
898
975
  skip,
899
- limit
976
+ limit,
977
+ workspace_id: workspaceId
900
978
  },
901
979
  errors: {
902
980
  422: `Validation Error`
903
981
  }
904
982
  });
905
983
  }
906
- static updateAgent(agentId, requestBody, userId) {
984
+ static updateAgent(agentId, requestBody, workspaceId) {
907
985
  return request(OpenAPI, {
908
986
  method: "PUT",
909
987
  url: "/agents/{agent_id}",
@@ -911,7 +989,7 @@ class AgentService {
911
989
  agent_id: agentId
912
990
  },
913
991
  query: {
914
- user_id: userId
992
+ workspace_id: workspaceId
915
993
  },
916
994
  body: requestBody,
917
995
  mediaType: "application/json",
@@ -920,7 +998,7 @@ class AgentService {
920
998
  }
921
999
  });
922
1000
  }
923
- static getAgent(agentId, userId) {
1001
+ static getAgent(agentId, workspaceId) {
924
1002
  return request(OpenAPI, {
925
1003
  method: "GET",
926
1004
  url: "/agents/{agent_id}",
@@ -928,14 +1006,14 @@ class AgentService {
928
1006
  agent_id: agentId
929
1007
  },
930
1008
  query: {
931
- user_id: userId
1009
+ workspace_id: workspaceId
932
1010
  },
933
1011
  errors: {
934
1012
  422: `Validation Error`
935
1013
  }
936
1014
  });
937
1015
  }
938
- static deleteAgent(agentId, userId) {
1016
+ static deleteAgent(agentId, workspaceId) {
939
1017
  return request(OpenAPI, {
940
1018
  method: "DELETE",
941
1019
  url: "/agents/{agent_id}",
@@ -943,7 +1021,7 @@ class AgentService {
943
1021
  agent_id: agentId
944
1022
  },
945
1023
  query: {
946
- user_id: userId
1024
+ workspace_id: workspaceId
947
1025
  },
948
1026
  errors: {
949
1027
  422: `Validation Error`
@@ -1400,7 +1478,7 @@ var init_McpServersService = __esm(() => {
1400
1478
 
1401
1479
  // src/lib/clients/agents-generator/services/PublicAgentsService.ts
1402
1480
  class PublicAgentsService {
1403
- static getAgent(agentId, userId) {
1481
+ static getAgent(agentId, workspaceId) {
1404
1482
  return request(OpenAPI, {
1405
1483
  method: "GET",
1406
1484
  url: "/agents/{agent_id}",
@@ -1408,7 +1486,7 @@ class PublicAgentsService {
1408
1486
  agent_id: agentId
1409
1487
  },
1410
1488
  query: {
1411
- user_id: userId
1489
+ workspace_id: workspaceId
1412
1490
  },
1413
1491
  errors: {
1414
1492
  422: `Validation Error`
@@ -1491,6 +1569,82 @@ var init_RootService = __esm(() => {
1491
1569
  init_request();
1492
1570
  });
1493
1571
 
1572
+ // src/lib/clients/agents-generator/services/WorkspacesService.ts
1573
+ class WorkspacesService {
1574
+ static createWorkspace(requestBody) {
1575
+ return request(OpenAPI, {
1576
+ method: "POST",
1577
+ url: "/workspaces",
1578
+ body: requestBody,
1579
+ mediaType: "application/json",
1580
+ errors: {
1581
+ 422: `Validation Error`
1582
+ }
1583
+ });
1584
+ }
1585
+ static getWorkspaces(skip, limit = 100) {
1586
+ return request(OpenAPI, {
1587
+ method: "GET",
1588
+ url: "/workspaces",
1589
+ query: {
1590
+ skip,
1591
+ limit
1592
+ },
1593
+ errors: {
1594
+ 422: `Validation Error`
1595
+ }
1596
+ });
1597
+ }
1598
+ static getDefaultWorkspace() {
1599
+ return request(OpenAPI, {
1600
+ method: "GET",
1601
+ url: "/workspaces/default"
1602
+ });
1603
+ }
1604
+ static getWorkspace(workspaceId) {
1605
+ return request(OpenAPI, {
1606
+ method: "GET",
1607
+ url: "/workspaces/{workspace_id}",
1608
+ path: {
1609
+ workspace_id: workspaceId
1610
+ },
1611
+ errors: {
1612
+ 422: `Validation Error`
1613
+ }
1614
+ });
1615
+ }
1616
+ static updateWorkspace(workspaceId, requestBody) {
1617
+ return request(OpenAPI, {
1618
+ method: "PUT",
1619
+ url: "/workspaces/{workspace_id}",
1620
+ path: {
1621
+ workspace_id: workspaceId
1622
+ },
1623
+ body: requestBody,
1624
+ mediaType: "application/json",
1625
+ errors: {
1626
+ 422: `Validation Error`
1627
+ }
1628
+ });
1629
+ }
1630
+ static deleteWorkspace(workspaceId) {
1631
+ return request(OpenAPI, {
1632
+ method: "DELETE",
1633
+ url: "/workspaces/{workspace_id}",
1634
+ path: {
1635
+ workspace_id: workspaceId
1636
+ },
1637
+ errors: {
1638
+ 422: `Validation Error`
1639
+ }
1640
+ });
1641
+ }
1642
+ }
1643
+ var init_WorkspacesService = __esm(() => {
1644
+ init_OpenAPI();
1645
+ init_request();
1646
+ });
1647
+
1494
1648
  // src/lib/clients/agents-generator/index.ts
1495
1649
  var init_agents_generator = __esm(() => {
1496
1650
  init_ApiError();
@@ -1501,6 +1655,7 @@ var init_agents_generator = __esm(() => {
1501
1655
  init_AdminCredentialsService();
1502
1656
  init_AdminFileLibraryService();
1503
1657
  init_AdminMcpServersService();
1658
+ init_AdminWorkspacesService();
1504
1659
  init_AgentService();
1505
1660
  init_ConversationsService();
1506
1661
  init_CredentialsService();
@@ -1509,6 +1664,7 @@ var init_agents_generator = __esm(() => {
1509
1664
  init_PublicAgentsService();
1510
1665
  init_PublicConversationsService();
1511
1666
  init_RootService();
1667
+ init_WorkspacesService();
1512
1668
  });
1513
1669
 
1514
1670
  // src/lib/index.ts
@@ -1759,6 +1915,7 @@ var init_lib = __esm(() => {
1759
1915
  // src/index.ts
1760
1916
  var exports_src = {};
1761
1917
  __export(exports_src, {
1918
+ WorkspacesService: () => WorkspacesService,
1762
1919
  RootService: () => RootService,
1763
1920
  PublicConversationsService: () => PublicConversationsService,
1764
1921
  PublicAgentsService: () => PublicAgentsService,
@@ -1772,6 +1929,7 @@ __export(exports_src, {
1772
1929
  ApiError: () => ApiError,
1773
1930
  AgentService: () => AgentService,
1774
1931
  AgentClient: () => AgentClient,
1932
+ AdminWorkspacesService: () => AdminWorkspacesService,
1775
1933
  AdminMcpServersService: () => AdminMcpServersService,
1776
1934
  AdminFileLibraryService: () => AdminFileLibraryService,
1777
1935
  AdminCredentialsService: () => AdminCredentialsService,
@@ -41,11 +41,16 @@ export type { NodeData } from './models/NodeData';
41
41
  export type { Position } from './models/Position';
42
42
  export type { UpdateMCPServerRequest } from './models/UpdateMCPServerRequest';
43
43
  export type { ValidationError } from './models/ValidationError';
44
+ export type { WorkspaceCreate } from './models/WorkspaceCreate';
45
+ export type { WorkspaceResponse } from './models/WorkspaceResponse';
46
+ export type { WorkspaceUpdate } from './models/WorkspaceUpdate';
47
+ export type { WorkspaceWithStats } from './models/WorkspaceWithStats';
44
48
  export { AdminAgentsService } from './services/AdminAgentsService';
45
49
  export { AdminConversationsService } from './services/AdminConversationsService';
46
50
  export { AdminCredentialsService } from './services/AdminCredentialsService';
47
51
  export { AdminFileLibraryService } from './services/AdminFileLibraryService';
48
52
  export { AdminMcpServersService } from './services/AdminMcpServersService';
53
+ export { AdminWorkspacesService } from './services/AdminWorkspacesService';
49
54
  export { AgentService } from './services/AgentService';
50
55
  export { ConversationsService } from './services/ConversationsService';
51
56
  export { CredentialsService } from './services/CredentialsService';
@@ -54,3 +59,4 @@ export { McpServersService } from './services/McpServersService';
54
59
  export { PublicAgentsService } from './services/PublicAgentsService';
55
60
  export { PublicConversationsService } from './services/PublicConversationsService';
56
61
  export { RootService } from './services/RootService';
62
+ export { WorkspacesService } from './services/WorkspacesService';
@@ -0,0 +1,5 @@
1
+ export type WorkspaceCreate = {
2
+ name: string;
3
+ description?: (string | null);
4
+ user_id: string;
5
+ };
@@ -0,0 +1,8 @@
1
+ export type WorkspaceResponse = {
2
+ name: string;
3
+ description?: (string | null);
4
+ id: string;
5
+ user_id: string;
6
+ created_at: string;
7
+ updated_at: string;
8
+ };
@@ -0,0 +1,4 @@
1
+ export type WorkspaceUpdate = {
2
+ name?: (string | null);
3
+ description?: (string | null);
4
+ };
@@ -0,0 +1,12 @@
1
+ export type WorkspaceWithStats = {
2
+ name: string;
3
+ description?: (string | null);
4
+ id: string;
5
+ user_id: string;
6
+ created_at: string;
7
+ updated_at: string;
8
+ agents_count?: number;
9
+ conversations_count?: number;
10
+ credentials_count?: number;
11
+ buckets_count?: number;
12
+ };
@@ -17,35 +17,36 @@ export declare class AdminAgentsService {
17
17
  * Get Agents
18
18
  * @param skip
19
19
  * @param limit
20
+ * @param workspaceId
20
21
  * @returns GetAgentResponse Successful Response
21
22
  * @throws ApiError
22
23
  */
23
- static getAgents(skip?: number, limit?: number): CancelablePromise<Array<GetAgentResponse>>;
24
+ static getAgents(skip?: number, limit?: number, workspaceId?: (string | null)): CancelablePromise<Array<GetAgentResponse>>;
24
25
  /**
25
26
  * Update Agent
26
27
  * @param agentId
27
28
  * @param requestBody
28
- * @param userId
29
+ * @param workspaceId
29
30
  * @returns any Successful Response
30
31
  * @throws ApiError
31
32
  */
32
- static updateAgent(agentId: string, requestBody: AgentRequest, userId?: (string | null)): CancelablePromise<Record<string, any>>;
33
+ static updateAgent(agentId: string, requestBody: AgentRequest, workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
33
34
  /**
34
35
  * Get Agent
35
36
  * @param agentId
36
- * @param userId
37
+ * @param workspaceId
37
38
  * @returns GetAgentResponse Successful Response
38
39
  * @throws ApiError
39
40
  */
40
- static getAgent(agentId: string, userId?: (string | null)): CancelablePromise<GetAgentResponse>;
41
+ static getAgent(agentId: string, workspaceId?: (string | null)): CancelablePromise<GetAgentResponse>;
41
42
  /**
42
43
  * Delete Agent
43
44
  * @param agentId
44
- * @param userId
45
+ * @param workspaceId
45
46
  * @returns any Successful Response
46
47
  * @throws ApiError
47
48
  */
48
- static deleteAgent(agentId: string, userId?: (string | null)): CancelablePromise<Record<string, any>>;
49
+ static deleteAgent(agentId: string, workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
49
50
  /**
50
51
  * Initialize Agent
51
52
  * @param agentId
@@ -0,0 +1,56 @@
1
+ import type { WorkspaceCreate } from '../models/WorkspaceCreate';
2
+ import type { WorkspaceResponse } from '../models/WorkspaceResponse';
3
+ import type { WorkspaceUpdate } from '../models/WorkspaceUpdate';
4
+ import type { WorkspaceWithStats } from '../models/WorkspaceWithStats';
5
+ import type { CancelablePromise } from '../core/CancelablePromise';
6
+ export declare class AdminWorkspacesService {
7
+ /**
8
+ * Create Workspace
9
+ * Create a new workspace
10
+ * @param requestBody
11
+ * @returns WorkspaceResponse Successful Response
12
+ * @throws ApiError
13
+ */
14
+ static createWorkspace(requestBody: WorkspaceCreate): CancelablePromise<WorkspaceResponse>;
15
+ /**
16
+ * Get Workspaces
17
+ * Get all workspaces for the current user
18
+ * @param skip
19
+ * @param limit
20
+ * @returns WorkspaceResponse Successful Response
21
+ * @throws ApiError
22
+ */
23
+ static getWorkspaces(skip?: number, limit?: number): CancelablePromise<Array<WorkspaceResponse>>;
24
+ /**
25
+ * Get Default Workspace
26
+ * Get or create the default workspace for the current user
27
+ * @returns WorkspaceResponse Successful Response
28
+ * @throws ApiError
29
+ */
30
+ static getDefaultWorkspace(): CancelablePromise<WorkspaceResponse>;
31
+ /**
32
+ * Get Workspace
33
+ * Get a workspace by ID with statistics
34
+ * @param workspaceId
35
+ * @returns WorkspaceWithStats Successful Response
36
+ * @throws ApiError
37
+ */
38
+ static getWorkspace(workspaceId: string): CancelablePromise<WorkspaceWithStats>;
39
+ /**
40
+ * Update Workspace
41
+ * Update a workspace
42
+ * @param workspaceId
43
+ * @param requestBody
44
+ * @returns WorkspaceResponse Successful Response
45
+ * @throws ApiError
46
+ */
47
+ static updateWorkspace(workspaceId: string, requestBody: WorkspaceUpdate): CancelablePromise<WorkspaceResponse>;
48
+ /**
49
+ * Delete Workspace
50
+ * Delete a workspace
51
+ * @param workspaceId
52
+ * @returns any Successful Response
53
+ * @throws ApiError
54
+ */
55
+ static deleteWorkspace(workspaceId: string): CancelablePromise<any>;
56
+ }
@@ -17,35 +17,36 @@ export declare class AgentService {
17
17
  * Get Agents
18
18
  * @param skip
19
19
  * @param limit
20
+ * @param workspaceId
20
21
  * @returns GetAgentResponse Successful Response
21
22
  * @throws ApiError
22
23
  */
23
- static getAgents(skip?: number, limit?: number): CancelablePromise<Array<GetAgentResponse>>;
24
+ static getAgents(skip?: number, limit?: number, workspaceId?: (string | null)): CancelablePromise<Array<GetAgentResponse>>;
24
25
  /**
25
26
  * Update Agent
26
27
  * @param agentId
27
28
  * @param requestBody
28
- * @param userId
29
+ * @param workspaceId
29
30
  * @returns any Successful Response
30
31
  * @throws ApiError
31
32
  */
32
- static updateAgent(agentId: string, requestBody: AgentRequest, userId?: (string | null)): CancelablePromise<Record<string, any>>;
33
+ static updateAgent(agentId: string, requestBody: AgentRequest, workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
33
34
  /**
34
35
  * Get Agent
35
36
  * @param agentId
36
- * @param userId
37
+ * @param workspaceId
37
38
  * @returns GetAgentResponse Successful Response
38
39
  * @throws ApiError
39
40
  */
40
- static getAgent(agentId: string, userId?: (string | null)): CancelablePromise<GetAgentResponse>;
41
+ static getAgent(agentId: string, workspaceId?: (string | null)): CancelablePromise<GetAgentResponse>;
41
42
  /**
42
43
  * Delete Agent
43
44
  * @param agentId
44
- * @param userId
45
+ * @param workspaceId
45
46
  * @returns any Successful Response
46
47
  * @throws ApiError
47
48
  */
48
- static deleteAgent(agentId: string, userId?: (string | null)): CancelablePromise<Record<string, any>>;
49
+ static deleteAgent(agentId: string, workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
49
50
  /**
50
51
  * Initialize Agent
51
52
  * @param agentId
@@ -4,9 +4,9 @@ export declare class PublicAgentsService {
4
4
  /**
5
5
  * Get Agent
6
6
  * @param agentId
7
- * @param userId
7
+ * @param workspaceId
8
8
  * @returns GetAgentResponse Successful Response
9
9
  * @throws ApiError
10
10
  */
11
- static getAgent(agentId: string, userId?: (string | null)): CancelablePromise<GetAgentResponse>;
11
+ static getAgent(agentId: string, workspaceId?: (string | null)): CancelablePromise<GetAgentResponse>;
12
12
  }
@@ -0,0 +1,56 @@
1
+ import type { WorkspaceCreate } from '../models/WorkspaceCreate';
2
+ import type { WorkspaceResponse } from '../models/WorkspaceResponse';
3
+ import type { WorkspaceUpdate } from '../models/WorkspaceUpdate';
4
+ import type { WorkspaceWithStats } from '../models/WorkspaceWithStats';
5
+ import type { CancelablePromise } from '../core/CancelablePromise';
6
+ export declare class WorkspacesService {
7
+ /**
8
+ * Create Workspace
9
+ * Create a new workspace
10
+ * @param requestBody
11
+ * @returns WorkspaceResponse Successful Response
12
+ * @throws ApiError
13
+ */
14
+ static createWorkspace(requestBody: WorkspaceCreate): CancelablePromise<WorkspaceResponse>;
15
+ /**
16
+ * Get Workspaces
17
+ * Get all workspaces for the current user
18
+ * @param skip
19
+ * @param limit
20
+ * @returns WorkspaceResponse Successful Response
21
+ * @throws ApiError
22
+ */
23
+ static getWorkspaces(skip?: number, limit?: number): CancelablePromise<Array<WorkspaceResponse>>;
24
+ /**
25
+ * Get Default Workspace
26
+ * Get or create the default workspace for the current user
27
+ * @returns WorkspaceResponse Successful Response
28
+ * @throws ApiError
29
+ */
30
+ static getDefaultWorkspace(): CancelablePromise<WorkspaceResponse>;
31
+ /**
32
+ * Get Workspace
33
+ * Get a workspace by ID with statistics
34
+ * @param workspaceId
35
+ * @returns WorkspaceWithStats Successful Response
36
+ * @throws ApiError
37
+ */
38
+ static getWorkspace(workspaceId: string): CancelablePromise<WorkspaceWithStats>;
39
+ /**
40
+ * Update Workspace
41
+ * Update a workspace
42
+ * @param workspaceId
43
+ * @param requestBody
44
+ * @returns WorkspaceResponse Successful Response
45
+ * @throws ApiError
46
+ */
47
+ static updateWorkspace(workspaceId: string, requestBody: WorkspaceUpdate): CancelablePromise<WorkspaceResponse>;
48
+ /**
49
+ * Delete Workspace
50
+ * Delete a workspace
51
+ * @param workspaceId
52
+ * @returns any Successful Response
53
+ * @throws ApiError
54
+ */
55
+ static deleteWorkspace(workspaceId: string): CancelablePromise<any>;
56
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ideascol/agents-generator-sdk",
3
- "version": "0.2.2",
3
+ "version": "0.3.0",
4
4
  "main": "dist/index.js",
5
5
  "scripts": {
6
6
  "test": "bun test",