@bodhiapp/ts-client 0.1.21 → 0.1.23
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.
|
@@ -1289,7 +1289,7 @@ export interface paths {
|
|
|
1289
1289
|
};
|
|
1290
1290
|
/**
|
|
1291
1291
|
* Get Current User Information
|
|
1292
|
-
* @description Retrieves information about the currently authenticated user. This endpoint supports optional authentication - returns `logged_out` status if not authenticated, or user details with roles/scopes if authenticated via any method (session, API token, or OAuth exchange). Includes `
|
|
1292
|
+
* @description Retrieves information about the currently authenticated user. This endpoint supports optional authentication - returns `logged_out` status if not authenticated, or user details with roles/scopes if authenticated via any method (session, API token, or OAuth exchange). Includes `dashboard` object when the user has an active dashboard session.
|
|
1293
1293
|
*/
|
|
1294
1294
|
get: operations["getCurrentUser"];
|
|
1295
1295
|
put?: never;
|
|
@@ -1372,7 +1372,7 @@ export interface paths {
|
|
|
1372
1372
|
post?: never;
|
|
1373
1373
|
/**
|
|
1374
1374
|
* Remove user access
|
|
1375
|
-
* @description Remove a user's access to the application. Only
|
|
1375
|
+
* @description Remove a user's access to the application. Only managers or above can remove users.
|
|
1376
1376
|
*/
|
|
1377
1377
|
delete: operations["removeUser"];
|
|
1378
1378
|
options?: never;
|
|
@@ -1720,7 +1720,7 @@ export interface components {
|
|
|
1720
1720
|
* @example ready
|
|
1721
1721
|
* @enum {string}
|
|
1722
1722
|
*/
|
|
1723
|
-
AppStatus: "setup" | "ready" | "resource_admin"
|
|
1723
|
+
AppStatus: "setup" | "ready" | "resource_admin";
|
|
1724
1724
|
/** @description Application-level toolset configuration */
|
|
1725
1725
|
AppToolsetConfig: {
|
|
1726
1726
|
/** @description Toolset type identifier (e.g., "builtin-exa-search") */
|
|
@@ -2534,8 +2534,7 @@ export interface components {
|
|
|
2534
2534
|
* The JSON `"type"` field determines the variant: `"header"` or `"oauth"`. */
|
|
2535
2535
|
CreateMcpAuthConfigRequest: {
|
|
2536
2536
|
name: string;
|
|
2537
|
-
|
|
2538
|
-
header_value: string;
|
|
2537
|
+
entries: components["schemas"]["McpAuthConfigParamInput"][];
|
|
2539
2538
|
/** @enum {string} */
|
|
2540
2539
|
type: "header";
|
|
2541
2540
|
} | {
|
|
@@ -2610,6 +2609,13 @@ export interface components {
|
|
|
2610
2609
|
/** @enum {string} */
|
|
2611
2610
|
type: "grammar";
|
|
2612
2611
|
};
|
|
2612
|
+
/** @description Dashboard user information from a validated dashboard session token */
|
|
2613
|
+
DashboardUser: {
|
|
2614
|
+
user_id: string;
|
|
2615
|
+
username: string;
|
|
2616
|
+
first_name?: string | null;
|
|
2617
|
+
last_name?: string | null;
|
|
2618
|
+
};
|
|
2613
2619
|
/** @enum {string} */
|
|
2614
2620
|
DeploymentMode: "standalone" | "multi_tenant";
|
|
2615
2621
|
DownloadRequest: {
|
|
@@ -2717,7 +2723,9 @@ export interface components {
|
|
|
2717
2723
|
FetchMcpToolsRequest: {
|
|
2718
2724
|
mcp_server_id: string;
|
|
2719
2725
|
auth?: null | components["schemas"]["McpAuth"];
|
|
2720
|
-
|
|
2726
|
+
credentials?: components["schemas"]["McpAuthParamInput"][] | null;
|
|
2727
|
+
auth_config_id?: string | null;
|
|
2728
|
+
oauth_token_id?: string | null;
|
|
2721
2729
|
};
|
|
2722
2730
|
/**
|
|
2723
2731
|
* @description Request to fetch available models from provider
|
|
@@ -2887,8 +2895,8 @@ export interface components {
|
|
|
2887
2895
|
/** @description Whitelisted tool names (empty = block all) */
|
|
2888
2896
|
tools_filter?: string[] | null;
|
|
2889
2897
|
auth_type: components["schemas"]["McpAuthType"];
|
|
2890
|
-
/** @description Reference to the auth config (
|
|
2891
|
-
|
|
2898
|
+
/** @description Reference to the auth config (mcp_auth_configs.id) */
|
|
2899
|
+
auth_config_id?: string | null;
|
|
2892
2900
|
/**
|
|
2893
2901
|
* Format: date-time
|
|
2894
2902
|
* @description When this instance was created
|
|
@@ -2916,14 +2924,23 @@ export interface components {
|
|
|
2916
2924
|
/** @enum {string} */
|
|
2917
2925
|
type: "header";
|
|
2918
2926
|
};
|
|
2927
|
+
McpAuthConfigParam: {
|
|
2928
|
+
id: string;
|
|
2929
|
+
param_type: components["schemas"]["McpAuthParamType"];
|
|
2930
|
+
param_key: string;
|
|
2931
|
+
};
|
|
2932
|
+
McpAuthConfigParamInput: {
|
|
2933
|
+
param_type: components["schemas"]["McpAuthParamType"];
|
|
2934
|
+
param_key: string;
|
|
2935
|
+
};
|
|
2919
2936
|
/** @description Discriminated union response for any type of MCP auth config.
|
|
2920
2937
|
* The JSON `"type"` field determines the variant: `"header"` or `"oauth"`. */
|
|
2921
2938
|
McpAuthConfigResponse: {
|
|
2922
2939
|
id: string;
|
|
2923
2940
|
name: string;
|
|
2924
2941
|
mcp_server_id: string;
|
|
2925
|
-
|
|
2926
|
-
|
|
2942
|
+
created_by: string;
|
|
2943
|
+
entries: components["schemas"]["McpAuthConfigParam"][];
|
|
2927
2944
|
/** Format: date-time */
|
|
2928
2945
|
created_at: string;
|
|
2929
2946
|
/** Format: date-time */
|
|
@@ -2934,6 +2951,7 @@ export interface components {
|
|
|
2934
2951
|
id: string;
|
|
2935
2952
|
name: string;
|
|
2936
2953
|
mcp_server_id: string;
|
|
2954
|
+
created_by: string;
|
|
2937
2955
|
registration_type: components["schemas"]["RegistrationType"];
|
|
2938
2956
|
client_id: string;
|
|
2939
2957
|
authorization_endpoint: string;
|
|
@@ -2952,10 +2970,25 @@ export interface components {
|
|
|
2952
2970
|
/** @enum {string} */
|
|
2953
2971
|
type: "oauth";
|
|
2954
2972
|
};
|
|
2973
|
+
/** @enum {string} */
|
|
2974
|
+
McpAuthConfigType: "header" | "oauth";
|
|
2955
2975
|
/** @description List wrapper for unified auth config responses. */
|
|
2956
2976
|
McpAuthConfigsListResponse: {
|
|
2957
2977
|
auth_configs: components["schemas"]["McpAuthConfigResponse"][];
|
|
2958
2978
|
};
|
|
2979
|
+
McpAuthParam: {
|
|
2980
|
+
id: string;
|
|
2981
|
+
param_type: components["schemas"]["McpAuthParamType"];
|
|
2982
|
+
param_key: string;
|
|
2983
|
+
has_value: boolean;
|
|
2984
|
+
};
|
|
2985
|
+
McpAuthParamInput: {
|
|
2986
|
+
param_type: components["schemas"]["McpAuthParamType"];
|
|
2987
|
+
param_key: string;
|
|
2988
|
+
value: string;
|
|
2989
|
+
};
|
|
2990
|
+
/** @enum {string} */
|
|
2991
|
+
McpAuthParamType: "header" | "query";
|
|
2959
2992
|
/** @enum {string} */
|
|
2960
2993
|
McpAuthType: "public" | "header" | "oauth";
|
|
2961
2994
|
McpExecuteRequest: {
|
|
@@ -2987,7 +3020,11 @@ export interface components {
|
|
|
2987
3020
|
/** @description Authentication type */
|
|
2988
3021
|
auth_type?: components["schemas"]["McpAuthType"];
|
|
2989
3022
|
/** @description Reference to auth config */
|
|
2990
|
-
|
|
3023
|
+
auth_config_id?: string | null;
|
|
3024
|
+
/** @description Instance-level auth params (values for the auth config's key definitions) */
|
|
3025
|
+
credentials?: components["schemas"]["McpAuthParamInput"][] | null;
|
|
3026
|
+
/** @description OAuth token ID to link to this MCP instance (set after OAuth flow) */
|
|
3027
|
+
oauth_token_id?: string | null;
|
|
2991
3028
|
};
|
|
2992
3029
|
/** @description Admin-managed MCP server registry entry.
|
|
2993
3030
|
* Admins/managers register MCP server URLs that users can then create instances of. */
|
|
@@ -3198,17 +3235,18 @@ export interface components {
|
|
|
3198
3235
|
authorization_url: string;
|
|
3199
3236
|
};
|
|
3200
3237
|
OAuthTokenExchangeRequest: {
|
|
3238
|
+
mcp_id?: string | null;
|
|
3201
3239
|
code: string;
|
|
3202
3240
|
redirect_uri: string;
|
|
3203
3241
|
state: string;
|
|
3204
3242
|
};
|
|
3205
3243
|
OAuthTokenResponse: {
|
|
3206
3244
|
id: string;
|
|
3207
|
-
|
|
3245
|
+
mcp_id?: string | null;
|
|
3246
|
+
auth_config_id: string;
|
|
3208
3247
|
scopes_granted?: string | null;
|
|
3209
3248
|
/** Format: int64 */
|
|
3210
3249
|
expires_at?: number | null;
|
|
3211
|
-
has_access_token: boolean;
|
|
3212
3250
|
has_refresh_token: boolean;
|
|
3213
3251
|
user_id: string;
|
|
3214
3252
|
created_at: string;
|
|
@@ -3475,7 +3513,7 @@ export interface components {
|
|
|
3475
3513
|
mcp_servers?: components["schemas"]["RequestedMcpServer"][];
|
|
3476
3514
|
};
|
|
3477
3515
|
/** @enum {string} */
|
|
3478
|
-
ResourceRole: "resource_user" | "resource_power_user" | "resource_manager" | "resource_admin";
|
|
3516
|
+
ResourceRole: "resource_anonymous" | "resource_guest" | "resource_user" | "resource_power_user" | "resource_manager" | "resource_admin";
|
|
3479
3517
|
ResponseFormat: {
|
|
3480
3518
|
/** @enum {string} */
|
|
3481
3519
|
type: "text";
|
|
@@ -3961,8 +3999,7 @@ export interface components {
|
|
|
3961
3999
|
};
|
|
3962
4000
|
/** @description Envelope wrapping UserResponse with additional session info */
|
|
3963
4001
|
UserInfoEnvelope: components["schemas"]["UserResponse"] & {
|
|
3964
|
-
|
|
3965
|
-
has_dashboard_session?: boolean;
|
|
4002
|
+
dashboard?: null | components["schemas"]["DashboardUser"];
|
|
3966
4003
|
};
|
|
3967
4004
|
UserListResponse: {
|
|
3968
4005
|
/** @example resource-abc123def456 */
|
|
@@ -1290,7 +1290,7 @@ export interface paths {
|
|
|
1290
1290
|
};
|
|
1291
1291
|
/**
|
|
1292
1292
|
* Get Current User Information
|
|
1293
|
-
* @description Retrieves information about the currently authenticated user. This endpoint supports optional authentication - returns `logged_out` status if not authenticated, or user details with roles/scopes if authenticated via any method (session, API token, or OAuth exchange). Includes `
|
|
1293
|
+
* @description Retrieves information about the currently authenticated user. This endpoint supports optional authentication - returns `logged_out` status if not authenticated, or user details with roles/scopes if authenticated via any method (session, API token, or OAuth exchange). Includes `dashboard` object when the user has an active dashboard session.
|
|
1294
1294
|
*/
|
|
1295
1295
|
get: operations["getCurrentUser"];
|
|
1296
1296
|
put?: never;
|
|
@@ -1373,7 +1373,7 @@ export interface paths {
|
|
|
1373
1373
|
post?: never;
|
|
1374
1374
|
/**
|
|
1375
1375
|
* Remove user access
|
|
1376
|
-
* @description Remove a user's access to the application. Only
|
|
1376
|
+
* @description Remove a user's access to the application. Only managers or above can remove users.
|
|
1377
1377
|
*/
|
|
1378
1378
|
delete: operations["removeUser"];
|
|
1379
1379
|
options?: never;
|
|
@@ -1721,7 +1721,7 @@ export interface components {
|
|
|
1721
1721
|
* @example ready
|
|
1722
1722
|
* @enum {string}
|
|
1723
1723
|
*/
|
|
1724
|
-
AppStatus: "setup" | "ready" | "resource_admin"
|
|
1724
|
+
AppStatus: "setup" | "ready" | "resource_admin";
|
|
1725
1725
|
/** @description Application-level toolset configuration */
|
|
1726
1726
|
AppToolsetConfig: {
|
|
1727
1727
|
/** @description Toolset type identifier (e.g., "builtin-exa-search") */
|
|
@@ -2535,8 +2535,7 @@ export interface components {
|
|
|
2535
2535
|
* The JSON `"type"` field determines the variant: `"header"` or `"oauth"`. */
|
|
2536
2536
|
CreateMcpAuthConfigRequest: {
|
|
2537
2537
|
name: string;
|
|
2538
|
-
|
|
2539
|
-
header_value: string;
|
|
2538
|
+
entries: components["schemas"]["McpAuthConfigParamInput"][];
|
|
2540
2539
|
/** @enum {string} */
|
|
2541
2540
|
type: "header";
|
|
2542
2541
|
} | {
|
|
@@ -2611,6 +2610,13 @@ export interface components {
|
|
|
2611
2610
|
/** @enum {string} */
|
|
2612
2611
|
type: "grammar";
|
|
2613
2612
|
};
|
|
2613
|
+
/** @description Dashboard user information from a validated dashboard session token */
|
|
2614
|
+
DashboardUser: {
|
|
2615
|
+
user_id: string;
|
|
2616
|
+
username: string;
|
|
2617
|
+
first_name?: string | null;
|
|
2618
|
+
last_name?: string | null;
|
|
2619
|
+
};
|
|
2614
2620
|
/** @enum {string} */
|
|
2615
2621
|
DeploymentMode: "standalone" | "multi_tenant";
|
|
2616
2622
|
DownloadRequest: {
|
|
@@ -2718,7 +2724,9 @@ export interface components {
|
|
|
2718
2724
|
FetchMcpToolsRequest: {
|
|
2719
2725
|
mcp_server_id: string;
|
|
2720
2726
|
auth?: null | components["schemas"]["McpAuth"];
|
|
2721
|
-
|
|
2727
|
+
credentials?: components["schemas"]["McpAuthParamInput"][] | null;
|
|
2728
|
+
auth_config_id?: string | null;
|
|
2729
|
+
oauth_token_id?: string | null;
|
|
2722
2730
|
};
|
|
2723
2731
|
/**
|
|
2724
2732
|
* @description Request to fetch available models from provider
|
|
@@ -2888,8 +2896,8 @@ export interface components {
|
|
|
2888
2896
|
/** @description Whitelisted tool names (empty = block all) */
|
|
2889
2897
|
tools_filter?: string[] | null;
|
|
2890
2898
|
auth_type: components["schemas"]["McpAuthType"];
|
|
2891
|
-
/** @description Reference to the auth config (
|
|
2892
|
-
|
|
2899
|
+
/** @description Reference to the auth config (mcp_auth_configs.id) */
|
|
2900
|
+
auth_config_id?: string | null;
|
|
2893
2901
|
/**
|
|
2894
2902
|
* Format: date-time
|
|
2895
2903
|
* @description When this instance was created
|
|
@@ -2917,14 +2925,23 @@ export interface components {
|
|
|
2917
2925
|
/** @enum {string} */
|
|
2918
2926
|
type: "header";
|
|
2919
2927
|
};
|
|
2928
|
+
McpAuthConfigParam: {
|
|
2929
|
+
id: string;
|
|
2930
|
+
param_type: components["schemas"]["McpAuthParamType"];
|
|
2931
|
+
param_key: string;
|
|
2932
|
+
};
|
|
2933
|
+
McpAuthConfigParamInput: {
|
|
2934
|
+
param_type: components["schemas"]["McpAuthParamType"];
|
|
2935
|
+
param_key: string;
|
|
2936
|
+
};
|
|
2920
2937
|
/** @description Discriminated union response for any type of MCP auth config.
|
|
2921
2938
|
* The JSON `"type"` field determines the variant: `"header"` or `"oauth"`. */
|
|
2922
2939
|
McpAuthConfigResponse: {
|
|
2923
2940
|
id: string;
|
|
2924
2941
|
name: string;
|
|
2925
2942
|
mcp_server_id: string;
|
|
2926
|
-
|
|
2927
|
-
|
|
2943
|
+
created_by: string;
|
|
2944
|
+
entries: components["schemas"]["McpAuthConfigParam"][];
|
|
2928
2945
|
/** Format: date-time */
|
|
2929
2946
|
created_at: string;
|
|
2930
2947
|
/** Format: date-time */
|
|
@@ -2935,6 +2952,7 @@ export interface components {
|
|
|
2935
2952
|
id: string;
|
|
2936
2953
|
name: string;
|
|
2937
2954
|
mcp_server_id: string;
|
|
2955
|
+
created_by: string;
|
|
2938
2956
|
registration_type: components["schemas"]["RegistrationType"];
|
|
2939
2957
|
client_id: string;
|
|
2940
2958
|
authorization_endpoint: string;
|
|
@@ -2953,10 +2971,25 @@ export interface components {
|
|
|
2953
2971
|
/** @enum {string} */
|
|
2954
2972
|
type: "oauth";
|
|
2955
2973
|
};
|
|
2974
|
+
/** @enum {string} */
|
|
2975
|
+
McpAuthConfigType: "header" | "oauth";
|
|
2956
2976
|
/** @description List wrapper for unified auth config responses. */
|
|
2957
2977
|
McpAuthConfigsListResponse: {
|
|
2958
2978
|
auth_configs: components["schemas"]["McpAuthConfigResponse"][];
|
|
2959
2979
|
};
|
|
2980
|
+
McpAuthParam: {
|
|
2981
|
+
id: string;
|
|
2982
|
+
param_type: components["schemas"]["McpAuthParamType"];
|
|
2983
|
+
param_key: string;
|
|
2984
|
+
has_value: boolean;
|
|
2985
|
+
};
|
|
2986
|
+
McpAuthParamInput: {
|
|
2987
|
+
param_type: components["schemas"]["McpAuthParamType"];
|
|
2988
|
+
param_key: string;
|
|
2989
|
+
value: string;
|
|
2990
|
+
};
|
|
2991
|
+
/** @enum {string} */
|
|
2992
|
+
McpAuthParamType: "header" | "query";
|
|
2960
2993
|
/** @enum {string} */
|
|
2961
2994
|
McpAuthType: "public" | "header" | "oauth";
|
|
2962
2995
|
McpExecuteRequest: {
|
|
@@ -2988,7 +3021,11 @@ export interface components {
|
|
|
2988
3021
|
/** @description Authentication type */
|
|
2989
3022
|
auth_type?: components["schemas"]["McpAuthType"];
|
|
2990
3023
|
/** @description Reference to auth config */
|
|
2991
|
-
|
|
3024
|
+
auth_config_id?: string | null;
|
|
3025
|
+
/** @description Instance-level auth params (values for the auth config's key definitions) */
|
|
3026
|
+
credentials?: components["schemas"]["McpAuthParamInput"][] | null;
|
|
3027
|
+
/** @description OAuth token ID to link to this MCP instance (set after OAuth flow) */
|
|
3028
|
+
oauth_token_id?: string | null;
|
|
2992
3029
|
};
|
|
2993
3030
|
/** @description Admin-managed MCP server registry entry.
|
|
2994
3031
|
* Admins/managers register MCP server URLs that users can then create instances of. */
|
|
@@ -3199,17 +3236,18 @@ export interface components {
|
|
|
3199
3236
|
authorization_url: string;
|
|
3200
3237
|
};
|
|
3201
3238
|
OAuthTokenExchangeRequest: {
|
|
3239
|
+
mcp_id?: string | null;
|
|
3202
3240
|
code: string;
|
|
3203
3241
|
redirect_uri: string;
|
|
3204
3242
|
state: string;
|
|
3205
3243
|
};
|
|
3206
3244
|
OAuthTokenResponse: {
|
|
3207
3245
|
id: string;
|
|
3208
|
-
|
|
3246
|
+
mcp_id?: string | null;
|
|
3247
|
+
auth_config_id: string;
|
|
3209
3248
|
scopes_granted?: string | null;
|
|
3210
3249
|
/** Format: int64 */
|
|
3211
3250
|
expires_at?: number | null;
|
|
3212
|
-
has_access_token: boolean;
|
|
3213
3251
|
has_refresh_token: boolean;
|
|
3214
3252
|
user_id: string;
|
|
3215
3253
|
created_at: string;
|
|
@@ -3476,7 +3514,7 @@ export interface components {
|
|
|
3476
3514
|
mcp_servers?: components["schemas"]["RequestedMcpServer"][];
|
|
3477
3515
|
};
|
|
3478
3516
|
/** @enum {string} */
|
|
3479
|
-
ResourceRole: "resource_user" | "resource_power_user" | "resource_manager" | "resource_admin";
|
|
3517
|
+
ResourceRole: "resource_anonymous" | "resource_guest" | "resource_user" | "resource_power_user" | "resource_manager" | "resource_admin";
|
|
3480
3518
|
ResponseFormat: {
|
|
3481
3519
|
/** @enum {string} */
|
|
3482
3520
|
type: "text";
|
|
@@ -3962,8 +4000,7 @@ export interface components {
|
|
|
3962
4000
|
};
|
|
3963
4001
|
/** @description Envelope wrapping UserResponse with additional session info */
|
|
3964
4002
|
UserInfoEnvelope: components["schemas"]["UserResponse"] & {
|
|
3965
|
-
|
|
3966
|
-
has_dashboard_session?: boolean;
|
|
4003
|
+
dashboard?: null | components["schemas"]["DashboardUser"];
|
|
3967
4004
|
};
|
|
3968
4005
|
UserListResponse: {
|
|
3969
4006
|
/** @example resource-abc123def456 */
|
|
@@ -205,7 +205,7 @@ export type AppInfo = {
|
|
|
205
205
|
url: string;
|
|
206
206
|
};
|
|
207
207
|
export type AppRole = ResourceRole | TokenScope | UserScope;
|
|
208
|
-
export type AppStatus = 'setup' | 'ready' | 'resource_admin'
|
|
208
|
+
export type AppStatus = 'setup' | 'ready' | 'resource_admin';
|
|
209
209
|
/**
|
|
210
210
|
* Application-level toolset configuration
|
|
211
211
|
*/
|
|
@@ -1104,8 +1104,7 @@ export type CreateEmbeddingResponse = {
|
|
|
1104
1104
|
*/
|
|
1105
1105
|
export type CreateMcpAuthConfigRequest = {
|
|
1106
1106
|
name: string;
|
|
1107
|
-
|
|
1108
|
-
header_value: string;
|
|
1107
|
+
entries: Array<McpAuthConfigParamInput>;
|
|
1109
1108
|
type: 'header';
|
|
1110
1109
|
} | {
|
|
1111
1110
|
name: string;
|
|
@@ -1190,6 +1189,15 @@ export type CustomToolPropertiesFormat = {
|
|
|
1190
1189
|
grammar: CustomGrammarFormatParam;
|
|
1191
1190
|
type: 'grammar';
|
|
1192
1191
|
};
|
|
1192
|
+
/**
|
|
1193
|
+
* Dashboard user information from a validated dashboard session token
|
|
1194
|
+
*/
|
|
1195
|
+
export type DashboardUser = {
|
|
1196
|
+
user_id: string;
|
|
1197
|
+
username: string;
|
|
1198
|
+
first_name?: string | null;
|
|
1199
|
+
last_name?: string | null;
|
|
1200
|
+
};
|
|
1193
1201
|
export type DeploymentMode = 'standalone' | 'multi_tenant';
|
|
1194
1202
|
export type DownloadRequest = {
|
|
1195
1203
|
id: string;
|
|
@@ -1279,7 +1287,9 @@ export type ExecuteToolsetRequest = {
|
|
|
1279
1287
|
export type FetchMcpToolsRequest = {
|
|
1280
1288
|
mcp_server_id: string;
|
|
1281
1289
|
auth?: null | McpAuth;
|
|
1282
|
-
|
|
1290
|
+
credentials?: Array<McpAuthParamInput> | null;
|
|
1291
|
+
auth_config_id?: string | null;
|
|
1292
|
+
oauth_token_id?: string | null;
|
|
1283
1293
|
};
|
|
1284
1294
|
/**
|
|
1285
1295
|
* Request to fetch available models from provider
|
|
@@ -1489,9 +1499,9 @@ export type Mcp = {
|
|
|
1489
1499
|
tools_filter?: Array<string> | null;
|
|
1490
1500
|
auth_type: McpAuthType;
|
|
1491
1501
|
/**
|
|
1492
|
-
* Reference to the auth config (
|
|
1502
|
+
* Reference to the auth config (mcp_auth_configs.id)
|
|
1493
1503
|
*/
|
|
1494
|
-
|
|
1504
|
+
auth_config_id?: string | null;
|
|
1495
1505
|
/**
|
|
1496
1506
|
* When this instance was created
|
|
1497
1507
|
*/
|
|
@@ -1513,6 +1523,15 @@ export type McpAuth = {
|
|
|
1513
1523
|
header_value: string;
|
|
1514
1524
|
type: 'header';
|
|
1515
1525
|
};
|
|
1526
|
+
export type McpAuthConfigParam = {
|
|
1527
|
+
id: string;
|
|
1528
|
+
param_type: McpAuthParamType;
|
|
1529
|
+
param_key: string;
|
|
1530
|
+
};
|
|
1531
|
+
export type McpAuthConfigParamInput = {
|
|
1532
|
+
param_type: McpAuthParamType;
|
|
1533
|
+
param_key: string;
|
|
1534
|
+
};
|
|
1516
1535
|
/**
|
|
1517
1536
|
* Discriminated union response for any type of MCP auth config.
|
|
1518
1537
|
* The JSON `"type"` field determines the variant: `"header"` or `"oauth"`.
|
|
@@ -1521,8 +1540,8 @@ export type McpAuthConfigResponse = {
|
|
|
1521
1540
|
id: string;
|
|
1522
1541
|
name: string;
|
|
1523
1542
|
mcp_server_id: string;
|
|
1524
|
-
|
|
1525
|
-
|
|
1543
|
+
created_by: string;
|
|
1544
|
+
entries: Array<McpAuthConfigParam>;
|
|
1526
1545
|
created_at: string;
|
|
1527
1546
|
updated_at: string;
|
|
1528
1547
|
type: 'header';
|
|
@@ -1530,6 +1549,7 @@ export type McpAuthConfigResponse = {
|
|
|
1530
1549
|
id: string;
|
|
1531
1550
|
name: string;
|
|
1532
1551
|
mcp_server_id: string;
|
|
1552
|
+
created_by: string;
|
|
1533
1553
|
registration_type: RegistrationType;
|
|
1534
1554
|
client_id: string;
|
|
1535
1555
|
authorization_endpoint: string;
|
|
@@ -1544,12 +1564,25 @@ export type McpAuthConfigResponse = {
|
|
|
1544
1564
|
updated_at: string;
|
|
1545
1565
|
type: 'oauth';
|
|
1546
1566
|
};
|
|
1567
|
+
export type McpAuthConfigType = 'header' | 'oauth';
|
|
1547
1568
|
/**
|
|
1548
1569
|
* List wrapper for unified auth config responses.
|
|
1549
1570
|
*/
|
|
1550
1571
|
export type McpAuthConfigsListResponse = {
|
|
1551
1572
|
auth_configs: Array<McpAuthConfigResponse>;
|
|
1552
1573
|
};
|
|
1574
|
+
export type McpAuthParam = {
|
|
1575
|
+
id: string;
|
|
1576
|
+
param_type: McpAuthParamType;
|
|
1577
|
+
param_key: string;
|
|
1578
|
+
has_value: boolean;
|
|
1579
|
+
};
|
|
1580
|
+
export type McpAuthParamInput = {
|
|
1581
|
+
param_type: McpAuthParamType;
|
|
1582
|
+
param_key: string;
|
|
1583
|
+
value: string;
|
|
1584
|
+
};
|
|
1585
|
+
export type McpAuthParamType = 'header' | 'query';
|
|
1553
1586
|
export type McpAuthType = 'public' | 'header' | 'oauth';
|
|
1554
1587
|
export type McpExecuteRequest = {
|
|
1555
1588
|
params: unknown;
|
|
@@ -1600,7 +1633,15 @@ export type McpRequest = {
|
|
|
1600
1633
|
/**
|
|
1601
1634
|
* Reference to auth config
|
|
1602
1635
|
*/
|
|
1603
|
-
|
|
1636
|
+
auth_config_id?: string | null;
|
|
1637
|
+
/**
|
|
1638
|
+
* Instance-level auth params (values for the auth config's key definitions)
|
|
1639
|
+
*/
|
|
1640
|
+
credentials?: Array<McpAuthParamInput> | null;
|
|
1641
|
+
/**
|
|
1642
|
+
* OAuth token ID to link to this MCP instance (set after OAuth flow)
|
|
1643
|
+
*/
|
|
1644
|
+
oauth_token_id?: string | null;
|
|
1604
1645
|
};
|
|
1605
1646
|
/**
|
|
1606
1647
|
* Admin-managed MCP server registry entry.
|
|
@@ -1846,16 +1887,17 @@ export type OAuthLoginResponse = {
|
|
|
1846
1887
|
authorization_url: string;
|
|
1847
1888
|
};
|
|
1848
1889
|
export type OAuthTokenExchangeRequest = {
|
|
1890
|
+
mcp_id?: string | null;
|
|
1849
1891
|
code: string;
|
|
1850
1892
|
redirect_uri: string;
|
|
1851
1893
|
state: string;
|
|
1852
1894
|
};
|
|
1853
1895
|
export type OAuthTokenResponse = {
|
|
1854
1896
|
id: string;
|
|
1855
|
-
|
|
1897
|
+
mcp_id?: string | null;
|
|
1898
|
+
auth_config_id: string;
|
|
1856
1899
|
scopes_granted?: string | null;
|
|
1857
1900
|
expires_at?: number | null;
|
|
1858
|
-
has_access_token: boolean;
|
|
1859
1901
|
has_refresh_token: boolean;
|
|
1860
1902
|
user_id: string;
|
|
1861
1903
|
created_at: string;
|
|
@@ -2094,7 +2136,7 @@ export type RequestedResources = {
|
|
|
2094
2136
|
toolset_types?: Array<ToolsetTypeRequest>;
|
|
2095
2137
|
mcp_servers?: Array<RequestedMcpServer>;
|
|
2096
2138
|
};
|
|
2097
|
-
export type ResourceRole = 'resource_user' | 'resource_power_user' | 'resource_manager' | 'resource_admin';
|
|
2139
|
+
export type ResourceRole = 'resource_anonymous' | 'resource_guest' | 'resource_user' | 'resource_power_user' | 'resource_manager' | 'resource_admin';
|
|
2098
2140
|
export type ResponseFormat = {
|
|
2099
2141
|
type: 'text';
|
|
2100
2142
|
} | {
|
|
@@ -2609,10 +2651,7 @@ export type UserInfo = {
|
|
|
2609
2651
|
* Envelope wrapping UserResponse with additional session info
|
|
2610
2652
|
*/
|
|
2611
2653
|
export type UserInfoEnvelope = UserResponse & {
|
|
2612
|
-
|
|
2613
|
-
* Whether the user has an active dashboard session (only present when true)
|
|
2614
|
-
*/
|
|
2615
|
-
has_dashboard_session?: boolean;
|
|
2654
|
+
dashboard?: null | DashboardUser;
|
|
2616
2655
|
};
|
|
2617
2656
|
export type UserListResponse = {
|
|
2618
2657
|
client_id: string;
|
package/dist/types/types.gen.ts
CHANGED
|
@@ -222,7 +222,7 @@ export type AppInfo = {
|
|
|
222
222
|
|
|
223
223
|
export type AppRole = ResourceRole | TokenScope | UserScope;
|
|
224
224
|
|
|
225
|
-
export type AppStatus = 'setup' | 'ready' | 'resource_admin'
|
|
225
|
+
export type AppStatus = 'setup' | 'ready' | 'resource_admin';
|
|
226
226
|
|
|
227
227
|
/**
|
|
228
228
|
* Application-level toolset configuration
|
|
@@ -1191,8 +1191,7 @@ export type CreateEmbeddingResponse = {
|
|
|
1191
1191
|
*/
|
|
1192
1192
|
export type CreateMcpAuthConfigRequest = {
|
|
1193
1193
|
name: string;
|
|
1194
|
-
|
|
1195
|
-
header_value: string;
|
|
1194
|
+
entries: Array<McpAuthConfigParamInput>;
|
|
1196
1195
|
type: 'header';
|
|
1197
1196
|
} | {
|
|
1198
1197
|
name: string;
|
|
@@ -1287,6 +1286,16 @@ export type CustomToolPropertiesFormat = {
|
|
|
1287
1286
|
type: 'grammar';
|
|
1288
1287
|
};
|
|
1289
1288
|
|
|
1289
|
+
/**
|
|
1290
|
+
* Dashboard user information from a validated dashboard session token
|
|
1291
|
+
*/
|
|
1292
|
+
export type DashboardUser = {
|
|
1293
|
+
user_id: string;
|
|
1294
|
+
username: string;
|
|
1295
|
+
first_name?: string | null;
|
|
1296
|
+
last_name?: string | null;
|
|
1297
|
+
};
|
|
1298
|
+
|
|
1290
1299
|
export type DeploymentMode = 'standalone' | 'multi_tenant';
|
|
1291
1300
|
|
|
1292
1301
|
export type DownloadRequest = {
|
|
@@ -1388,7 +1397,9 @@ export type ExecuteToolsetRequest = {
|
|
|
1388
1397
|
export type FetchMcpToolsRequest = {
|
|
1389
1398
|
mcp_server_id: string;
|
|
1390
1399
|
auth?: null | McpAuth;
|
|
1391
|
-
|
|
1400
|
+
credentials?: Array<McpAuthParamInput> | null;
|
|
1401
|
+
auth_config_id?: string | null;
|
|
1402
|
+
oauth_token_id?: string | null;
|
|
1392
1403
|
};
|
|
1393
1404
|
|
|
1394
1405
|
/**
|
|
@@ -1623,9 +1634,9 @@ export type Mcp = {
|
|
|
1623
1634
|
tools_filter?: Array<string> | null;
|
|
1624
1635
|
auth_type: McpAuthType;
|
|
1625
1636
|
/**
|
|
1626
|
-
* Reference to the auth config (
|
|
1637
|
+
* Reference to the auth config (mcp_auth_configs.id)
|
|
1627
1638
|
*/
|
|
1628
|
-
|
|
1639
|
+
auth_config_id?: string | null;
|
|
1629
1640
|
/**
|
|
1630
1641
|
* When this instance was created
|
|
1631
1642
|
*/
|
|
@@ -1650,6 +1661,17 @@ export type McpAuth = {
|
|
|
1650
1661
|
type: 'header';
|
|
1651
1662
|
};
|
|
1652
1663
|
|
|
1664
|
+
export type McpAuthConfigParam = {
|
|
1665
|
+
id: string;
|
|
1666
|
+
param_type: McpAuthParamType;
|
|
1667
|
+
param_key: string;
|
|
1668
|
+
};
|
|
1669
|
+
|
|
1670
|
+
export type McpAuthConfigParamInput = {
|
|
1671
|
+
param_type: McpAuthParamType;
|
|
1672
|
+
param_key: string;
|
|
1673
|
+
};
|
|
1674
|
+
|
|
1653
1675
|
/**
|
|
1654
1676
|
* Discriminated union response for any type of MCP auth config.
|
|
1655
1677
|
* The JSON `"type"` field determines the variant: `"header"` or `"oauth"`.
|
|
@@ -1658,8 +1680,8 @@ export type McpAuthConfigResponse = {
|
|
|
1658
1680
|
id: string;
|
|
1659
1681
|
name: string;
|
|
1660
1682
|
mcp_server_id: string;
|
|
1661
|
-
|
|
1662
|
-
|
|
1683
|
+
created_by: string;
|
|
1684
|
+
entries: Array<McpAuthConfigParam>;
|
|
1663
1685
|
created_at: string;
|
|
1664
1686
|
updated_at: string;
|
|
1665
1687
|
type: 'header';
|
|
@@ -1667,6 +1689,7 @@ export type McpAuthConfigResponse = {
|
|
|
1667
1689
|
id: string;
|
|
1668
1690
|
name: string;
|
|
1669
1691
|
mcp_server_id: string;
|
|
1692
|
+
created_by: string;
|
|
1670
1693
|
registration_type: RegistrationType;
|
|
1671
1694
|
client_id: string;
|
|
1672
1695
|
authorization_endpoint: string;
|
|
@@ -1682,6 +1705,8 @@ export type McpAuthConfigResponse = {
|
|
|
1682
1705
|
type: 'oauth';
|
|
1683
1706
|
};
|
|
1684
1707
|
|
|
1708
|
+
export type McpAuthConfigType = 'header' | 'oauth';
|
|
1709
|
+
|
|
1685
1710
|
/**
|
|
1686
1711
|
* List wrapper for unified auth config responses.
|
|
1687
1712
|
*/
|
|
@@ -1689,6 +1714,21 @@ export type McpAuthConfigsListResponse = {
|
|
|
1689
1714
|
auth_configs: Array<McpAuthConfigResponse>;
|
|
1690
1715
|
};
|
|
1691
1716
|
|
|
1717
|
+
export type McpAuthParam = {
|
|
1718
|
+
id: string;
|
|
1719
|
+
param_type: McpAuthParamType;
|
|
1720
|
+
param_key: string;
|
|
1721
|
+
has_value: boolean;
|
|
1722
|
+
};
|
|
1723
|
+
|
|
1724
|
+
export type McpAuthParamInput = {
|
|
1725
|
+
param_type: McpAuthParamType;
|
|
1726
|
+
param_key: string;
|
|
1727
|
+
value: string;
|
|
1728
|
+
};
|
|
1729
|
+
|
|
1730
|
+
export type McpAuthParamType = 'header' | 'query';
|
|
1731
|
+
|
|
1692
1732
|
export type McpAuthType = 'public' | 'header' | 'oauth';
|
|
1693
1733
|
|
|
1694
1734
|
export type McpExecuteRequest = {
|
|
@@ -1743,7 +1783,15 @@ export type McpRequest = {
|
|
|
1743
1783
|
/**
|
|
1744
1784
|
* Reference to auth config
|
|
1745
1785
|
*/
|
|
1746
|
-
|
|
1786
|
+
auth_config_id?: string | null;
|
|
1787
|
+
/**
|
|
1788
|
+
* Instance-level auth params (values for the auth config's key definitions)
|
|
1789
|
+
*/
|
|
1790
|
+
credentials?: Array<McpAuthParamInput> | null;
|
|
1791
|
+
/**
|
|
1792
|
+
* OAuth token ID to link to this MCP instance (set after OAuth flow)
|
|
1793
|
+
*/
|
|
1794
|
+
oauth_token_id?: string | null;
|
|
1747
1795
|
};
|
|
1748
1796
|
|
|
1749
1797
|
/**
|
|
@@ -2015,6 +2063,7 @@ export type OAuthLoginResponse = {
|
|
|
2015
2063
|
};
|
|
2016
2064
|
|
|
2017
2065
|
export type OAuthTokenExchangeRequest = {
|
|
2066
|
+
mcp_id?: string | null;
|
|
2018
2067
|
code: string;
|
|
2019
2068
|
redirect_uri: string;
|
|
2020
2069
|
state: string;
|
|
@@ -2022,10 +2071,10 @@ export type OAuthTokenExchangeRequest = {
|
|
|
2022
2071
|
|
|
2023
2072
|
export type OAuthTokenResponse = {
|
|
2024
2073
|
id: string;
|
|
2025
|
-
|
|
2074
|
+
mcp_id?: string | null;
|
|
2075
|
+
auth_config_id: string;
|
|
2026
2076
|
scopes_granted?: string | null;
|
|
2027
2077
|
expires_at?: number | null;
|
|
2028
|
-
has_access_token: boolean;
|
|
2029
2078
|
has_refresh_token: boolean;
|
|
2030
2079
|
user_id: string;
|
|
2031
2080
|
created_at: string;
|
|
@@ -2289,7 +2338,7 @@ export type RequestedResources = {
|
|
|
2289
2338
|
mcp_servers?: Array<RequestedMcpServer>;
|
|
2290
2339
|
};
|
|
2291
2340
|
|
|
2292
|
-
export type ResourceRole = 'resource_user' | 'resource_power_user' | 'resource_manager' | 'resource_admin';
|
|
2341
|
+
export type ResourceRole = 'resource_anonymous' | 'resource_guest' | 'resource_user' | 'resource_power_user' | 'resource_manager' | 'resource_admin';
|
|
2293
2342
|
|
|
2294
2343
|
export type ResponseFormat = {
|
|
2295
2344
|
type: 'text';
|
|
@@ -2852,10 +2901,7 @@ export type UserInfo = {
|
|
|
2852
2901
|
* Envelope wrapping UserResponse with additional session info
|
|
2853
2902
|
*/
|
|
2854
2903
|
export type UserInfoEnvelope = UserResponse & {
|
|
2855
|
-
|
|
2856
|
-
* Whether the user has an active dashboard session (only present when true)
|
|
2857
|
-
*/
|
|
2858
|
-
has_dashboard_session?: boolean;
|
|
2904
|
+
dashboard?: null | DashboardUser;
|
|
2859
2905
|
};
|
|
2860
2906
|
|
|
2861
2907
|
export type UserListResponse = {
|