@ideascol/agents-generator-sdk 0.2.2 → 0.3.1
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 +11 -0
- package/dist/bin/cli.js +287 -59
- package/dist/index.js +289 -59
- package/dist/lib/clients/agents-generator/index.d.ts +6 -0
- package/dist/lib/clients/agents-generator/models/WorkspaceCreate.d.ts +5 -0
- package/dist/lib/clients/agents-generator/models/WorkspaceResponse.d.ts +8 -0
- package/dist/lib/clients/agents-generator/models/WorkspaceUpdate.d.ts +4 -0
- package/dist/lib/clients/agents-generator/models/WorkspaceWithStats.d.ts +12 -0
- package/dist/lib/clients/agents-generator/services/AdminAgentsService.d.ts +8 -7
- package/dist/lib/clients/agents-generator/services/AdminCredentialsService.d.ts +17 -11
- package/dist/lib/clients/agents-generator/services/AdminFileLibraryService.d.ts +13 -9
- package/dist/lib/clients/agents-generator/services/AdminWorkspacesService.d.ts +56 -0
- package/dist/lib/clients/agents-generator/services/AgentService.d.ts +8 -7
- package/dist/lib/clients/agents-generator/services/CredentialsService.d.ts +17 -11
- package/dist/lib/clients/agents-generator/services/FileLibraryService.d.ts +13 -9
- package/dist/lib/clients/agents-generator/services/PublicAgentsService.d.ts +2 -2
- package/dist/lib/clients/agents-generator/services/WorkspacesService.d.ts +56 -0
- package/package.json +1 -1
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-
|
|
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,
|
|
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
|
-
|
|
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,
|
|
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
|
-
|
|
888
|
+
workspace_id: workspaceId
|
|
888
889
|
},
|
|
889
890
|
errors: {
|
|
890
891
|
422: `Validation Error`
|
|
891
892
|
}
|
|
892
893
|
});
|
|
893
894
|
}
|
|
894
|
-
static deleteAgent(agentId,
|
|
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
|
-
|
|
903
|
+
workspace_id: workspaceId
|
|
903
904
|
},
|
|
904
905
|
errors: {
|
|
905
906
|
422: `Validation Error`
|
|
@@ -1048,16 +1049,13 @@ var init_AdminConversationsService = __esm(() => {
|
|
|
1048
1049
|
|
|
1049
1050
|
// src/lib/clients/agents-generator/services/AdminCredentialsService.ts
|
|
1050
1051
|
class AdminCredentialsService {
|
|
1051
|
-
static
|
|
1052
|
-
return request(OpenAPI, {
|
|
1053
|
-
method: "GET",
|
|
1054
|
-
url: "/credentials"
|
|
1055
|
-
});
|
|
1056
|
-
}
|
|
1057
|
-
static createCredential(requestBody) {
|
|
1052
|
+
static createCredential(requestBody, workspaceId) {
|
|
1058
1053
|
return request(OpenAPI, {
|
|
1059
1054
|
method: "POST",
|
|
1060
1055
|
url: "/credentials",
|
|
1056
|
+
query: {
|
|
1057
|
+
workspace_id: workspaceId
|
|
1058
|
+
},
|
|
1061
1059
|
body: requestBody,
|
|
1062
1060
|
mediaType: "application/json",
|
|
1063
1061
|
errors: {
|
|
@@ -1065,25 +1063,43 @@ class AdminCredentialsService {
|
|
|
1065
1063
|
}
|
|
1066
1064
|
});
|
|
1067
1065
|
}
|
|
1068
|
-
static
|
|
1066
|
+
static getCredentials(workspaceId) {
|
|
1067
|
+
return request(OpenAPI, {
|
|
1068
|
+
method: "GET",
|
|
1069
|
+
url: "/credentials",
|
|
1070
|
+
query: {
|
|
1071
|
+
workspace_id: workspaceId
|
|
1072
|
+
},
|
|
1073
|
+
errors: {
|
|
1074
|
+
422: `Validation Error`
|
|
1075
|
+
}
|
|
1076
|
+
});
|
|
1077
|
+
}
|
|
1078
|
+
static getCredential(credentialId, workspaceId) {
|
|
1069
1079
|
return request(OpenAPI, {
|
|
1070
1080
|
method: "GET",
|
|
1071
1081
|
url: "/credentials/{credential_id}",
|
|
1072
1082
|
path: {
|
|
1073
1083
|
credential_id: credentialId
|
|
1074
1084
|
},
|
|
1085
|
+
query: {
|
|
1086
|
+
workspace_id: workspaceId
|
|
1087
|
+
},
|
|
1075
1088
|
errors: {
|
|
1076
1089
|
422: `Validation Error`
|
|
1077
1090
|
}
|
|
1078
1091
|
});
|
|
1079
1092
|
}
|
|
1080
|
-
static updateCredential(credentialId, requestBody) {
|
|
1093
|
+
static updateCredential(credentialId, requestBody, workspaceId) {
|
|
1081
1094
|
return request(OpenAPI, {
|
|
1082
1095
|
method: "PUT",
|
|
1083
1096
|
url: "/credentials/{credential_id}",
|
|
1084
1097
|
path: {
|
|
1085
1098
|
credential_id: credentialId
|
|
1086
1099
|
},
|
|
1100
|
+
query: {
|
|
1101
|
+
workspace_id: workspaceId
|
|
1102
|
+
},
|
|
1087
1103
|
body: requestBody,
|
|
1088
1104
|
mediaType: "application/json",
|
|
1089
1105
|
errors: {
|
|
@@ -1091,25 +1107,31 @@ class AdminCredentialsService {
|
|
|
1091
1107
|
}
|
|
1092
1108
|
});
|
|
1093
1109
|
}
|
|
1094
|
-
static deleteCredential(credentialId) {
|
|
1110
|
+
static deleteCredential(credentialId, workspaceId) {
|
|
1095
1111
|
return request(OpenAPI, {
|
|
1096
1112
|
method: "DELETE",
|
|
1097
1113
|
url: "/credentials/{credential_id}",
|
|
1098
1114
|
path: {
|
|
1099
1115
|
credential_id: credentialId
|
|
1100
1116
|
},
|
|
1117
|
+
query: {
|
|
1118
|
+
workspace_id: workspaceId
|
|
1119
|
+
},
|
|
1101
1120
|
errors: {
|
|
1102
1121
|
422: `Validation Error`
|
|
1103
1122
|
}
|
|
1104
1123
|
});
|
|
1105
1124
|
}
|
|
1106
|
-
static getCredentialDecrypted(credentialId) {
|
|
1125
|
+
static getCredentialDecrypted(credentialId, workspaceId) {
|
|
1107
1126
|
return request(OpenAPI, {
|
|
1108
1127
|
method: "GET",
|
|
1109
1128
|
url: "/credentials/{credential_id}/decrypt",
|
|
1110
1129
|
path: {
|
|
1111
1130
|
credential_id: credentialId
|
|
1112
1131
|
},
|
|
1132
|
+
query: {
|
|
1133
|
+
workspace_id: workspaceId
|
|
1134
|
+
},
|
|
1113
1135
|
errors: {
|
|
1114
1136
|
422: `Validation Error`
|
|
1115
1137
|
}
|
|
@@ -1123,16 +1145,13 @@ var init_AdminCredentialsService = __esm(() => {
|
|
|
1123
1145
|
|
|
1124
1146
|
// src/lib/clients/agents-generator/services/AdminFileLibraryService.ts
|
|
1125
1147
|
class AdminFileLibraryService {
|
|
1126
|
-
static
|
|
1127
|
-
return request(OpenAPI, {
|
|
1128
|
-
method: "GET",
|
|
1129
|
-
url: "/file-library/buckets"
|
|
1130
|
-
});
|
|
1131
|
-
}
|
|
1132
|
-
static createBucket(requestBody) {
|
|
1148
|
+
static createBucket(requestBody, workspaceId) {
|
|
1133
1149
|
return request(OpenAPI, {
|
|
1134
1150
|
method: "POST",
|
|
1135
1151
|
url: "/file-library/buckets",
|
|
1152
|
+
query: {
|
|
1153
|
+
workspace_id: workspaceId
|
|
1154
|
+
},
|
|
1136
1155
|
body: requestBody,
|
|
1137
1156
|
mediaType: "application/json",
|
|
1138
1157
|
errors: {
|
|
@@ -1140,25 +1159,43 @@ class AdminFileLibraryService {
|
|
|
1140
1159
|
}
|
|
1141
1160
|
});
|
|
1142
1161
|
}
|
|
1143
|
-
static
|
|
1162
|
+
static getBuckets(workspaceId) {
|
|
1163
|
+
return request(OpenAPI, {
|
|
1164
|
+
method: "GET",
|
|
1165
|
+
url: "/file-library/buckets",
|
|
1166
|
+
query: {
|
|
1167
|
+
workspace_id: workspaceId
|
|
1168
|
+
},
|
|
1169
|
+
errors: {
|
|
1170
|
+
422: `Validation Error`
|
|
1171
|
+
}
|
|
1172
|
+
});
|
|
1173
|
+
}
|
|
1174
|
+
static getBucket(bucketId, workspaceId) {
|
|
1144
1175
|
return request(OpenAPI, {
|
|
1145
1176
|
method: "GET",
|
|
1146
1177
|
url: "/file-library/buckets/{bucket_id}",
|
|
1147
1178
|
path: {
|
|
1148
1179
|
bucket_id: bucketId
|
|
1149
1180
|
},
|
|
1181
|
+
query: {
|
|
1182
|
+
workspace_id: workspaceId
|
|
1183
|
+
},
|
|
1150
1184
|
errors: {
|
|
1151
1185
|
422: `Validation Error`
|
|
1152
1186
|
}
|
|
1153
1187
|
});
|
|
1154
1188
|
}
|
|
1155
|
-
static deleteBucket(bucketId) {
|
|
1189
|
+
static deleteBucket(bucketId, workspaceId) {
|
|
1156
1190
|
return request(OpenAPI, {
|
|
1157
1191
|
method: "DELETE",
|
|
1158
1192
|
url: "/file-library/buckets/{bucket_id}",
|
|
1159
1193
|
path: {
|
|
1160
1194
|
bucket_id: bucketId
|
|
1161
1195
|
},
|
|
1196
|
+
query: {
|
|
1197
|
+
workspace_id: workspaceId
|
|
1198
|
+
},
|
|
1162
1199
|
errors: {
|
|
1163
1200
|
422: `Validation Error`
|
|
1164
1201
|
}
|
|
@@ -1309,6 +1346,82 @@ var init_AdminMcpServersService = __esm(() => {
|
|
|
1309
1346
|
init_request();
|
|
1310
1347
|
});
|
|
1311
1348
|
|
|
1349
|
+
// src/lib/clients/agents-generator/services/AdminWorkspacesService.ts
|
|
1350
|
+
class AdminWorkspacesService {
|
|
1351
|
+
static createWorkspace(requestBody) {
|
|
1352
|
+
return request(OpenAPI, {
|
|
1353
|
+
method: "POST",
|
|
1354
|
+
url: "/workspaces",
|
|
1355
|
+
body: requestBody,
|
|
1356
|
+
mediaType: "application/json",
|
|
1357
|
+
errors: {
|
|
1358
|
+
422: `Validation Error`
|
|
1359
|
+
}
|
|
1360
|
+
});
|
|
1361
|
+
}
|
|
1362
|
+
static getWorkspaces(skip, limit = 100) {
|
|
1363
|
+
return request(OpenAPI, {
|
|
1364
|
+
method: "GET",
|
|
1365
|
+
url: "/workspaces",
|
|
1366
|
+
query: {
|
|
1367
|
+
skip,
|
|
1368
|
+
limit
|
|
1369
|
+
},
|
|
1370
|
+
errors: {
|
|
1371
|
+
422: `Validation Error`
|
|
1372
|
+
}
|
|
1373
|
+
});
|
|
1374
|
+
}
|
|
1375
|
+
static getDefaultWorkspace() {
|
|
1376
|
+
return request(OpenAPI, {
|
|
1377
|
+
method: "GET",
|
|
1378
|
+
url: "/workspaces/default"
|
|
1379
|
+
});
|
|
1380
|
+
}
|
|
1381
|
+
static getWorkspace(workspaceId) {
|
|
1382
|
+
return request(OpenAPI, {
|
|
1383
|
+
method: "GET",
|
|
1384
|
+
url: "/workspaces/{workspace_id}",
|
|
1385
|
+
path: {
|
|
1386
|
+
workspace_id: workspaceId
|
|
1387
|
+
},
|
|
1388
|
+
errors: {
|
|
1389
|
+
422: `Validation Error`
|
|
1390
|
+
}
|
|
1391
|
+
});
|
|
1392
|
+
}
|
|
1393
|
+
static updateWorkspace(workspaceId, requestBody) {
|
|
1394
|
+
return request(OpenAPI, {
|
|
1395
|
+
method: "PUT",
|
|
1396
|
+
url: "/workspaces/{workspace_id}",
|
|
1397
|
+
path: {
|
|
1398
|
+
workspace_id: workspaceId
|
|
1399
|
+
},
|
|
1400
|
+
body: requestBody,
|
|
1401
|
+
mediaType: "application/json",
|
|
1402
|
+
errors: {
|
|
1403
|
+
422: `Validation Error`
|
|
1404
|
+
}
|
|
1405
|
+
});
|
|
1406
|
+
}
|
|
1407
|
+
static deleteWorkspace(workspaceId) {
|
|
1408
|
+
return request(OpenAPI, {
|
|
1409
|
+
method: "DELETE",
|
|
1410
|
+
url: "/workspaces/{workspace_id}",
|
|
1411
|
+
path: {
|
|
1412
|
+
workspace_id: workspaceId
|
|
1413
|
+
},
|
|
1414
|
+
errors: {
|
|
1415
|
+
422: `Validation Error`
|
|
1416
|
+
}
|
|
1417
|
+
});
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
var init_AdminWorkspacesService = __esm(() => {
|
|
1421
|
+
init_OpenAPI();
|
|
1422
|
+
init_request();
|
|
1423
|
+
});
|
|
1424
|
+
|
|
1312
1425
|
// src/lib/clients/agents-generator/services/AgentService.ts
|
|
1313
1426
|
class AgentService {
|
|
1314
1427
|
static createAgent(requestBody) {
|
|
@@ -1322,20 +1435,21 @@ class AgentService {
|
|
|
1322
1435
|
}
|
|
1323
1436
|
});
|
|
1324
1437
|
}
|
|
1325
|
-
static getAgents(skip, limit = 100) {
|
|
1438
|
+
static getAgents(skip, limit = 100, workspaceId) {
|
|
1326
1439
|
return request(OpenAPI, {
|
|
1327
1440
|
method: "GET",
|
|
1328
1441
|
url: "/agents",
|
|
1329
1442
|
query: {
|
|
1330
1443
|
skip,
|
|
1331
|
-
limit
|
|
1444
|
+
limit,
|
|
1445
|
+
workspace_id: workspaceId
|
|
1332
1446
|
},
|
|
1333
1447
|
errors: {
|
|
1334
1448
|
422: `Validation Error`
|
|
1335
1449
|
}
|
|
1336
1450
|
});
|
|
1337
1451
|
}
|
|
1338
|
-
static updateAgent(agentId, requestBody,
|
|
1452
|
+
static updateAgent(agentId, requestBody, workspaceId) {
|
|
1339
1453
|
return request(OpenAPI, {
|
|
1340
1454
|
method: "PUT",
|
|
1341
1455
|
url: "/agents/{agent_id}",
|
|
@@ -1343,7 +1457,7 @@ class AgentService {
|
|
|
1343
1457
|
agent_id: agentId
|
|
1344
1458
|
},
|
|
1345
1459
|
query: {
|
|
1346
|
-
|
|
1460
|
+
workspace_id: workspaceId
|
|
1347
1461
|
},
|
|
1348
1462
|
body: requestBody,
|
|
1349
1463
|
mediaType: "application/json",
|
|
@@ -1352,7 +1466,7 @@ class AgentService {
|
|
|
1352
1466
|
}
|
|
1353
1467
|
});
|
|
1354
1468
|
}
|
|
1355
|
-
static getAgent(agentId,
|
|
1469
|
+
static getAgent(agentId, workspaceId) {
|
|
1356
1470
|
return request(OpenAPI, {
|
|
1357
1471
|
method: "GET",
|
|
1358
1472
|
url: "/agents/{agent_id}",
|
|
@@ -1360,14 +1474,14 @@ class AgentService {
|
|
|
1360
1474
|
agent_id: agentId
|
|
1361
1475
|
},
|
|
1362
1476
|
query: {
|
|
1363
|
-
|
|
1477
|
+
workspace_id: workspaceId
|
|
1364
1478
|
},
|
|
1365
1479
|
errors: {
|
|
1366
1480
|
422: `Validation Error`
|
|
1367
1481
|
}
|
|
1368
1482
|
});
|
|
1369
1483
|
}
|
|
1370
|
-
static deleteAgent(agentId,
|
|
1484
|
+
static deleteAgent(agentId, workspaceId) {
|
|
1371
1485
|
return request(OpenAPI, {
|
|
1372
1486
|
method: "DELETE",
|
|
1373
1487
|
url: "/agents/{agent_id}",
|
|
@@ -1375,7 +1489,7 @@ class AgentService {
|
|
|
1375
1489
|
agent_id: agentId
|
|
1376
1490
|
},
|
|
1377
1491
|
query: {
|
|
1378
|
-
|
|
1492
|
+
workspace_id: workspaceId
|
|
1379
1493
|
},
|
|
1380
1494
|
errors: {
|
|
1381
1495
|
422: `Validation Error`
|
|
@@ -1543,16 +1657,13 @@ var init_ConversationsService = __esm(() => {
|
|
|
1543
1657
|
|
|
1544
1658
|
// src/lib/clients/agents-generator/services/CredentialsService.ts
|
|
1545
1659
|
class CredentialsService {
|
|
1546
|
-
static
|
|
1547
|
-
return request(OpenAPI, {
|
|
1548
|
-
method: "GET",
|
|
1549
|
-
url: "/credentials"
|
|
1550
|
-
});
|
|
1551
|
-
}
|
|
1552
|
-
static createCredential(requestBody) {
|
|
1660
|
+
static createCredential(requestBody, workspaceId) {
|
|
1553
1661
|
return request(OpenAPI, {
|
|
1554
1662
|
method: "POST",
|
|
1555
1663
|
url: "/credentials",
|
|
1664
|
+
query: {
|
|
1665
|
+
workspace_id: workspaceId
|
|
1666
|
+
},
|
|
1556
1667
|
body: requestBody,
|
|
1557
1668
|
mediaType: "application/json",
|
|
1558
1669
|
errors: {
|
|
@@ -1560,25 +1671,43 @@ class CredentialsService {
|
|
|
1560
1671
|
}
|
|
1561
1672
|
});
|
|
1562
1673
|
}
|
|
1563
|
-
static
|
|
1674
|
+
static getCredentials(workspaceId) {
|
|
1675
|
+
return request(OpenAPI, {
|
|
1676
|
+
method: "GET",
|
|
1677
|
+
url: "/credentials",
|
|
1678
|
+
query: {
|
|
1679
|
+
workspace_id: workspaceId
|
|
1680
|
+
},
|
|
1681
|
+
errors: {
|
|
1682
|
+
422: `Validation Error`
|
|
1683
|
+
}
|
|
1684
|
+
});
|
|
1685
|
+
}
|
|
1686
|
+
static getCredential(credentialId, workspaceId) {
|
|
1564
1687
|
return request(OpenAPI, {
|
|
1565
1688
|
method: "GET",
|
|
1566
1689
|
url: "/credentials/{credential_id}",
|
|
1567
1690
|
path: {
|
|
1568
1691
|
credential_id: credentialId
|
|
1569
1692
|
},
|
|
1693
|
+
query: {
|
|
1694
|
+
workspace_id: workspaceId
|
|
1695
|
+
},
|
|
1570
1696
|
errors: {
|
|
1571
1697
|
422: `Validation Error`
|
|
1572
1698
|
}
|
|
1573
1699
|
});
|
|
1574
1700
|
}
|
|
1575
|
-
static updateCredential(credentialId, requestBody) {
|
|
1701
|
+
static updateCredential(credentialId, requestBody, workspaceId) {
|
|
1576
1702
|
return request(OpenAPI, {
|
|
1577
1703
|
method: "PUT",
|
|
1578
1704
|
url: "/credentials/{credential_id}",
|
|
1579
1705
|
path: {
|
|
1580
1706
|
credential_id: credentialId
|
|
1581
1707
|
},
|
|
1708
|
+
query: {
|
|
1709
|
+
workspace_id: workspaceId
|
|
1710
|
+
},
|
|
1582
1711
|
body: requestBody,
|
|
1583
1712
|
mediaType: "application/json",
|
|
1584
1713
|
errors: {
|
|
@@ -1586,25 +1715,31 @@ class CredentialsService {
|
|
|
1586
1715
|
}
|
|
1587
1716
|
});
|
|
1588
1717
|
}
|
|
1589
|
-
static deleteCredential(credentialId) {
|
|
1718
|
+
static deleteCredential(credentialId, workspaceId) {
|
|
1590
1719
|
return request(OpenAPI, {
|
|
1591
1720
|
method: "DELETE",
|
|
1592
1721
|
url: "/credentials/{credential_id}",
|
|
1593
1722
|
path: {
|
|
1594
1723
|
credential_id: credentialId
|
|
1595
1724
|
},
|
|
1725
|
+
query: {
|
|
1726
|
+
workspace_id: workspaceId
|
|
1727
|
+
},
|
|
1596
1728
|
errors: {
|
|
1597
1729
|
422: `Validation Error`
|
|
1598
1730
|
}
|
|
1599
1731
|
});
|
|
1600
1732
|
}
|
|
1601
|
-
static getCredentialDecrypted(credentialId) {
|
|
1733
|
+
static getCredentialDecrypted(credentialId, workspaceId) {
|
|
1602
1734
|
return request(OpenAPI, {
|
|
1603
1735
|
method: "GET",
|
|
1604
1736
|
url: "/credentials/{credential_id}/decrypt",
|
|
1605
1737
|
path: {
|
|
1606
1738
|
credential_id: credentialId
|
|
1607
1739
|
},
|
|
1740
|
+
query: {
|
|
1741
|
+
workspace_id: workspaceId
|
|
1742
|
+
},
|
|
1608
1743
|
errors: {
|
|
1609
1744
|
422: `Validation Error`
|
|
1610
1745
|
}
|
|
@@ -1618,16 +1753,13 @@ var init_CredentialsService = __esm(() => {
|
|
|
1618
1753
|
|
|
1619
1754
|
// src/lib/clients/agents-generator/services/FileLibraryService.ts
|
|
1620
1755
|
class FileLibraryService {
|
|
1621
|
-
static
|
|
1622
|
-
return request(OpenAPI, {
|
|
1623
|
-
method: "GET",
|
|
1624
|
-
url: "/file-library/buckets"
|
|
1625
|
-
});
|
|
1626
|
-
}
|
|
1627
|
-
static createBucket(requestBody) {
|
|
1756
|
+
static createBucket(requestBody, workspaceId) {
|
|
1628
1757
|
return request(OpenAPI, {
|
|
1629
1758
|
method: "POST",
|
|
1630
1759
|
url: "/file-library/buckets",
|
|
1760
|
+
query: {
|
|
1761
|
+
workspace_id: workspaceId
|
|
1762
|
+
},
|
|
1631
1763
|
body: requestBody,
|
|
1632
1764
|
mediaType: "application/json",
|
|
1633
1765
|
errors: {
|
|
@@ -1635,25 +1767,43 @@ class FileLibraryService {
|
|
|
1635
1767
|
}
|
|
1636
1768
|
});
|
|
1637
1769
|
}
|
|
1638
|
-
static
|
|
1770
|
+
static getBuckets(workspaceId) {
|
|
1771
|
+
return request(OpenAPI, {
|
|
1772
|
+
method: "GET",
|
|
1773
|
+
url: "/file-library/buckets",
|
|
1774
|
+
query: {
|
|
1775
|
+
workspace_id: workspaceId
|
|
1776
|
+
},
|
|
1777
|
+
errors: {
|
|
1778
|
+
422: `Validation Error`
|
|
1779
|
+
}
|
|
1780
|
+
});
|
|
1781
|
+
}
|
|
1782
|
+
static getBucket(bucketId, workspaceId) {
|
|
1639
1783
|
return request(OpenAPI, {
|
|
1640
1784
|
method: "GET",
|
|
1641
1785
|
url: "/file-library/buckets/{bucket_id}",
|
|
1642
1786
|
path: {
|
|
1643
1787
|
bucket_id: bucketId
|
|
1644
1788
|
},
|
|
1789
|
+
query: {
|
|
1790
|
+
workspace_id: workspaceId
|
|
1791
|
+
},
|
|
1645
1792
|
errors: {
|
|
1646
1793
|
422: `Validation Error`
|
|
1647
1794
|
}
|
|
1648
1795
|
});
|
|
1649
1796
|
}
|
|
1650
|
-
static deleteBucket(bucketId) {
|
|
1797
|
+
static deleteBucket(bucketId, workspaceId) {
|
|
1651
1798
|
return request(OpenAPI, {
|
|
1652
1799
|
method: "DELETE",
|
|
1653
1800
|
url: "/file-library/buckets/{bucket_id}",
|
|
1654
1801
|
path: {
|
|
1655
1802
|
bucket_id: bucketId
|
|
1656
1803
|
},
|
|
1804
|
+
query: {
|
|
1805
|
+
workspace_id: workspaceId
|
|
1806
|
+
},
|
|
1657
1807
|
errors: {
|
|
1658
1808
|
422: `Validation Error`
|
|
1659
1809
|
}
|
|
@@ -1832,7 +1982,7 @@ var init_McpServersService = __esm(() => {
|
|
|
1832
1982
|
|
|
1833
1983
|
// src/lib/clients/agents-generator/services/PublicAgentsService.ts
|
|
1834
1984
|
class PublicAgentsService {
|
|
1835
|
-
static getAgent(agentId,
|
|
1985
|
+
static getAgent(agentId, workspaceId) {
|
|
1836
1986
|
return request(OpenAPI, {
|
|
1837
1987
|
method: "GET",
|
|
1838
1988
|
url: "/agents/{agent_id}",
|
|
@@ -1840,7 +1990,7 @@ class PublicAgentsService {
|
|
|
1840
1990
|
agent_id: agentId
|
|
1841
1991
|
},
|
|
1842
1992
|
query: {
|
|
1843
|
-
|
|
1993
|
+
workspace_id: workspaceId
|
|
1844
1994
|
},
|
|
1845
1995
|
errors: {
|
|
1846
1996
|
422: `Validation Error`
|
|
@@ -1923,6 +2073,82 @@ var init_RootService = __esm(() => {
|
|
|
1923
2073
|
init_request();
|
|
1924
2074
|
});
|
|
1925
2075
|
|
|
2076
|
+
// src/lib/clients/agents-generator/services/WorkspacesService.ts
|
|
2077
|
+
class WorkspacesService {
|
|
2078
|
+
static createWorkspace(requestBody) {
|
|
2079
|
+
return request(OpenAPI, {
|
|
2080
|
+
method: "POST",
|
|
2081
|
+
url: "/workspaces",
|
|
2082
|
+
body: requestBody,
|
|
2083
|
+
mediaType: "application/json",
|
|
2084
|
+
errors: {
|
|
2085
|
+
422: `Validation Error`
|
|
2086
|
+
}
|
|
2087
|
+
});
|
|
2088
|
+
}
|
|
2089
|
+
static getWorkspaces(skip, limit = 100) {
|
|
2090
|
+
return request(OpenAPI, {
|
|
2091
|
+
method: "GET",
|
|
2092
|
+
url: "/workspaces",
|
|
2093
|
+
query: {
|
|
2094
|
+
skip,
|
|
2095
|
+
limit
|
|
2096
|
+
},
|
|
2097
|
+
errors: {
|
|
2098
|
+
422: `Validation Error`
|
|
2099
|
+
}
|
|
2100
|
+
});
|
|
2101
|
+
}
|
|
2102
|
+
static getDefaultWorkspace() {
|
|
2103
|
+
return request(OpenAPI, {
|
|
2104
|
+
method: "GET",
|
|
2105
|
+
url: "/workspaces/default"
|
|
2106
|
+
});
|
|
2107
|
+
}
|
|
2108
|
+
static getWorkspace(workspaceId) {
|
|
2109
|
+
return request(OpenAPI, {
|
|
2110
|
+
method: "GET",
|
|
2111
|
+
url: "/workspaces/{workspace_id}",
|
|
2112
|
+
path: {
|
|
2113
|
+
workspace_id: workspaceId
|
|
2114
|
+
},
|
|
2115
|
+
errors: {
|
|
2116
|
+
422: `Validation Error`
|
|
2117
|
+
}
|
|
2118
|
+
});
|
|
2119
|
+
}
|
|
2120
|
+
static updateWorkspace(workspaceId, requestBody) {
|
|
2121
|
+
return request(OpenAPI, {
|
|
2122
|
+
method: "PUT",
|
|
2123
|
+
url: "/workspaces/{workspace_id}",
|
|
2124
|
+
path: {
|
|
2125
|
+
workspace_id: workspaceId
|
|
2126
|
+
},
|
|
2127
|
+
body: requestBody,
|
|
2128
|
+
mediaType: "application/json",
|
|
2129
|
+
errors: {
|
|
2130
|
+
422: `Validation Error`
|
|
2131
|
+
}
|
|
2132
|
+
});
|
|
2133
|
+
}
|
|
2134
|
+
static deleteWorkspace(workspaceId) {
|
|
2135
|
+
return request(OpenAPI, {
|
|
2136
|
+
method: "DELETE",
|
|
2137
|
+
url: "/workspaces/{workspace_id}",
|
|
2138
|
+
path: {
|
|
2139
|
+
workspace_id: workspaceId
|
|
2140
|
+
},
|
|
2141
|
+
errors: {
|
|
2142
|
+
422: `Validation Error`
|
|
2143
|
+
}
|
|
2144
|
+
});
|
|
2145
|
+
}
|
|
2146
|
+
}
|
|
2147
|
+
var init_WorkspacesService = __esm(() => {
|
|
2148
|
+
init_OpenAPI();
|
|
2149
|
+
init_request();
|
|
2150
|
+
});
|
|
2151
|
+
|
|
1926
2152
|
// src/lib/clients/agents-generator/index.ts
|
|
1927
2153
|
var init_agents_generator = __esm(() => {
|
|
1928
2154
|
init_ApiError();
|
|
@@ -1933,6 +2159,7 @@ var init_agents_generator = __esm(() => {
|
|
|
1933
2159
|
init_AdminCredentialsService();
|
|
1934
2160
|
init_AdminFileLibraryService();
|
|
1935
2161
|
init_AdminMcpServersService();
|
|
2162
|
+
init_AdminWorkspacesService();
|
|
1936
2163
|
init_AgentService();
|
|
1937
2164
|
init_ConversationsService();
|
|
1938
2165
|
init_CredentialsService();
|
|
@@ -1941,6 +2168,7 @@ var init_agents_generator = __esm(() => {
|
|
|
1941
2168
|
init_PublicAgentsService();
|
|
1942
2169
|
init_PublicConversationsService();
|
|
1943
2170
|
init_RootService();
|
|
2171
|
+
init_WorkspacesService();
|
|
1944
2172
|
});
|
|
1945
2173
|
|
|
1946
2174
|
// src/lib/index.ts
|