@ideascol/agents-generator-sdk 0.3.5 → 0.4.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/dist/bin/cli.js +167 -1
- package/dist/index.js +169 -1
- package/dist/lib/clients/agents-generator/index.d.ts +5 -0
- package/dist/lib/clients/agents-generator/models/CollaboratorRole.d.ts +4 -0
- package/dist/lib/clients/agents-generator/models/WorkspaceCollaboratorCreate.d.ts +6 -0
- package/dist/lib/clients/agents-generator/models/WorkspaceCollaboratorResponse.d.ts +10 -0
- package/dist/lib/clients/agents-generator/models/WorkspaceCollaboratorUpdate.d.ts +4 -0
- package/dist/lib/clients/agents-generator/models/WorkspaceResponse.d.ts +1 -0
- package/dist/lib/clients/agents-generator/models/WorkspaceWithStats.d.ts +1 -0
- package/dist/lib/clients/agents-generator/services/AdminWorkspacesService.d.ts +60 -1
- package/dist/lib/clients/agents-generator/services/WorkspaceCollaboratorsService.d.ts +62 -0
- package/dist/lib/clients/agents-generator/services/WorkspacesService.d.ts +1 -1
- package/dist/lib/index.d.ts +2 -1
- package/package.json +1 -1
package/dist/bin/cli.js
CHANGED
|
@@ -609,6 +609,15 @@ var init_OpenAPI = __esm(() => {
|
|
|
609
609
|
};
|
|
610
610
|
});
|
|
611
611
|
|
|
612
|
+
// src/lib/clients/agents-generator/models/CollaboratorRole.ts
|
|
613
|
+
var CollaboratorRole;
|
|
614
|
+
var init_CollaboratorRole = __esm(() => {
|
|
615
|
+
((CollaboratorRole2) => {
|
|
616
|
+
CollaboratorRole2["DEV"] = "dev";
|
|
617
|
+
CollaboratorRole2["ADMIN"] = "admin";
|
|
618
|
+
})(CollaboratorRole ||= {});
|
|
619
|
+
});
|
|
620
|
+
|
|
612
621
|
// src/lib/clients/agents-generator/core/request.ts
|
|
613
622
|
var isDefined = (value) => {
|
|
614
623
|
return value !== undefined && value !== null;
|
|
@@ -1446,6 +1455,79 @@ class AdminWorkspacesService {
|
|
|
1446
1455
|
}
|
|
1447
1456
|
});
|
|
1448
1457
|
}
|
|
1458
|
+
static addWorkspaceCollaborator(workspaceId, requestBody) {
|
|
1459
|
+
return request(OpenAPI, {
|
|
1460
|
+
method: "POST",
|
|
1461
|
+
url: "/workspaces/{workspace_id}/collaborators",
|
|
1462
|
+
path: {
|
|
1463
|
+
workspace_id: workspaceId
|
|
1464
|
+
},
|
|
1465
|
+
body: requestBody,
|
|
1466
|
+
mediaType: "application/json",
|
|
1467
|
+
errors: {
|
|
1468
|
+
422: `Validation Error`
|
|
1469
|
+
}
|
|
1470
|
+
});
|
|
1471
|
+
}
|
|
1472
|
+
static getWorkspaceCollaborators(workspaceId) {
|
|
1473
|
+
return request(OpenAPI, {
|
|
1474
|
+
method: "GET",
|
|
1475
|
+
url: "/workspaces/{workspace_id}/collaborators",
|
|
1476
|
+
path: {
|
|
1477
|
+
workspace_id: workspaceId
|
|
1478
|
+
},
|
|
1479
|
+
errors: {
|
|
1480
|
+
422: `Validation Error`
|
|
1481
|
+
}
|
|
1482
|
+
});
|
|
1483
|
+
}
|
|
1484
|
+
static getWorkspaceCollaborator(workspaceId, collaboratorId) {
|
|
1485
|
+
return request(OpenAPI, {
|
|
1486
|
+
method: "GET",
|
|
1487
|
+
url: "/workspaces/{workspace_id}/collaborators/{collaborator_id}",
|
|
1488
|
+
path: {
|
|
1489
|
+
workspace_id: workspaceId,
|
|
1490
|
+
collaborator_id: collaboratorId
|
|
1491
|
+
},
|
|
1492
|
+
errors: {
|
|
1493
|
+
422: `Validation Error`
|
|
1494
|
+
}
|
|
1495
|
+
});
|
|
1496
|
+
}
|
|
1497
|
+
static updateWorkspaceCollaborator(workspaceId, collaboratorId, requestBody) {
|
|
1498
|
+
return request(OpenAPI, {
|
|
1499
|
+
method: "PUT",
|
|
1500
|
+
url: "/workspaces/{workspace_id}/collaborators/{collaborator_id}",
|
|
1501
|
+
path: {
|
|
1502
|
+
workspace_id: workspaceId,
|
|
1503
|
+
collaborator_id: collaboratorId
|
|
1504
|
+
},
|
|
1505
|
+
body: requestBody,
|
|
1506
|
+
mediaType: "application/json",
|
|
1507
|
+
errors: {
|
|
1508
|
+
422: `Validation Error`
|
|
1509
|
+
}
|
|
1510
|
+
});
|
|
1511
|
+
}
|
|
1512
|
+
static deleteWorkspaceCollaborator(workspaceId, collaboratorId) {
|
|
1513
|
+
return request(OpenAPI, {
|
|
1514
|
+
method: "DELETE",
|
|
1515
|
+
url: "/workspaces/{workspace_id}/collaborators/{collaborator_id}",
|
|
1516
|
+
path: {
|
|
1517
|
+
workspace_id: workspaceId,
|
|
1518
|
+
collaborator_id: collaboratorId
|
|
1519
|
+
},
|
|
1520
|
+
errors: {
|
|
1521
|
+
422: `Validation Error`
|
|
1522
|
+
}
|
|
1523
|
+
});
|
|
1524
|
+
}
|
|
1525
|
+
static getMyCollaborativeWorkspaces() {
|
|
1526
|
+
return request(OpenAPI, {
|
|
1527
|
+
method: "GET",
|
|
1528
|
+
url: "/workspaces/{workspace_id}/collaborators/me/workspaces"
|
|
1529
|
+
});
|
|
1530
|
+
}
|
|
1449
1531
|
}
|
|
1450
1532
|
var init_AdminWorkspacesService = __esm(() => {
|
|
1451
1533
|
init_OpenAPI();
|
|
@@ -2133,6 +2215,87 @@ var init_RootService = __esm(() => {
|
|
|
2133
2215
|
init_request();
|
|
2134
2216
|
});
|
|
2135
2217
|
|
|
2218
|
+
// src/lib/clients/agents-generator/services/WorkspaceCollaboratorsService.ts
|
|
2219
|
+
class WorkspaceCollaboratorsService {
|
|
2220
|
+
static addWorkspaceCollaborator(workspaceId, requestBody) {
|
|
2221
|
+
return request(OpenAPI, {
|
|
2222
|
+
method: "POST",
|
|
2223
|
+
url: "/workspaces/{workspace_id}/collaborators",
|
|
2224
|
+
path: {
|
|
2225
|
+
workspace_id: workspaceId
|
|
2226
|
+
},
|
|
2227
|
+
body: requestBody,
|
|
2228
|
+
mediaType: "application/json",
|
|
2229
|
+
errors: {
|
|
2230
|
+
422: `Validation Error`
|
|
2231
|
+
}
|
|
2232
|
+
});
|
|
2233
|
+
}
|
|
2234
|
+
static getWorkspaceCollaborators(workspaceId) {
|
|
2235
|
+
return request(OpenAPI, {
|
|
2236
|
+
method: "GET",
|
|
2237
|
+
url: "/workspaces/{workspace_id}/collaborators",
|
|
2238
|
+
path: {
|
|
2239
|
+
workspace_id: workspaceId
|
|
2240
|
+
},
|
|
2241
|
+
errors: {
|
|
2242
|
+
422: `Validation Error`
|
|
2243
|
+
}
|
|
2244
|
+
});
|
|
2245
|
+
}
|
|
2246
|
+
static getWorkspaceCollaborator(workspaceId, collaboratorId) {
|
|
2247
|
+
return request(OpenAPI, {
|
|
2248
|
+
method: "GET",
|
|
2249
|
+
url: "/workspaces/{workspace_id}/collaborators/{collaborator_id}",
|
|
2250
|
+
path: {
|
|
2251
|
+
workspace_id: workspaceId,
|
|
2252
|
+
collaborator_id: collaboratorId
|
|
2253
|
+
},
|
|
2254
|
+
errors: {
|
|
2255
|
+
422: `Validation Error`
|
|
2256
|
+
}
|
|
2257
|
+
});
|
|
2258
|
+
}
|
|
2259
|
+
static updateWorkspaceCollaborator(workspaceId, collaboratorId, requestBody) {
|
|
2260
|
+
return request(OpenAPI, {
|
|
2261
|
+
method: "PUT",
|
|
2262
|
+
url: "/workspaces/{workspace_id}/collaborators/{collaborator_id}",
|
|
2263
|
+
path: {
|
|
2264
|
+
workspace_id: workspaceId,
|
|
2265
|
+
collaborator_id: collaboratorId
|
|
2266
|
+
},
|
|
2267
|
+
body: requestBody,
|
|
2268
|
+
mediaType: "application/json",
|
|
2269
|
+
errors: {
|
|
2270
|
+
422: `Validation Error`
|
|
2271
|
+
}
|
|
2272
|
+
});
|
|
2273
|
+
}
|
|
2274
|
+
static deleteWorkspaceCollaborator(workspaceId, collaboratorId) {
|
|
2275
|
+
return request(OpenAPI, {
|
|
2276
|
+
method: "DELETE",
|
|
2277
|
+
url: "/workspaces/{workspace_id}/collaborators/{collaborator_id}",
|
|
2278
|
+
path: {
|
|
2279
|
+
workspace_id: workspaceId,
|
|
2280
|
+
collaborator_id: collaboratorId
|
|
2281
|
+
},
|
|
2282
|
+
errors: {
|
|
2283
|
+
422: `Validation Error`
|
|
2284
|
+
}
|
|
2285
|
+
});
|
|
2286
|
+
}
|
|
2287
|
+
static getMyCollaborativeWorkspaces() {
|
|
2288
|
+
return request(OpenAPI, {
|
|
2289
|
+
method: "GET",
|
|
2290
|
+
url: "/workspaces/{workspace_id}/collaborators/me/workspaces"
|
|
2291
|
+
});
|
|
2292
|
+
}
|
|
2293
|
+
}
|
|
2294
|
+
var init_WorkspaceCollaboratorsService = __esm(() => {
|
|
2295
|
+
init_OpenAPI();
|
|
2296
|
+
init_request();
|
|
2297
|
+
});
|
|
2298
|
+
|
|
2136
2299
|
// src/lib/clients/agents-generator/services/WorkspacesService.ts
|
|
2137
2300
|
class WorkspacesService {
|
|
2138
2301
|
static createWorkspace(requestBody) {
|
|
@@ -2214,6 +2377,7 @@ var init_agents_generator = __esm(() => {
|
|
|
2214
2377
|
init_ApiError();
|
|
2215
2378
|
init_CancelablePromise();
|
|
2216
2379
|
init_OpenAPI();
|
|
2380
|
+
init_CollaboratorRole();
|
|
2217
2381
|
init_AdminAgentsService();
|
|
2218
2382
|
init_AdminConversationsService();
|
|
2219
2383
|
init_AdminCredentialsService();
|
|
@@ -2228,6 +2392,7 @@ var init_agents_generator = __esm(() => {
|
|
|
2228
2392
|
init_PublicAgentsService();
|
|
2229
2393
|
init_PublicConversationsService();
|
|
2230
2394
|
init_RootService();
|
|
2395
|
+
init_WorkspaceCollaboratorsService();
|
|
2231
2396
|
init_WorkspacesService();
|
|
2232
2397
|
});
|
|
2233
2398
|
|
|
@@ -2268,7 +2433,8 @@ class AgentClient {
|
|
|
2268
2433
|
credentials: AdminCredentialsService,
|
|
2269
2434
|
fileLibrary: AdminFileLibraryService,
|
|
2270
2435
|
mcpServers: AdminMcpServersService,
|
|
2271
|
-
workspaces: AdminWorkspacesService
|
|
2436
|
+
workspaces: AdminWorkspacesService,
|
|
2437
|
+
collaborators: WorkspaceCollaboratorsService
|
|
2272
2438
|
};
|
|
2273
2439
|
this.public = {
|
|
2274
2440
|
agents: PublicAgentsService,
|
package/dist/index.js
CHANGED
|
@@ -177,6 +177,15 @@ var init_OpenAPI = __esm(() => {
|
|
|
177
177
|
};
|
|
178
178
|
});
|
|
179
179
|
|
|
180
|
+
// src/lib/clients/agents-generator/models/CollaboratorRole.ts
|
|
181
|
+
var CollaboratorRole;
|
|
182
|
+
var init_CollaboratorRole = __esm(() => {
|
|
183
|
+
((CollaboratorRole2) => {
|
|
184
|
+
CollaboratorRole2["DEV"] = "dev";
|
|
185
|
+
CollaboratorRole2["ADMIN"] = "admin";
|
|
186
|
+
})(CollaboratorRole ||= {});
|
|
187
|
+
});
|
|
188
|
+
|
|
180
189
|
// src/lib/clients/agents-generator/core/request.ts
|
|
181
190
|
var isDefined = (value) => {
|
|
182
191
|
return value !== undefined && value !== null;
|
|
@@ -1014,6 +1023,79 @@ class AdminWorkspacesService {
|
|
|
1014
1023
|
}
|
|
1015
1024
|
});
|
|
1016
1025
|
}
|
|
1026
|
+
static addWorkspaceCollaborator(workspaceId, requestBody) {
|
|
1027
|
+
return request(OpenAPI, {
|
|
1028
|
+
method: "POST",
|
|
1029
|
+
url: "/workspaces/{workspace_id}/collaborators",
|
|
1030
|
+
path: {
|
|
1031
|
+
workspace_id: workspaceId
|
|
1032
|
+
},
|
|
1033
|
+
body: requestBody,
|
|
1034
|
+
mediaType: "application/json",
|
|
1035
|
+
errors: {
|
|
1036
|
+
422: `Validation Error`
|
|
1037
|
+
}
|
|
1038
|
+
});
|
|
1039
|
+
}
|
|
1040
|
+
static getWorkspaceCollaborators(workspaceId) {
|
|
1041
|
+
return request(OpenAPI, {
|
|
1042
|
+
method: "GET",
|
|
1043
|
+
url: "/workspaces/{workspace_id}/collaborators",
|
|
1044
|
+
path: {
|
|
1045
|
+
workspace_id: workspaceId
|
|
1046
|
+
},
|
|
1047
|
+
errors: {
|
|
1048
|
+
422: `Validation Error`
|
|
1049
|
+
}
|
|
1050
|
+
});
|
|
1051
|
+
}
|
|
1052
|
+
static getWorkspaceCollaborator(workspaceId, collaboratorId) {
|
|
1053
|
+
return request(OpenAPI, {
|
|
1054
|
+
method: "GET",
|
|
1055
|
+
url: "/workspaces/{workspace_id}/collaborators/{collaborator_id}",
|
|
1056
|
+
path: {
|
|
1057
|
+
workspace_id: workspaceId,
|
|
1058
|
+
collaborator_id: collaboratorId
|
|
1059
|
+
},
|
|
1060
|
+
errors: {
|
|
1061
|
+
422: `Validation Error`
|
|
1062
|
+
}
|
|
1063
|
+
});
|
|
1064
|
+
}
|
|
1065
|
+
static updateWorkspaceCollaborator(workspaceId, collaboratorId, requestBody) {
|
|
1066
|
+
return request(OpenAPI, {
|
|
1067
|
+
method: "PUT",
|
|
1068
|
+
url: "/workspaces/{workspace_id}/collaborators/{collaborator_id}",
|
|
1069
|
+
path: {
|
|
1070
|
+
workspace_id: workspaceId,
|
|
1071
|
+
collaborator_id: collaboratorId
|
|
1072
|
+
},
|
|
1073
|
+
body: requestBody,
|
|
1074
|
+
mediaType: "application/json",
|
|
1075
|
+
errors: {
|
|
1076
|
+
422: `Validation Error`
|
|
1077
|
+
}
|
|
1078
|
+
});
|
|
1079
|
+
}
|
|
1080
|
+
static deleteWorkspaceCollaborator(workspaceId, collaboratorId) {
|
|
1081
|
+
return request(OpenAPI, {
|
|
1082
|
+
method: "DELETE",
|
|
1083
|
+
url: "/workspaces/{workspace_id}/collaborators/{collaborator_id}",
|
|
1084
|
+
path: {
|
|
1085
|
+
workspace_id: workspaceId,
|
|
1086
|
+
collaborator_id: collaboratorId
|
|
1087
|
+
},
|
|
1088
|
+
errors: {
|
|
1089
|
+
422: `Validation Error`
|
|
1090
|
+
}
|
|
1091
|
+
});
|
|
1092
|
+
}
|
|
1093
|
+
static getMyCollaborativeWorkspaces() {
|
|
1094
|
+
return request(OpenAPI, {
|
|
1095
|
+
method: "GET",
|
|
1096
|
+
url: "/workspaces/{workspace_id}/collaborators/me/workspaces"
|
|
1097
|
+
});
|
|
1098
|
+
}
|
|
1017
1099
|
}
|
|
1018
1100
|
var init_AdminWorkspacesService = __esm(() => {
|
|
1019
1101
|
init_OpenAPI();
|
|
@@ -1701,6 +1783,87 @@ var init_RootService = __esm(() => {
|
|
|
1701
1783
|
init_request();
|
|
1702
1784
|
});
|
|
1703
1785
|
|
|
1786
|
+
// src/lib/clients/agents-generator/services/WorkspaceCollaboratorsService.ts
|
|
1787
|
+
class WorkspaceCollaboratorsService {
|
|
1788
|
+
static addWorkspaceCollaborator(workspaceId, requestBody) {
|
|
1789
|
+
return request(OpenAPI, {
|
|
1790
|
+
method: "POST",
|
|
1791
|
+
url: "/workspaces/{workspace_id}/collaborators",
|
|
1792
|
+
path: {
|
|
1793
|
+
workspace_id: workspaceId
|
|
1794
|
+
},
|
|
1795
|
+
body: requestBody,
|
|
1796
|
+
mediaType: "application/json",
|
|
1797
|
+
errors: {
|
|
1798
|
+
422: `Validation Error`
|
|
1799
|
+
}
|
|
1800
|
+
});
|
|
1801
|
+
}
|
|
1802
|
+
static getWorkspaceCollaborators(workspaceId) {
|
|
1803
|
+
return request(OpenAPI, {
|
|
1804
|
+
method: "GET",
|
|
1805
|
+
url: "/workspaces/{workspace_id}/collaborators",
|
|
1806
|
+
path: {
|
|
1807
|
+
workspace_id: workspaceId
|
|
1808
|
+
},
|
|
1809
|
+
errors: {
|
|
1810
|
+
422: `Validation Error`
|
|
1811
|
+
}
|
|
1812
|
+
});
|
|
1813
|
+
}
|
|
1814
|
+
static getWorkspaceCollaborator(workspaceId, collaboratorId) {
|
|
1815
|
+
return request(OpenAPI, {
|
|
1816
|
+
method: "GET",
|
|
1817
|
+
url: "/workspaces/{workspace_id}/collaborators/{collaborator_id}",
|
|
1818
|
+
path: {
|
|
1819
|
+
workspace_id: workspaceId,
|
|
1820
|
+
collaborator_id: collaboratorId
|
|
1821
|
+
},
|
|
1822
|
+
errors: {
|
|
1823
|
+
422: `Validation Error`
|
|
1824
|
+
}
|
|
1825
|
+
});
|
|
1826
|
+
}
|
|
1827
|
+
static updateWorkspaceCollaborator(workspaceId, collaboratorId, requestBody) {
|
|
1828
|
+
return request(OpenAPI, {
|
|
1829
|
+
method: "PUT",
|
|
1830
|
+
url: "/workspaces/{workspace_id}/collaborators/{collaborator_id}",
|
|
1831
|
+
path: {
|
|
1832
|
+
workspace_id: workspaceId,
|
|
1833
|
+
collaborator_id: collaboratorId
|
|
1834
|
+
},
|
|
1835
|
+
body: requestBody,
|
|
1836
|
+
mediaType: "application/json",
|
|
1837
|
+
errors: {
|
|
1838
|
+
422: `Validation Error`
|
|
1839
|
+
}
|
|
1840
|
+
});
|
|
1841
|
+
}
|
|
1842
|
+
static deleteWorkspaceCollaborator(workspaceId, collaboratorId) {
|
|
1843
|
+
return request(OpenAPI, {
|
|
1844
|
+
method: "DELETE",
|
|
1845
|
+
url: "/workspaces/{workspace_id}/collaborators/{collaborator_id}",
|
|
1846
|
+
path: {
|
|
1847
|
+
workspace_id: workspaceId,
|
|
1848
|
+
collaborator_id: collaboratorId
|
|
1849
|
+
},
|
|
1850
|
+
errors: {
|
|
1851
|
+
422: `Validation Error`
|
|
1852
|
+
}
|
|
1853
|
+
});
|
|
1854
|
+
}
|
|
1855
|
+
static getMyCollaborativeWorkspaces() {
|
|
1856
|
+
return request(OpenAPI, {
|
|
1857
|
+
method: "GET",
|
|
1858
|
+
url: "/workspaces/{workspace_id}/collaborators/me/workspaces"
|
|
1859
|
+
});
|
|
1860
|
+
}
|
|
1861
|
+
}
|
|
1862
|
+
var init_WorkspaceCollaboratorsService = __esm(() => {
|
|
1863
|
+
init_OpenAPI();
|
|
1864
|
+
init_request();
|
|
1865
|
+
});
|
|
1866
|
+
|
|
1704
1867
|
// src/lib/clients/agents-generator/services/WorkspacesService.ts
|
|
1705
1868
|
class WorkspacesService {
|
|
1706
1869
|
static createWorkspace(requestBody) {
|
|
@@ -1782,6 +1945,7 @@ var init_agents_generator = __esm(() => {
|
|
|
1782
1945
|
init_ApiError();
|
|
1783
1946
|
init_CancelablePromise();
|
|
1784
1947
|
init_OpenAPI();
|
|
1948
|
+
init_CollaboratorRole();
|
|
1785
1949
|
init_AdminAgentsService();
|
|
1786
1950
|
init_AdminConversationsService();
|
|
1787
1951
|
init_AdminCredentialsService();
|
|
@@ -1796,6 +1960,7 @@ var init_agents_generator = __esm(() => {
|
|
|
1796
1960
|
init_PublicAgentsService();
|
|
1797
1961
|
init_PublicConversationsService();
|
|
1798
1962
|
init_RootService();
|
|
1963
|
+
init_WorkspaceCollaboratorsService();
|
|
1799
1964
|
init_WorkspacesService();
|
|
1800
1965
|
});
|
|
1801
1966
|
|
|
@@ -1836,7 +2001,8 @@ class AgentClient {
|
|
|
1836
2001
|
credentials: AdminCredentialsService,
|
|
1837
2002
|
fileLibrary: AdminFileLibraryService,
|
|
1838
2003
|
mcpServers: AdminMcpServersService,
|
|
1839
|
-
workspaces: AdminWorkspacesService
|
|
2004
|
+
workspaces: AdminWorkspacesService,
|
|
2005
|
+
collaborators: WorkspaceCollaboratorsService
|
|
1840
2006
|
};
|
|
1841
2007
|
this.public = {
|
|
1842
2008
|
agents: PublicAgentsService,
|
|
@@ -2090,6 +2256,7 @@ var init_lib = __esm(() => {
|
|
|
2090
2256
|
var exports_src = {};
|
|
2091
2257
|
__export(exports_src, {
|
|
2092
2258
|
WorkspacesService: () => WorkspacesService,
|
|
2259
|
+
WorkspaceCollaboratorsService: () => WorkspaceCollaboratorsService,
|
|
2093
2260
|
RootService: () => RootService,
|
|
2094
2261
|
PublicConversationsService: () => PublicConversationsService,
|
|
2095
2262
|
PublicAgentsService: () => PublicAgentsService,
|
|
@@ -2098,6 +2265,7 @@ __export(exports_src, {
|
|
|
2098
2265
|
FileLibraryService: () => FileLibraryService,
|
|
2099
2266
|
CredentialsService: () => CredentialsService,
|
|
2100
2267
|
ConversationsService: () => ConversationsService,
|
|
2268
|
+
CollaboratorRole: () => CollaboratorRole,
|
|
2101
2269
|
CancelablePromise: () => CancelablePromise,
|
|
2102
2270
|
CancelError: () => CancelError,
|
|
2103
2271
|
ApiError: () => ApiError,
|
|
@@ -11,6 +11,7 @@ export type { Body_upload_file } from './models/Body_upload_file';
|
|
|
11
11
|
export type { BucketCreate } from './models/BucketCreate';
|
|
12
12
|
export type { BucketResponse } from './models/BucketResponse';
|
|
13
13
|
export type { CallbackTool } from './models/CallbackTool';
|
|
14
|
+
export { CollaboratorRole } from './models/CollaboratorRole';
|
|
14
15
|
export type { ConversationCreate } from './models/ConversationCreate';
|
|
15
16
|
export type { ConversationResponse } from './models/ConversationResponse';
|
|
16
17
|
export type { ConversationUpdate } from './models/ConversationUpdate';
|
|
@@ -41,6 +42,9 @@ export type { NodeData } from './models/NodeData';
|
|
|
41
42
|
export type { Position } from './models/Position';
|
|
42
43
|
export type { UpdateMCPServerRequest } from './models/UpdateMCPServerRequest';
|
|
43
44
|
export type { ValidationError } from './models/ValidationError';
|
|
45
|
+
export type { WorkspaceCollaboratorCreate } from './models/WorkspaceCollaboratorCreate';
|
|
46
|
+
export type { WorkspaceCollaboratorResponse } from './models/WorkspaceCollaboratorResponse';
|
|
47
|
+
export type { WorkspaceCollaboratorUpdate } from './models/WorkspaceCollaboratorUpdate';
|
|
44
48
|
export type { WorkspaceCreate } from './models/WorkspaceCreate';
|
|
45
49
|
export type { WorkspaceResponse } from './models/WorkspaceResponse';
|
|
46
50
|
export type { WorkspaceUpdate } from './models/WorkspaceUpdate';
|
|
@@ -59,4 +63,5 @@ export { McpServersService } from './services/McpServersService';
|
|
|
59
63
|
export { PublicAgentsService } from './services/PublicAgentsService';
|
|
60
64
|
export { PublicConversationsService } from './services/PublicConversationsService';
|
|
61
65
|
export { RootService } from './services/RootService';
|
|
66
|
+
export { WorkspaceCollaboratorsService } from './services/WorkspaceCollaboratorsService';
|
|
62
67
|
export { WorkspacesService } from './services/WorkspacesService';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CollaboratorRole } from './CollaboratorRole';
|
|
2
|
+
export type WorkspaceCollaboratorResponse = {
|
|
3
|
+
user_id: string;
|
|
4
|
+
role: CollaboratorRole;
|
|
5
|
+
id: string;
|
|
6
|
+
workspace_id: string;
|
|
7
|
+
invited_by: string;
|
|
8
|
+
created_at: string;
|
|
9
|
+
updated_at: string;
|
|
10
|
+
};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import type { WorkspaceCollaboratorCreate } from '../models/WorkspaceCollaboratorCreate';
|
|
2
|
+
import type { WorkspaceCollaboratorResponse } from '../models/WorkspaceCollaboratorResponse';
|
|
3
|
+
import type { WorkspaceCollaboratorUpdate } from '../models/WorkspaceCollaboratorUpdate';
|
|
1
4
|
import type { WorkspaceCreate } from '../models/WorkspaceCreate';
|
|
2
5
|
import type { WorkspaceResponse } from '../models/WorkspaceResponse';
|
|
3
6
|
import type { WorkspaceUpdate } from '../models/WorkspaceUpdate';
|
|
@@ -14,7 +17,7 @@ export declare class AdminWorkspacesService {
|
|
|
14
17
|
static createWorkspace(requestBody: WorkspaceCreate): CancelablePromise<WorkspaceResponse>;
|
|
15
18
|
/**
|
|
16
19
|
* Get Workspaces
|
|
17
|
-
* Get all workspaces for the current user
|
|
20
|
+
* Get all workspaces for the current user (owned + collaborator)
|
|
18
21
|
* @param skip
|
|
19
22
|
* @param limit
|
|
20
23
|
* @returns WorkspaceResponse Successful Response
|
|
@@ -53,4 +56,60 @@ export declare class AdminWorkspacesService {
|
|
|
53
56
|
* @throws ApiError
|
|
54
57
|
*/
|
|
55
58
|
static deleteWorkspace(workspaceId: string): CancelablePromise<any>;
|
|
59
|
+
/**
|
|
60
|
+
* Add Collaborator
|
|
61
|
+
* Add a collaborator to a workspace.
|
|
62
|
+
* Only workspace owners can add collaborators.
|
|
63
|
+
* @param workspaceId
|
|
64
|
+
* @param requestBody
|
|
65
|
+
* @returns WorkspaceCollaboratorResponse Successful Response
|
|
66
|
+
* @throws ApiError
|
|
67
|
+
*/
|
|
68
|
+
static addWorkspaceCollaborator(workspaceId: string, requestBody: WorkspaceCollaboratorCreate): CancelablePromise<WorkspaceCollaboratorResponse>;
|
|
69
|
+
/**
|
|
70
|
+
* Get Collaborators
|
|
71
|
+
* Get all collaborators for a workspace.
|
|
72
|
+
* Any user with access to the workspace can view collaborators.
|
|
73
|
+
* @param workspaceId
|
|
74
|
+
* @returns WorkspaceCollaboratorResponse Successful Response
|
|
75
|
+
* @throws ApiError
|
|
76
|
+
*/
|
|
77
|
+
static getWorkspaceCollaborators(workspaceId: string): CancelablePromise<Array<WorkspaceCollaboratorResponse>>;
|
|
78
|
+
/**
|
|
79
|
+
* Get Collaborator
|
|
80
|
+
* Get a specific collaborator by ID
|
|
81
|
+
* @param workspaceId
|
|
82
|
+
* @param collaboratorId
|
|
83
|
+
* @returns WorkspaceCollaboratorResponse Successful Response
|
|
84
|
+
* @throws ApiError
|
|
85
|
+
*/
|
|
86
|
+
static getWorkspaceCollaborator(workspaceId: string, collaboratorId: string): CancelablePromise<WorkspaceCollaboratorResponse>;
|
|
87
|
+
/**
|
|
88
|
+
* Update Collaborator
|
|
89
|
+
* Update a collaborator's role.
|
|
90
|
+
* Only workspace owners can update collaborators.
|
|
91
|
+
* @param workspaceId
|
|
92
|
+
* @param collaboratorId
|
|
93
|
+
* @param requestBody
|
|
94
|
+
* @returns WorkspaceCollaboratorResponse Successful Response
|
|
95
|
+
* @throws ApiError
|
|
96
|
+
*/
|
|
97
|
+
static updateWorkspaceCollaborator(workspaceId: string, collaboratorId: string, requestBody: WorkspaceCollaboratorUpdate): CancelablePromise<WorkspaceCollaboratorResponse>;
|
|
98
|
+
/**
|
|
99
|
+
* Delete Collaborator
|
|
100
|
+
* Remove a collaborator from a workspace.
|
|
101
|
+
* Only workspace owners can remove collaborators.
|
|
102
|
+
* @param workspaceId
|
|
103
|
+
* @param collaboratorId
|
|
104
|
+
* @returns any Successful Response
|
|
105
|
+
* @throws ApiError
|
|
106
|
+
*/
|
|
107
|
+
static deleteWorkspaceCollaborator(workspaceId: string, collaboratorId: string): CancelablePromise<any>;
|
|
108
|
+
/**
|
|
109
|
+
* Get My Collaborative Workspaces
|
|
110
|
+
* Get all workspaces where the current user is a collaborator.
|
|
111
|
+
* @returns any Successful Response
|
|
112
|
+
* @throws ApiError
|
|
113
|
+
*/
|
|
114
|
+
static getMyCollaborativeWorkspaces(): CancelablePromise<Array<Record<string, any>>>;
|
|
56
115
|
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { WorkspaceCollaboratorCreate } from '../models/WorkspaceCollaboratorCreate';
|
|
2
|
+
import type { WorkspaceCollaboratorResponse } from '../models/WorkspaceCollaboratorResponse';
|
|
3
|
+
import type { WorkspaceCollaboratorUpdate } from '../models/WorkspaceCollaboratorUpdate';
|
|
4
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
5
|
+
export declare class WorkspaceCollaboratorsService {
|
|
6
|
+
/**
|
|
7
|
+
* Add Collaborator
|
|
8
|
+
* Add a collaborator to a workspace.
|
|
9
|
+
* Only workspace owners can add collaborators.
|
|
10
|
+
* @param workspaceId
|
|
11
|
+
* @param requestBody
|
|
12
|
+
* @returns WorkspaceCollaboratorResponse Successful Response
|
|
13
|
+
* @throws ApiError
|
|
14
|
+
*/
|
|
15
|
+
static addWorkspaceCollaborator(workspaceId: string, requestBody: WorkspaceCollaboratorCreate): CancelablePromise<WorkspaceCollaboratorResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Get Collaborators
|
|
18
|
+
* Get all collaborators for a workspace.
|
|
19
|
+
* Any user with access to the workspace can view collaborators.
|
|
20
|
+
* @param workspaceId
|
|
21
|
+
* @returns WorkspaceCollaboratorResponse Successful Response
|
|
22
|
+
* @throws ApiError
|
|
23
|
+
*/
|
|
24
|
+
static getWorkspaceCollaborators(workspaceId: string): CancelablePromise<Array<WorkspaceCollaboratorResponse>>;
|
|
25
|
+
/**
|
|
26
|
+
* Get Collaborator
|
|
27
|
+
* Get a specific collaborator by ID
|
|
28
|
+
* @param workspaceId
|
|
29
|
+
* @param collaboratorId
|
|
30
|
+
* @returns WorkspaceCollaboratorResponse Successful Response
|
|
31
|
+
* @throws ApiError
|
|
32
|
+
*/
|
|
33
|
+
static getWorkspaceCollaborator(workspaceId: string, collaboratorId: string): CancelablePromise<WorkspaceCollaboratorResponse>;
|
|
34
|
+
/**
|
|
35
|
+
* Update Collaborator
|
|
36
|
+
* Update a collaborator's role.
|
|
37
|
+
* Only workspace owners can update collaborators.
|
|
38
|
+
* @param workspaceId
|
|
39
|
+
* @param collaboratorId
|
|
40
|
+
* @param requestBody
|
|
41
|
+
* @returns WorkspaceCollaboratorResponse Successful Response
|
|
42
|
+
* @throws ApiError
|
|
43
|
+
*/
|
|
44
|
+
static updateWorkspaceCollaborator(workspaceId: string, collaboratorId: string, requestBody: WorkspaceCollaboratorUpdate): CancelablePromise<WorkspaceCollaboratorResponse>;
|
|
45
|
+
/**
|
|
46
|
+
* Delete Collaborator
|
|
47
|
+
* Remove a collaborator from a workspace.
|
|
48
|
+
* Only workspace owners can remove collaborators.
|
|
49
|
+
* @param workspaceId
|
|
50
|
+
* @param collaboratorId
|
|
51
|
+
* @returns any Successful Response
|
|
52
|
+
* @throws ApiError
|
|
53
|
+
*/
|
|
54
|
+
static deleteWorkspaceCollaborator(workspaceId: string, collaboratorId: string): CancelablePromise<any>;
|
|
55
|
+
/**
|
|
56
|
+
* Get My Collaborative Workspaces
|
|
57
|
+
* Get all workspaces where the current user is a collaborator.
|
|
58
|
+
* @returns any Successful Response
|
|
59
|
+
* @throws ApiError
|
|
60
|
+
*/
|
|
61
|
+
static getMyCollaborativeWorkspaces(): CancelablePromise<Array<Record<string, any>>>;
|
|
62
|
+
}
|
|
@@ -14,7 +14,7 @@ export declare class WorkspacesService {
|
|
|
14
14
|
static createWorkspace(requestBody: WorkspaceCreate): CancelablePromise<WorkspaceResponse>;
|
|
15
15
|
/**
|
|
16
16
|
* Get Workspaces
|
|
17
|
-
* Get all workspaces for the current user
|
|
17
|
+
* Get all workspaces for the current user (owned + collaborator)
|
|
18
18
|
* @param skip
|
|
19
19
|
* @param limit
|
|
20
20
|
* @returns WorkspaceResponse Successful Response
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiError, CancelablePromise, CancelError, ConversationsService, MessageCreate, OpenAPI, AgentService, McpServersService, RootService, FileLibraryService, CredentialsService, AdminAgentsService, PublicAgentsService, PublicConversationsService, AdminConversationsService, AdminCredentialsService, AdminFileLibraryService, AdminMcpServersService, AdminWorkspacesService } from "./clients/agents-generator";
|
|
1
|
+
import { ApiError, CancelablePromise, CancelError, ConversationsService, MessageCreate, OpenAPI, AgentService, McpServersService, RootService, FileLibraryService, CredentialsService, AdminAgentsService, PublicAgentsService, PublicConversationsService, AdminConversationsService, AdminCredentialsService, AdminFileLibraryService, AdminMcpServersService, AdminWorkspacesService, WorkspaceCollaboratorsService } from "./clients/agents-generator";
|
|
2
2
|
export * from "./clients/agents-generator";
|
|
3
3
|
export interface StreamEvent {
|
|
4
4
|
type: string;
|
|
@@ -52,6 +52,7 @@ export declare class AgentClient {
|
|
|
52
52
|
fileLibrary: typeof AdminFileLibraryService;
|
|
53
53
|
mcpServers: typeof AdminMcpServersService;
|
|
54
54
|
workspaces: typeof AdminWorkspacesService;
|
|
55
|
+
collaborators: typeof WorkspaceCollaboratorsService;
|
|
55
56
|
};
|
|
56
57
|
public: {
|
|
57
58
|
agents: typeof PublicAgentsService;
|