@ideascol/agents-generator-sdk 0.3.5 → 0.5.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 +270 -5
- package/dist/index.js +274 -5
- package/dist/lib/clients/agents-generator/index.d.ts +11 -0
- package/dist/lib/clients/agents-generator/models/ApiKeyCreate.d.ts +3 -0
- package/dist/lib/clients/agents-generator/models/ApiKeyResponse.d.ts +10 -0
- package/dist/lib/clients/agents-generator/models/ApiKeyUpdate.d.ts +4 -0
- package/dist/lib/clients/agents-generator/models/ApiKeyWithSecret.d.ts +11 -0
- package/dist/lib/clients/agents-generator/models/CollaboratorRole.d.ts +4 -0
- package/dist/lib/clients/agents-generator/models/WorkspaceCollaboratorCreate.d.ts +7 -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 +2 -0
- package/dist/lib/clients/agents-generator/models/WorkspaceWithStats.d.ts +2 -0
- package/dist/lib/clients/agents-generator/services/AdminApiKeysService.d.ts +50 -0
- package/dist/lib/clients/agents-generator/services/AdminCredentialsService.d.ts +5 -5
- package/dist/lib/clients/agents-generator/services/AdminFileLibraryService.d.ts +5 -4
- package/dist/lib/clients/agents-generator/services/AdminWorkspacesService.d.ts +60 -1
- package/dist/lib/clients/agents-generator/services/CredentialsService.d.ts +5 -5
- package/dist/lib/clients/agents-generator/services/FileLibraryService.d.ts +5 -4
- package/dist/lib/clients/agents-generator/services/PresenceService.d.ts +11 -0
- 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 +4 -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;
|
|
@@ -1004,6 +1013,79 @@ var init_AdminAgentsService = __esm(() => {
|
|
|
1004
1013
|
init_request();
|
|
1005
1014
|
});
|
|
1006
1015
|
|
|
1016
|
+
// src/lib/clients/agents-generator/services/AdminApiKeysService.ts
|
|
1017
|
+
class AdminApiKeysService {
|
|
1018
|
+
static createApiKeyWorkspacesWorkspaceIdApiKeysPost(workspaceId, requestBody) {
|
|
1019
|
+
return request(OpenAPI, {
|
|
1020
|
+
method: "POST",
|
|
1021
|
+
url: "/workspaces/{workspace_id}/api-keys",
|
|
1022
|
+
path: {
|
|
1023
|
+
workspace_id: workspaceId
|
|
1024
|
+
},
|
|
1025
|
+
body: requestBody,
|
|
1026
|
+
mediaType: "application/json",
|
|
1027
|
+
errors: {
|
|
1028
|
+
422: `Validation Error`
|
|
1029
|
+
}
|
|
1030
|
+
});
|
|
1031
|
+
}
|
|
1032
|
+
static getApiKeysWorkspacesWorkspaceIdApiKeysGet(workspaceId) {
|
|
1033
|
+
return request(OpenAPI, {
|
|
1034
|
+
method: "GET",
|
|
1035
|
+
url: "/workspaces/{workspace_id}/api-keys",
|
|
1036
|
+
path: {
|
|
1037
|
+
workspace_id: workspaceId
|
|
1038
|
+
},
|
|
1039
|
+
errors: {
|
|
1040
|
+
422: `Validation Error`
|
|
1041
|
+
}
|
|
1042
|
+
});
|
|
1043
|
+
}
|
|
1044
|
+
static getApiKeyWorkspacesWorkspaceIdApiKeysApiKeyIdGet(apiKeyId) {
|
|
1045
|
+
return request(OpenAPI, {
|
|
1046
|
+
method: "GET",
|
|
1047
|
+
url: "/workspaces/{workspace_id}/api-keys/{api_key_id}",
|
|
1048
|
+
path: {
|
|
1049
|
+
api_key_id: apiKeyId
|
|
1050
|
+
},
|
|
1051
|
+
errors: {
|
|
1052
|
+
422: `Validation Error`
|
|
1053
|
+
}
|
|
1054
|
+
});
|
|
1055
|
+
}
|
|
1056
|
+
static updateApiKeyWorkspacesWorkspaceIdApiKeysApiKeyIdPatch(workspaceId, apiKeyId, requestBody) {
|
|
1057
|
+
return request(OpenAPI, {
|
|
1058
|
+
method: "PATCH",
|
|
1059
|
+
url: "/workspaces/{workspace_id}/api-keys/{api_key_id}",
|
|
1060
|
+
path: {
|
|
1061
|
+
workspace_id: workspaceId,
|
|
1062
|
+
api_key_id: apiKeyId
|
|
1063
|
+
},
|
|
1064
|
+
body: requestBody,
|
|
1065
|
+
mediaType: "application/json",
|
|
1066
|
+
errors: {
|
|
1067
|
+
422: `Validation Error`
|
|
1068
|
+
}
|
|
1069
|
+
});
|
|
1070
|
+
}
|
|
1071
|
+
static deleteApiKeyWorkspacesWorkspaceIdApiKeysApiKeyIdDelete(apiKeyId) {
|
|
1072
|
+
return request(OpenAPI, {
|
|
1073
|
+
method: "DELETE",
|
|
1074
|
+
url: "/workspaces/{workspace_id}/api-keys/{api_key_id}",
|
|
1075
|
+
path: {
|
|
1076
|
+
api_key_id: apiKeyId
|
|
1077
|
+
},
|
|
1078
|
+
errors: {
|
|
1079
|
+
422: `Validation Error`
|
|
1080
|
+
}
|
|
1081
|
+
});
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
var init_AdminApiKeysService = __esm(() => {
|
|
1085
|
+
init_OpenAPI();
|
|
1086
|
+
init_request();
|
|
1087
|
+
});
|
|
1088
|
+
|
|
1007
1089
|
// src/lib/clients/agents-generator/services/AdminConversationsService.ts
|
|
1008
1090
|
class AdminConversationsService {
|
|
1009
1091
|
static createConversation(requestBody) {
|
|
@@ -1242,7 +1324,7 @@ class AdminFileLibraryService {
|
|
|
1242
1324
|
}
|
|
1243
1325
|
});
|
|
1244
1326
|
}
|
|
1245
|
-
static getFoldersByBucket(bucketId, parentFolderId) {
|
|
1327
|
+
static getFoldersByBucket(bucketId, parentFolderId, workspaceId) {
|
|
1246
1328
|
return request(OpenAPI, {
|
|
1247
1329
|
method: "GET",
|
|
1248
1330
|
url: "/file-library/buckets/{bucket_id}/folders",
|
|
@@ -1250,7 +1332,8 @@ class AdminFileLibraryService {
|
|
|
1250
1332
|
bucket_id: bucketId
|
|
1251
1333
|
},
|
|
1252
1334
|
query: {
|
|
1253
|
-
parent_folder_id: parentFolderId
|
|
1335
|
+
parent_folder_id: parentFolderId,
|
|
1336
|
+
workspace_id: workspaceId
|
|
1254
1337
|
},
|
|
1255
1338
|
errors: {
|
|
1256
1339
|
422: `Validation Error`
|
|
@@ -1446,6 +1529,79 @@ class AdminWorkspacesService {
|
|
|
1446
1529
|
}
|
|
1447
1530
|
});
|
|
1448
1531
|
}
|
|
1532
|
+
static addWorkspaceCollaborator(workspaceId, requestBody) {
|
|
1533
|
+
return request(OpenAPI, {
|
|
1534
|
+
method: "POST",
|
|
1535
|
+
url: "/workspaces/{workspace_id}/collaborators",
|
|
1536
|
+
path: {
|
|
1537
|
+
workspace_id: workspaceId
|
|
1538
|
+
},
|
|
1539
|
+
body: requestBody,
|
|
1540
|
+
mediaType: "application/json",
|
|
1541
|
+
errors: {
|
|
1542
|
+
422: `Validation Error`
|
|
1543
|
+
}
|
|
1544
|
+
});
|
|
1545
|
+
}
|
|
1546
|
+
static getWorkspaceCollaborators(workspaceId) {
|
|
1547
|
+
return request(OpenAPI, {
|
|
1548
|
+
method: "GET",
|
|
1549
|
+
url: "/workspaces/{workspace_id}/collaborators",
|
|
1550
|
+
path: {
|
|
1551
|
+
workspace_id: workspaceId
|
|
1552
|
+
},
|
|
1553
|
+
errors: {
|
|
1554
|
+
422: `Validation Error`
|
|
1555
|
+
}
|
|
1556
|
+
});
|
|
1557
|
+
}
|
|
1558
|
+
static getWorkspaceCollaborator(workspaceId, collaboratorId) {
|
|
1559
|
+
return request(OpenAPI, {
|
|
1560
|
+
method: "GET",
|
|
1561
|
+
url: "/workspaces/{workspace_id}/collaborators/{collaborator_id}",
|
|
1562
|
+
path: {
|
|
1563
|
+
workspace_id: workspaceId,
|
|
1564
|
+
collaborator_id: collaboratorId
|
|
1565
|
+
},
|
|
1566
|
+
errors: {
|
|
1567
|
+
422: `Validation Error`
|
|
1568
|
+
}
|
|
1569
|
+
});
|
|
1570
|
+
}
|
|
1571
|
+
static updateWorkspaceCollaborator(workspaceId, collaboratorId, requestBody) {
|
|
1572
|
+
return request(OpenAPI, {
|
|
1573
|
+
method: "PUT",
|
|
1574
|
+
url: "/workspaces/{workspace_id}/collaborators/{collaborator_id}",
|
|
1575
|
+
path: {
|
|
1576
|
+
workspace_id: workspaceId,
|
|
1577
|
+
collaborator_id: collaboratorId
|
|
1578
|
+
},
|
|
1579
|
+
body: requestBody,
|
|
1580
|
+
mediaType: "application/json",
|
|
1581
|
+
errors: {
|
|
1582
|
+
422: `Validation Error`
|
|
1583
|
+
}
|
|
1584
|
+
});
|
|
1585
|
+
}
|
|
1586
|
+
static deleteWorkspaceCollaborator(workspaceId, collaboratorId) {
|
|
1587
|
+
return request(OpenAPI, {
|
|
1588
|
+
method: "DELETE",
|
|
1589
|
+
url: "/workspaces/{workspace_id}/collaborators/{collaborator_id}",
|
|
1590
|
+
path: {
|
|
1591
|
+
workspace_id: workspaceId,
|
|
1592
|
+
collaborator_id: collaboratorId
|
|
1593
|
+
},
|
|
1594
|
+
errors: {
|
|
1595
|
+
422: `Validation Error`
|
|
1596
|
+
}
|
|
1597
|
+
});
|
|
1598
|
+
}
|
|
1599
|
+
static getMyCollaborativeWorkspaces() {
|
|
1600
|
+
return request(OpenAPI, {
|
|
1601
|
+
method: "GET",
|
|
1602
|
+
url: "/workspaces/{workspace_id}/collaborators/me/workspaces"
|
|
1603
|
+
});
|
|
1604
|
+
}
|
|
1449
1605
|
}
|
|
1450
1606
|
var init_AdminWorkspacesService = __esm(() => {
|
|
1451
1607
|
init_OpenAPI();
|
|
@@ -1880,7 +2036,7 @@ class FileLibraryService {
|
|
|
1880
2036
|
}
|
|
1881
2037
|
});
|
|
1882
2038
|
}
|
|
1883
|
-
static getFoldersByBucket(bucketId, parentFolderId) {
|
|
2039
|
+
static getFoldersByBucket(bucketId, parentFolderId, workspaceId) {
|
|
1884
2040
|
return request(OpenAPI, {
|
|
1885
2041
|
method: "GET",
|
|
1886
2042
|
url: "/file-library/buckets/{bucket_id}/folders",
|
|
@@ -1888,7 +2044,8 @@ class FileLibraryService {
|
|
|
1888
2044
|
bucket_id: bucketId
|
|
1889
2045
|
},
|
|
1890
2046
|
query: {
|
|
1891
|
-
parent_folder_id: parentFolderId
|
|
2047
|
+
parent_folder_id: parentFolderId,
|
|
2048
|
+
workspace_id: workspaceId
|
|
1892
2049
|
},
|
|
1893
2050
|
errors: {
|
|
1894
2051
|
422: `Validation Error`
|
|
@@ -2040,6 +2197,26 @@ var init_McpServersService = __esm(() => {
|
|
|
2040
2197
|
init_request();
|
|
2041
2198
|
});
|
|
2042
2199
|
|
|
2200
|
+
// src/lib/clients/agents-generator/services/PresenceService.ts
|
|
2201
|
+
class PresenceService {
|
|
2202
|
+
static getAgentPresencePresenceAgentsAgentIdGet(agentId) {
|
|
2203
|
+
return request(OpenAPI, {
|
|
2204
|
+
method: "GET",
|
|
2205
|
+
url: "/presence/agents/{agent_id}",
|
|
2206
|
+
path: {
|
|
2207
|
+
agent_id: agentId
|
|
2208
|
+
},
|
|
2209
|
+
errors: {
|
|
2210
|
+
422: `Validation Error`
|
|
2211
|
+
}
|
|
2212
|
+
});
|
|
2213
|
+
}
|
|
2214
|
+
}
|
|
2215
|
+
var init_PresenceService = __esm(() => {
|
|
2216
|
+
init_OpenAPI();
|
|
2217
|
+
init_request();
|
|
2218
|
+
});
|
|
2219
|
+
|
|
2043
2220
|
// src/lib/clients/agents-generator/services/PublicAgentsService.ts
|
|
2044
2221
|
class PublicAgentsService {
|
|
2045
2222
|
static getAgent(agentId, workspaceId) {
|
|
@@ -2133,6 +2310,87 @@ var init_RootService = __esm(() => {
|
|
|
2133
2310
|
init_request();
|
|
2134
2311
|
});
|
|
2135
2312
|
|
|
2313
|
+
// src/lib/clients/agents-generator/services/WorkspaceCollaboratorsService.ts
|
|
2314
|
+
class WorkspaceCollaboratorsService {
|
|
2315
|
+
static addWorkspaceCollaborator(workspaceId, requestBody) {
|
|
2316
|
+
return request(OpenAPI, {
|
|
2317
|
+
method: "POST",
|
|
2318
|
+
url: "/workspaces/{workspace_id}/collaborators",
|
|
2319
|
+
path: {
|
|
2320
|
+
workspace_id: workspaceId
|
|
2321
|
+
},
|
|
2322
|
+
body: requestBody,
|
|
2323
|
+
mediaType: "application/json",
|
|
2324
|
+
errors: {
|
|
2325
|
+
422: `Validation Error`
|
|
2326
|
+
}
|
|
2327
|
+
});
|
|
2328
|
+
}
|
|
2329
|
+
static getWorkspaceCollaborators(workspaceId) {
|
|
2330
|
+
return request(OpenAPI, {
|
|
2331
|
+
method: "GET",
|
|
2332
|
+
url: "/workspaces/{workspace_id}/collaborators",
|
|
2333
|
+
path: {
|
|
2334
|
+
workspace_id: workspaceId
|
|
2335
|
+
},
|
|
2336
|
+
errors: {
|
|
2337
|
+
422: `Validation Error`
|
|
2338
|
+
}
|
|
2339
|
+
});
|
|
2340
|
+
}
|
|
2341
|
+
static getWorkspaceCollaborator(workspaceId, collaboratorId) {
|
|
2342
|
+
return request(OpenAPI, {
|
|
2343
|
+
method: "GET",
|
|
2344
|
+
url: "/workspaces/{workspace_id}/collaborators/{collaborator_id}",
|
|
2345
|
+
path: {
|
|
2346
|
+
workspace_id: workspaceId,
|
|
2347
|
+
collaborator_id: collaboratorId
|
|
2348
|
+
},
|
|
2349
|
+
errors: {
|
|
2350
|
+
422: `Validation Error`
|
|
2351
|
+
}
|
|
2352
|
+
});
|
|
2353
|
+
}
|
|
2354
|
+
static updateWorkspaceCollaborator(workspaceId, collaboratorId, requestBody) {
|
|
2355
|
+
return request(OpenAPI, {
|
|
2356
|
+
method: "PUT",
|
|
2357
|
+
url: "/workspaces/{workspace_id}/collaborators/{collaborator_id}",
|
|
2358
|
+
path: {
|
|
2359
|
+
workspace_id: workspaceId,
|
|
2360
|
+
collaborator_id: collaboratorId
|
|
2361
|
+
},
|
|
2362
|
+
body: requestBody,
|
|
2363
|
+
mediaType: "application/json",
|
|
2364
|
+
errors: {
|
|
2365
|
+
422: `Validation Error`
|
|
2366
|
+
}
|
|
2367
|
+
});
|
|
2368
|
+
}
|
|
2369
|
+
static deleteWorkspaceCollaborator(workspaceId, collaboratorId) {
|
|
2370
|
+
return request(OpenAPI, {
|
|
2371
|
+
method: "DELETE",
|
|
2372
|
+
url: "/workspaces/{workspace_id}/collaborators/{collaborator_id}",
|
|
2373
|
+
path: {
|
|
2374
|
+
workspace_id: workspaceId,
|
|
2375
|
+
collaborator_id: collaboratorId
|
|
2376
|
+
},
|
|
2377
|
+
errors: {
|
|
2378
|
+
422: `Validation Error`
|
|
2379
|
+
}
|
|
2380
|
+
});
|
|
2381
|
+
}
|
|
2382
|
+
static getMyCollaborativeWorkspaces() {
|
|
2383
|
+
return request(OpenAPI, {
|
|
2384
|
+
method: "GET",
|
|
2385
|
+
url: "/workspaces/{workspace_id}/collaborators/me/workspaces"
|
|
2386
|
+
});
|
|
2387
|
+
}
|
|
2388
|
+
}
|
|
2389
|
+
var init_WorkspaceCollaboratorsService = __esm(() => {
|
|
2390
|
+
init_OpenAPI();
|
|
2391
|
+
init_request();
|
|
2392
|
+
});
|
|
2393
|
+
|
|
2136
2394
|
// src/lib/clients/agents-generator/services/WorkspacesService.ts
|
|
2137
2395
|
class WorkspacesService {
|
|
2138
2396
|
static createWorkspace(requestBody) {
|
|
@@ -2214,7 +2472,9 @@ var init_agents_generator = __esm(() => {
|
|
|
2214
2472
|
init_ApiError();
|
|
2215
2473
|
init_CancelablePromise();
|
|
2216
2474
|
init_OpenAPI();
|
|
2475
|
+
init_CollaboratorRole();
|
|
2217
2476
|
init_AdminAgentsService();
|
|
2477
|
+
init_AdminApiKeysService();
|
|
2218
2478
|
init_AdminConversationsService();
|
|
2219
2479
|
init_AdminCredentialsService();
|
|
2220
2480
|
init_AdminFileLibraryService();
|
|
@@ -2225,9 +2485,11 @@ var init_agents_generator = __esm(() => {
|
|
|
2225
2485
|
init_CredentialsService();
|
|
2226
2486
|
init_FileLibraryService();
|
|
2227
2487
|
init_McpServersService();
|
|
2488
|
+
init_PresenceService();
|
|
2228
2489
|
init_PublicAgentsService();
|
|
2229
2490
|
init_PublicConversationsService();
|
|
2230
2491
|
init_RootService();
|
|
2492
|
+
init_WorkspaceCollaboratorsService();
|
|
2231
2493
|
init_WorkspacesService();
|
|
2232
2494
|
});
|
|
2233
2495
|
|
|
@@ -2268,7 +2530,10 @@ class AgentClient {
|
|
|
2268
2530
|
credentials: AdminCredentialsService,
|
|
2269
2531
|
fileLibrary: AdminFileLibraryService,
|
|
2270
2532
|
mcpServers: AdminMcpServersService,
|
|
2271
|
-
workspaces: AdminWorkspacesService
|
|
2533
|
+
workspaces: AdminWorkspacesService,
|
|
2534
|
+
collaborators: WorkspaceCollaboratorsService,
|
|
2535
|
+
apiKeys: AdminApiKeysService,
|
|
2536
|
+
presence: PresenceService
|
|
2272
2537
|
};
|
|
2273
2538
|
this.public = {
|
|
2274
2539
|
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;
|
|
@@ -572,6 +581,79 @@ var init_AdminAgentsService = __esm(() => {
|
|
|
572
581
|
init_request();
|
|
573
582
|
});
|
|
574
583
|
|
|
584
|
+
// src/lib/clients/agents-generator/services/AdminApiKeysService.ts
|
|
585
|
+
class AdminApiKeysService {
|
|
586
|
+
static createApiKeyWorkspacesWorkspaceIdApiKeysPost(workspaceId, requestBody) {
|
|
587
|
+
return request(OpenAPI, {
|
|
588
|
+
method: "POST",
|
|
589
|
+
url: "/workspaces/{workspace_id}/api-keys",
|
|
590
|
+
path: {
|
|
591
|
+
workspace_id: workspaceId
|
|
592
|
+
},
|
|
593
|
+
body: requestBody,
|
|
594
|
+
mediaType: "application/json",
|
|
595
|
+
errors: {
|
|
596
|
+
422: `Validation Error`
|
|
597
|
+
}
|
|
598
|
+
});
|
|
599
|
+
}
|
|
600
|
+
static getApiKeysWorkspacesWorkspaceIdApiKeysGet(workspaceId) {
|
|
601
|
+
return request(OpenAPI, {
|
|
602
|
+
method: "GET",
|
|
603
|
+
url: "/workspaces/{workspace_id}/api-keys",
|
|
604
|
+
path: {
|
|
605
|
+
workspace_id: workspaceId
|
|
606
|
+
},
|
|
607
|
+
errors: {
|
|
608
|
+
422: `Validation Error`
|
|
609
|
+
}
|
|
610
|
+
});
|
|
611
|
+
}
|
|
612
|
+
static getApiKeyWorkspacesWorkspaceIdApiKeysApiKeyIdGet(apiKeyId) {
|
|
613
|
+
return request(OpenAPI, {
|
|
614
|
+
method: "GET",
|
|
615
|
+
url: "/workspaces/{workspace_id}/api-keys/{api_key_id}",
|
|
616
|
+
path: {
|
|
617
|
+
api_key_id: apiKeyId
|
|
618
|
+
},
|
|
619
|
+
errors: {
|
|
620
|
+
422: `Validation Error`
|
|
621
|
+
}
|
|
622
|
+
});
|
|
623
|
+
}
|
|
624
|
+
static updateApiKeyWorkspacesWorkspaceIdApiKeysApiKeyIdPatch(workspaceId, apiKeyId, requestBody) {
|
|
625
|
+
return request(OpenAPI, {
|
|
626
|
+
method: "PATCH",
|
|
627
|
+
url: "/workspaces/{workspace_id}/api-keys/{api_key_id}",
|
|
628
|
+
path: {
|
|
629
|
+
workspace_id: workspaceId,
|
|
630
|
+
api_key_id: apiKeyId
|
|
631
|
+
},
|
|
632
|
+
body: requestBody,
|
|
633
|
+
mediaType: "application/json",
|
|
634
|
+
errors: {
|
|
635
|
+
422: `Validation Error`
|
|
636
|
+
}
|
|
637
|
+
});
|
|
638
|
+
}
|
|
639
|
+
static deleteApiKeyWorkspacesWorkspaceIdApiKeysApiKeyIdDelete(apiKeyId) {
|
|
640
|
+
return request(OpenAPI, {
|
|
641
|
+
method: "DELETE",
|
|
642
|
+
url: "/workspaces/{workspace_id}/api-keys/{api_key_id}",
|
|
643
|
+
path: {
|
|
644
|
+
api_key_id: apiKeyId
|
|
645
|
+
},
|
|
646
|
+
errors: {
|
|
647
|
+
422: `Validation Error`
|
|
648
|
+
}
|
|
649
|
+
});
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
var init_AdminApiKeysService = __esm(() => {
|
|
653
|
+
init_OpenAPI();
|
|
654
|
+
init_request();
|
|
655
|
+
});
|
|
656
|
+
|
|
575
657
|
// src/lib/clients/agents-generator/services/AdminConversationsService.ts
|
|
576
658
|
class AdminConversationsService {
|
|
577
659
|
static createConversation(requestBody) {
|
|
@@ -810,7 +892,7 @@ class AdminFileLibraryService {
|
|
|
810
892
|
}
|
|
811
893
|
});
|
|
812
894
|
}
|
|
813
|
-
static getFoldersByBucket(bucketId, parentFolderId) {
|
|
895
|
+
static getFoldersByBucket(bucketId, parentFolderId, workspaceId) {
|
|
814
896
|
return request(OpenAPI, {
|
|
815
897
|
method: "GET",
|
|
816
898
|
url: "/file-library/buckets/{bucket_id}/folders",
|
|
@@ -818,7 +900,8 @@ class AdminFileLibraryService {
|
|
|
818
900
|
bucket_id: bucketId
|
|
819
901
|
},
|
|
820
902
|
query: {
|
|
821
|
-
parent_folder_id: parentFolderId
|
|
903
|
+
parent_folder_id: parentFolderId,
|
|
904
|
+
workspace_id: workspaceId
|
|
822
905
|
},
|
|
823
906
|
errors: {
|
|
824
907
|
422: `Validation Error`
|
|
@@ -1014,6 +1097,79 @@ class AdminWorkspacesService {
|
|
|
1014
1097
|
}
|
|
1015
1098
|
});
|
|
1016
1099
|
}
|
|
1100
|
+
static addWorkspaceCollaborator(workspaceId, requestBody) {
|
|
1101
|
+
return request(OpenAPI, {
|
|
1102
|
+
method: "POST",
|
|
1103
|
+
url: "/workspaces/{workspace_id}/collaborators",
|
|
1104
|
+
path: {
|
|
1105
|
+
workspace_id: workspaceId
|
|
1106
|
+
},
|
|
1107
|
+
body: requestBody,
|
|
1108
|
+
mediaType: "application/json",
|
|
1109
|
+
errors: {
|
|
1110
|
+
422: `Validation Error`
|
|
1111
|
+
}
|
|
1112
|
+
});
|
|
1113
|
+
}
|
|
1114
|
+
static getWorkspaceCollaborators(workspaceId) {
|
|
1115
|
+
return request(OpenAPI, {
|
|
1116
|
+
method: "GET",
|
|
1117
|
+
url: "/workspaces/{workspace_id}/collaborators",
|
|
1118
|
+
path: {
|
|
1119
|
+
workspace_id: workspaceId
|
|
1120
|
+
},
|
|
1121
|
+
errors: {
|
|
1122
|
+
422: `Validation Error`
|
|
1123
|
+
}
|
|
1124
|
+
});
|
|
1125
|
+
}
|
|
1126
|
+
static getWorkspaceCollaborator(workspaceId, collaboratorId) {
|
|
1127
|
+
return request(OpenAPI, {
|
|
1128
|
+
method: "GET",
|
|
1129
|
+
url: "/workspaces/{workspace_id}/collaborators/{collaborator_id}",
|
|
1130
|
+
path: {
|
|
1131
|
+
workspace_id: workspaceId,
|
|
1132
|
+
collaborator_id: collaboratorId
|
|
1133
|
+
},
|
|
1134
|
+
errors: {
|
|
1135
|
+
422: `Validation Error`
|
|
1136
|
+
}
|
|
1137
|
+
});
|
|
1138
|
+
}
|
|
1139
|
+
static updateWorkspaceCollaborator(workspaceId, collaboratorId, requestBody) {
|
|
1140
|
+
return request(OpenAPI, {
|
|
1141
|
+
method: "PUT",
|
|
1142
|
+
url: "/workspaces/{workspace_id}/collaborators/{collaborator_id}",
|
|
1143
|
+
path: {
|
|
1144
|
+
workspace_id: workspaceId,
|
|
1145
|
+
collaborator_id: collaboratorId
|
|
1146
|
+
},
|
|
1147
|
+
body: requestBody,
|
|
1148
|
+
mediaType: "application/json",
|
|
1149
|
+
errors: {
|
|
1150
|
+
422: `Validation Error`
|
|
1151
|
+
}
|
|
1152
|
+
});
|
|
1153
|
+
}
|
|
1154
|
+
static deleteWorkspaceCollaborator(workspaceId, collaboratorId) {
|
|
1155
|
+
return request(OpenAPI, {
|
|
1156
|
+
method: "DELETE",
|
|
1157
|
+
url: "/workspaces/{workspace_id}/collaborators/{collaborator_id}",
|
|
1158
|
+
path: {
|
|
1159
|
+
workspace_id: workspaceId,
|
|
1160
|
+
collaborator_id: collaboratorId
|
|
1161
|
+
},
|
|
1162
|
+
errors: {
|
|
1163
|
+
422: `Validation Error`
|
|
1164
|
+
}
|
|
1165
|
+
});
|
|
1166
|
+
}
|
|
1167
|
+
static getMyCollaborativeWorkspaces() {
|
|
1168
|
+
return request(OpenAPI, {
|
|
1169
|
+
method: "GET",
|
|
1170
|
+
url: "/workspaces/{workspace_id}/collaborators/me/workspaces"
|
|
1171
|
+
});
|
|
1172
|
+
}
|
|
1017
1173
|
}
|
|
1018
1174
|
var init_AdminWorkspacesService = __esm(() => {
|
|
1019
1175
|
init_OpenAPI();
|
|
@@ -1448,7 +1604,7 @@ class FileLibraryService {
|
|
|
1448
1604
|
}
|
|
1449
1605
|
});
|
|
1450
1606
|
}
|
|
1451
|
-
static getFoldersByBucket(bucketId, parentFolderId) {
|
|
1607
|
+
static getFoldersByBucket(bucketId, parentFolderId, workspaceId) {
|
|
1452
1608
|
return request(OpenAPI, {
|
|
1453
1609
|
method: "GET",
|
|
1454
1610
|
url: "/file-library/buckets/{bucket_id}/folders",
|
|
@@ -1456,7 +1612,8 @@ class FileLibraryService {
|
|
|
1456
1612
|
bucket_id: bucketId
|
|
1457
1613
|
},
|
|
1458
1614
|
query: {
|
|
1459
|
-
parent_folder_id: parentFolderId
|
|
1615
|
+
parent_folder_id: parentFolderId,
|
|
1616
|
+
workspace_id: workspaceId
|
|
1460
1617
|
},
|
|
1461
1618
|
errors: {
|
|
1462
1619
|
422: `Validation Error`
|
|
@@ -1608,6 +1765,26 @@ var init_McpServersService = __esm(() => {
|
|
|
1608
1765
|
init_request();
|
|
1609
1766
|
});
|
|
1610
1767
|
|
|
1768
|
+
// src/lib/clients/agents-generator/services/PresenceService.ts
|
|
1769
|
+
class PresenceService {
|
|
1770
|
+
static getAgentPresencePresenceAgentsAgentIdGet(agentId) {
|
|
1771
|
+
return request(OpenAPI, {
|
|
1772
|
+
method: "GET",
|
|
1773
|
+
url: "/presence/agents/{agent_id}",
|
|
1774
|
+
path: {
|
|
1775
|
+
agent_id: agentId
|
|
1776
|
+
},
|
|
1777
|
+
errors: {
|
|
1778
|
+
422: `Validation Error`
|
|
1779
|
+
}
|
|
1780
|
+
});
|
|
1781
|
+
}
|
|
1782
|
+
}
|
|
1783
|
+
var init_PresenceService = __esm(() => {
|
|
1784
|
+
init_OpenAPI();
|
|
1785
|
+
init_request();
|
|
1786
|
+
});
|
|
1787
|
+
|
|
1611
1788
|
// src/lib/clients/agents-generator/services/PublicAgentsService.ts
|
|
1612
1789
|
class PublicAgentsService {
|
|
1613
1790
|
static getAgent(agentId, workspaceId) {
|
|
@@ -1701,6 +1878,87 @@ var init_RootService = __esm(() => {
|
|
|
1701
1878
|
init_request();
|
|
1702
1879
|
});
|
|
1703
1880
|
|
|
1881
|
+
// src/lib/clients/agents-generator/services/WorkspaceCollaboratorsService.ts
|
|
1882
|
+
class WorkspaceCollaboratorsService {
|
|
1883
|
+
static addWorkspaceCollaborator(workspaceId, requestBody) {
|
|
1884
|
+
return request(OpenAPI, {
|
|
1885
|
+
method: "POST",
|
|
1886
|
+
url: "/workspaces/{workspace_id}/collaborators",
|
|
1887
|
+
path: {
|
|
1888
|
+
workspace_id: workspaceId
|
|
1889
|
+
},
|
|
1890
|
+
body: requestBody,
|
|
1891
|
+
mediaType: "application/json",
|
|
1892
|
+
errors: {
|
|
1893
|
+
422: `Validation Error`
|
|
1894
|
+
}
|
|
1895
|
+
});
|
|
1896
|
+
}
|
|
1897
|
+
static getWorkspaceCollaborators(workspaceId) {
|
|
1898
|
+
return request(OpenAPI, {
|
|
1899
|
+
method: "GET",
|
|
1900
|
+
url: "/workspaces/{workspace_id}/collaborators",
|
|
1901
|
+
path: {
|
|
1902
|
+
workspace_id: workspaceId
|
|
1903
|
+
},
|
|
1904
|
+
errors: {
|
|
1905
|
+
422: `Validation Error`
|
|
1906
|
+
}
|
|
1907
|
+
});
|
|
1908
|
+
}
|
|
1909
|
+
static getWorkspaceCollaborator(workspaceId, collaboratorId) {
|
|
1910
|
+
return request(OpenAPI, {
|
|
1911
|
+
method: "GET",
|
|
1912
|
+
url: "/workspaces/{workspace_id}/collaborators/{collaborator_id}",
|
|
1913
|
+
path: {
|
|
1914
|
+
workspace_id: workspaceId,
|
|
1915
|
+
collaborator_id: collaboratorId
|
|
1916
|
+
},
|
|
1917
|
+
errors: {
|
|
1918
|
+
422: `Validation Error`
|
|
1919
|
+
}
|
|
1920
|
+
});
|
|
1921
|
+
}
|
|
1922
|
+
static updateWorkspaceCollaborator(workspaceId, collaboratorId, requestBody) {
|
|
1923
|
+
return request(OpenAPI, {
|
|
1924
|
+
method: "PUT",
|
|
1925
|
+
url: "/workspaces/{workspace_id}/collaborators/{collaborator_id}",
|
|
1926
|
+
path: {
|
|
1927
|
+
workspace_id: workspaceId,
|
|
1928
|
+
collaborator_id: collaboratorId
|
|
1929
|
+
},
|
|
1930
|
+
body: requestBody,
|
|
1931
|
+
mediaType: "application/json",
|
|
1932
|
+
errors: {
|
|
1933
|
+
422: `Validation Error`
|
|
1934
|
+
}
|
|
1935
|
+
});
|
|
1936
|
+
}
|
|
1937
|
+
static deleteWorkspaceCollaborator(workspaceId, collaboratorId) {
|
|
1938
|
+
return request(OpenAPI, {
|
|
1939
|
+
method: "DELETE",
|
|
1940
|
+
url: "/workspaces/{workspace_id}/collaborators/{collaborator_id}",
|
|
1941
|
+
path: {
|
|
1942
|
+
workspace_id: workspaceId,
|
|
1943
|
+
collaborator_id: collaboratorId
|
|
1944
|
+
},
|
|
1945
|
+
errors: {
|
|
1946
|
+
422: `Validation Error`
|
|
1947
|
+
}
|
|
1948
|
+
});
|
|
1949
|
+
}
|
|
1950
|
+
static getMyCollaborativeWorkspaces() {
|
|
1951
|
+
return request(OpenAPI, {
|
|
1952
|
+
method: "GET",
|
|
1953
|
+
url: "/workspaces/{workspace_id}/collaborators/me/workspaces"
|
|
1954
|
+
});
|
|
1955
|
+
}
|
|
1956
|
+
}
|
|
1957
|
+
var init_WorkspaceCollaboratorsService = __esm(() => {
|
|
1958
|
+
init_OpenAPI();
|
|
1959
|
+
init_request();
|
|
1960
|
+
});
|
|
1961
|
+
|
|
1704
1962
|
// src/lib/clients/agents-generator/services/WorkspacesService.ts
|
|
1705
1963
|
class WorkspacesService {
|
|
1706
1964
|
static createWorkspace(requestBody) {
|
|
@@ -1782,7 +2040,9 @@ var init_agents_generator = __esm(() => {
|
|
|
1782
2040
|
init_ApiError();
|
|
1783
2041
|
init_CancelablePromise();
|
|
1784
2042
|
init_OpenAPI();
|
|
2043
|
+
init_CollaboratorRole();
|
|
1785
2044
|
init_AdminAgentsService();
|
|
2045
|
+
init_AdminApiKeysService();
|
|
1786
2046
|
init_AdminConversationsService();
|
|
1787
2047
|
init_AdminCredentialsService();
|
|
1788
2048
|
init_AdminFileLibraryService();
|
|
@@ -1793,9 +2053,11 @@ var init_agents_generator = __esm(() => {
|
|
|
1793
2053
|
init_CredentialsService();
|
|
1794
2054
|
init_FileLibraryService();
|
|
1795
2055
|
init_McpServersService();
|
|
2056
|
+
init_PresenceService();
|
|
1796
2057
|
init_PublicAgentsService();
|
|
1797
2058
|
init_PublicConversationsService();
|
|
1798
2059
|
init_RootService();
|
|
2060
|
+
init_WorkspaceCollaboratorsService();
|
|
1799
2061
|
init_WorkspacesService();
|
|
1800
2062
|
});
|
|
1801
2063
|
|
|
@@ -1836,7 +2098,10 @@ class AgentClient {
|
|
|
1836
2098
|
credentials: AdminCredentialsService,
|
|
1837
2099
|
fileLibrary: AdminFileLibraryService,
|
|
1838
2100
|
mcpServers: AdminMcpServersService,
|
|
1839
|
-
workspaces: AdminWorkspacesService
|
|
2101
|
+
workspaces: AdminWorkspacesService,
|
|
2102
|
+
collaborators: WorkspaceCollaboratorsService,
|
|
2103
|
+
apiKeys: AdminApiKeysService,
|
|
2104
|
+
presence: PresenceService
|
|
1840
2105
|
};
|
|
1841
2106
|
this.public = {
|
|
1842
2107
|
agents: PublicAgentsService,
|
|
@@ -2090,14 +2355,17 @@ var init_lib = __esm(() => {
|
|
|
2090
2355
|
var exports_src = {};
|
|
2091
2356
|
__export(exports_src, {
|
|
2092
2357
|
WorkspacesService: () => WorkspacesService,
|
|
2358
|
+
WorkspaceCollaboratorsService: () => WorkspaceCollaboratorsService,
|
|
2093
2359
|
RootService: () => RootService,
|
|
2094
2360
|
PublicConversationsService: () => PublicConversationsService,
|
|
2095
2361
|
PublicAgentsService: () => PublicAgentsService,
|
|
2362
|
+
PresenceService: () => PresenceService,
|
|
2096
2363
|
OpenAPI: () => OpenAPI,
|
|
2097
2364
|
McpServersService: () => McpServersService,
|
|
2098
2365
|
FileLibraryService: () => FileLibraryService,
|
|
2099
2366
|
CredentialsService: () => CredentialsService,
|
|
2100
2367
|
ConversationsService: () => ConversationsService,
|
|
2368
|
+
CollaboratorRole: () => CollaboratorRole,
|
|
2101
2369
|
CancelablePromise: () => CancelablePromise,
|
|
2102
2370
|
CancelError: () => CancelError,
|
|
2103
2371
|
ApiError: () => ApiError,
|
|
@@ -2108,6 +2376,7 @@ __export(exports_src, {
|
|
|
2108
2376
|
AdminFileLibraryService: () => AdminFileLibraryService,
|
|
2109
2377
|
AdminCredentialsService: () => AdminCredentialsService,
|
|
2110
2378
|
AdminConversationsService: () => AdminConversationsService,
|
|
2379
|
+
AdminApiKeysService: () => AdminApiKeysService,
|
|
2111
2380
|
AdminAgentsService: () => AdminAgentsService
|
|
2112
2381
|
});
|
|
2113
2382
|
module.exports = __toCommonJS(exports_src);
|
|
@@ -7,10 +7,15 @@ export type { AgentQueryRequest } from './models/AgentQueryRequest';
|
|
|
7
7
|
export type { AgentQueryResponse } from './models/AgentQueryResponse';
|
|
8
8
|
export type { AgentRequest } from './models/AgentRequest';
|
|
9
9
|
export type { AgentStats } from './models/AgentStats';
|
|
10
|
+
export type { ApiKeyCreate } from './models/ApiKeyCreate';
|
|
11
|
+
export type { ApiKeyResponse } from './models/ApiKeyResponse';
|
|
12
|
+
export type { ApiKeyUpdate } from './models/ApiKeyUpdate';
|
|
13
|
+
export type { ApiKeyWithSecret } from './models/ApiKeyWithSecret';
|
|
10
14
|
export type { Body_upload_file } from './models/Body_upload_file';
|
|
11
15
|
export type { BucketCreate } from './models/BucketCreate';
|
|
12
16
|
export type { BucketResponse } from './models/BucketResponse';
|
|
13
17
|
export type { CallbackTool } from './models/CallbackTool';
|
|
18
|
+
export { CollaboratorRole } from './models/CollaboratorRole';
|
|
14
19
|
export type { ConversationCreate } from './models/ConversationCreate';
|
|
15
20
|
export type { ConversationResponse } from './models/ConversationResponse';
|
|
16
21
|
export type { ConversationUpdate } from './models/ConversationUpdate';
|
|
@@ -41,11 +46,15 @@ export type { NodeData } from './models/NodeData';
|
|
|
41
46
|
export type { Position } from './models/Position';
|
|
42
47
|
export type { UpdateMCPServerRequest } from './models/UpdateMCPServerRequest';
|
|
43
48
|
export type { ValidationError } from './models/ValidationError';
|
|
49
|
+
export type { WorkspaceCollaboratorCreate } from './models/WorkspaceCollaboratorCreate';
|
|
50
|
+
export type { WorkspaceCollaboratorResponse } from './models/WorkspaceCollaboratorResponse';
|
|
51
|
+
export type { WorkspaceCollaboratorUpdate } from './models/WorkspaceCollaboratorUpdate';
|
|
44
52
|
export type { WorkspaceCreate } from './models/WorkspaceCreate';
|
|
45
53
|
export type { WorkspaceResponse } from './models/WorkspaceResponse';
|
|
46
54
|
export type { WorkspaceUpdate } from './models/WorkspaceUpdate';
|
|
47
55
|
export type { WorkspaceWithStats } from './models/WorkspaceWithStats';
|
|
48
56
|
export { AdminAgentsService } from './services/AdminAgentsService';
|
|
57
|
+
export { AdminApiKeysService } from './services/AdminApiKeysService';
|
|
49
58
|
export { AdminConversationsService } from './services/AdminConversationsService';
|
|
50
59
|
export { AdminCredentialsService } from './services/AdminCredentialsService';
|
|
51
60
|
export { AdminFileLibraryService } from './services/AdminFileLibraryService';
|
|
@@ -56,7 +65,9 @@ export { ConversationsService } from './services/ConversationsService';
|
|
|
56
65
|
export { CredentialsService } from './services/CredentialsService';
|
|
57
66
|
export { FileLibraryService } from './services/FileLibraryService';
|
|
58
67
|
export { McpServersService } from './services/McpServersService';
|
|
68
|
+
export { PresenceService } from './services/PresenceService';
|
|
59
69
|
export { PublicAgentsService } from './services/PublicAgentsService';
|
|
60
70
|
export { PublicConversationsService } from './services/PublicConversationsService';
|
|
61
71
|
export { RootService } from './services/RootService';
|
|
72
|
+
export { WorkspaceCollaboratorsService } from './services/WorkspaceCollaboratorsService';
|
|
62
73
|
export { WorkspacesService } from './services/WorkspacesService';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CollaboratorRole } from './CollaboratorRole';
|
|
2
|
+
export type WorkspaceCollaboratorResponse = {
|
|
3
|
+
role: CollaboratorRole;
|
|
4
|
+
id: string;
|
|
5
|
+
user_id: string;
|
|
6
|
+
workspace_id: string;
|
|
7
|
+
invited_by: string;
|
|
8
|
+
created_at: string;
|
|
9
|
+
updated_at: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { ApiKeyCreate } from '../models/ApiKeyCreate';
|
|
2
|
+
import type { ApiKeyResponse } from '../models/ApiKeyResponse';
|
|
3
|
+
import type { ApiKeyUpdate } from '../models/ApiKeyUpdate';
|
|
4
|
+
import type { ApiKeyWithSecret } from '../models/ApiKeyWithSecret';
|
|
5
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
6
|
+
export declare class AdminApiKeysService {
|
|
7
|
+
/**
|
|
8
|
+
* Create Api Key
|
|
9
|
+
* Create a new API key for a workspace
|
|
10
|
+
* @param workspaceId
|
|
11
|
+
* @param requestBody
|
|
12
|
+
* @returns ApiKeyWithSecret Successful Response
|
|
13
|
+
* @throws ApiError
|
|
14
|
+
*/
|
|
15
|
+
static createApiKeyWorkspacesWorkspaceIdApiKeysPost(workspaceId: string, requestBody: ApiKeyCreate): CancelablePromise<ApiKeyWithSecret>;
|
|
16
|
+
/**
|
|
17
|
+
* Get Api Keys
|
|
18
|
+
* Get all API keys for a workspace
|
|
19
|
+
* @param workspaceId
|
|
20
|
+
* @returns ApiKeyResponse Successful Response
|
|
21
|
+
* @throws ApiError
|
|
22
|
+
*/
|
|
23
|
+
static getApiKeysWorkspacesWorkspaceIdApiKeysGet(workspaceId: string): CancelablePromise<Array<ApiKeyResponse>>;
|
|
24
|
+
/**
|
|
25
|
+
* Get Api Key
|
|
26
|
+
* Get a specific API key
|
|
27
|
+
* @param apiKeyId
|
|
28
|
+
* @returns ApiKeyResponse Successful Response
|
|
29
|
+
* @throws ApiError
|
|
30
|
+
*/
|
|
31
|
+
static getApiKeyWorkspacesWorkspaceIdApiKeysApiKeyIdGet(apiKeyId: string): CancelablePromise<ApiKeyResponse>;
|
|
32
|
+
/**
|
|
33
|
+
* Update Api Key
|
|
34
|
+
* Update an API key
|
|
35
|
+
* @param workspaceId
|
|
36
|
+
* @param apiKeyId
|
|
37
|
+
* @param requestBody
|
|
38
|
+
* @returns ApiKeyResponse Successful Response
|
|
39
|
+
* @throws ApiError
|
|
40
|
+
*/
|
|
41
|
+
static updateApiKeyWorkspacesWorkspaceIdApiKeysApiKeyIdPatch(workspaceId: string, apiKeyId: string, requestBody: ApiKeyUpdate): CancelablePromise<ApiKeyResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* Delete Api Key
|
|
44
|
+
* Delete an API key
|
|
45
|
+
* @param apiKeyId
|
|
46
|
+
* @returns any Successful Response
|
|
47
|
+
* @throws ApiError
|
|
48
|
+
*/
|
|
49
|
+
static deleteApiKeyWorkspacesWorkspaceIdApiKeysApiKeyIdDelete(apiKeyId: string): CancelablePromise<any>;
|
|
50
|
+
}
|
|
@@ -4,7 +4,7 @@ import type { CancelablePromise } from '../core/CancelablePromise';
|
|
|
4
4
|
export declare class AdminCredentialsService {
|
|
5
5
|
/**
|
|
6
6
|
* Create Credential
|
|
7
|
-
* Create a new credential
|
|
7
|
+
* Create a new credential - only admin and owner roles can create credentials
|
|
8
8
|
* @param requestBody
|
|
9
9
|
* @param workspaceId
|
|
10
10
|
* @returns any Successful Response
|
|
@@ -13,7 +13,7 @@ export declare class AdminCredentialsService {
|
|
|
13
13
|
static createCredential(requestBody: CredentialCreate, workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
|
|
14
14
|
/**
|
|
15
15
|
* Get Credentials
|
|
16
|
-
* Get all credentials for a user
|
|
16
|
+
* Get all credentials for a user - allows collaborators to view workspace credentials
|
|
17
17
|
* @param workspaceId
|
|
18
18
|
* @returns any Successful Response
|
|
19
19
|
* @throws ApiError
|
|
@@ -21,7 +21,7 @@ export declare class AdminCredentialsService {
|
|
|
21
21
|
static getCredentials(workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
|
|
22
22
|
/**
|
|
23
23
|
* Get Credential
|
|
24
|
-
* Get a specific credential by ID
|
|
24
|
+
* Get a specific credential by ID - allows collaborators to view workspace credentials
|
|
25
25
|
* @param credentialId
|
|
26
26
|
* @param workspaceId
|
|
27
27
|
* @returns any Successful Response
|
|
@@ -30,7 +30,7 @@ export declare class AdminCredentialsService {
|
|
|
30
30
|
static getCredential(credentialId: string, workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
|
|
31
31
|
/**
|
|
32
32
|
* Update Credential
|
|
33
|
-
* Update a credential
|
|
33
|
+
* Update a credential - only admin and owner roles can edit credentials
|
|
34
34
|
* @param credentialId
|
|
35
35
|
* @param requestBody
|
|
36
36
|
* @param workspaceId
|
|
@@ -40,7 +40,7 @@ export declare class AdminCredentialsService {
|
|
|
40
40
|
static updateCredential(credentialId: string, requestBody: CredentialUpdate, workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
|
|
41
41
|
/**
|
|
42
42
|
* Delete Credential
|
|
43
|
-
* Delete a credential
|
|
43
|
+
* Delete a credential - only admin and owner roles can delete credentials
|
|
44
44
|
* @param credentialId
|
|
45
45
|
* @param workspaceId
|
|
46
46
|
* @returns any Successful Response
|
|
@@ -19,7 +19,7 @@ export declare class AdminFileLibraryService {
|
|
|
19
19
|
static createBucket(requestBody: BucketCreate, workspaceId?: (string | null)): CancelablePromise<BucketResponse>;
|
|
20
20
|
/**
|
|
21
21
|
* Get Buckets
|
|
22
|
-
* Get all buckets for the user
|
|
22
|
+
* Get all buckets for the user - allows collaborators to view workspace buckets
|
|
23
23
|
* @param workspaceId
|
|
24
24
|
* @returns BucketResponse Successful Response
|
|
25
25
|
* @throws ApiError
|
|
@@ -53,13 +53,14 @@ export declare class AdminFileLibraryService {
|
|
|
53
53
|
static createFolder(requestBody: FolderCreate): CancelablePromise<FolderResponse>;
|
|
54
54
|
/**
|
|
55
55
|
* Get Folders
|
|
56
|
-
* Get folders in a bucket
|
|
56
|
+
* Get folders in a bucket - allows collaborators to view workspace folders
|
|
57
57
|
* @param bucketId
|
|
58
58
|
* @param parentFolderId
|
|
59
|
+
* @param workspaceId
|
|
59
60
|
* @returns FolderResponse Successful Response
|
|
60
61
|
* @throws ApiError
|
|
61
62
|
*/
|
|
62
|
-
static getFoldersByBucket(bucketId: string, parentFolderId?: (string | null)): CancelablePromise<Array<FolderResponse>>;
|
|
63
|
+
static getFoldersByBucket(bucketId: string, parentFolderId?: (string | null), workspaceId?: (string | null)): CancelablePromise<Array<FolderResponse>>;
|
|
63
64
|
/**
|
|
64
65
|
* Delete Folder
|
|
65
66
|
* Delete a folder
|
|
@@ -79,7 +80,7 @@ export declare class AdminFileLibraryService {
|
|
|
79
80
|
static uploadFile(folderId: string, formData: Body_upload_file): CancelablePromise<FileResponse>;
|
|
80
81
|
/**
|
|
81
82
|
* Get Files
|
|
82
|
-
* Get files in a folder
|
|
83
|
+
* Get files in a folder - allows collaborators to view workspace files
|
|
83
84
|
* @param folderId
|
|
84
85
|
* @returns FileResponse Successful Response
|
|
85
86
|
* @throws ApiError
|
|
@@ -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 ID of the workspace to add the collaborator to
|
|
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
|
}
|
|
@@ -4,7 +4,7 @@ import type { CancelablePromise } from '../core/CancelablePromise';
|
|
|
4
4
|
export declare class CredentialsService {
|
|
5
5
|
/**
|
|
6
6
|
* Create Credential
|
|
7
|
-
* Create a new credential
|
|
7
|
+
* Create a new credential - only admin and owner roles can create credentials
|
|
8
8
|
* @param requestBody
|
|
9
9
|
* @param workspaceId
|
|
10
10
|
* @returns any Successful Response
|
|
@@ -13,7 +13,7 @@ export declare class CredentialsService {
|
|
|
13
13
|
static createCredential(requestBody: CredentialCreate, workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
|
|
14
14
|
/**
|
|
15
15
|
* Get Credentials
|
|
16
|
-
* Get all credentials for a user
|
|
16
|
+
* Get all credentials for a user - allows collaborators to view workspace credentials
|
|
17
17
|
* @param workspaceId
|
|
18
18
|
* @returns any Successful Response
|
|
19
19
|
* @throws ApiError
|
|
@@ -21,7 +21,7 @@ export declare class CredentialsService {
|
|
|
21
21
|
static getCredentials(workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
|
|
22
22
|
/**
|
|
23
23
|
* Get Credential
|
|
24
|
-
* Get a specific credential by ID
|
|
24
|
+
* Get a specific credential by ID - allows collaborators to view workspace credentials
|
|
25
25
|
* @param credentialId
|
|
26
26
|
* @param workspaceId
|
|
27
27
|
* @returns any Successful Response
|
|
@@ -30,7 +30,7 @@ export declare class CredentialsService {
|
|
|
30
30
|
static getCredential(credentialId: string, workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
|
|
31
31
|
/**
|
|
32
32
|
* Update Credential
|
|
33
|
-
* Update a credential
|
|
33
|
+
* Update a credential - only admin and owner roles can edit credentials
|
|
34
34
|
* @param credentialId
|
|
35
35
|
* @param requestBody
|
|
36
36
|
* @param workspaceId
|
|
@@ -40,7 +40,7 @@ export declare class CredentialsService {
|
|
|
40
40
|
static updateCredential(credentialId: string, requestBody: CredentialUpdate, workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
|
|
41
41
|
/**
|
|
42
42
|
* Delete Credential
|
|
43
|
-
* Delete a credential
|
|
43
|
+
* Delete a credential - only admin and owner roles can delete credentials
|
|
44
44
|
* @param credentialId
|
|
45
45
|
* @param workspaceId
|
|
46
46
|
* @returns any Successful Response
|
|
@@ -19,7 +19,7 @@ export declare class FileLibraryService {
|
|
|
19
19
|
static createBucket(requestBody: BucketCreate, workspaceId?: (string | null)): CancelablePromise<BucketResponse>;
|
|
20
20
|
/**
|
|
21
21
|
* Get Buckets
|
|
22
|
-
* Get all buckets for the user
|
|
22
|
+
* Get all buckets for the user - allows collaborators to view workspace buckets
|
|
23
23
|
* @param workspaceId
|
|
24
24
|
* @returns BucketResponse Successful Response
|
|
25
25
|
* @throws ApiError
|
|
@@ -53,13 +53,14 @@ export declare class FileLibraryService {
|
|
|
53
53
|
static createFolder(requestBody: FolderCreate): CancelablePromise<FolderResponse>;
|
|
54
54
|
/**
|
|
55
55
|
* Get Folders
|
|
56
|
-
* Get folders in a bucket
|
|
56
|
+
* Get folders in a bucket - allows collaborators to view workspace folders
|
|
57
57
|
* @param bucketId
|
|
58
58
|
* @param parentFolderId
|
|
59
|
+
* @param workspaceId
|
|
59
60
|
* @returns FolderResponse Successful Response
|
|
60
61
|
* @throws ApiError
|
|
61
62
|
*/
|
|
62
|
-
static getFoldersByBucket(bucketId: string, parentFolderId?: (string | null)): CancelablePromise<Array<FolderResponse>>;
|
|
63
|
+
static getFoldersByBucket(bucketId: string, parentFolderId?: (string | null), workspaceId?: (string | null)): CancelablePromise<Array<FolderResponse>>;
|
|
63
64
|
/**
|
|
64
65
|
* Delete Folder
|
|
65
66
|
* Delete a folder
|
|
@@ -79,7 +80,7 @@ export declare class FileLibraryService {
|
|
|
79
80
|
static uploadFile(folderId: string, formData: Body_upload_file): CancelablePromise<FileResponse>;
|
|
80
81
|
/**
|
|
81
82
|
* Get Files
|
|
82
|
-
* Get files in a folder
|
|
83
|
+
* Get files in a folder - allows collaborators to view workspace files
|
|
83
84
|
* @param folderId
|
|
84
85
|
* @returns FileResponse Successful Response
|
|
85
86
|
* @throws ApiError
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
2
|
+
export declare class PresenceService {
|
|
3
|
+
/**
|
|
4
|
+
* Get Agent Presence
|
|
5
|
+
* Get current presence information for an agent (HTTP endpoint)
|
|
6
|
+
* @param agentId
|
|
7
|
+
* @returns any Successful Response
|
|
8
|
+
* @throws ApiError
|
|
9
|
+
*/
|
|
10
|
+
static getAgentPresencePresenceAgentsAgentIdGet(agentId: string): CancelablePromise<any>;
|
|
11
|
+
}
|
|
@@ -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 ID of the workspace to add the collaborator to
|
|
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, AdminApiKeysService, PresenceService } from "./clients/agents-generator";
|
|
2
2
|
export * from "./clients/agents-generator";
|
|
3
3
|
export interface StreamEvent {
|
|
4
4
|
type: string;
|
|
@@ -52,6 +52,9 @@ export declare class AgentClient {
|
|
|
52
52
|
fileLibrary: typeof AdminFileLibraryService;
|
|
53
53
|
mcpServers: typeof AdminMcpServersService;
|
|
54
54
|
workspaces: typeof AdminWorkspacesService;
|
|
55
|
+
collaborators: typeof WorkspaceCollaboratorsService;
|
|
56
|
+
apiKeys: typeof AdminApiKeysService;
|
|
57
|
+
presence: typeof PresenceService;
|
|
55
58
|
};
|
|
56
59
|
public: {
|
|
57
60
|
agents: typeof PublicAgentsService;
|