@bodhiapp/ts-client 0.1.36 → 0.1.38
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.
|
@@ -252,7 +252,7 @@ export interface paths {
|
|
|
252
252
|
put?: never;
|
|
253
253
|
/**
|
|
254
254
|
* Create Access Request
|
|
255
|
-
* @description Create an access request for an app to access user resources. Always creates a draft for user review.
|
|
255
|
+
* @description Create an access request for an app to access user resources. Always creates a draft for user review. Anonymous, except `exchange: true` requires the app's current token in the Authorization header.
|
|
256
256
|
*/
|
|
257
257
|
post: operations["createAccessRequest"];
|
|
258
258
|
delete?: never;
|
|
@@ -1339,6 +1339,7 @@ export interface components {
|
|
|
1339
1339
|
mcps_info?: components["schemas"]["McpServerReviewInfo"][];
|
|
1340
1340
|
/** @description Canonical Keycloak authorize endpoint the review page validates the app-supplied `auth_url` against. */
|
|
1341
1341
|
auth_endpoint: string;
|
|
1342
|
+
previous_grant?: null | components["schemas"]["PreviousGrantInfo"];
|
|
1342
1343
|
};
|
|
1343
1344
|
/** @example {
|
|
1344
1345
|
* "access_request_scope": "scope_access_request:550e8400-e29b-41d4-a716-446655440000",
|
|
@@ -1469,8 +1470,8 @@ export interface components {
|
|
|
1469
1470
|
api_format: components["schemas"]["ApiFormat"];
|
|
1470
1471
|
base_url: string;
|
|
1471
1472
|
has_api_key: boolean;
|
|
1472
|
-
/** @description Models available through this alias with full provider metadata */
|
|
1473
|
-
models: components["schemas"]["
|
|
1473
|
+
/** @description Models available through this alias with full provider metadata and per-model `access` */
|
|
1474
|
+
models: components["schemas"]["ApiModelResponse"][];
|
|
1474
1475
|
prefix?: string | null;
|
|
1475
1476
|
forward_all_with_prefix: boolean;
|
|
1476
1477
|
extra_headers?: unknown;
|
|
@@ -1558,6 +1559,11 @@ export interface components {
|
|
|
1558
1559
|
/** @enum {string} */
|
|
1559
1560
|
api_format: "llm_liberty_oauth";
|
|
1560
1561
|
});
|
|
1562
|
+
/** @description `ApiModel` plus the request-scoped `access` verdict (kept off the stored shape). */
|
|
1563
|
+
ApiModelResponse: components["schemas"]["ApiModel"] & {
|
|
1564
|
+
/** @description Whether the current principal may run inference on this model. */
|
|
1565
|
+
access: boolean;
|
|
1566
|
+
};
|
|
1561
1567
|
/** @description DB-storable `Vec<ApiModel>` — stored as JSON binary in SeaORM columns. */
|
|
1562
1568
|
ApiModelVec: components["schemas"]["ApiModel"][];
|
|
1563
1569
|
/** @enum {string} */
|
|
@@ -1819,6 +1825,9 @@ export interface components {
|
|
|
1819
1825
|
requested_role: components["schemas"]["UserScope"];
|
|
1820
1826
|
/** @description Resources requested (tools, etc.) */
|
|
1821
1827
|
requested: components["schemas"]["RequestedResources"];
|
|
1828
|
+
/** @description Upgrade the app's current token: the caller must present it in the `Authorization`
|
|
1829
|
+
* header; the server derives the prior request from the token, never the body. */
|
|
1830
|
+
exchange?: boolean;
|
|
1822
1831
|
};
|
|
1823
1832
|
/** @example {
|
|
1824
1833
|
* "id": "550e8400-e29b-41d4-a716-446655440000",
|
|
@@ -2064,7 +2073,7 @@ export interface components {
|
|
|
2064
2073
|
mcp_servers: components["schemas"]["McpServerResponse"][];
|
|
2065
2074
|
};
|
|
2066
2075
|
ListMcpsResponse: {
|
|
2067
|
-
mcps: components["schemas"]["
|
|
2076
|
+
mcps: components["schemas"]["McpResponse"][];
|
|
2068
2077
|
};
|
|
2069
2078
|
/** @description List users query parameters. Intentionally omits sort fields (unlike PaginationSortParams)
|
|
2070
2079
|
* because user listing is fetched from the auth service which handles its own ordering. */
|
|
@@ -2318,6 +2327,11 @@ export interface components {
|
|
|
2318
2327
|
/** @description OAuth token ID to link to this MCP instance (set after OAuth flow). */
|
|
2319
2328
|
oauth_token_id?: string | null;
|
|
2320
2329
|
};
|
|
2330
|
+
/** @description `Mcp` plus the request-scoped `access` verdict (kept off the domain entity). */
|
|
2331
|
+
McpResponse: components["schemas"]["Mcp"] & {
|
|
2332
|
+
/** @description Whether the current principal may invoke (connect to) this MCP. */
|
|
2333
|
+
access: boolean;
|
|
2334
|
+
};
|
|
2321
2335
|
/** @description Admin-managed MCP server registry entry that users create instances of. */
|
|
2322
2336
|
McpServer: {
|
|
2323
2337
|
id: string;
|
|
@@ -2396,6 +2410,8 @@ export interface components {
|
|
|
2396
2410
|
repo: string;
|
|
2397
2411
|
filename: string;
|
|
2398
2412
|
snapshot: string;
|
|
2413
|
+
/** @description Whether the current principal may run inference on this model. */
|
|
2414
|
+
access: boolean;
|
|
2399
2415
|
/**
|
|
2400
2416
|
* Format: int64
|
|
2401
2417
|
* @description Local GGUF file size in bytes (present when the file is resolvable on disk)
|
|
@@ -2463,6 +2479,8 @@ export interface components {
|
|
|
2463
2479
|
source: string;
|
|
2464
2480
|
id: string;
|
|
2465
2481
|
alias: string;
|
|
2482
|
+
/** @description Whether the current principal may run inference on this router. */
|
|
2483
|
+
access: boolean;
|
|
2466
2484
|
targets: components["schemas"]["RouterTarget"][];
|
|
2467
2485
|
strategy: components["schemas"]["RoutingStrategyConfig"];
|
|
2468
2486
|
/** Format: date-time */
|
|
@@ -2646,6 +2664,10 @@ export interface components {
|
|
|
2646
2664
|
*/
|
|
2647
2665
|
message: string;
|
|
2648
2666
|
};
|
|
2667
|
+
PreviousGrantInfo: {
|
|
2668
|
+
approved_role: components["schemas"]["UserScope"];
|
|
2669
|
+
approved: components["schemas"]["ApprovedResources"];
|
|
2670
|
+
};
|
|
2649
2671
|
QueueStatusResponse: {
|
|
2650
2672
|
/** @description Queue status ("idle" or "processing") */
|
|
2651
2673
|
status: string;
|
|
@@ -3076,6 +3098,8 @@ export interface components {
|
|
|
3076
3098
|
filename: string;
|
|
3077
3099
|
snapshot: string;
|
|
3078
3100
|
source: string;
|
|
3101
|
+
/** @description Whether the current principal may run inference on this model. */
|
|
3102
|
+
access: boolean;
|
|
3079
3103
|
model_params: {
|
|
3080
3104
|
[key: string]: unknown;
|
|
3081
3105
|
};
|
|
@@ -3951,7 +3975,7 @@ export interface operations {
|
|
|
3951
3975
|
[name: string]: unknown;
|
|
3952
3976
|
};
|
|
3953
3977
|
content: {
|
|
3954
|
-
"application/json": components["schemas"]["
|
|
3978
|
+
"application/json": components["schemas"]["McpResponse"];
|
|
3955
3979
|
};
|
|
3956
3980
|
};
|
|
3957
3981
|
/** @description Invalid request parameters */
|
|
@@ -4596,7 +4620,7 @@ export interface operations {
|
|
|
4596
4620
|
[name: string]: unknown;
|
|
4597
4621
|
};
|
|
4598
4622
|
content: {
|
|
4599
|
-
"application/json": components["schemas"]["
|
|
4623
|
+
"application/json": components["schemas"]["McpResponse"];
|
|
4600
4624
|
};
|
|
4601
4625
|
};
|
|
4602
4626
|
/** @description Invalid request parameters */
|
|
@@ -5622,7 +5646,7 @@ export interface operations {
|
|
|
5622
5646
|
[name: string]: unknown;
|
|
5623
5647
|
};
|
|
5624
5648
|
content: {
|
|
5625
|
-
"application/json": components["schemas"]["
|
|
5649
|
+
"application/json": components["schemas"]["McpResponse"];
|
|
5626
5650
|
};
|
|
5627
5651
|
};
|
|
5628
5652
|
/** @description Invalid request parameters */
|
|
@@ -5692,7 +5716,7 @@ export interface operations {
|
|
|
5692
5716
|
[name: string]: unknown;
|
|
5693
5717
|
};
|
|
5694
5718
|
content: {
|
|
5695
|
-
"application/json": components["schemas"]["
|
|
5719
|
+
"application/json": components["schemas"]["McpResponse"];
|
|
5696
5720
|
};
|
|
5697
5721
|
};
|
|
5698
5722
|
/** @description Invalid request parameters */
|
|
@@ -253,7 +253,7 @@ export interface paths {
|
|
|
253
253
|
put?: never;
|
|
254
254
|
/**
|
|
255
255
|
* Create Access Request
|
|
256
|
-
* @description Create an access request for an app to access user resources. Always creates a draft for user review.
|
|
256
|
+
* @description Create an access request for an app to access user resources. Always creates a draft for user review. Anonymous, except `exchange: true` requires the app's current token in the Authorization header.
|
|
257
257
|
*/
|
|
258
258
|
post: operations["createAccessRequest"];
|
|
259
259
|
delete?: never;
|
|
@@ -1340,6 +1340,7 @@ export interface components {
|
|
|
1340
1340
|
mcps_info?: components["schemas"]["McpServerReviewInfo"][];
|
|
1341
1341
|
/** @description Canonical Keycloak authorize endpoint the review page validates the app-supplied `auth_url` against. */
|
|
1342
1342
|
auth_endpoint: string;
|
|
1343
|
+
previous_grant?: null | components["schemas"]["PreviousGrantInfo"];
|
|
1343
1344
|
};
|
|
1344
1345
|
/** @example {
|
|
1345
1346
|
* "access_request_scope": "scope_access_request:550e8400-e29b-41d4-a716-446655440000",
|
|
@@ -1470,8 +1471,8 @@ export interface components {
|
|
|
1470
1471
|
api_format: components["schemas"]["ApiFormat"];
|
|
1471
1472
|
base_url: string;
|
|
1472
1473
|
has_api_key: boolean;
|
|
1473
|
-
/** @description Models available through this alias with full provider metadata */
|
|
1474
|
-
models: components["schemas"]["
|
|
1474
|
+
/** @description Models available through this alias with full provider metadata and per-model `access` */
|
|
1475
|
+
models: components["schemas"]["ApiModelResponse"][];
|
|
1475
1476
|
prefix?: string | null;
|
|
1476
1477
|
forward_all_with_prefix: boolean;
|
|
1477
1478
|
extra_headers?: unknown;
|
|
@@ -1559,6 +1560,11 @@ export interface components {
|
|
|
1559
1560
|
/** @enum {string} */
|
|
1560
1561
|
api_format: "llm_liberty_oauth";
|
|
1561
1562
|
});
|
|
1563
|
+
/** @description `ApiModel` plus the request-scoped `access` verdict (kept off the stored shape). */
|
|
1564
|
+
ApiModelResponse: components["schemas"]["ApiModel"] & {
|
|
1565
|
+
/** @description Whether the current principal may run inference on this model. */
|
|
1566
|
+
access: boolean;
|
|
1567
|
+
};
|
|
1562
1568
|
/** @description DB-storable `Vec<ApiModel>` — stored as JSON binary in SeaORM columns. */
|
|
1563
1569
|
ApiModelVec: components["schemas"]["ApiModel"][];
|
|
1564
1570
|
/** @enum {string} */
|
|
@@ -1820,6 +1826,9 @@ export interface components {
|
|
|
1820
1826
|
requested_role: components["schemas"]["UserScope"];
|
|
1821
1827
|
/** @description Resources requested (tools, etc.) */
|
|
1822
1828
|
requested: components["schemas"]["RequestedResources"];
|
|
1829
|
+
/** @description Upgrade the app's current token: the caller must present it in the `Authorization`
|
|
1830
|
+
* header; the server derives the prior request from the token, never the body. */
|
|
1831
|
+
exchange?: boolean;
|
|
1823
1832
|
};
|
|
1824
1833
|
/** @example {
|
|
1825
1834
|
* "id": "550e8400-e29b-41d4-a716-446655440000",
|
|
@@ -2065,7 +2074,7 @@ export interface components {
|
|
|
2065
2074
|
mcp_servers: components["schemas"]["McpServerResponse"][];
|
|
2066
2075
|
};
|
|
2067
2076
|
ListMcpsResponse: {
|
|
2068
|
-
mcps: components["schemas"]["
|
|
2077
|
+
mcps: components["schemas"]["McpResponse"][];
|
|
2069
2078
|
};
|
|
2070
2079
|
/** @description List users query parameters. Intentionally omits sort fields (unlike PaginationSortParams)
|
|
2071
2080
|
* because user listing is fetched from the auth service which handles its own ordering. */
|
|
@@ -2319,6 +2328,11 @@ export interface components {
|
|
|
2319
2328
|
/** @description OAuth token ID to link to this MCP instance (set after OAuth flow). */
|
|
2320
2329
|
oauth_token_id?: string | null;
|
|
2321
2330
|
};
|
|
2331
|
+
/** @description `Mcp` plus the request-scoped `access` verdict (kept off the domain entity). */
|
|
2332
|
+
McpResponse: components["schemas"]["Mcp"] & {
|
|
2333
|
+
/** @description Whether the current principal may invoke (connect to) this MCP. */
|
|
2334
|
+
access: boolean;
|
|
2335
|
+
};
|
|
2322
2336
|
/** @description Admin-managed MCP server registry entry that users create instances of. */
|
|
2323
2337
|
McpServer: {
|
|
2324
2338
|
id: string;
|
|
@@ -2397,6 +2411,8 @@ export interface components {
|
|
|
2397
2411
|
repo: string;
|
|
2398
2412
|
filename: string;
|
|
2399
2413
|
snapshot: string;
|
|
2414
|
+
/** @description Whether the current principal may run inference on this model. */
|
|
2415
|
+
access: boolean;
|
|
2400
2416
|
/**
|
|
2401
2417
|
* Format: int64
|
|
2402
2418
|
* @description Local GGUF file size in bytes (present when the file is resolvable on disk)
|
|
@@ -2464,6 +2480,8 @@ export interface components {
|
|
|
2464
2480
|
source: string;
|
|
2465
2481
|
id: string;
|
|
2466
2482
|
alias: string;
|
|
2483
|
+
/** @description Whether the current principal may run inference on this router. */
|
|
2484
|
+
access: boolean;
|
|
2467
2485
|
targets: components["schemas"]["RouterTarget"][];
|
|
2468
2486
|
strategy: components["schemas"]["RoutingStrategyConfig"];
|
|
2469
2487
|
/** Format: date-time */
|
|
@@ -2647,6 +2665,10 @@ export interface components {
|
|
|
2647
2665
|
*/
|
|
2648
2666
|
message: string;
|
|
2649
2667
|
};
|
|
2668
|
+
PreviousGrantInfo: {
|
|
2669
|
+
approved_role: components["schemas"]["UserScope"];
|
|
2670
|
+
approved: components["schemas"]["ApprovedResources"];
|
|
2671
|
+
};
|
|
2650
2672
|
QueueStatusResponse: {
|
|
2651
2673
|
/** @description Queue status ("idle" or "processing") */
|
|
2652
2674
|
status: string;
|
|
@@ -3077,6 +3099,8 @@ export interface components {
|
|
|
3077
3099
|
filename: string;
|
|
3078
3100
|
snapshot: string;
|
|
3079
3101
|
source: string;
|
|
3102
|
+
/** @description Whether the current principal may run inference on this model. */
|
|
3103
|
+
access: boolean;
|
|
3080
3104
|
model_params: {
|
|
3081
3105
|
[key: string]: unknown;
|
|
3082
3106
|
};
|
|
@@ -3952,7 +3976,7 @@ export interface operations {
|
|
|
3952
3976
|
[name: string]: unknown;
|
|
3953
3977
|
};
|
|
3954
3978
|
content: {
|
|
3955
|
-
"application/json": components["schemas"]["
|
|
3979
|
+
"application/json": components["schemas"]["McpResponse"];
|
|
3956
3980
|
};
|
|
3957
3981
|
};
|
|
3958
3982
|
/** @description Invalid request parameters */
|
|
@@ -4597,7 +4621,7 @@ export interface operations {
|
|
|
4597
4621
|
[name: string]: unknown;
|
|
4598
4622
|
};
|
|
4599
4623
|
content: {
|
|
4600
|
-
"application/json": components["schemas"]["
|
|
4624
|
+
"application/json": components["schemas"]["McpResponse"];
|
|
4601
4625
|
};
|
|
4602
4626
|
};
|
|
4603
4627
|
/** @description Invalid request parameters */
|
|
@@ -5623,7 +5647,7 @@ export interface operations {
|
|
|
5623
5647
|
[name: string]: unknown;
|
|
5624
5648
|
};
|
|
5625
5649
|
content: {
|
|
5626
|
-
"application/json": components["schemas"]["
|
|
5650
|
+
"application/json": components["schemas"]["McpResponse"];
|
|
5627
5651
|
};
|
|
5628
5652
|
};
|
|
5629
5653
|
/** @description Invalid request parameters */
|
|
@@ -5693,7 +5717,7 @@ export interface operations {
|
|
|
5693
5717
|
[name: string]: unknown;
|
|
5694
5718
|
};
|
|
5695
5719
|
content: {
|
|
5696
|
-
"application/json": components["schemas"]["
|
|
5720
|
+
"application/json": components["schemas"]["McpResponse"];
|
|
5697
5721
|
};
|
|
5698
5722
|
};
|
|
5699
5723
|
/** @description Invalid request parameters */
|
|
@@ -24,6 +24,7 @@ export type AccessRequestReviewResponse = {
|
|
|
24
24
|
* Canonical Keycloak authorize endpoint the review page validates the app-supplied `auth_url` against.
|
|
25
25
|
*/
|
|
26
26
|
auth_endpoint: string;
|
|
27
|
+
previous_grant?: null | PreviousGrantInfo;
|
|
27
28
|
};
|
|
28
29
|
export type AccessRequestStatusResponse = {
|
|
29
30
|
id: string;
|
|
@@ -152,9 +153,9 @@ export type ApiAliasResponse = {
|
|
|
152
153
|
base_url: string;
|
|
153
154
|
has_api_key: boolean;
|
|
154
155
|
/**
|
|
155
|
-
* Models available through this alias with full provider metadata
|
|
156
|
+
* Models available through this alias with full provider metadata and per-model `access`
|
|
156
157
|
*/
|
|
157
|
-
models: Array<
|
|
158
|
+
models: Array<ApiModelResponse>;
|
|
158
159
|
prefix?: string | null;
|
|
159
160
|
forward_all_with_prefix: boolean;
|
|
160
161
|
extra_headers?: unknown;
|
|
@@ -218,6 +219,15 @@ export type ApiModelRequest = (DefaultApiModelRequest & {
|
|
|
218
219
|
}) | (LlmLibertyApiModelRequest & {
|
|
219
220
|
api_format: 'llm_liberty_oauth';
|
|
220
221
|
});
|
|
222
|
+
/**
|
|
223
|
+
* `ApiModel` plus the request-scoped `access` verdict (kept off the stored shape).
|
|
224
|
+
*/
|
|
225
|
+
export type ApiModelResponse = ApiModel & {
|
|
226
|
+
/**
|
|
227
|
+
* Whether the current principal may run inference on this model.
|
|
228
|
+
*/
|
|
229
|
+
access: boolean;
|
|
230
|
+
};
|
|
221
231
|
/**
|
|
222
232
|
* DB-storable `Vec<ApiModel>` — stored as JSON binary in SeaORM columns.
|
|
223
233
|
*/
|
|
@@ -417,6 +427,11 @@ export type CreateAccessRequest = {
|
|
|
417
427
|
* Resources requested (tools, etc.)
|
|
418
428
|
*/
|
|
419
429
|
requested: RequestedResources;
|
|
430
|
+
/**
|
|
431
|
+
* Upgrade the app's current token: the caller must present it in the `Authorization`
|
|
432
|
+
* header; the server derives the prior request from the token, never the body.
|
|
433
|
+
*/
|
|
434
|
+
exchange?: boolean;
|
|
420
435
|
};
|
|
421
436
|
export type CreateAccessRequestResponse = {
|
|
422
437
|
id: string;
|
|
@@ -675,7 +690,7 @@ export type ListMcpServersResponse = {
|
|
|
675
690
|
mcp_servers: Array<McpServerResponse>;
|
|
676
691
|
};
|
|
677
692
|
export type ListMcpsResponse = {
|
|
678
|
-
mcps: Array<
|
|
693
|
+
mcps: Array<McpResponse>;
|
|
679
694
|
};
|
|
680
695
|
/**
|
|
681
696
|
* List users query parameters. Intentionally omits sort fields (unlike PaginationSortParams)
|
|
@@ -960,6 +975,15 @@ export type McpRequest = {
|
|
|
960
975
|
*/
|
|
961
976
|
oauth_token_id?: string | null;
|
|
962
977
|
};
|
|
978
|
+
/**
|
|
979
|
+
* `Mcp` plus the request-scoped `access` verdict (kept off the domain entity).
|
|
980
|
+
*/
|
|
981
|
+
export type McpResponse = Mcp & {
|
|
982
|
+
/**
|
|
983
|
+
* Whether the current principal may invoke (connect to) this MCP.
|
|
984
|
+
*/
|
|
985
|
+
access: boolean;
|
|
986
|
+
};
|
|
963
987
|
/**
|
|
964
988
|
* Admin-managed MCP server registry entry that users create instances of.
|
|
965
989
|
*/
|
|
@@ -1050,6 +1074,10 @@ export type ModelAliasResponse = {
|
|
|
1050
1074
|
repo: string;
|
|
1051
1075
|
filename: string;
|
|
1052
1076
|
snapshot: string;
|
|
1077
|
+
/**
|
|
1078
|
+
* Whether the current principal may run inference on this model.
|
|
1079
|
+
*/
|
|
1080
|
+
access: boolean;
|
|
1053
1081
|
/**
|
|
1054
1082
|
* Local GGUF file size in bytes (present when the file is resolvable on disk)
|
|
1055
1083
|
*/
|
|
@@ -1125,6 +1153,10 @@ export type ModelRouterResponse = {
|
|
|
1125
1153
|
source: string;
|
|
1126
1154
|
id: string;
|
|
1127
1155
|
alias: string;
|
|
1156
|
+
/**
|
|
1157
|
+
* Whether the current principal may run inference on this router.
|
|
1158
|
+
*/
|
|
1159
|
+
access: boolean;
|
|
1128
1160
|
targets: Array<RouterTarget>;
|
|
1129
1161
|
strategy: RoutingStrategyConfig;
|
|
1130
1162
|
created_at: string;
|
|
@@ -1286,6 +1318,10 @@ export type PingResponse = {
|
|
|
1286
1318
|
*/
|
|
1287
1319
|
message: string;
|
|
1288
1320
|
};
|
|
1321
|
+
export type PreviousGrantInfo = {
|
|
1322
|
+
approved_role: UserScope;
|
|
1323
|
+
approved: ApprovedResources;
|
|
1324
|
+
};
|
|
1289
1325
|
export type QueueStatusResponse = {
|
|
1290
1326
|
/**
|
|
1291
1327
|
* Queue status ("idle" or "processing")
|
|
@@ -1694,6 +1730,10 @@ export type UserAliasResponse = {
|
|
|
1694
1730
|
filename: string;
|
|
1695
1731
|
snapshot: string;
|
|
1696
1732
|
source: string;
|
|
1733
|
+
/**
|
|
1734
|
+
* Whether the current principal may run inference on this model.
|
|
1735
|
+
*/
|
|
1736
|
+
access: boolean;
|
|
1697
1737
|
model_params: {};
|
|
1698
1738
|
request_params: OaiRequestParams;
|
|
1699
1739
|
context_params: Array<string>;
|
|
@@ -2257,7 +2297,7 @@ export type AppsGetMcpResponses = {
|
|
|
2257
2297
|
/**
|
|
2258
2298
|
* MCP instance
|
|
2259
2299
|
*/
|
|
2260
|
-
200:
|
|
2300
|
+
200: McpResponse;
|
|
2261
2301
|
};
|
|
2262
2302
|
export type AppsGetMcpResponse = AppsGetMcpResponses[keyof AppsGetMcpResponses];
|
|
2263
2303
|
export type McpProxyData = {
|
|
@@ -2601,7 +2641,7 @@ export type CreateMcpResponses = {
|
|
|
2601
2641
|
/**
|
|
2602
2642
|
* MCP created
|
|
2603
2643
|
*/
|
|
2604
|
-
201:
|
|
2644
|
+
201: McpResponse;
|
|
2605
2645
|
};
|
|
2606
2646
|
export type CreateMcpResponse = CreateMcpResponses[keyof CreateMcpResponses];
|
|
2607
2647
|
export type ListMcpAuthConfigsData = {
|
|
@@ -3250,7 +3290,7 @@ export type GetMcpResponses = {
|
|
|
3250
3290
|
/**
|
|
3251
3291
|
* MCP instance
|
|
3252
3292
|
*/
|
|
3253
|
-
200:
|
|
3293
|
+
200: McpResponse;
|
|
3254
3294
|
};
|
|
3255
3295
|
export type GetMcpResponse = GetMcpResponses[keyof GetMcpResponses];
|
|
3256
3296
|
export type UpdateMcpData = {
|
|
@@ -3291,7 +3331,7 @@ export type UpdateMcpResponses = {
|
|
|
3291
3331
|
/**
|
|
3292
3332
|
* MCP updated
|
|
3293
3333
|
*/
|
|
3294
|
-
200:
|
|
3334
|
+
200: McpResponse;
|
|
3295
3335
|
};
|
|
3296
3336
|
export type UpdateMcpResponse = UpdateMcpResponses[keyof UpdateMcpResponses];
|
|
3297
3337
|
export type ListAllModelsData = {
|
package/dist/types/types.gen.ts
CHANGED
|
@@ -27,6 +27,7 @@ export type AccessRequestReviewResponse = {
|
|
|
27
27
|
* Canonical Keycloak authorize endpoint the review page validates the app-supplied `auth_url` against.
|
|
28
28
|
*/
|
|
29
29
|
auth_endpoint: string;
|
|
30
|
+
previous_grant?: null | PreviousGrantInfo;
|
|
30
31
|
};
|
|
31
32
|
|
|
32
33
|
export type AccessRequestStatusResponse = {
|
|
@@ -163,9 +164,9 @@ export type ApiAliasResponse = {
|
|
|
163
164
|
base_url: string;
|
|
164
165
|
has_api_key: boolean;
|
|
165
166
|
/**
|
|
166
|
-
* Models available through this alias with full provider metadata
|
|
167
|
+
* Models available through this alias with full provider metadata and per-model `access`
|
|
167
168
|
*/
|
|
168
|
-
models: Array<
|
|
169
|
+
models: Array<ApiModelResponse>;
|
|
169
170
|
prefix?: string | null;
|
|
170
171
|
forward_all_with_prefix: boolean;
|
|
171
172
|
extra_headers?: unknown;
|
|
@@ -236,6 +237,16 @@ export type ApiModelRequest = (DefaultApiModelRequest & {
|
|
|
236
237
|
api_format: 'llm_liberty_oauth';
|
|
237
238
|
});
|
|
238
239
|
|
|
240
|
+
/**
|
|
241
|
+
* `ApiModel` plus the request-scoped `access` verdict (kept off the stored shape).
|
|
242
|
+
*/
|
|
243
|
+
export type ApiModelResponse = ApiModel & {
|
|
244
|
+
/**
|
|
245
|
+
* Whether the current principal may run inference on this model.
|
|
246
|
+
*/
|
|
247
|
+
access: boolean;
|
|
248
|
+
};
|
|
249
|
+
|
|
239
250
|
/**
|
|
240
251
|
* DB-storable `Vec<ApiModel>` — stored as JSON binary in SeaORM columns.
|
|
241
252
|
*/
|
|
@@ -455,6 +466,11 @@ export type CreateAccessRequest = {
|
|
|
455
466
|
* Resources requested (tools, etc.)
|
|
456
467
|
*/
|
|
457
468
|
requested: RequestedResources;
|
|
469
|
+
/**
|
|
470
|
+
* Upgrade the app's current token: the caller must present it in the `Authorization`
|
|
471
|
+
* header; the server derives the prior request from the token, never the body.
|
|
472
|
+
*/
|
|
473
|
+
exchange?: boolean;
|
|
458
474
|
};
|
|
459
475
|
|
|
460
476
|
export type CreateAccessRequestResponse = {
|
|
@@ -737,7 +753,7 @@ export type ListMcpServersResponse = {
|
|
|
737
753
|
};
|
|
738
754
|
|
|
739
755
|
export type ListMcpsResponse = {
|
|
740
|
-
mcps: Array<
|
|
756
|
+
mcps: Array<McpResponse>;
|
|
741
757
|
};
|
|
742
758
|
|
|
743
759
|
/**
|
|
@@ -1048,6 +1064,16 @@ export type McpRequest = {
|
|
|
1048
1064
|
oauth_token_id?: string | null;
|
|
1049
1065
|
};
|
|
1050
1066
|
|
|
1067
|
+
/**
|
|
1068
|
+
* `Mcp` plus the request-scoped `access` verdict (kept off the domain entity).
|
|
1069
|
+
*/
|
|
1070
|
+
export type McpResponse = Mcp & {
|
|
1071
|
+
/**
|
|
1072
|
+
* Whether the current principal may invoke (connect to) this MCP.
|
|
1073
|
+
*/
|
|
1074
|
+
access: boolean;
|
|
1075
|
+
};
|
|
1076
|
+
|
|
1051
1077
|
/**
|
|
1052
1078
|
* Admin-managed MCP server registry entry that users create instances of.
|
|
1053
1079
|
*/
|
|
@@ -1145,6 +1171,10 @@ export type ModelAliasResponse = {
|
|
|
1145
1171
|
repo: string;
|
|
1146
1172
|
filename: string;
|
|
1147
1173
|
snapshot: string;
|
|
1174
|
+
/**
|
|
1175
|
+
* Whether the current principal may run inference on this model.
|
|
1176
|
+
*/
|
|
1177
|
+
access: boolean;
|
|
1148
1178
|
/**
|
|
1149
1179
|
* Local GGUF file size in bytes (present when the file is resolvable on disk)
|
|
1150
1180
|
*/
|
|
@@ -1227,6 +1257,10 @@ export type ModelRouterResponse = {
|
|
|
1227
1257
|
source: string;
|
|
1228
1258
|
id: string;
|
|
1229
1259
|
alias: string;
|
|
1260
|
+
/**
|
|
1261
|
+
* Whether the current principal may run inference on this router.
|
|
1262
|
+
*/
|
|
1263
|
+
access: boolean;
|
|
1230
1264
|
targets: Array<RouterTarget>;
|
|
1231
1265
|
strategy: RoutingStrategyConfig;
|
|
1232
1266
|
created_at: string;
|
|
@@ -1407,6 +1441,11 @@ export type PingResponse = {
|
|
|
1407
1441
|
message: string;
|
|
1408
1442
|
};
|
|
1409
1443
|
|
|
1444
|
+
export type PreviousGrantInfo = {
|
|
1445
|
+
approved_role: UserScope;
|
|
1446
|
+
approved: ApprovedResources;
|
|
1447
|
+
};
|
|
1448
|
+
|
|
1410
1449
|
export type QueueStatusResponse = {
|
|
1411
1450
|
/**
|
|
1412
1451
|
* Queue status ("idle" or "processing")
|
|
@@ -1857,6 +1896,10 @@ export type UserAliasResponse = {
|
|
|
1857
1896
|
filename: string;
|
|
1858
1897
|
snapshot: string;
|
|
1859
1898
|
source: string;
|
|
1899
|
+
/**
|
|
1900
|
+
* Whether the current principal may run inference on this model.
|
|
1901
|
+
*/
|
|
1902
|
+
access: boolean;
|
|
1860
1903
|
model_params: {};
|
|
1861
1904
|
request_params: OaiRequestParams;
|
|
1862
1905
|
context_params: Array<string>;
|
|
@@ -2482,7 +2525,7 @@ export type AppsGetMcpResponses = {
|
|
|
2482
2525
|
/**
|
|
2483
2526
|
* MCP instance
|
|
2484
2527
|
*/
|
|
2485
|
-
200:
|
|
2528
|
+
200: McpResponse;
|
|
2486
2529
|
};
|
|
2487
2530
|
|
|
2488
2531
|
export type AppsGetMcpResponse = AppsGetMcpResponses[keyof AppsGetMcpResponses];
|
|
@@ -2875,7 +2918,7 @@ export type CreateMcpResponses = {
|
|
|
2875
2918
|
/**
|
|
2876
2919
|
* MCP created
|
|
2877
2920
|
*/
|
|
2878
|
-
201:
|
|
2921
|
+
201: McpResponse;
|
|
2879
2922
|
};
|
|
2880
2923
|
|
|
2881
2924
|
export type CreateMcpResponse = CreateMcpResponses[keyof CreateMcpResponses];
|
|
@@ -3609,7 +3652,7 @@ export type GetMcpResponses = {
|
|
|
3609
3652
|
/**
|
|
3610
3653
|
* MCP instance
|
|
3611
3654
|
*/
|
|
3612
|
-
200:
|
|
3655
|
+
200: McpResponse;
|
|
3613
3656
|
};
|
|
3614
3657
|
|
|
3615
3658
|
export type GetMcpResponse = GetMcpResponses[keyof GetMcpResponses];
|
|
@@ -3655,7 +3698,7 @@ export type UpdateMcpResponses = {
|
|
|
3655
3698
|
/**
|
|
3656
3699
|
* MCP updated
|
|
3657
3700
|
*/
|
|
3658
|
-
200:
|
|
3701
|
+
200: McpResponse;
|
|
3659
3702
|
};
|
|
3660
3703
|
|
|
3661
3704
|
export type UpdateMcpResponse = UpdateMcpResponses[keyof UpdateMcpResponses];
|