@ideascol/agents-generator-sdk 0.5.3 → 0.6.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/dist/bin/cli.js +254 -3
- package/dist/index.js +256 -3
- package/dist/lib/clients/agents-generator/index.d.ts +10 -0
- package/dist/lib/clients/agents-generator/models/BucketCreate.d.ts +2 -0
- package/dist/lib/clients/agents-generator/models/BucketResponse.d.ts +2 -0
- package/dist/lib/clients/agents-generator/models/BucketUpdate.d.ts +7 -0
- package/dist/lib/clients/agents-generator/models/FolderCreate.d.ts +1 -0
- package/dist/lib/clients/agents-generator/models/FolderResponse.d.ts +2 -0
- package/dist/lib/clients/agents-generator/models/FolderUpdate.d.ts +5 -0
- package/dist/lib/clients/agents-generator/models/GenerateSchemaRequest.d.ts +5 -0
- package/dist/lib/clients/agents-generator/models/GenerateSchemaResponse.d.ts +3 -0
- package/dist/lib/clients/agents-generator/models/NodeData.d.ts +20 -0
- package/dist/lib/clients/agents-generator/models/VectorStoreInfoResponse.d.ts +8 -0
- package/dist/lib/clients/agents-generator/models/VectorStoreSearchRequest.d.ts +4 -0
- package/dist/lib/clients/agents-generator/models/VectorStoreSearchResponse.d.ts +6 -0
- package/dist/lib/clients/agents-generator/models/VectorStoreSearchResult.d.ts +5 -0
- package/dist/lib/clients/agents-generator/services/AdminFileLibraryService.d.ts +64 -0
- package/dist/lib/clients/agents-generator/services/FileLibraryService.d.ts +64 -0
- package/dist/lib/clients/agents-generator/services/ModelsService.d.ts +37 -0
- package/dist/lib/clients/agents-generator/services/SchemaGeneratorService.d.ts +12 -0
- package/dist/lib/index.d.ts +3 -1
- package/package.json +1 -1
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-bb6ddeb47d40a0cdae440044ad1b8b6f517b01c8",
|
|
602
602
|
WITH_CREDENTIALS: false,
|
|
603
603
|
CREDENTIALS: "include",
|
|
604
604
|
TOKEN: undefined,
|
|
@@ -1315,6 +1315,20 @@ class AdminFileLibraryService {
|
|
|
1315
1315
|
}
|
|
1316
1316
|
});
|
|
1317
1317
|
}
|
|
1318
|
+
static updateBucket(bucketId, requestBody) {
|
|
1319
|
+
return request(OpenAPI, {
|
|
1320
|
+
method: "PUT",
|
|
1321
|
+
url: "/file-library/buckets/{bucket_id}",
|
|
1322
|
+
path: {
|
|
1323
|
+
bucket_id: bucketId
|
|
1324
|
+
},
|
|
1325
|
+
body: requestBody,
|
|
1326
|
+
mediaType: "application/json",
|
|
1327
|
+
errors: {
|
|
1328
|
+
422: `Validation Error`
|
|
1329
|
+
}
|
|
1330
|
+
});
|
|
1331
|
+
}
|
|
1318
1332
|
static createFolder(requestBody) {
|
|
1319
1333
|
return request(OpenAPI, {
|
|
1320
1334
|
method: "POST",
|
|
@@ -1342,6 +1356,20 @@ class AdminFileLibraryService {
|
|
|
1342
1356
|
}
|
|
1343
1357
|
});
|
|
1344
1358
|
}
|
|
1359
|
+
static updateFolder(folderId, requestBody) {
|
|
1360
|
+
return request(OpenAPI, {
|
|
1361
|
+
method: "PUT",
|
|
1362
|
+
url: "/file-library/folders/{folder_id}",
|
|
1363
|
+
path: {
|
|
1364
|
+
folder_id: folderId
|
|
1365
|
+
},
|
|
1366
|
+
body: requestBody,
|
|
1367
|
+
mediaType: "application/json",
|
|
1368
|
+
errors: {
|
|
1369
|
+
422: `Validation Error`
|
|
1370
|
+
}
|
|
1371
|
+
});
|
|
1372
|
+
}
|
|
1345
1373
|
static deleteFolder(folderId) {
|
|
1346
1374
|
return request(OpenAPI, {
|
|
1347
1375
|
method: "DELETE",
|
|
@@ -1380,6 +1408,30 @@ class AdminFileLibraryService {
|
|
|
1380
1408
|
}
|
|
1381
1409
|
});
|
|
1382
1410
|
}
|
|
1411
|
+
static downloadFile(fileId) {
|
|
1412
|
+
return request(OpenAPI, {
|
|
1413
|
+
method: "GET",
|
|
1414
|
+
url: "/file-library/files/{file_id}/download",
|
|
1415
|
+
path: {
|
|
1416
|
+
file_id: fileId
|
|
1417
|
+
},
|
|
1418
|
+
errors: {
|
|
1419
|
+
422: `Validation Error`
|
|
1420
|
+
}
|
|
1421
|
+
});
|
|
1422
|
+
}
|
|
1423
|
+
static getFileContent(fileId) {
|
|
1424
|
+
return request(OpenAPI, {
|
|
1425
|
+
method: "GET",
|
|
1426
|
+
url: "/file-library/files/{file_id}/content",
|
|
1427
|
+
path: {
|
|
1428
|
+
file_id: fileId
|
|
1429
|
+
},
|
|
1430
|
+
errors: {
|
|
1431
|
+
422: `Validation Error`
|
|
1432
|
+
}
|
|
1433
|
+
});
|
|
1434
|
+
}
|
|
1383
1435
|
static deleteFile(fileId) {
|
|
1384
1436
|
return request(OpenAPI, {
|
|
1385
1437
|
method: "DELETE",
|
|
@@ -1418,6 +1470,44 @@ class AdminFileLibraryService {
|
|
|
1418
1470
|
}
|
|
1419
1471
|
});
|
|
1420
1472
|
}
|
|
1473
|
+
static searchVectorStore(folderId, requestBody) {
|
|
1474
|
+
return request(OpenAPI, {
|
|
1475
|
+
method: "POST",
|
|
1476
|
+
url: "/file-library/folders/{folder_id}/vector-store/search",
|
|
1477
|
+
path: {
|
|
1478
|
+
folder_id: folderId
|
|
1479
|
+
},
|
|
1480
|
+
body: requestBody,
|
|
1481
|
+
mediaType: "application/json",
|
|
1482
|
+
errors: {
|
|
1483
|
+
422: `Validation Error`
|
|
1484
|
+
}
|
|
1485
|
+
});
|
|
1486
|
+
}
|
|
1487
|
+
static getVectorStoreInfo(folderId) {
|
|
1488
|
+
return request(OpenAPI, {
|
|
1489
|
+
method: "GET",
|
|
1490
|
+
url: "/file-library/folders/{folder_id}/vector-store/info",
|
|
1491
|
+
path: {
|
|
1492
|
+
folder_id: folderId
|
|
1493
|
+
},
|
|
1494
|
+
errors: {
|
|
1495
|
+
422: `Validation Error`
|
|
1496
|
+
}
|
|
1497
|
+
});
|
|
1498
|
+
}
|
|
1499
|
+
static deleteVectorStore(folderId) {
|
|
1500
|
+
return request(OpenAPI, {
|
|
1501
|
+
method: "DELETE",
|
|
1502
|
+
url: "/file-library/folders/{folder_id}/vector-store",
|
|
1503
|
+
path: {
|
|
1504
|
+
folder_id: folderId
|
|
1505
|
+
},
|
|
1506
|
+
errors: {
|
|
1507
|
+
422: `Validation Error`
|
|
1508
|
+
}
|
|
1509
|
+
});
|
|
1510
|
+
}
|
|
1421
1511
|
}
|
|
1422
1512
|
var init_AdminFileLibraryService = __esm(() => {
|
|
1423
1513
|
init_OpenAPI();
|
|
@@ -2027,6 +2117,20 @@ class FileLibraryService {
|
|
|
2027
2117
|
}
|
|
2028
2118
|
});
|
|
2029
2119
|
}
|
|
2120
|
+
static updateBucket(bucketId, requestBody) {
|
|
2121
|
+
return request(OpenAPI, {
|
|
2122
|
+
method: "PUT",
|
|
2123
|
+
url: "/file-library/buckets/{bucket_id}",
|
|
2124
|
+
path: {
|
|
2125
|
+
bucket_id: bucketId
|
|
2126
|
+
},
|
|
2127
|
+
body: requestBody,
|
|
2128
|
+
mediaType: "application/json",
|
|
2129
|
+
errors: {
|
|
2130
|
+
422: `Validation Error`
|
|
2131
|
+
}
|
|
2132
|
+
});
|
|
2133
|
+
}
|
|
2030
2134
|
static createFolder(requestBody) {
|
|
2031
2135
|
return request(OpenAPI, {
|
|
2032
2136
|
method: "POST",
|
|
@@ -2054,6 +2158,20 @@ class FileLibraryService {
|
|
|
2054
2158
|
}
|
|
2055
2159
|
});
|
|
2056
2160
|
}
|
|
2161
|
+
static updateFolder(folderId, requestBody) {
|
|
2162
|
+
return request(OpenAPI, {
|
|
2163
|
+
method: "PUT",
|
|
2164
|
+
url: "/file-library/folders/{folder_id}",
|
|
2165
|
+
path: {
|
|
2166
|
+
folder_id: folderId
|
|
2167
|
+
},
|
|
2168
|
+
body: requestBody,
|
|
2169
|
+
mediaType: "application/json",
|
|
2170
|
+
errors: {
|
|
2171
|
+
422: `Validation Error`
|
|
2172
|
+
}
|
|
2173
|
+
});
|
|
2174
|
+
}
|
|
2057
2175
|
static deleteFolder(folderId) {
|
|
2058
2176
|
return request(OpenAPI, {
|
|
2059
2177
|
method: "DELETE",
|
|
@@ -2092,6 +2210,30 @@ class FileLibraryService {
|
|
|
2092
2210
|
}
|
|
2093
2211
|
});
|
|
2094
2212
|
}
|
|
2213
|
+
static downloadFile(fileId) {
|
|
2214
|
+
return request(OpenAPI, {
|
|
2215
|
+
method: "GET",
|
|
2216
|
+
url: "/file-library/files/{file_id}/download",
|
|
2217
|
+
path: {
|
|
2218
|
+
file_id: fileId
|
|
2219
|
+
},
|
|
2220
|
+
errors: {
|
|
2221
|
+
422: `Validation Error`
|
|
2222
|
+
}
|
|
2223
|
+
});
|
|
2224
|
+
}
|
|
2225
|
+
static getFileContent(fileId) {
|
|
2226
|
+
return request(OpenAPI, {
|
|
2227
|
+
method: "GET",
|
|
2228
|
+
url: "/file-library/files/{file_id}/content",
|
|
2229
|
+
path: {
|
|
2230
|
+
file_id: fileId
|
|
2231
|
+
},
|
|
2232
|
+
errors: {
|
|
2233
|
+
422: `Validation Error`
|
|
2234
|
+
}
|
|
2235
|
+
});
|
|
2236
|
+
}
|
|
2095
2237
|
static deleteFile(fileId) {
|
|
2096
2238
|
return request(OpenAPI, {
|
|
2097
2239
|
method: "DELETE",
|
|
@@ -2130,6 +2272,44 @@ class FileLibraryService {
|
|
|
2130
2272
|
}
|
|
2131
2273
|
});
|
|
2132
2274
|
}
|
|
2275
|
+
static searchVectorStore(folderId, requestBody) {
|
|
2276
|
+
return request(OpenAPI, {
|
|
2277
|
+
method: "POST",
|
|
2278
|
+
url: "/file-library/folders/{folder_id}/vector-store/search",
|
|
2279
|
+
path: {
|
|
2280
|
+
folder_id: folderId
|
|
2281
|
+
},
|
|
2282
|
+
body: requestBody,
|
|
2283
|
+
mediaType: "application/json",
|
|
2284
|
+
errors: {
|
|
2285
|
+
422: `Validation Error`
|
|
2286
|
+
}
|
|
2287
|
+
});
|
|
2288
|
+
}
|
|
2289
|
+
static getVectorStoreInfo(folderId) {
|
|
2290
|
+
return request(OpenAPI, {
|
|
2291
|
+
method: "GET",
|
|
2292
|
+
url: "/file-library/folders/{folder_id}/vector-store/info",
|
|
2293
|
+
path: {
|
|
2294
|
+
folder_id: folderId
|
|
2295
|
+
},
|
|
2296
|
+
errors: {
|
|
2297
|
+
422: `Validation Error`
|
|
2298
|
+
}
|
|
2299
|
+
});
|
|
2300
|
+
}
|
|
2301
|
+
static deleteVectorStore(folderId) {
|
|
2302
|
+
return request(OpenAPI, {
|
|
2303
|
+
method: "DELETE",
|
|
2304
|
+
url: "/file-library/folders/{folder_id}/vector-store",
|
|
2305
|
+
path: {
|
|
2306
|
+
folder_id: folderId
|
|
2307
|
+
},
|
|
2308
|
+
errors: {
|
|
2309
|
+
422: `Validation Error`
|
|
2310
|
+
}
|
|
2311
|
+
});
|
|
2312
|
+
}
|
|
2133
2313
|
}
|
|
2134
2314
|
var init_FileLibraryService = __esm(() => {
|
|
2135
2315
|
init_OpenAPI();
|
|
@@ -2199,6 +2379,54 @@ var init_McpServersService = __esm(() => {
|
|
|
2199
2379
|
init_request();
|
|
2200
2380
|
});
|
|
2201
2381
|
|
|
2382
|
+
// src/lib/clients/agents-generator/services/ModelsService.ts
|
|
2383
|
+
class ModelsService {
|
|
2384
|
+
static getModelsModelsGet(provider, mode, supportsFunctionCalling, supportsVision, search) {
|
|
2385
|
+
return request(OpenAPI, {
|
|
2386
|
+
method: "GET",
|
|
2387
|
+
url: "/models",
|
|
2388
|
+
query: {
|
|
2389
|
+
provider,
|
|
2390
|
+
mode,
|
|
2391
|
+
supports_function_calling: supportsFunctionCalling,
|
|
2392
|
+
supports_vision: supportsVision,
|
|
2393
|
+
search
|
|
2394
|
+
},
|
|
2395
|
+
errors: {
|
|
2396
|
+
422: `Validation Error`
|
|
2397
|
+
}
|
|
2398
|
+
});
|
|
2399
|
+
}
|
|
2400
|
+
static getProvidersModelsProvidersGet() {
|
|
2401
|
+
return request(OpenAPI, {
|
|
2402
|
+
method: "GET",
|
|
2403
|
+
url: "/models/providers"
|
|
2404
|
+
});
|
|
2405
|
+
}
|
|
2406
|
+
static getModesModelsModesGet() {
|
|
2407
|
+
return request(OpenAPI, {
|
|
2408
|
+
method: "GET",
|
|
2409
|
+
url: "/models/modes"
|
|
2410
|
+
});
|
|
2411
|
+
}
|
|
2412
|
+
static getModelByNameModelsModelNameGet(modelName) {
|
|
2413
|
+
return request(OpenAPI, {
|
|
2414
|
+
method: "GET",
|
|
2415
|
+
url: "/models/{model_name}",
|
|
2416
|
+
path: {
|
|
2417
|
+
model_name: modelName
|
|
2418
|
+
},
|
|
2419
|
+
errors: {
|
|
2420
|
+
422: `Validation Error`
|
|
2421
|
+
}
|
|
2422
|
+
});
|
|
2423
|
+
}
|
|
2424
|
+
}
|
|
2425
|
+
var init_ModelsService = __esm(() => {
|
|
2426
|
+
init_OpenAPI();
|
|
2427
|
+
init_request();
|
|
2428
|
+
});
|
|
2429
|
+
|
|
2202
2430
|
// src/lib/clients/agents-generator/services/PresenceService.ts
|
|
2203
2431
|
class PresenceService {
|
|
2204
2432
|
static getAgentPresencePresenceAgentsAgentIdGet(agentId) {
|
|
@@ -2312,6 +2540,25 @@ var init_RootService = __esm(() => {
|
|
|
2312
2540
|
init_request();
|
|
2313
2541
|
});
|
|
2314
2542
|
|
|
2543
|
+
// src/lib/clients/agents-generator/services/SchemaGeneratorService.ts
|
|
2544
|
+
class SchemaGeneratorService {
|
|
2545
|
+
static generateSchemaApiGenerateSchemaPost(requestBody) {
|
|
2546
|
+
return request(OpenAPI, {
|
|
2547
|
+
method: "POST",
|
|
2548
|
+
url: "/api/generate-schema",
|
|
2549
|
+
body: requestBody,
|
|
2550
|
+
mediaType: "application/json",
|
|
2551
|
+
errors: {
|
|
2552
|
+
422: `Validation Error`
|
|
2553
|
+
}
|
|
2554
|
+
});
|
|
2555
|
+
}
|
|
2556
|
+
}
|
|
2557
|
+
var init_SchemaGeneratorService = __esm(() => {
|
|
2558
|
+
init_OpenAPI();
|
|
2559
|
+
init_request();
|
|
2560
|
+
});
|
|
2561
|
+
|
|
2315
2562
|
// src/lib/clients/agents-generator/services/WorkspaceCollaboratorsService.ts
|
|
2316
2563
|
class WorkspaceCollaboratorsService {
|
|
2317
2564
|
static addWorkspaceCollaborator(workspaceId, requestBody) {
|
|
@@ -2487,10 +2734,12 @@ var init_agents_generator = __esm(() => {
|
|
|
2487
2734
|
init_CredentialsService();
|
|
2488
2735
|
init_FileLibraryService();
|
|
2489
2736
|
init_McpServersService();
|
|
2737
|
+
init_ModelsService();
|
|
2490
2738
|
init_PresenceService();
|
|
2491
2739
|
init_PublicAgentsService();
|
|
2492
2740
|
init_PublicConversationsService();
|
|
2493
2741
|
init_RootService();
|
|
2742
|
+
init_SchemaGeneratorService();
|
|
2494
2743
|
init_WorkspaceCollaboratorsService();
|
|
2495
2744
|
init_WorkspacesService();
|
|
2496
2745
|
});
|
|
@@ -2535,11 +2784,13 @@ class AgentClient {
|
|
|
2535
2784
|
workspaces: AdminWorkspacesService,
|
|
2536
2785
|
collaborators: WorkspaceCollaboratorsService,
|
|
2537
2786
|
apiKeys: AdminApiKeysService,
|
|
2538
|
-
presence: PresenceService
|
|
2787
|
+
presence: PresenceService,
|
|
2788
|
+
schema: SchemaGeneratorService
|
|
2539
2789
|
};
|
|
2540
2790
|
this.public = {
|
|
2541
2791
|
agents: PublicAgentsService,
|
|
2542
|
-
conversations: PublicConversationsServiceExtended
|
|
2792
|
+
conversations: PublicConversationsServiceExtended,
|
|
2793
|
+
models: ModelsService
|
|
2543
2794
|
};
|
|
2544
2795
|
this.ApiError = ApiError;
|
|
2545
2796
|
this.CancelError = CancelError;
|
package/dist/index.js
CHANGED
|
@@ -166,7 +166,7 @@ var OpenAPI;
|
|
|
166
166
|
var init_OpenAPI = __esm(() => {
|
|
167
167
|
OpenAPI = {
|
|
168
168
|
BASE: "",
|
|
169
|
-
VERSION: "main-
|
|
169
|
+
VERSION: "main-bb6ddeb47d40a0cdae440044ad1b8b6f517b01c8",
|
|
170
170
|
WITH_CREDENTIALS: false,
|
|
171
171
|
CREDENTIALS: "include",
|
|
172
172
|
TOKEN: undefined,
|
|
@@ -883,6 +883,20 @@ class AdminFileLibraryService {
|
|
|
883
883
|
}
|
|
884
884
|
});
|
|
885
885
|
}
|
|
886
|
+
static updateBucket(bucketId, requestBody) {
|
|
887
|
+
return request(OpenAPI, {
|
|
888
|
+
method: "PUT",
|
|
889
|
+
url: "/file-library/buckets/{bucket_id}",
|
|
890
|
+
path: {
|
|
891
|
+
bucket_id: bucketId
|
|
892
|
+
},
|
|
893
|
+
body: requestBody,
|
|
894
|
+
mediaType: "application/json",
|
|
895
|
+
errors: {
|
|
896
|
+
422: `Validation Error`
|
|
897
|
+
}
|
|
898
|
+
});
|
|
899
|
+
}
|
|
886
900
|
static createFolder(requestBody) {
|
|
887
901
|
return request(OpenAPI, {
|
|
888
902
|
method: "POST",
|
|
@@ -910,6 +924,20 @@ class AdminFileLibraryService {
|
|
|
910
924
|
}
|
|
911
925
|
});
|
|
912
926
|
}
|
|
927
|
+
static updateFolder(folderId, requestBody) {
|
|
928
|
+
return request(OpenAPI, {
|
|
929
|
+
method: "PUT",
|
|
930
|
+
url: "/file-library/folders/{folder_id}",
|
|
931
|
+
path: {
|
|
932
|
+
folder_id: folderId
|
|
933
|
+
},
|
|
934
|
+
body: requestBody,
|
|
935
|
+
mediaType: "application/json",
|
|
936
|
+
errors: {
|
|
937
|
+
422: `Validation Error`
|
|
938
|
+
}
|
|
939
|
+
});
|
|
940
|
+
}
|
|
913
941
|
static deleteFolder(folderId) {
|
|
914
942
|
return request(OpenAPI, {
|
|
915
943
|
method: "DELETE",
|
|
@@ -948,6 +976,30 @@ class AdminFileLibraryService {
|
|
|
948
976
|
}
|
|
949
977
|
});
|
|
950
978
|
}
|
|
979
|
+
static downloadFile(fileId) {
|
|
980
|
+
return request(OpenAPI, {
|
|
981
|
+
method: "GET",
|
|
982
|
+
url: "/file-library/files/{file_id}/download",
|
|
983
|
+
path: {
|
|
984
|
+
file_id: fileId
|
|
985
|
+
},
|
|
986
|
+
errors: {
|
|
987
|
+
422: `Validation Error`
|
|
988
|
+
}
|
|
989
|
+
});
|
|
990
|
+
}
|
|
991
|
+
static getFileContent(fileId) {
|
|
992
|
+
return request(OpenAPI, {
|
|
993
|
+
method: "GET",
|
|
994
|
+
url: "/file-library/files/{file_id}/content",
|
|
995
|
+
path: {
|
|
996
|
+
file_id: fileId
|
|
997
|
+
},
|
|
998
|
+
errors: {
|
|
999
|
+
422: `Validation Error`
|
|
1000
|
+
}
|
|
1001
|
+
});
|
|
1002
|
+
}
|
|
951
1003
|
static deleteFile(fileId) {
|
|
952
1004
|
return request(OpenAPI, {
|
|
953
1005
|
method: "DELETE",
|
|
@@ -986,6 +1038,44 @@ class AdminFileLibraryService {
|
|
|
986
1038
|
}
|
|
987
1039
|
});
|
|
988
1040
|
}
|
|
1041
|
+
static searchVectorStore(folderId, requestBody) {
|
|
1042
|
+
return request(OpenAPI, {
|
|
1043
|
+
method: "POST",
|
|
1044
|
+
url: "/file-library/folders/{folder_id}/vector-store/search",
|
|
1045
|
+
path: {
|
|
1046
|
+
folder_id: folderId
|
|
1047
|
+
},
|
|
1048
|
+
body: requestBody,
|
|
1049
|
+
mediaType: "application/json",
|
|
1050
|
+
errors: {
|
|
1051
|
+
422: `Validation Error`
|
|
1052
|
+
}
|
|
1053
|
+
});
|
|
1054
|
+
}
|
|
1055
|
+
static getVectorStoreInfo(folderId) {
|
|
1056
|
+
return request(OpenAPI, {
|
|
1057
|
+
method: "GET",
|
|
1058
|
+
url: "/file-library/folders/{folder_id}/vector-store/info",
|
|
1059
|
+
path: {
|
|
1060
|
+
folder_id: folderId
|
|
1061
|
+
},
|
|
1062
|
+
errors: {
|
|
1063
|
+
422: `Validation Error`
|
|
1064
|
+
}
|
|
1065
|
+
});
|
|
1066
|
+
}
|
|
1067
|
+
static deleteVectorStore(folderId) {
|
|
1068
|
+
return request(OpenAPI, {
|
|
1069
|
+
method: "DELETE",
|
|
1070
|
+
url: "/file-library/folders/{folder_id}/vector-store",
|
|
1071
|
+
path: {
|
|
1072
|
+
folder_id: folderId
|
|
1073
|
+
},
|
|
1074
|
+
errors: {
|
|
1075
|
+
422: `Validation Error`
|
|
1076
|
+
}
|
|
1077
|
+
});
|
|
1078
|
+
}
|
|
989
1079
|
}
|
|
990
1080
|
var init_AdminFileLibraryService = __esm(() => {
|
|
991
1081
|
init_OpenAPI();
|
|
@@ -1595,6 +1685,20 @@ class FileLibraryService {
|
|
|
1595
1685
|
}
|
|
1596
1686
|
});
|
|
1597
1687
|
}
|
|
1688
|
+
static updateBucket(bucketId, requestBody) {
|
|
1689
|
+
return request(OpenAPI, {
|
|
1690
|
+
method: "PUT",
|
|
1691
|
+
url: "/file-library/buckets/{bucket_id}",
|
|
1692
|
+
path: {
|
|
1693
|
+
bucket_id: bucketId
|
|
1694
|
+
},
|
|
1695
|
+
body: requestBody,
|
|
1696
|
+
mediaType: "application/json",
|
|
1697
|
+
errors: {
|
|
1698
|
+
422: `Validation Error`
|
|
1699
|
+
}
|
|
1700
|
+
});
|
|
1701
|
+
}
|
|
1598
1702
|
static createFolder(requestBody) {
|
|
1599
1703
|
return request(OpenAPI, {
|
|
1600
1704
|
method: "POST",
|
|
@@ -1622,6 +1726,20 @@ class FileLibraryService {
|
|
|
1622
1726
|
}
|
|
1623
1727
|
});
|
|
1624
1728
|
}
|
|
1729
|
+
static updateFolder(folderId, requestBody) {
|
|
1730
|
+
return request(OpenAPI, {
|
|
1731
|
+
method: "PUT",
|
|
1732
|
+
url: "/file-library/folders/{folder_id}",
|
|
1733
|
+
path: {
|
|
1734
|
+
folder_id: folderId
|
|
1735
|
+
},
|
|
1736
|
+
body: requestBody,
|
|
1737
|
+
mediaType: "application/json",
|
|
1738
|
+
errors: {
|
|
1739
|
+
422: `Validation Error`
|
|
1740
|
+
}
|
|
1741
|
+
});
|
|
1742
|
+
}
|
|
1625
1743
|
static deleteFolder(folderId) {
|
|
1626
1744
|
return request(OpenAPI, {
|
|
1627
1745
|
method: "DELETE",
|
|
@@ -1660,6 +1778,30 @@ class FileLibraryService {
|
|
|
1660
1778
|
}
|
|
1661
1779
|
});
|
|
1662
1780
|
}
|
|
1781
|
+
static downloadFile(fileId) {
|
|
1782
|
+
return request(OpenAPI, {
|
|
1783
|
+
method: "GET",
|
|
1784
|
+
url: "/file-library/files/{file_id}/download",
|
|
1785
|
+
path: {
|
|
1786
|
+
file_id: fileId
|
|
1787
|
+
},
|
|
1788
|
+
errors: {
|
|
1789
|
+
422: `Validation Error`
|
|
1790
|
+
}
|
|
1791
|
+
});
|
|
1792
|
+
}
|
|
1793
|
+
static getFileContent(fileId) {
|
|
1794
|
+
return request(OpenAPI, {
|
|
1795
|
+
method: "GET",
|
|
1796
|
+
url: "/file-library/files/{file_id}/content",
|
|
1797
|
+
path: {
|
|
1798
|
+
file_id: fileId
|
|
1799
|
+
},
|
|
1800
|
+
errors: {
|
|
1801
|
+
422: `Validation Error`
|
|
1802
|
+
}
|
|
1803
|
+
});
|
|
1804
|
+
}
|
|
1663
1805
|
static deleteFile(fileId) {
|
|
1664
1806
|
return request(OpenAPI, {
|
|
1665
1807
|
method: "DELETE",
|
|
@@ -1698,6 +1840,44 @@ class FileLibraryService {
|
|
|
1698
1840
|
}
|
|
1699
1841
|
});
|
|
1700
1842
|
}
|
|
1843
|
+
static searchVectorStore(folderId, requestBody) {
|
|
1844
|
+
return request(OpenAPI, {
|
|
1845
|
+
method: "POST",
|
|
1846
|
+
url: "/file-library/folders/{folder_id}/vector-store/search",
|
|
1847
|
+
path: {
|
|
1848
|
+
folder_id: folderId
|
|
1849
|
+
},
|
|
1850
|
+
body: requestBody,
|
|
1851
|
+
mediaType: "application/json",
|
|
1852
|
+
errors: {
|
|
1853
|
+
422: `Validation Error`
|
|
1854
|
+
}
|
|
1855
|
+
});
|
|
1856
|
+
}
|
|
1857
|
+
static getVectorStoreInfo(folderId) {
|
|
1858
|
+
return request(OpenAPI, {
|
|
1859
|
+
method: "GET",
|
|
1860
|
+
url: "/file-library/folders/{folder_id}/vector-store/info",
|
|
1861
|
+
path: {
|
|
1862
|
+
folder_id: folderId
|
|
1863
|
+
},
|
|
1864
|
+
errors: {
|
|
1865
|
+
422: `Validation Error`
|
|
1866
|
+
}
|
|
1867
|
+
});
|
|
1868
|
+
}
|
|
1869
|
+
static deleteVectorStore(folderId) {
|
|
1870
|
+
return request(OpenAPI, {
|
|
1871
|
+
method: "DELETE",
|
|
1872
|
+
url: "/file-library/folders/{folder_id}/vector-store",
|
|
1873
|
+
path: {
|
|
1874
|
+
folder_id: folderId
|
|
1875
|
+
},
|
|
1876
|
+
errors: {
|
|
1877
|
+
422: `Validation Error`
|
|
1878
|
+
}
|
|
1879
|
+
});
|
|
1880
|
+
}
|
|
1701
1881
|
}
|
|
1702
1882
|
var init_FileLibraryService = __esm(() => {
|
|
1703
1883
|
init_OpenAPI();
|
|
@@ -1767,6 +1947,54 @@ var init_McpServersService = __esm(() => {
|
|
|
1767
1947
|
init_request();
|
|
1768
1948
|
});
|
|
1769
1949
|
|
|
1950
|
+
// src/lib/clients/agents-generator/services/ModelsService.ts
|
|
1951
|
+
class ModelsService {
|
|
1952
|
+
static getModelsModelsGet(provider, mode, supportsFunctionCalling, supportsVision, search) {
|
|
1953
|
+
return request(OpenAPI, {
|
|
1954
|
+
method: "GET",
|
|
1955
|
+
url: "/models",
|
|
1956
|
+
query: {
|
|
1957
|
+
provider,
|
|
1958
|
+
mode,
|
|
1959
|
+
supports_function_calling: supportsFunctionCalling,
|
|
1960
|
+
supports_vision: supportsVision,
|
|
1961
|
+
search
|
|
1962
|
+
},
|
|
1963
|
+
errors: {
|
|
1964
|
+
422: `Validation Error`
|
|
1965
|
+
}
|
|
1966
|
+
});
|
|
1967
|
+
}
|
|
1968
|
+
static getProvidersModelsProvidersGet() {
|
|
1969
|
+
return request(OpenAPI, {
|
|
1970
|
+
method: "GET",
|
|
1971
|
+
url: "/models/providers"
|
|
1972
|
+
});
|
|
1973
|
+
}
|
|
1974
|
+
static getModesModelsModesGet() {
|
|
1975
|
+
return request(OpenAPI, {
|
|
1976
|
+
method: "GET",
|
|
1977
|
+
url: "/models/modes"
|
|
1978
|
+
});
|
|
1979
|
+
}
|
|
1980
|
+
static getModelByNameModelsModelNameGet(modelName) {
|
|
1981
|
+
return request(OpenAPI, {
|
|
1982
|
+
method: "GET",
|
|
1983
|
+
url: "/models/{model_name}",
|
|
1984
|
+
path: {
|
|
1985
|
+
model_name: modelName
|
|
1986
|
+
},
|
|
1987
|
+
errors: {
|
|
1988
|
+
422: `Validation Error`
|
|
1989
|
+
}
|
|
1990
|
+
});
|
|
1991
|
+
}
|
|
1992
|
+
}
|
|
1993
|
+
var init_ModelsService = __esm(() => {
|
|
1994
|
+
init_OpenAPI();
|
|
1995
|
+
init_request();
|
|
1996
|
+
});
|
|
1997
|
+
|
|
1770
1998
|
// src/lib/clients/agents-generator/services/PresenceService.ts
|
|
1771
1999
|
class PresenceService {
|
|
1772
2000
|
static getAgentPresencePresenceAgentsAgentIdGet(agentId) {
|
|
@@ -1880,6 +2108,25 @@ var init_RootService = __esm(() => {
|
|
|
1880
2108
|
init_request();
|
|
1881
2109
|
});
|
|
1882
2110
|
|
|
2111
|
+
// src/lib/clients/agents-generator/services/SchemaGeneratorService.ts
|
|
2112
|
+
class SchemaGeneratorService {
|
|
2113
|
+
static generateSchemaApiGenerateSchemaPost(requestBody) {
|
|
2114
|
+
return request(OpenAPI, {
|
|
2115
|
+
method: "POST",
|
|
2116
|
+
url: "/api/generate-schema",
|
|
2117
|
+
body: requestBody,
|
|
2118
|
+
mediaType: "application/json",
|
|
2119
|
+
errors: {
|
|
2120
|
+
422: `Validation Error`
|
|
2121
|
+
}
|
|
2122
|
+
});
|
|
2123
|
+
}
|
|
2124
|
+
}
|
|
2125
|
+
var init_SchemaGeneratorService = __esm(() => {
|
|
2126
|
+
init_OpenAPI();
|
|
2127
|
+
init_request();
|
|
2128
|
+
});
|
|
2129
|
+
|
|
1883
2130
|
// src/lib/clients/agents-generator/services/WorkspaceCollaboratorsService.ts
|
|
1884
2131
|
class WorkspaceCollaboratorsService {
|
|
1885
2132
|
static addWorkspaceCollaborator(workspaceId, requestBody) {
|
|
@@ -2055,10 +2302,12 @@ var init_agents_generator = __esm(() => {
|
|
|
2055
2302
|
init_CredentialsService();
|
|
2056
2303
|
init_FileLibraryService();
|
|
2057
2304
|
init_McpServersService();
|
|
2305
|
+
init_ModelsService();
|
|
2058
2306
|
init_PresenceService();
|
|
2059
2307
|
init_PublicAgentsService();
|
|
2060
2308
|
init_PublicConversationsService();
|
|
2061
2309
|
init_RootService();
|
|
2310
|
+
init_SchemaGeneratorService();
|
|
2062
2311
|
init_WorkspaceCollaboratorsService();
|
|
2063
2312
|
init_WorkspacesService();
|
|
2064
2313
|
});
|
|
@@ -2103,11 +2352,13 @@ class AgentClient {
|
|
|
2103
2352
|
workspaces: AdminWorkspacesService,
|
|
2104
2353
|
collaborators: WorkspaceCollaboratorsService,
|
|
2105
2354
|
apiKeys: AdminApiKeysService,
|
|
2106
|
-
presence: PresenceService
|
|
2355
|
+
presence: PresenceService,
|
|
2356
|
+
schema: SchemaGeneratorService
|
|
2107
2357
|
};
|
|
2108
2358
|
this.public = {
|
|
2109
2359
|
agents: PublicAgentsService,
|
|
2110
|
-
conversations: PublicConversationsServiceExtended
|
|
2360
|
+
conversations: PublicConversationsServiceExtended,
|
|
2361
|
+
models: ModelsService
|
|
2111
2362
|
};
|
|
2112
2363
|
this.ApiError = ApiError;
|
|
2113
2364
|
this.CancelError = CancelError;
|
|
@@ -2358,11 +2609,13 @@ var exports_src = {};
|
|
|
2358
2609
|
__export(exports_src, {
|
|
2359
2610
|
WorkspacesService: () => WorkspacesService,
|
|
2360
2611
|
WorkspaceCollaboratorsService: () => WorkspaceCollaboratorsService,
|
|
2612
|
+
SchemaGeneratorService: () => SchemaGeneratorService,
|
|
2361
2613
|
RootService: () => RootService,
|
|
2362
2614
|
PublicConversationsService: () => PublicConversationsService,
|
|
2363
2615
|
PublicAgentsService: () => PublicAgentsService,
|
|
2364
2616
|
PresenceService: () => PresenceService,
|
|
2365
2617
|
OpenAPI: () => OpenAPI,
|
|
2618
|
+
ModelsService: () => ModelsService,
|
|
2366
2619
|
McpServersService: () => McpServersService,
|
|
2367
2620
|
FileLibraryService: () => FileLibraryService,
|
|
2368
2621
|
CredentialsService: () => CredentialsService,
|
|
@@ -14,6 +14,7 @@ export type { ApiKeyWithSecret } from './models/ApiKeyWithSecret';
|
|
|
14
14
|
export type { Body_upload_file } from './models/Body_upload_file';
|
|
15
15
|
export type { BucketCreate } from './models/BucketCreate';
|
|
16
16
|
export type { BucketResponse } from './models/BucketResponse';
|
|
17
|
+
export type { BucketUpdate } from './models/BucketUpdate';
|
|
17
18
|
export type { CallbackTool } from './models/CallbackTool';
|
|
18
19
|
export { CollaboratorRole } from './models/CollaboratorRole';
|
|
19
20
|
export type { ConversationCreate } from './models/ConversationCreate';
|
|
@@ -29,8 +30,11 @@ export type { FileResponse } from './models/FileResponse';
|
|
|
29
30
|
export type { FileUploadItem } from './models/FileUploadItem';
|
|
30
31
|
export type { FolderCreate } from './models/FolderCreate';
|
|
31
32
|
export type { FolderResponse } from './models/FolderResponse';
|
|
33
|
+
export type { FolderUpdate } from './models/FolderUpdate';
|
|
32
34
|
export type { FolderUploadRequest } from './models/FolderUploadRequest';
|
|
33
35
|
export type { FolderUploadResponse } from './models/FolderUploadResponse';
|
|
36
|
+
export type { GenerateSchemaRequest } from './models/GenerateSchemaRequest';
|
|
37
|
+
export type { GenerateSchemaResponse } from './models/GenerateSchemaResponse';
|
|
34
38
|
export type { GetAgentResponse } from './models/GetAgentResponse';
|
|
35
39
|
export type { Handoff } from './models/Handoff';
|
|
36
40
|
export type { HTTPValidationError } from './models/HTTPValidationError';
|
|
@@ -46,6 +50,10 @@ export type { NodeData } from './models/NodeData';
|
|
|
46
50
|
export type { Position } from './models/Position';
|
|
47
51
|
export type { UpdateMCPServerRequest } from './models/UpdateMCPServerRequest';
|
|
48
52
|
export type { ValidationError } from './models/ValidationError';
|
|
53
|
+
export type { VectorStoreInfoResponse } from './models/VectorStoreInfoResponse';
|
|
54
|
+
export type { VectorStoreSearchRequest } from './models/VectorStoreSearchRequest';
|
|
55
|
+
export type { VectorStoreSearchResponse } from './models/VectorStoreSearchResponse';
|
|
56
|
+
export type { VectorStoreSearchResult } from './models/VectorStoreSearchResult';
|
|
49
57
|
export type { WorkspaceCollaboratorCreate } from './models/WorkspaceCollaboratorCreate';
|
|
50
58
|
export type { WorkspaceCollaboratorResponse } from './models/WorkspaceCollaboratorResponse';
|
|
51
59
|
export type { WorkspaceCollaboratorUpdate } from './models/WorkspaceCollaboratorUpdate';
|
|
@@ -65,9 +73,11 @@ export { ConversationsService } from './services/ConversationsService';
|
|
|
65
73
|
export { CredentialsService } from './services/CredentialsService';
|
|
66
74
|
export { FileLibraryService } from './services/FileLibraryService';
|
|
67
75
|
export { McpServersService } from './services/McpServersService';
|
|
76
|
+
export { ModelsService } from './services/ModelsService';
|
|
68
77
|
export { PresenceService } from './services/PresenceService';
|
|
69
78
|
export { PublicAgentsService } from './services/PublicAgentsService';
|
|
70
79
|
export { PublicConversationsService } from './services/PublicConversationsService';
|
|
71
80
|
export { RootService } from './services/RootService';
|
|
81
|
+
export { SchemaGeneratorService } from './services/SchemaGeneratorService';
|
|
72
82
|
export { WorkspaceCollaboratorsService } from './services/WorkspaceCollaboratorsService';
|
|
73
83
|
export { WorkspacesService } from './services/WorkspacesService';
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export type BucketResponse = {
|
|
2
2
|
name: string;
|
|
3
|
+
display_name?: (string | null);
|
|
3
4
|
credential_id: string;
|
|
4
5
|
openai_credential_id?: (string | null);
|
|
5
6
|
region?: (string | null);
|
|
7
|
+
description?: (string | null);
|
|
6
8
|
id: string;
|
|
7
9
|
user_id: string;
|
|
8
10
|
created_at: string;
|
|
@@ -29,4 +29,24 @@ export type NodeData = {
|
|
|
29
29
|
* JSON schema for the agent output
|
|
30
30
|
*/
|
|
31
31
|
output_schema?: (Record<string, any> | null);
|
|
32
|
+
/**
|
|
33
|
+
* Model provider (openai, ollama, lmstudio, etc.)
|
|
34
|
+
*/
|
|
35
|
+
model_provider?: (string | null);
|
|
36
|
+
/**
|
|
37
|
+
* Model name to use for this node
|
|
38
|
+
*/
|
|
39
|
+
model_name?: (string | null);
|
|
40
|
+
/**
|
|
41
|
+
* Base URL for custom model providers (e.g., Ollama, LMStudio)
|
|
42
|
+
*/
|
|
43
|
+
base_url?: (string | null);
|
|
44
|
+
/**
|
|
45
|
+
* ID of the credential to use for this node (overrides agent-level credential)
|
|
46
|
+
*/
|
|
47
|
+
credential_id?: (string | null);
|
|
48
|
+
/**
|
|
49
|
+
* Maximum number of tokens to generate in the response
|
|
50
|
+
*/
|
|
51
|
+
max_tokens?: (number | null);
|
|
32
52
|
};
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import type { Body_upload_file } from '../models/Body_upload_file';
|
|
2
2
|
import type { BucketCreate } from '../models/BucketCreate';
|
|
3
3
|
import type { BucketResponse } from '../models/BucketResponse';
|
|
4
|
+
import type { BucketUpdate } from '../models/BucketUpdate';
|
|
4
5
|
import type { FileResponse } from '../models/FileResponse';
|
|
5
6
|
import type { FolderCreate } from '../models/FolderCreate';
|
|
6
7
|
import type { FolderResponse } from '../models/FolderResponse';
|
|
8
|
+
import type { FolderUpdate } from '../models/FolderUpdate';
|
|
7
9
|
import type { FolderUploadRequest } from '../models/FolderUploadRequest';
|
|
8
10
|
import type { FolderUploadResponse } from '../models/FolderUploadResponse';
|
|
11
|
+
import type { VectorStoreInfoResponse } from '../models/VectorStoreInfoResponse';
|
|
12
|
+
import type { VectorStoreSearchRequest } from '../models/VectorStoreSearchRequest';
|
|
13
|
+
import type { VectorStoreSearchResponse } from '../models/VectorStoreSearchResponse';
|
|
9
14
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
10
15
|
export declare class AdminFileLibraryService {
|
|
11
16
|
/**
|
|
@@ -43,6 +48,15 @@ export declare class AdminFileLibraryService {
|
|
|
43
48
|
* @throws ApiError
|
|
44
49
|
*/
|
|
45
50
|
static deleteBucket(bucketId: string, workspaceId?: (string | null)): CancelablePromise<any>;
|
|
51
|
+
/**
|
|
52
|
+
* Update Bucket
|
|
53
|
+
* Update a bucket
|
|
54
|
+
* @param bucketId
|
|
55
|
+
* @param requestBody
|
|
56
|
+
* @returns BucketResponse Successful Response
|
|
57
|
+
* @throws ApiError
|
|
58
|
+
*/
|
|
59
|
+
static updateBucket(bucketId: string, requestBody: BucketUpdate): CancelablePromise<BucketResponse>;
|
|
46
60
|
/**
|
|
47
61
|
* Create Folder
|
|
48
62
|
* Create a new folder
|
|
@@ -61,6 +75,15 @@ export declare class AdminFileLibraryService {
|
|
|
61
75
|
* @throws ApiError
|
|
62
76
|
*/
|
|
63
77
|
static getFoldersByBucket(bucketId: string, parentFolderId?: (string | null), workspaceId?: (string | null)): CancelablePromise<Array<FolderResponse>>;
|
|
78
|
+
/**
|
|
79
|
+
* Update Folder
|
|
80
|
+
* Update a folder (name, color, etc.)
|
|
81
|
+
* @param folderId
|
|
82
|
+
* @param requestBody
|
|
83
|
+
* @returns FolderResponse Successful Response
|
|
84
|
+
* @throws ApiError
|
|
85
|
+
*/
|
|
86
|
+
static updateFolder(folderId: string, requestBody: FolderUpdate): CancelablePromise<FolderResponse>;
|
|
64
87
|
/**
|
|
65
88
|
* Delete Folder
|
|
66
89
|
* Delete a folder
|
|
@@ -86,6 +109,22 @@ export declare class AdminFileLibraryService {
|
|
|
86
109
|
* @throws ApiError
|
|
87
110
|
*/
|
|
88
111
|
static getFilesByFolder(folderId: string): CancelablePromise<Array<FileResponse>>;
|
|
112
|
+
/**
|
|
113
|
+
* Download File
|
|
114
|
+
* Get a presigned URL to download/view a file from S3
|
|
115
|
+
* @param fileId
|
|
116
|
+
* @returns any Successful Response
|
|
117
|
+
* @throws ApiError
|
|
118
|
+
*/
|
|
119
|
+
static downloadFile(fileId: string): CancelablePromise<any>;
|
|
120
|
+
/**
|
|
121
|
+
* Get File Content
|
|
122
|
+
* Stream file content directly from S3 (avoids CORS issues)
|
|
123
|
+
* @param fileId
|
|
124
|
+
* @returns any Successful Response
|
|
125
|
+
* @throws ApiError
|
|
126
|
+
*/
|
|
127
|
+
static getFileContent(fileId: string): CancelablePromise<any>;
|
|
89
128
|
/**
|
|
90
129
|
* Delete File
|
|
91
130
|
* Delete a file
|
|
@@ -111,4 +150,29 @@ export declare class AdminFileLibraryService {
|
|
|
111
150
|
* @throws ApiError
|
|
112
151
|
*/
|
|
113
152
|
static createFolderVectorStore(folderId: string): CancelablePromise<FolderResponse>;
|
|
153
|
+
/**
|
|
154
|
+
* Search Vector Store
|
|
155
|
+
* Search a folder's vector store
|
|
156
|
+
* @param folderId
|
|
157
|
+
* @param requestBody
|
|
158
|
+
* @returns VectorStoreSearchResponse Successful Response
|
|
159
|
+
* @throws ApiError
|
|
160
|
+
*/
|
|
161
|
+
static searchVectorStore(folderId: string, requestBody: VectorStoreSearchRequest): CancelablePromise<VectorStoreSearchResponse>;
|
|
162
|
+
/**
|
|
163
|
+
* Get Vector Store Info
|
|
164
|
+
* Get vector store information for a folder
|
|
165
|
+
* @param folderId
|
|
166
|
+
* @returns VectorStoreInfoResponse Successful Response
|
|
167
|
+
* @throws ApiError
|
|
168
|
+
*/
|
|
169
|
+
static getVectorStoreInfo(folderId: string): CancelablePromise<VectorStoreInfoResponse>;
|
|
170
|
+
/**
|
|
171
|
+
* Delete Vector Store
|
|
172
|
+
* Delete a folder's vector store
|
|
173
|
+
* @param folderId
|
|
174
|
+
* @returns any Successful Response
|
|
175
|
+
* @throws ApiError
|
|
176
|
+
*/
|
|
177
|
+
static deleteVectorStore(folderId: string): CancelablePromise<any>;
|
|
114
178
|
}
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import type { Body_upload_file } from '../models/Body_upload_file';
|
|
2
2
|
import type { BucketCreate } from '../models/BucketCreate';
|
|
3
3
|
import type { BucketResponse } from '../models/BucketResponse';
|
|
4
|
+
import type { BucketUpdate } from '../models/BucketUpdate';
|
|
4
5
|
import type { FileResponse } from '../models/FileResponse';
|
|
5
6
|
import type { FolderCreate } from '../models/FolderCreate';
|
|
6
7
|
import type { FolderResponse } from '../models/FolderResponse';
|
|
8
|
+
import type { FolderUpdate } from '../models/FolderUpdate';
|
|
7
9
|
import type { FolderUploadRequest } from '../models/FolderUploadRequest';
|
|
8
10
|
import type { FolderUploadResponse } from '../models/FolderUploadResponse';
|
|
11
|
+
import type { VectorStoreInfoResponse } from '../models/VectorStoreInfoResponse';
|
|
12
|
+
import type { VectorStoreSearchRequest } from '../models/VectorStoreSearchRequest';
|
|
13
|
+
import type { VectorStoreSearchResponse } from '../models/VectorStoreSearchResponse';
|
|
9
14
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
10
15
|
export declare class FileLibraryService {
|
|
11
16
|
/**
|
|
@@ -43,6 +48,15 @@ export declare class FileLibraryService {
|
|
|
43
48
|
* @throws ApiError
|
|
44
49
|
*/
|
|
45
50
|
static deleteBucket(bucketId: string, workspaceId?: (string | null)): CancelablePromise<any>;
|
|
51
|
+
/**
|
|
52
|
+
* Update Bucket
|
|
53
|
+
* Update a bucket
|
|
54
|
+
* @param bucketId
|
|
55
|
+
* @param requestBody
|
|
56
|
+
* @returns BucketResponse Successful Response
|
|
57
|
+
* @throws ApiError
|
|
58
|
+
*/
|
|
59
|
+
static updateBucket(bucketId: string, requestBody: BucketUpdate): CancelablePromise<BucketResponse>;
|
|
46
60
|
/**
|
|
47
61
|
* Create Folder
|
|
48
62
|
* Create a new folder
|
|
@@ -61,6 +75,15 @@ export declare class FileLibraryService {
|
|
|
61
75
|
* @throws ApiError
|
|
62
76
|
*/
|
|
63
77
|
static getFoldersByBucket(bucketId: string, parentFolderId?: (string | null), workspaceId?: (string | null)): CancelablePromise<Array<FolderResponse>>;
|
|
78
|
+
/**
|
|
79
|
+
* Update Folder
|
|
80
|
+
* Update a folder (name, color, etc.)
|
|
81
|
+
* @param folderId
|
|
82
|
+
* @param requestBody
|
|
83
|
+
* @returns FolderResponse Successful Response
|
|
84
|
+
* @throws ApiError
|
|
85
|
+
*/
|
|
86
|
+
static updateFolder(folderId: string, requestBody: FolderUpdate): CancelablePromise<FolderResponse>;
|
|
64
87
|
/**
|
|
65
88
|
* Delete Folder
|
|
66
89
|
* Delete a folder
|
|
@@ -86,6 +109,22 @@ export declare class FileLibraryService {
|
|
|
86
109
|
* @throws ApiError
|
|
87
110
|
*/
|
|
88
111
|
static getFilesByFolder(folderId: string): CancelablePromise<Array<FileResponse>>;
|
|
112
|
+
/**
|
|
113
|
+
* Download File
|
|
114
|
+
* Get a presigned URL to download/view a file from S3
|
|
115
|
+
* @param fileId
|
|
116
|
+
* @returns any Successful Response
|
|
117
|
+
* @throws ApiError
|
|
118
|
+
*/
|
|
119
|
+
static downloadFile(fileId: string): CancelablePromise<any>;
|
|
120
|
+
/**
|
|
121
|
+
* Get File Content
|
|
122
|
+
* Stream file content directly from S3 (avoids CORS issues)
|
|
123
|
+
* @param fileId
|
|
124
|
+
* @returns any Successful Response
|
|
125
|
+
* @throws ApiError
|
|
126
|
+
*/
|
|
127
|
+
static getFileContent(fileId: string): CancelablePromise<any>;
|
|
89
128
|
/**
|
|
90
129
|
* Delete File
|
|
91
130
|
* Delete a file
|
|
@@ -111,4 +150,29 @@ export declare class FileLibraryService {
|
|
|
111
150
|
* @throws ApiError
|
|
112
151
|
*/
|
|
113
152
|
static createFolderVectorStore(folderId: string): CancelablePromise<FolderResponse>;
|
|
153
|
+
/**
|
|
154
|
+
* Search Vector Store
|
|
155
|
+
* Search a folder's vector store
|
|
156
|
+
* @param folderId
|
|
157
|
+
* @param requestBody
|
|
158
|
+
* @returns VectorStoreSearchResponse Successful Response
|
|
159
|
+
* @throws ApiError
|
|
160
|
+
*/
|
|
161
|
+
static searchVectorStore(folderId: string, requestBody: VectorStoreSearchRequest): CancelablePromise<VectorStoreSearchResponse>;
|
|
162
|
+
/**
|
|
163
|
+
* Get Vector Store Info
|
|
164
|
+
* Get vector store information for a folder
|
|
165
|
+
* @param folderId
|
|
166
|
+
* @returns VectorStoreInfoResponse Successful Response
|
|
167
|
+
* @throws ApiError
|
|
168
|
+
*/
|
|
169
|
+
static getVectorStoreInfo(folderId: string): CancelablePromise<VectorStoreInfoResponse>;
|
|
170
|
+
/**
|
|
171
|
+
* Delete Vector Store
|
|
172
|
+
* Delete a folder's vector store
|
|
173
|
+
* @param folderId
|
|
174
|
+
* @returns any Successful Response
|
|
175
|
+
* @throws ApiError
|
|
176
|
+
*/
|
|
177
|
+
static deleteVectorStore(folderId: string): CancelablePromise<any>;
|
|
114
178
|
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
2
|
+
export declare class ModelsService {
|
|
3
|
+
/**
|
|
4
|
+
* Get all models with optional filtering
|
|
5
|
+
* Returns all available LiteLLM models with pricing and capability information. Supports filtering by provider, mode, capabilities, and search.
|
|
6
|
+
* @param provider Filter by litellm_provider (e.g., 'openai', 'anthropic', 'bedrock')
|
|
7
|
+
* @param mode Filter by mode (e.g., 'chat', 'embedding', 'image_generation')
|
|
8
|
+
* @param supportsFunctionCalling Filter by function calling support
|
|
9
|
+
* @param supportsVision Filter by vision support
|
|
10
|
+
* @param search Search in model names (case-insensitive)
|
|
11
|
+
* @returns any List of models matching the filter criteria
|
|
12
|
+
* @throws ApiError
|
|
13
|
+
*/
|
|
14
|
+
static getModelsModelsGet(provider?: (string | null), mode?: (string | null), supportsFunctionCalling?: (boolean | null), supportsVision?: (boolean | null), search?: (string | null)): CancelablePromise<any>;
|
|
15
|
+
/**
|
|
16
|
+
* Get all available providers
|
|
17
|
+
* Returns a sorted list of all unique LiteLLM providers available in the model database.
|
|
18
|
+
* @returns any List of provider names
|
|
19
|
+
* @throws ApiError
|
|
20
|
+
*/
|
|
21
|
+
static getProvidersModelsProvidersGet(): CancelablePromise<any>;
|
|
22
|
+
/**
|
|
23
|
+
* Get all available modes
|
|
24
|
+
* Returns a sorted list of all unique model modes (e.g., chat, embedding, image_generation).
|
|
25
|
+
* @returns any List of mode types
|
|
26
|
+
* @throws ApiError
|
|
27
|
+
*/
|
|
28
|
+
static getModesModelsModesGet(): CancelablePromise<any>;
|
|
29
|
+
/**
|
|
30
|
+
* Get model details by name
|
|
31
|
+
* Returns detailed information for a specific model including pricing, token limits, and capabilities.
|
|
32
|
+
* @param modelName
|
|
33
|
+
* @returns any Model details or error if not found
|
|
34
|
+
* @throws ApiError
|
|
35
|
+
*/
|
|
36
|
+
static getModelByNameModelsModelNameGet(modelName: string): CancelablePromise<any>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { GenerateSchemaRequest } from '../models/GenerateSchemaRequest';
|
|
2
|
+
import type { GenerateSchemaResponse } from '../models/GenerateSchemaResponse';
|
|
3
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
4
|
+
export declare class SchemaGeneratorService {
|
|
5
|
+
/**
|
|
6
|
+
* Generate Schema
|
|
7
|
+
* @param requestBody
|
|
8
|
+
* @returns GenerateSchemaResponse Successful Response
|
|
9
|
+
* @throws ApiError
|
|
10
|
+
*/
|
|
11
|
+
static generateSchemaApiGenerateSchemaPost(requestBody: GenerateSchemaRequest): CancelablePromise<GenerateSchemaResponse>;
|
|
12
|
+
}
|
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, WorkspaceCollaboratorsService, AdminApiKeysService, PresenceService } 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, ModelsService, SchemaGeneratorService } from "./clients/agents-generator";
|
|
2
2
|
export * from "./clients/agents-generator";
|
|
3
3
|
export interface StreamEvent {
|
|
4
4
|
type: string;
|
|
@@ -55,10 +55,12 @@ export declare class AgentClient {
|
|
|
55
55
|
collaborators: typeof WorkspaceCollaboratorsService;
|
|
56
56
|
apiKeys: typeof AdminApiKeysService;
|
|
57
57
|
presence: typeof PresenceService;
|
|
58
|
+
schema: typeof SchemaGeneratorService;
|
|
58
59
|
};
|
|
59
60
|
public: {
|
|
60
61
|
agents: typeof PublicAgentsService;
|
|
61
62
|
conversations: typeof PublicConversationsServiceExtended;
|
|
63
|
+
models: typeof ModelsService;
|
|
62
64
|
};
|
|
63
65
|
/**
|
|
64
66
|
* @deprecated agent: Use client.admin.agents
|