@bodhiapp/ts-client 0.1.23 → 0.1.25
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/openapi-typescript/openapi-schema.d.ts +34 -1428
- package/dist/openapi-typescript/openapi-schema.ts +34 -1428
- package/dist/types/types.gen.d.ts +39 -937
- package/dist/types/types.gen.ts +44 -1037
- package/package.json +1 -1
|
@@ -45,10 +45,6 @@ export type AccessRequestReviewResponse = {
|
|
|
45
45
|
* Resources requested
|
|
46
46
|
*/
|
|
47
47
|
requested: RequestedResources;
|
|
48
|
-
/**
|
|
49
|
-
* Tool type information with user instances
|
|
50
|
-
*/
|
|
51
|
-
tools_info: Array<ToolTypeReviewInfo>;
|
|
52
48
|
/**
|
|
53
49
|
* MCP server information with user instances
|
|
54
50
|
*/
|
|
@@ -134,7 +130,7 @@ export type ApiFormatsResponse = {
|
|
|
134
130
|
*/
|
|
135
131
|
export type ApiKey = string | null;
|
|
136
132
|
/**
|
|
137
|
-
* Represents an API key update operation for API model aliases
|
|
133
|
+
* Represents an API key update operation for API model aliases.
|
|
138
134
|
*/
|
|
139
135
|
export type ApiKeyUpdate = {
|
|
140
136
|
action: 'keep';
|
|
@@ -206,39 +202,6 @@ export type AppInfo = {
|
|
|
206
202
|
};
|
|
207
203
|
export type AppRole = ResourceRole | TokenScope | UserScope;
|
|
208
204
|
export type AppStatus = 'setup' | 'ready' | 'resource_admin';
|
|
209
|
-
/**
|
|
210
|
-
* Application-level toolset configuration
|
|
211
|
-
*/
|
|
212
|
-
export type AppToolsetConfig = {
|
|
213
|
-
/**
|
|
214
|
-
* Toolset type identifier (e.g., "builtin-exa-search")
|
|
215
|
-
*/
|
|
216
|
-
toolset_type: string;
|
|
217
|
-
/**
|
|
218
|
-
* Human-readable name (e.g., "Exa Web Search")
|
|
219
|
-
*/
|
|
220
|
-
name: string;
|
|
221
|
-
/**
|
|
222
|
-
* Description of the toolset
|
|
223
|
-
*/
|
|
224
|
-
description: string;
|
|
225
|
-
/**
|
|
226
|
-
* Whether this toolset type is enabled at app level
|
|
227
|
-
*/
|
|
228
|
-
enabled: boolean;
|
|
229
|
-
/**
|
|
230
|
-
* User who last updated this config
|
|
231
|
-
*/
|
|
232
|
-
updated_by: string;
|
|
233
|
-
/**
|
|
234
|
-
* When this config was created
|
|
235
|
-
*/
|
|
236
|
-
created_at: string;
|
|
237
|
-
/**
|
|
238
|
-
* When this config was last updated
|
|
239
|
-
*/
|
|
240
|
-
updated_at: string;
|
|
241
|
-
};
|
|
242
205
|
export type ApprovalStatus = 'approved' | 'denied';
|
|
243
206
|
/**
|
|
244
207
|
* Request for approving an app access request
|
|
@@ -262,8 +225,14 @@ export type ApproveUserAccessRequest = {
|
|
|
262
225
|
*/
|
|
263
226
|
role: ResourceRole;
|
|
264
227
|
};
|
|
265
|
-
|
|
266
|
-
|
|
228
|
+
/**
|
|
229
|
+
* Versioned envelope for approved resources.
|
|
230
|
+
* The `version` tag is mandatory and must match the corresponding `RequestedResources` version.
|
|
231
|
+
*/
|
|
232
|
+
export type ApprovedResources = ApprovedResourcesV1 & {
|
|
233
|
+
version: '1';
|
|
234
|
+
};
|
|
235
|
+
export type ApprovedResourcesV1 = {
|
|
267
236
|
mcps?: Array<McpApproval>;
|
|
268
237
|
};
|
|
269
238
|
export type AuthCallbackRequest = {
|
|
@@ -784,7 +753,10 @@ export type CreateAccessRequest = {
|
|
|
784
753
|
* Role requested for the external app (scope_user_user or scope_user_power_user)
|
|
785
754
|
*/
|
|
786
755
|
requested_role: UserScope;
|
|
787
|
-
|
|
756
|
+
/**
|
|
757
|
+
* Resources requested (tools, etc.)
|
|
758
|
+
*/
|
|
759
|
+
requested: RequestedResources;
|
|
788
760
|
};
|
|
789
761
|
export type CreateAccessRequestResponse = {
|
|
790
762
|
/**
|
|
@@ -1275,22 +1247,6 @@ export type ErrorBody = {
|
|
|
1275
1247
|
[key: string]: string;
|
|
1276
1248
|
} | null;
|
|
1277
1249
|
};
|
|
1278
|
-
/**
|
|
1279
|
-
* Request to execute a toolset
|
|
1280
|
-
*/
|
|
1281
|
-
export type ExecuteToolsetRequest = {
|
|
1282
|
-
/**
|
|
1283
|
-
* Function parameters as JSON
|
|
1284
|
-
*/
|
|
1285
|
-
params: unknown;
|
|
1286
|
-
};
|
|
1287
|
-
export type FetchMcpToolsRequest = {
|
|
1288
|
-
mcp_server_id: string;
|
|
1289
|
-
auth?: null | McpAuth;
|
|
1290
|
-
credentials?: Array<McpAuthParamInput> | null;
|
|
1291
|
-
auth_config_id?: string | null;
|
|
1292
|
-
oauth_token_id?: string | null;
|
|
1293
|
-
};
|
|
1294
1250
|
/**
|
|
1295
1251
|
* Request to fetch available models from provider
|
|
1296
1252
|
*/
|
|
@@ -1354,23 +1310,6 @@ export type FunctionCallStream = {
|
|
|
1354
1310
|
*/
|
|
1355
1311
|
arguments?: string | null;
|
|
1356
1312
|
};
|
|
1357
|
-
/**
|
|
1358
|
-
* Function definition within a tool
|
|
1359
|
-
*/
|
|
1360
|
-
export type FunctionDefinition = {
|
|
1361
|
-
/**
|
|
1362
|
-
* Simple tool name (e.g., "search", "findSimilar"). Frontend composes fully qualified name.
|
|
1363
|
-
*/
|
|
1364
|
-
name: string;
|
|
1365
|
-
/**
|
|
1366
|
-
* Human-readable description for LLM
|
|
1367
|
-
*/
|
|
1368
|
-
description: string;
|
|
1369
|
-
/**
|
|
1370
|
-
* JSON Schema for function parameters
|
|
1371
|
-
*/
|
|
1372
|
-
parameters: unknown;
|
|
1373
|
-
};
|
|
1374
1313
|
export type FunctionName = {
|
|
1375
1314
|
/**
|
|
1376
1315
|
* The name of the function to call.
|
|
@@ -1429,19 +1368,6 @@ export type ListModelResponse = {
|
|
|
1429
1368
|
object: string;
|
|
1430
1369
|
data: Array<Model>;
|
|
1431
1370
|
};
|
|
1432
|
-
/**
|
|
1433
|
-
* List of toolset types
|
|
1434
|
-
*/
|
|
1435
|
-
export type ListToolsetTypesResponse = {
|
|
1436
|
-
types: Array<ToolsetDefinition>;
|
|
1437
|
-
};
|
|
1438
|
-
/**
|
|
1439
|
-
* List of toolsets
|
|
1440
|
-
*/
|
|
1441
|
-
export type ListToolsetsResponse = {
|
|
1442
|
-
toolsets: Array<ToolsetResponse>;
|
|
1443
|
-
toolset_types: Array<AppToolsetConfig>;
|
|
1444
|
-
};
|
|
1445
1371
|
/**
|
|
1446
1372
|
* List users query parameters. Intentionally omits sort fields (unlike PaginationSortParams)
|
|
1447
1373
|
* because user listing is fetched from the auth service which handles its own ordering.
|
|
@@ -1462,7 +1388,7 @@ export type LocalModelResponse = {
|
|
|
1462
1388
|
metadata?: null | ModelMetadata;
|
|
1463
1389
|
};
|
|
1464
1390
|
/**
|
|
1465
|
-
* User-owned MCP server instance
|
|
1391
|
+
* User-owned MCP server instance.
|
|
1466
1392
|
*/
|
|
1467
1393
|
export type Mcp = {
|
|
1468
1394
|
/**
|
|
@@ -1490,13 +1416,9 @@ export type Mcp = {
|
|
|
1490
1416
|
*/
|
|
1491
1417
|
enabled: boolean;
|
|
1492
1418
|
/**
|
|
1493
|
-
*
|
|
1494
|
-
*/
|
|
1495
|
-
tools_cache?: Array<McpTool> | null;
|
|
1496
|
-
/**
|
|
1497
|
-
* Whitelisted tool names (empty = block all)
|
|
1419
|
+
* MCP proxy endpoint path for this instance
|
|
1498
1420
|
*/
|
|
1499
|
-
|
|
1421
|
+
mcp_endpoint: string;
|
|
1500
1422
|
auth_type: McpAuthType;
|
|
1501
1423
|
/**
|
|
1502
1424
|
* Reference to the auth config (mcp_auth_configs.id)
|
|
@@ -1516,13 +1438,6 @@ export type McpApproval = {
|
|
|
1516
1438
|
status: ApprovalStatus;
|
|
1517
1439
|
instance?: null | McpInstance;
|
|
1518
1440
|
};
|
|
1519
|
-
export type McpAuth = {
|
|
1520
|
-
type: 'public';
|
|
1521
|
-
} | {
|
|
1522
|
-
header_key: string;
|
|
1523
|
-
header_value: string;
|
|
1524
|
-
type: 'header';
|
|
1525
|
-
};
|
|
1526
1441
|
export type McpAuthConfigParam = {
|
|
1527
1442
|
id: string;
|
|
1528
1443
|
param_type: McpAuthParamType;
|
|
@@ -1584,13 +1499,6 @@ export type McpAuthParamInput = {
|
|
|
1584
1499
|
};
|
|
1585
1500
|
export type McpAuthParamType = 'header' | 'query';
|
|
1586
1501
|
export type McpAuthType = 'public' | 'header' | 'oauth';
|
|
1587
|
-
export type McpExecuteRequest = {
|
|
1588
|
-
params: unknown;
|
|
1589
|
-
};
|
|
1590
|
-
export type McpExecuteResponse = {
|
|
1591
|
-
result?: unknown;
|
|
1592
|
-
error?: string | null;
|
|
1593
|
-
};
|
|
1594
1502
|
export type McpInstance = {
|
|
1595
1503
|
id: string;
|
|
1596
1504
|
};
|
|
@@ -1618,14 +1526,6 @@ export type McpRequest = {
|
|
|
1618
1526
|
* Whether this instance is enabled
|
|
1619
1527
|
*/
|
|
1620
1528
|
enabled: boolean;
|
|
1621
|
-
/**
|
|
1622
|
-
* Cached tool schemas from the MCP server (JSON array)
|
|
1623
|
-
*/
|
|
1624
|
-
tools_cache?: Array<McpTool> | null;
|
|
1625
|
-
/**
|
|
1626
|
-
* Whitelisted tool names
|
|
1627
|
-
*/
|
|
1628
|
-
tools_filter?: Array<string> | null;
|
|
1629
1529
|
/**
|
|
1630
1530
|
* Authentication type
|
|
1631
1531
|
*/
|
|
@@ -1734,26 +1634,6 @@ export type McpServerReviewInfo = {
|
|
|
1734
1634
|
*/
|
|
1735
1635
|
instances: Array<Mcp>;
|
|
1736
1636
|
};
|
|
1737
|
-
/**
|
|
1738
|
-
* Tool schema cached from an MCP server's tools/list response.
|
|
1739
|
-
*/
|
|
1740
|
-
export type McpTool = {
|
|
1741
|
-
/**
|
|
1742
|
-
* Tool name as declared by the MCP server
|
|
1743
|
-
*/
|
|
1744
|
-
name: string;
|
|
1745
|
-
/**
|
|
1746
|
-
* Human-readable description of the tool
|
|
1747
|
-
*/
|
|
1748
|
-
description?: string | null;
|
|
1749
|
-
/**
|
|
1750
|
-
* JSON Schema for tool input parameters
|
|
1751
|
-
*/
|
|
1752
|
-
input_schema?: unknown;
|
|
1753
|
-
};
|
|
1754
|
-
export type McpToolsResponse = {
|
|
1755
|
-
tools: Array<McpTool>;
|
|
1756
|
-
};
|
|
1757
1637
|
export type Message = {
|
|
1758
1638
|
role: string;
|
|
1759
1639
|
content: string;
|
|
@@ -2132,8 +2012,14 @@ export type RegistrationType = 'pre_registered' | 'dynamic_registration';
|
|
|
2132
2012
|
export type RequestedMcpServer = {
|
|
2133
2013
|
url: string;
|
|
2134
2014
|
};
|
|
2135
|
-
|
|
2136
|
-
|
|
2015
|
+
/**
|
|
2016
|
+
* Versioned envelope for requested resources.
|
|
2017
|
+
* The `version` tag is mandatory — clients must specify which version they are using.
|
|
2018
|
+
*/
|
|
2019
|
+
export type RequestedResources = RequestedResourcesV1 & {
|
|
2020
|
+
version: '1';
|
|
2021
|
+
};
|
|
2022
|
+
export type RequestedResourcesV1 = {
|
|
2137
2023
|
mcp_servers?: Array<RequestedMcpServer>;
|
|
2138
2024
|
};
|
|
2139
2025
|
export type ResourceRole = 'resource_anonymous' | 'resource_guest' | 'resource_user' | 'resource_power_user' | 'resource_manager' | 'resource_admin';
|
|
@@ -2320,187 +2206,6 @@ export type ToolCapabilities = {
|
|
|
2320
2206
|
};
|
|
2321
2207
|
export type ToolChoiceAllowedMode = 'auto' | 'required';
|
|
2322
2208
|
export type ToolChoiceOptions = 'none' | 'auto' | 'required';
|
|
2323
|
-
/**
|
|
2324
|
-
* Tool definition in OpenAI format for LLM function calling.
|
|
2325
|
-
* Tool name follows Claude MCP convention: toolset__{toolset_name}__{tool_name}
|
|
2326
|
-
*/
|
|
2327
|
-
export type ToolDefinition = {
|
|
2328
|
-
/**
|
|
2329
|
-
* Type of tool (always "function" for now)
|
|
2330
|
-
*/
|
|
2331
|
-
type: string;
|
|
2332
|
-
/**
|
|
2333
|
-
* Function definition details
|
|
2334
|
-
*/
|
|
2335
|
-
function: FunctionDefinition;
|
|
2336
|
-
};
|
|
2337
|
-
export type ToolTypeReviewInfo = {
|
|
2338
|
-
/**
|
|
2339
|
-
* Tool type identifier
|
|
2340
|
-
*/
|
|
2341
|
-
toolset_type: string;
|
|
2342
|
-
/**
|
|
2343
|
-
* Tool type display name
|
|
2344
|
-
*/
|
|
2345
|
-
name: string;
|
|
2346
|
-
/**
|
|
2347
|
-
* Tool type description
|
|
2348
|
-
*/
|
|
2349
|
-
description: string;
|
|
2350
|
-
/**
|
|
2351
|
-
* User's configured instances of this tool type
|
|
2352
|
-
*/
|
|
2353
|
-
instances: Array<Toolset>;
|
|
2354
|
-
};
|
|
2355
|
-
/**
|
|
2356
|
-
* User-owned toolset instance with UUID identification
|
|
2357
|
-
*/
|
|
2358
|
-
export type Toolset = {
|
|
2359
|
-
/**
|
|
2360
|
-
* Unique instance identifier (UUID)
|
|
2361
|
-
*/
|
|
2362
|
-
id: string;
|
|
2363
|
-
/**
|
|
2364
|
-
* User-defined slug for this instance
|
|
2365
|
-
*/
|
|
2366
|
-
slug: string;
|
|
2367
|
-
/**
|
|
2368
|
-
* Toolset type identifier (e.g., "builtin-exa-search")
|
|
2369
|
-
*/
|
|
2370
|
-
toolset_type: string;
|
|
2371
|
-
/**
|
|
2372
|
-
* Optional description for this instance
|
|
2373
|
-
*/
|
|
2374
|
-
description?: string | null;
|
|
2375
|
-
/**
|
|
2376
|
-
* Whether this instance is enabled
|
|
2377
|
-
*/
|
|
2378
|
-
enabled: boolean;
|
|
2379
|
-
/**
|
|
2380
|
-
* Whether this instance has an API key configured
|
|
2381
|
-
*/
|
|
2382
|
-
has_api_key: boolean;
|
|
2383
|
-
/**
|
|
2384
|
-
* When this instance was created
|
|
2385
|
-
*/
|
|
2386
|
-
created_at: string;
|
|
2387
|
-
/**
|
|
2388
|
-
* When this instance was last updated
|
|
2389
|
-
*/
|
|
2390
|
-
updated_at: string;
|
|
2391
|
-
};
|
|
2392
|
-
export type ToolsetApproval = {
|
|
2393
|
-
toolset_type: string;
|
|
2394
|
-
status: ApprovalStatus;
|
|
2395
|
-
instance?: null | ToolsetInstance;
|
|
2396
|
-
};
|
|
2397
|
-
/**
|
|
2398
|
-
* A toolset is a connector that provides one or more tools.
|
|
2399
|
-
* Example: Exa Web Search toolset provides search, find_similar, get_contents, answer tools.
|
|
2400
|
-
*/
|
|
2401
|
-
export type ToolsetDefinition = {
|
|
2402
|
-
/**
|
|
2403
|
-
* Toolset type identifier (e.g., "builtin-exa-search")
|
|
2404
|
-
*/
|
|
2405
|
-
toolset_type: string;
|
|
2406
|
-
/**
|
|
2407
|
-
* Human-readable name (e.g., "Exa Web Search")
|
|
2408
|
-
*/
|
|
2409
|
-
name: string;
|
|
2410
|
-
/**
|
|
2411
|
-
* Description of the toolset
|
|
2412
|
-
*/
|
|
2413
|
-
description: string;
|
|
2414
|
-
/**
|
|
2415
|
-
* Tools provided by this toolset (in OpenAI format)
|
|
2416
|
-
*/
|
|
2417
|
-
tools: Array<ToolDefinition>;
|
|
2418
|
-
};
|
|
2419
|
-
/**
|
|
2420
|
-
* Response from toolset tool execution (to send back to LLM)
|
|
2421
|
-
*/
|
|
2422
|
-
export type ToolsetExecutionResponse = {
|
|
2423
|
-
/**
|
|
2424
|
-
* Successful result (JSON), if any
|
|
2425
|
-
*/
|
|
2426
|
-
result?: unknown;
|
|
2427
|
-
/**
|
|
2428
|
-
* Error message, if execution failed
|
|
2429
|
-
*/
|
|
2430
|
-
error?: string | null;
|
|
2431
|
-
};
|
|
2432
|
-
export type ToolsetInstance = {
|
|
2433
|
-
id: string;
|
|
2434
|
-
};
|
|
2435
|
-
/**
|
|
2436
|
-
* Input for creating or updating a toolset instance.
|
|
2437
|
-
*/
|
|
2438
|
-
export type ToolsetRequest = {
|
|
2439
|
-
/**
|
|
2440
|
-
* Toolset type identifier (required for create, ignored for update)
|
|
2441
|
-
*/
|
|
2442
|
-
toolset_type?: string | null;
|
|
2443
|
-
/**
|
|
2444
|
-
* User-defined slug for this instance (1-24 chars, alphanumeric + hyphens)
|
|
2445
|
-
*/
|
|
2446
|
-
slug: string;
|
|
2447
|
-
/**
|
|
2448
|
-
* Optional description for this instance
|
|
2449
|
-
*/
|
|
2450
|
-
description?: string | null;
|
|
2451
|
-
/**
|
|
2452
|
-
* Whether this instance is enabled
|
|
2453
|
-
*/
|
|
2454
|
-
enabled?: boolean;
|
|
2455
|
-
/**
|
|
2456
|
-
* API key update action (Keep or Set)
|
|
2457
|
-
*/
|
|
2458
|
-
api_key?: ApiKeyUpdate;
|
|
2459
|
-
};
|
|
2460
|
-
/**
|
|
2461
|
-
* Toolset response
|
|
2462
|
-
*/
|
|
2463
|
-
export type ToolsetResponse = {
|
|
2464
|
-
/**
|
|
2465
|
-
* Unique instance identifier (UUID)
|
|
2466
|
-
*/
|
|
2467
|
-
id: string;
|
|
2468
|
-
/**
|
|
2469
|
-
* User-defined slug for this toolset
|
|
2470
|
-
*/
|
|
2471
|
-
slug: string;
|
|
2472
|
-
/**
|
|
2473
|
-
* Toolset type identifier (e.g., "builtin-exa-search")
|
|
2474
|
-
*/
|
|
2475
|
-
toolset_type: string;
|
|
2476
|
-
/**
|
|
2477
|
-
* Optional description for this toolset
|
|
2478
|
-
*/
|
|
2479
|
-
description?: string | null;
|
|
2480
|
-
/**
|
|
2481
|
-
* Whether this toolset is enabled
|
|
2482
|
-
*/
|
|
2483
|
-
enabled: boolean;
|
|
2484
|
-
/**
|
|
2485
|
-
* Whether this toolset has an API key configured
|
|
2486
|
-
*/
|
|
2487
|
-
has_api_key: boolean;
|
|
2488
|
-
/**
|
|
2489
|
-
* Tools provided by this toolset type
|
|
2490
|
-
*/
|
|
2491
|
-
tools: Array<ToolDefinition>;
|
|
2492
|
-
/**
|
|
2493
|
-
* When this toolset was created
|
|
2494
|
-
*/
|
|
2495
|
-
created_at: string;
|
|
2496
|
-
/**
|
|
2497
|
-
* When this toolset was last updated
|
|
2498
|
-
*/
|
|
2499
|
-
updated_at: string;
|
|
2500
|
-
};
|
|
2501
|
-
export type ToolsetTypeRequest = {
|
|
2502
|
-
toolset_type: string;
|
|
2503
|
-
};
|
|
2504
2209
|
export type TopLogprobs = {
|
|
2505
2210
|
/**
|
|
2506
2211
|
* The token.
|
|
@@ -3262,7 +2967,7 @@ export type AppsGetMcpResponses = {
|
|
|
3262
2967
|
200: Mcp;
|
|
3263
2968
|
};
|
|
3264
2969
|
export type AppsGetMcpResponse = AppsGetMcpResponses[keyof AppsGetMcpResponses];
|
|
3265
|
-
export type
|
|
2970
|
+
export type McpProxyData = {
|
|
3266
2971
|
body?: never;
|
|
3267
2972
|
path: {
|
|
3268
2973
|
/**
|
|
@@ -3271,54 +2976,9 @@ export type AppsRefreshMcpToolsData = {
|
|
|
3271
2976
|
id: string;
|
|
3272
2977
|
};
|
|
3273
2978
|
query?: never;
|
|
3274
|
-
url: '/bodhi/v1/apps/mcps/{id}/
|
|
3275
|
-
};
|
|
3276
|
-
export type AppsRefreshMcpToolsErrors = {
|
|
3277
|
-
/**
|
|
3278
|
-
* Invalid request parameters
|
|
3279
|
-
*/
|
|
3280
|
-
400: OpenAiApiError;
|
|
3281
|
-
/**
|
|
3282
|
-
* Not authenticated
|
|
3283
|
-
*/
|
|
3284
|
-
401: OpenAiApiError;
|
|
3285
|
-
/**
|
|
3286
|
-
* Insufficient permissions
|
|
3287
|
-
*/
|
|
3288
|
-
403: OpenAiApiError;
|
|
3289
|
-
/**
|
|
3290
|
-
* MCP not found
|
|
3291
|
-
*/
|
|
3292
|
-
404: unknown;
|
|
3293
|
-
/**
|
|
3294
|
-
* Internal server error
|
|
3295
|
-
*/
|
|
3296
|
-
500: OpenAiApiError;
|
|
3297
|
-
};
|
|
3298
|
-
export type AppsRefreshMcpToolsError = AppsRefreshMcpToolsErrors[keyof AppsRefreshMcpToolsErrors];
|
|
3299
|
-
export type AppsRefreshMcpToolsResponses = {
|
|
3300
|
-
/**
|
|
3301
|
-
* Refreshed list of tools
|
|
3302
|
-
*/
|
|
3303
|
-
200: McpToolsResponse;
|
|
3304
|
-
};
|
|
3305
|
-
export type AppsRefreshMcpToolsResponse = AppsRefreshMcpToolsResponses[keyof AppsRefreshMcpToolsResponses];
|
|
3306
|
-
export type AppsExecuteMcpToolData = {
|
|
3307
|
-
body: McpExecuteRequest;
|
|
3308
|
-
path: {
|
|
3309
|
-
/**
|
|
3310
|
-
* MCP instance UUID
|
|
3311
|
-
*/
|
|
3312
|
-
id: string;
|
|
3313
|
-
/**
|
|
3314
|
-
* Tool name to execute
|
|
3315
|
-
*/
|
|
3316
|
-
tool_name: string;
|
|
3317
|
-
};
|
|
3318
|
-
query?: never;
|
|
3319
|
-
url: '/bodhi/v1/apps/mcps/{id}/tools/{tool_name}/execute';
|
|
2979
|
+
url: '/bodhi/v1/apps/mcps/{id}/mcp';
|
|
3320
2980
|
};
|
|
3321
|
-
export type
|
|
2981
|
+
export type McpProxyErrors = {
|
|
3322
2982
|
/**
|
|
3323
2983
|
* Invalid request parameters
|
|
3324
2984
|
*/
|
|
@@ -3331,23 +2991,18 @@ export type AppsExecuteMcpToolErrors = {
|
|
|
3331
2991
|
* Insufficient permissions
|
|
3332
2992
|
*/
|
|
3333
2993
|
403: OpenAiApiError;
|
|
3334
|
-
/**
|
|
3335
|
-
* MCP or tool not found
|
|
3336
|
-
*/
|
|
3337
|
-
404: unknown;
|
|
3338
2994
|
/**
|
|
3339
2995
|
* Internal server error
|
|
3340
2996
|
*/
|
|
3341
2997
|
500: OpenAiApiError;
|
|
3342
2998
|
};
|
|
3343
|
-
export type
|
|
3344
|
-
export type
|
|
2999
|
+
export type McpProxyError = McpProxyErrors[keyof McpProxyErrors];
|
|
3000
|
+
export type McpProxyResponses = {
|
|
3345
3001
|
/**
|
|
3346
|
-
*
|
|
3002
|
+
* Upstream response forwarded
|
|
3347
3003
|
*/
|
|
3348
|
-
200:
|
|
3004
|
+
200: unknown;
|
|
3349
3005
|
};
|
|
3350
|
-
export type AppsExecuteMcpToolResponse = AppsExecuteMcpToolResponses[keyof AppsExecuteMcpToolResponses];
|
|
3351
3006
|
export type CreateAccessRequestData = {
|
|
3352
3007
|
/**
|
|
3353
3008
|
* Access request details
|
|
@@ -3387,13 +3042,16 @@ export type CreateAccessRequestResponses = {
|
|
|
3387
3042
|
201: CreateAccessRequestResponse;
|
|
3388
3043
|
};
|
|
3389
3044
|
export type CreateAccessRequestResponse2 = CreateAccessRequestResponses[keyof CreateAccessRequestResponses];
|
|
3390
|
-
export type
|
|
3391
|
-
|
|
3045
|
+
export type CompleteOAuthFlowData = {
|
|
3046
|
+
/**
|
|
3047
|
+
* OAuth callback parameters from authorization server
|
|
3048
|
+
*/
|
|
3049
|
+
body: AuthCallbackRequest;
|
|
3392
3050
|
path?: never;
|
|
3393
3051
|
query?: never;
|
|
3394
|
-
url: '/bodhi/v1/
|
|
3052
|
+
url: '/bodhi/v1/auth/callback';
|
|
3395
3053
|
};
|
|
3396
|
-
export type
|
|
3054
|
+
export type CompleteOAuthFlowErrors = {
|
|
3397
3055
|
/**
|
|
3398
3056
|
* Invalid request parameters
|
|
3399
3057
|
*/
|
|
@@ -3407,87 +3065,7 @@ export type AppsListToolsetsErrors = {
|
|
|
3407
3065
|
*/
|
|
3408
3066
|
403: OpenAiApiError;
|
|
3409
3067
|
/**
|
|
3410
|
-
*
|
|
3411
|
-
*/
|
|
3412
|
-
500: OpenAiApiError;
|
|
3413
|
-
};
|
|
3414
|
-
export type AppsListToolsetsError = AppsListToolsetsErrors[keyof AppsListToolsetsErrors];
|
|
3415
|
-
export type AppsListToolsetsResponses = {
|
|
3416
|
-
/**
|
|
3417
|
-
* List of toolsets accessible to the external app
|
|
3418
|
-
*/
|
|
3419
|
-
200: ListToolsetsResponse;
|
|
3420
|
-
};
|
|
3421
|
-
export type AppsListToolsetsResponse = AppsListToolsetsResponses[keyof AppsListToolsetsResponses];
|
|
3422
|
-
export type AppsExecuteToolsetToolData = {
|
|
3423
|
-
body: ExecuteToolsetRequest;
|
|
3424
|
-
path: {
|
|
3425
|
-
/**
|
|
3426
|
-
* Toolset instance UUID
|
|
3427
|
-
*/
|
|
3428
|
-
id: string;
|
|
3429
|
-
/**
|
|
3430
|
-
* Tool name to execute
|
|
3431
|
-
*/
|
|
3432
|
-
tool_name: string;
|
|
3433
|
-
};
|
|
3434
|
-
query?: never;
|
|
3435
|
-
url: '/bodhi/v1/apps/toolsets/{id}/tools/{tool_name}/execute';
|
|
3436
|
-
};
|
|
3437
|
-
export type AppsExecuteToolsetToolErrors = {
|
|
3438
|
-
/**
|
|
3439
|
-
* Invalid request parameters
|
|
3440
|
-
*/
|
|
3441
|
-
400: OpenAiApiError;
|
|
3442
|
-
/**
|
|
3443
|
-
* Not authenticated
|
|
3444
|
-
*/
|
|
3445
|
-
401: OpenAiApiError;
|
|
3446
|
-
/**
|
|
3447
|
-
* Insufficient permissions
|
|
3448
|
-
*/
|
|
3449
|
-
403: OpenAiApiError;
|
|
3450
|
-
/**
|
|
3451
|
-
* Toolset or method not found
|
|
3452
|
-
*/
|
|
3453
|
-
404: unknown;
|
|
3454
|
-
/**
|
|
3455
|
-
* Internal server error
|
|
3456
|
-
*/
|
|
3457
|
-
500: OpenAiApiError;
|
|
3458
|
-
};
|
|
3459
|
-
export type AppsExecuteToolsetToolError = AppsExecuteToolsetToolErrors[keyof AppsExecuteToolsetToolErrors];
|
|
3460
|
-
export type AppsExecuteToolsetToolResponses = {
|
|
3461
|
-
/**
|
|
3462
|
-
* Tool execution result
|
|
3463
|
-
*/
|
|
3464
|
-
200: ToolsetExecutionResponse;
|
|
3465
|
-
};
|
|
3466
|
-
export type AppsExecuteToolsetToolResponse = AppsExecuteToolsetToolResponses[keyof AppsExecuteToolsetToolResponses];
|
|
3467
|
-
export type CompleteOAuthFlowData = {
|
|
3468
|
-
/**
|
|
3469
|
-
* OAuth callback parameters from authorization server
|
|
3470
|
-
*/
|
|
3471
|
-
body: AuthCallbackRequest;
|
|
3472
|
-
path?: never;
|
|
3473
|
-
query?: never;
|
|
3474
|
-
url: '/bodhi/v1/auth/callback';
|
|
3475
|
-
};
|
|
3476
|
-
export type CompleteOAuthFlowErrors = {
|
|
3477
|
-
/**
|
|
3478
|
-
* Invalid request parameters
|
|
3479
|
-
*/
|
|
3480
|
-
400: OpenAiApiError;
|
|
3481
|
-
/**
|
|
3482
|
-
* Not authenticated
|
|
3483
|
-
*/
|
|
3484
|
-
401: OpenAiApiError;
|
|
3485
|
-
/**
|
|
3486
|
-
* Insufficient permissions
|
|
3487
|
-
*/
|
|
3488
|
-
403: OpenAiApiError;
|
|
3489
|
-
/**
|
|
3490
|
-
* OAuth error, invalid request parameters, or state mismatch
|
|
3068
|
+
* OAuth error, invalid request parameters, or state mismatch
|
|
3491
3069
|
*/
|
|
3492
3070
|
422: OpenAiApiError;
|
|
3493
3071
|
/**
|
|
@@ -3963,42 +3541,6 @@ export type McpOAuthTokenExchangeResponses = {
|
|
|
3963
3541
|
200: OAuthTokenResponse;
|
|
3964
3542
|
};
|
|
3965
3543
|
export type McpOAuthTokenExchangeResponse = McpOAuthTokenExchangeResponses[keyof McpOAuthTokenExchangeResponses];
|
|
3966
|
-
export type FetchMcpToolsData = {
|
|
3967
|
-
body: FetchMcpToolsRequest;
|
|
3968
|
-
path?: never;
|
|
3969
|
-
query?: never;
|
|
3970
|
-
url: '/bodhi/v1/mcps/fetch-tools';
|
|
3971
|
-
};
|
|
3972
|
-
export type FetchMcpToolsErrors = {
|
|
3973
|
-
/**
|
|
3974
|
-
* Invalid request parameters
|
|
3975
|
-
*/
|
|
3976
|
-
400: OpenAiApiError;
|
|
3977
|
-
/**
|
|
3978
|
-
* Not authenticated
|
|
3979
|
-
*/
|
|
3980
|
-
401: OpenAiApiError;
|
|
3981
|
-
/**
|
|
3982
|
-
* Insufficient permissions
|
|
3983
|
-
*/
|
|
3984
|
-
403: OpenAiApiError;
|
|
3985
|
-
/**
|
|
3986
|
-
* MCP server not found
|
|
3987
|
-
*/
|
|
3988
|
-
404: unknown;
|
|
3989
|
-
/**
|
|
3990
|
-
* Internal server error
|
|
3991
|
-
*/
|
|
3992
|
-
500: OpenAiApiError;
|
|
3993
|
-
};
|
|
3994
|
-
export type FetchMcpToolsError = FetchMcpToolsErrors[keyof FetchMcpToolsErrors];
|
|
3995
|
-
export type FetchMcpToolsResponses = {
|
|
3996
|
-
/**
|
|
3997
|
-
* List of tools from MCP server
|
|
3998
|
-
*/
|
|
3999
|
-
200: McpToolsResponse;
|
|
4000
|
-
};
|
|
4001
|
-
export type FetchMcpToolsResponse = FetchMcpToolsResponses[keyof FetchMcpToolsResponses];
|
|
4002
3544
|
export type DeleteMcpOAuthTokenData = {
|
|
4003
3545
|
body?: never;
|
|
4004
3546
|
path: {
|
|
@@ -4459,92 +4001,6 @@ export type UpdateMcpResponses = {
|
|
|
4459
4001
|
200: Mcp;
|
|
4460
4002
|
};
|
|
4461
4003
|
export type UpdateMcpResponse = UpdateMcpResponses[keyof UpdateMcpResponses];
|
|
4462
|
-
export type RefreshMcpToolsData = {
|
|
4463
|
-
body?: never;
|
|
4464
|
-
path: {
|
|
4465
|
-
/**
|
|
4466
|
-
* MCP instance UUID
|
|
4467
|
-
*/
|
|
4468
|
-
id: string;
|
|
4469
|
-
};
|
|
4470
|
-
query?: never;
|
|
4471
|
-
url: '/bodhi/v1/mcps/{id}/tools/refresh';
|
|
4472
|
-
};
|
|
4473
|
-
export type RefreshMcpToolsErrors = {
|
|
4474
|
-
/**
|
|
4475
|
-
* Invalid request parameters
|
|
4476
|
-
*/
|
|
4477
|
-
400: OpenAiApiError;
|
|
4478
|
-
/**
|
|
4479
|
-
* Not authenticated
|
|
4480
|
-
*/
|
|
4481
|
-
401: OpenAiApiError;
|
|
4482
|
-
/**
|
|
4483
|
-
* Insufficient permissions
|
|
4484
|
-
*/
|
|
4485
|
-
403: OpenAiApiError;
|
|
4486
|
-
/**
|
|
4487
|
-
* MCP not found
|
|
4488
|
-
*/
|
|
4489
|
-
404: unknown;
|
|
4490
|
-
/**
|
|
4491
|
-
* Internal server error
|
|
4492
|
-
*/
|
|
4493
|
-
500: OpenAiApiError;
|
|
4494
|
-
};
|
|
4495
|
-
export type RefreshMcpToolsError = RefreshMcpToolsErrors[keyof RefreshMcpToolsErrors];
|
|
4496
|
-
export type RefreshMcpToolsResponses = {
|
|
4497
|
-
/**
|
|
4498
|
-
* Refreshed list of tools
|
|
4499
|
-
*/
|
|
4500
|
-
200: McpToolsResponse;
|
|
4501
|
-
};
|
|
4502
|
-
export type RefreshMcpToolsResponse = RefreshMcpToolsResponses[keyof RefreshMcpToolsResponses];
|
|
4503
|
-
export type ExecuteMcpToolData = {
|
|
4504
|
-
body: McpExecuteRequest;
|
|
4505
|
-
path: {
|
|
4506
|
-
/**
|
|
4507
|
-
* MCP instance UUID
|
|
4508
|
-
*/
|
|
4509
|
-
id: string;
|
|
4510
|
-
/**
|
|
4511
|
-
* Tool name to execute
|
|
4512
|
-
*/
|
|
4513
|
-
tool_name: string;
|
|
4514
|
-
};
|
|
4515
|
-
query?: never;
|
|
4516
|
-
url: '/bodhi/v1/mcps/{id}/tools/{tool_name}/execute';
|
|
4517
|
-
};
|
|
4518
|
-
export type ExecuteMcpToolErrors = {
|
|
4519
|
-
/**
|
|
4520
|
-
* Invalid request parameters
|
|
4521
|
-
*/
|
|
4522
|
-
400: OpenAiApiError;
|
|
4523
|
-
/**
|
|
4524
|
-
* Not authenticated
|
|
4525
|
-
*/
|
|
4526
|
-
401: OpenAiApiError;
|
|
4527
|
-
/**
|
|
4528
|
-
* Insufficient permissions
|
|
4529
|
-
*/
|
|
4530
|
-
403: OpenAiApiError;
|
|
4531
|
-
/**
|
|
4532
|
-
* MCP or tool not found
|
|
4533
|
-
*/
|
|
4534
|
-
404: unknown;
|
|
4535
|
-
/**
|
|
4536
|
-
* Internal server error
|
|
4537
|
-
*/
|
|
4538
|
-
500: OpenAiApiError;
|
|
4539
|
-
};
|
|
4540
|
-
export type ExecuteMcpToolError = ExecuteMcpToolErrors[keyof ExecuteMcpToolErrors];
|
|
4541
|
-
export type ExecuteMcpToolResponses = {
|
|
4542
|
-
/**
|
|
4543
|
-
* Tool execution result
|
|
4544
|
-
*/
|
|
4545
|
-
200: McpExecuteResponse;
|
|
4546
|
-
};
|
|
4547
|
-
export type ExecuteMcpToolResponse = ExecuteMcpToolResponses[keyof ExecuteMcpToolResponses];
|
|
4548
4004
|
export type ListAllModelsData = {
|
|
4549
4005
|
body?: never;
|
|
4550
4006
|
path?: never;
|
|
@@ -5714,360 +5170,6 @@ export type UpdateApiTokenResponses = {
|
|
|
5714
5170
|
200: TokenDetail;
|
|
5715
5171
|
};
|
|
5716
5172
|
export type UpdateApiTokenResponse = UpdateApiTokenResponses[keyof UpdateApiTokenResponses];
|
|
5717
|
-
export type ListToolsetTypesData = {
|
|
5718
|
-
body?: never;
|
|
5719
|
-
path?: never;
|
|
5720
|
-
query?: never;
|
|
5721
|
-
url: '/bodhi/v1/toolset_types';
|
|
5722
|
-
};
|
|
5723
|
-
export type ListToolsetTypesErrors = {
|
|
5724
|
-
/**
|
|
5725
|
-
* Invalid request parameters
|
|
5726
|
-
*/
|
|
5727
|
-
400: OpenAiApiError;
|
|
5728
|
-
/**
|
|
5729
|
-
* Not authenticated
|
|
5730
|
-
*/
|
|
5731
|
-
401: OpenAiApiError;
|
|
5732
|
-
/**
|
|
5733
|
-
* Insufficient permissions
|
|
5734
|
-
*/
|
|
5735
|
-
403: OpenAiApiError;
|
|
5736
|
-
/**
|
|
5737
|
-
* Internal server error
|
|
5738
|
-
*/
|
|
5739
|
-
500: OpenAiApiError;
|
|
5740
|
-
};
|
|
5741
|
-
export type ListToolsetTypesError = ListToolsetTypesErrors[keyof ListToolsetTypesErrors];
|
|
5742
|
-
export type ListToolsetTypesResponses = {
|
|
5743
|
-
/**
|
|
5744
|
-
* List of all toolset types
|
|
5745
|
-
*/
|
|
5746
|
-
200: ListToolsetTypesResponse;
|
|
5747
|
-
};
|
|
5748
|
-
export type ListToolsetTypesResponse2 = ListToolsetTypesResponses[keyof ListToolsetTypesResponses];
|
|
5749
|
-
export type DisableToolsetTypeData = {
|
|
5750
|
-
body?: never;
|
|
5751
|
-
path: {
|
|
5752
|
-
/**
|
|
5753
|
-
* Toolset type identifier (e.g., 'builtin-exa-search')
|
|
5754
|
-
*/
|
|
5755
|
-
toolset_type: string;
|
|
5756
|
-
};
|
|
5757
|
-
query?: never;
|
|
5758
|
-
url: '/bodhi/v1/toolset_types/{toolset_type}/app-config';
|
|
5759
|
-
};
|
|
5760
|
-
export type DisableToolsetTypeErrors = {
|
|
5761
|
-
/**
|
|
5762
|
-
* Invalid request parameters
|
|
5763
|
-
*/
|
|
5764
|
-
400: OpenAiApiError;
|
|
5765
|
-
/**
|
|
5766
|
-
* Not authenticated
|
|
5767
|
-
*/
|
|
5768
|
-
401: OpenAiApiError;
|
|
5769
|
-
/**
|
|
5770
|
-
* Insufficient permissions
|
|
5771
|
-
*/
|
|
5772
|
-
403: OpenAiApiError;
|
|
5773
|
-
/**
|
|
5774
|
-
* Toolset type not found
|
|
5775
|
-
*/
|
|
5776
|
-
404: unknown;
|
|
5777
|
-
/**
|
|
5778
|
-
* Internal server error
|
|
5779
|
-
*/
|
|
5780
|
-
500: OpenAiApiError;
|
|
5781
|
-
};
|
|
5782
|
-
export type DisableToolsetTypeError = DisableToolsetTypeErrors[keyof DisableToolsetTypeErrors];
|
|
5783
|
-
export type DisableToolsetTypeResponses = {
|
|
5784
|
-
/**
|
|
5785
|
-
* Toolset type disabled
|
|
5786
|
-
*/
|
|
5787
|
-
200: AppToolsetConfig;
|
|
5788
|
-
};
|
|
5789
|
-
export type DisableToolsetTypeResponse = DisableToolsetTypeResponses[keyof DisableToolsetTypeResponses];
|
|
5790
|
-
export type EnableToolsetTypeData = {
|
|
5791
|
-
body?: never;
|
|
5792
|
-
path: {
|
|
5793
|
-
/**
|
|
5794
|
-
* Toolset type identifier (e.g., 'builtin-exa-search')
|
|
5795
|
-
*/
|
|
5796
|
-
toolset_type: string;
|
|
5797
|
-
};
|
|
5798
|
-
query?: never;
|
|
5799
|
-
url: '/bodhi/v1/toolset_types/{toolset_type}/app-config';
|
|
5800
|
-
};
|
|
5801
|
-
export type EnableToolsetTypeErrors = {
|
|
5802
|
-
/**
|
|
5803
|
-
* Invalid request parameters
|
|
5804
|
-
*/
|
|
5805
|
-
400: OpenAiApiError;
|
|
5806
|
-
/**
|
|
5807
|
-
* Not authenticated
|
|
5808
|
-
*/
|
|
5809
|
-
401: OpenAiApiError;
|
|
5810
|
-
/**
|
|
5811
|
-
* Insufficient permissions
|
|
5812
|
-
*/
|
|
5813
|
-
403: OpenAiApiError;
|
|
5814
|
-
/**
|
|
5815
|
-
* Toolset type not found
|
|
5816
|
-
*/
|
|
5817
|
-
404: unknown;
|
|
5818
|
-
/**
|
|
5819
|
-
* Internal server error
|
|
5820
|
-
*/
|
|
5821
|
-
500: OpenAiApiError;
|
|
5822
|
-
};
|
|
5823
|
-
export type EnableToolsetTypeError = EnableToolsetTypeErrors[keyof EnableToolsetTypeErrors];
|
|
5824
|
-
export type EnableToolsetTypeResponses = {
|
|
5825
|
-
/**
|
|
5826
|
-
* Toolset type enabled
|
|
5827
|
-
*/
|
|
5828
|
-
200: AppToolsetConfig;
|
|
5829
|
-
};
|
|
5830
|
-
export type EnableToolsetTypeResponse = EnableToolsetTypeResponses[keyof EnableToolsetTypeResponses];
|
|
5831
|
-
export type ListToolsetsData = {
|
|
5832
|
-
body?: never;
|
|
5833
|
-
path?: never;
|
|
5834
|
-
query?: never;
|
|
5835
|
-
url: '/bodhi/v1/toolsets';
|
|
5836
|
-
};
|
|
5837
|
-
export type ListToolsetsErrors = {
|
|
5838
|
-
/**
|
|
5839
|
-
* Invalid request parameters
|
|
5840
|
-
*/
|
|
5841
|
-
400: OpenAiApiError;
|
|
5842
|
-
/**
|
|
5843
|
-
* Not authenticated
|
|
5844
|
-
*/
|
|
5845
|
-
401: OpenAiApiError;
|
|
5846
|
-
/**
|
|
5847
|
-
* Insufficient permissions
|
|
5848
|
-
*/
|
|
5849
|
-
403: OpenAiApiError;
|
|
5850
|
-
/**
|
|
5851
|
-
* Internal server error
|
|
5852
|
-
*/
|
|
5853
|
-
500: OpenAiApiError;
|
|
5854
|
-
};
|
|
5855
|
-
export type ListToolsetsError = ListToolsetsErrors[keyof ListToolsetsErrors];
|
|
5856
|
-
export type ListToolsetsResponses = {
|
|
5857
|
-
/**
|
|
5858
|
-
* List of user's toolsets
|
|
5859
|
-
*/
|
|
5860
|
-
200: ListToolsetsResponse;
|
|
5861
|
-
};
|
|
5862
|
-
export type ListToolsetsResponse2 = ListToolsetsResponses[keyof ListToolsetsResponses];
|
|
5863
|
-
export type CreateToolsetData = {
|
|
5864
|
-
body: ToolsetRequest;
|
|
5865
|
-
path?: never;
|
|
5866
|
-
query?: never;
|
|
5867
|
-
url: '/bodhi/v1/toolsets';
|
|
5868
|
-
};
|
|
5869
|
-
export type CreateToolsetErrors = {
|
|
5870
|
-
/**
|
|
5871
|
-
* Invalid request parameters
|
|
5872
|
-
*/
|
|
5873
|
-
400: OpenAiApiError;
|
|
5874
|
-
/**
|
|
5875
|
-
* Not authenticated
|
|
5876
|
-
*/
|
|
5877
|
-
401: OpenAiApiError;
|
|
5878
|
-
/**
|
|
5879
|
-
* Insufficient permissions
|
|
5880
|
-
*/
|
|
5881
|
-
403: OpenAiApiError;
|
|
5882
|
-
/**
|
|
5883
|
-
* Name already exists
|
|
5884
|
-
*/
|
|
5885
|
-
409: unknown;
|
|
5886
|
-
/**
|
|
5887
|
-
* Internal server error
|
|
5888
|
-
*/
|
|
5889
|
-
500: OpenAiApiError;
|
|
5890
|
-
};
|
|
5891
|
-
export type CreateToolsetError = CreateToolsetErrors[keyof CreateToolsetErrors];
|
|
5892
|
-
export type CreateToolsetResponses = {
|
|
5893
|
-
/**
|
|
5894
|
-
* Toolset created
|
|
5895
|
-
*/
|
|
5896
|
-
201: ToolsetResponse;
|
|
5897
|
-
};
|
|
5898
|
-
export type CreateToolsetResponse = CreateToolsetResponses[keyof CreateToolsetResponses];
|
|
5899
|
-
export type DeleteToolsetData = {
|
|
5900
|
-
body?: never;
|
|
5901
|
-
path: {
|
|
5902
|
-
/**
|
|
5903
|
-
* Toolset instance UUID
|
|
5904
|
-
*/
|
|
5905
|
-
id: string;
|
|
5906
|
-
};
|
|
5907
|
-
query?: never;
|
|
5908
|
-
url: '/bodhi/v1/toolsets/{id}';
|
|
5909
|
-
};
|
|
5910
|
-
export type DeleteToolsetErrors = {
|
|
5911
|
-
/**
|
|
5912
|
-
* Invalid request parameters
|
|
5913
|
-
*/
|
|
5914
|
-
400: OpenAiApiError;
|
|
5915
|
-
/**
|
|
5916
|
-
* Not authenticated
|
|
5917
|
-
*/
|
|
5918
|
-
401: OpenAiApiError;
|
|
5919
|
-
/**
|
|
5920
|
-
* Insufficient permissions
|
|
5921
|
-
*/
|
|
5922
|
-
403: OpenAiApiError;
|
|
5923
|
-
/**
|
|
5924
|
-
* Toolset not found or not owned
|
|
5925
|
-
*/
|
|
5926
|
-
404: unknown;
|
|
5927
|
-
/**
|
|
5928
|
-
* Internal server error
|
|
5929
|
-
*/
|
|
5930
|
-
500: OpenAiApiError;
|
|
5931
|
-
};
|
|
5932
|
-
export type DeleteToolsetError = DeleteToolsetErrors[keyof DeleteToolsetErrors];
|
|
5933
|
-
export type DeleteToolsetResponses = {
|
|
5934
|
-
/**
|
|
5935
|
-
* Toolset deleted
|
|
5936
|
-
*/
|
|
5937
|
-
204: void;
|
|
5938
|
-
};
|
|
5939
|
-
export type DeleteToolsetResponse = DeleteToolsetResponses[keyof DeleteToolsetResponses];
|
|
5940
|
-
export type GetToolsetData = {
|
|
5941
|
-
body?: never;
|
|
5942
|
-
path: {
|
|
5943
|
-
/**
|
|
5944
|
-
* Toolset instance UUID
|
|
5945
|
-
*/
|
|
5946
|
-
id: string;
|
|
5947
|
-
};
|
|
5948
|
-
query?: never;
|
|
5949
|
-
url: '/bodhi/v1/toolsets/{id}';
|
|
5950
|
-
};
|
|
5951
|
-
export type GetToolsetErrors = {
|
|
5952
|
-
/**
|
|
5953
|
-
* Invalid request parameters
|
|
5954
|
-
*/
|
|
5955
|
-
400: OpenAiApiError;
|
|
5956
|
-
/**
|
|
5957
|
-
* Not authenticated
|
|
5958
|
-
*/
|
|
5959
|
-
401: OpenAiApiError;
|
|
5960
|
-
/**
|
|
5961
|
-
* Insufficient permissions
|
|
5962
|
-
*/
|
|
5963
|
-
403: OpenAiApiError;
|
|
5964
|
-
/**
|
|
5965
|
-
* Toolset not found or not owned
|
|
5966
|
-
*/
|
|
5967
|
-
404: unknown;
|
|
5968
|
-
/**
|
|
5969
|
-
* Internal server error
|
|
5970
|
-
*/
|
|
5971
|
-
500: OpenAiApiError;
|
|
5972
|
-
};
|
|
5973
|
-
export type GetToolsetError = GetToolsetErrors[keyof GetToolsetErrors];
|
|
5974
|
-
export type GetToolsetResponses = {
|
|
5975
|
-
/**
|
|
5976
|
-
* Toolset
|
|
5977
|
-
*/
|
|
5978
|
-
200: ToolsetResponse;
|
|
5979
|
-
};
|
|
5980
|
-
export type GetToolsetResponse = GetToolsetResponses[keyof GetToolsetResponses];
|
|
5981
|
-
export type UpdateToolsetData = {
|
|
5982
|
-
body: ToolsetRequest;
|
|
5983
|
-
path: {
|
|
5984
|
-
/**
|
|
5985
|
-
* Toolset instance UUID
|
|
5986
|
-
*/
|
|
5987
|
-
id: string;
|
|
5988
|
-
};
|
|
5989
|
-
query?: never;
|
|
5990
|
-
url: '/bodhi/v1/toolsets/{id}';
|
|
5991
|
-
};
|
|
5992
|
-
export type UpdateToolsetErrors = {
|
|
5993
|
-
/**
|
|
5994
|
-
* Invalid request parameters
|
|
5995
|
-
*/
|
|
5996
|
-
400: OpenAiApiError;
|
|
5997
|
-
/**
|
|
5998
|
-
* Not authenticated
|
|
5999
|
-
*/
|
|
6000
|
-
401: OpenAiApiError;
|
|
6001
|
-
/**
|
|
6002
|
-
* Insufficient permissions
|
|
6003
|
-
*/
|
|
6004
|
-
403: OpenAiApiError;
|
|
6005
|
-
/**
|
|
6006
|
-
* Toolset not found or not owned
|
|
6007
|
-
*/
|
|
6008
|
-
404: unknown;
|
|
6009
|
-
/**
|
|
6010
|
-
* Name already exists
|
|
6011
|
-
*/
|
|
6012
|
-
409: unknown;
|
|
6013
|
-
/**
|
|
6014
|
-
* Internal server error
|
|
6015
|
-
*/
|
|
6016
|
-
500: OpenAiApiError;
|
|
6017
|
-
};
|
|
6018
|
-
export type UpdateToolsetError = UpdateToolsetErrors[keyof UpdateToolsetErrors];
|
|
6019
|
-
export type UpdateToolsetResponses = {
|
|
6020
|
-
/**
|
|
6021
|
-
* Toolset updated
|
|
6022
|
-
*/
|
|
6023
|
-
200: ToolsetResponse;
|
|
6024
|
-
};
|
|
6025
|
-
export type UpdateToolsetResponse = UpdateToolsetResponses[keyof UpdateToolsetResponses];
|
|
6026
|
-
export type ExecuteToolsetToolData = {
|
|
6027
|
-
body: ExecuteToolsetRequest;
|
|
6028
|
-
path: {
|
|
6029
|
-
/**
|
|
6030
|
-
* Toolset instance UUID
|
|
6031
|
-
*/
|
|
6032
|
-
id: string;
|
|
6033
|
-
/**
|
|
6034
|
-
* Tool name to execute
|
|
6035
|
-
*/
|
|
6036
|
-
tool_name: string;
|
|
6037
|
-
};
|
|
6038
|
-
query?: never;
|
|
6039
|
-
url: '/bodhi/v1/toolsets/{id}/tools/{tool_name}/execute';
|
|
6040
|
-
};
|
|
6041
|
-
export type ExecuteToolsetToolErrors = {
|
|
6042
|
-
/**
|
|
6043
|
-
* Invalid request parameters
|
|
6044
|
-
*/
|
|
6045
|
-
400: OpenAiApiError;
|
|
6046
|
-
/**
|
|
6047
|
-
* Not authenticated
|
|
6048
|
-
*/
|
|
6049
|
-
401: OpenAiApiError;
|
|
6050
|
-
/**
|
|
6051
|
-
* Insufficient permissions
|
|
6052
|
-
*/
|
|
6053
|
-
403: OpenAiApiError;
|
|
6054
|
-
/**
|
|
6055
|
-
* Toolset or method not found
|
|
6056
|
-
*/
|
|
6057
|
-
404: unknown;
|
|
6058
|
-
/**
|
|
6059
|
-
* Internal server error
|
|
6060
|
-
*/
|
|
6061
|
-
500: OpenAiApiError;
|
|
6062
|
-
};
|
|
6063
|
-
export type ExecuteToolsetToolError = ExecuteToolsetToolErrors[keyof ExecuteToolsetToolErrors];
|
|
6064
|
-
export type ExecuteToolsetToolResponses = {
|
|
6065
|
-
/**
|
|
6066
|
-
* Tool execution result
|
|
6067
|
-
*/
|
|
6068
|
-
200: ToolsetExecutionResponse;
|
|
6069
|
-
};
|
|
6070
|
-
export type ExecuteToolsetToolResponse = ExecuteToolsetToolResponses[keyof ExecuteToolsetToolResponses];
|
|
6071
5173
|
export type GetCurrentUserData = {
|
|
6072
5174
|
body?: never;
|
|
6073
5175
|
path?: never;
|