@bodhiapp/ts-client 0.1.35 → 0.1.37

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.
@@ -1469,8 +1469,8 @@ export interface components {
1469
1469
  api_format: components["schemas"]["ApiFormat"];
1470
1470
  base_url: string;
1471
1471
  has_api_key: boolean;
1472
- /** @description Models available through this alias with full provider metadata */
1473
- models: components["schemas"]["ApiModel"][];
1472
+ /** @description Models available through this alias with full provider metadata and per-model `access` */
1473
+ models: components["schemas"]["ApiModelResponse"][];
1474
1474
  prefix?: string | null;
1475
1475
  forward_all_with_prefix: boolean;
1476
1476
  extra_headers?: unknown;
@@ -1558,6 +1558,11 @@ export interface components {
1558
1558
  /** @enum {string} */
1559
1559
  api_format: "llm_liberty_oauth";
1560
1560
  });
1561
+ /** @description `ApiModel` plus the request-scoped `access` verdict (kept off the stored shape). */
1562
+ ApiModelResponse: components["schemas"]["ApiModel"] & {
1563
+ /** @description Whether the current principal may run inference on this model. */
1564
+ access: boolean;
1565
+ };
1561
1566
  /** @description DB-storable `Vec<ApiModel>` — stored as JSON binary in SeaORM columns. */
1562
1567
  ApiModelVec: components["schemas"]["ApiModel"][];
1563
1568
  /** @enum {string} */
@@ -2064,7 +2069,7 @@ export interface components {
2064
2069
  mcp_servers: components["schemas"]["McpServerResponse"][];
2065
2070
  };
2066
2071
  ListMcpsResponse: {
2067
- mcps: components["schemas"]["Mcp"][];
2072
+ mcps: components["schemas"]["McpResponse"][];
2068
2073
  };
2069
2074
  /** @description List users query parameters. Intentionally omits sort fields (unlike PaginationSortParams)
2070
2075
  * because user listing is fetched from the auth service which handles its own ordering. */
@@ -2318,6 +2323,11 @@ export interface components {
2318
2323
  /** @description OAuth token ID to link to this MCP instance (set after OAuth flow). */
2319
2324
  oauth_token_id?: string | null;
2320
2325
  };
2326
+ /** @description `Mcp` plus the request-scoped `access` verdict (kept off the domain entity). */
2327
+ McpResponse: components["schemas"]["Mcp"] & {
2328
+ /** @description Whether the current principal may invoke (connect to) this MCP. */
2329
+ access: boolean;
2330
+ };
2321
2331
  /** @description Admin-managed MCP server registry entry that users create instances of. */
2322
2332
  McpServer: {
2323
2333
  id: string;
@@ -2396,6 +2406,8 @@ export interface components {
2396
2406
  repo: string;
2397
2407
  filename: string;
2398
2408
  snapshot: string;
2409
+ /** @description Whether the current principal may run inference on this model. */
2410
+ access: boolean;
2399
2411
  /**
2400
2412
  * Format: int64
2401
2413
  * @description Local GGUF file size in bytes (present when the file is resolvable on disk)
@@ -2463,6 +2475,8 @@ export interface components {
2463
2475
  source: string;
2464
2476
  id: string;
2465
2477
  alias: string;
2478
+ /** @description Whether the current principal may run inference on this router. */
2479
+ access: boolean;
2466
2480
  targets: components["schemas"]["RouterTarget"][];
2467
2481
  strategy: components["schemas"]["RoutingStrategyConfig"];
2468
2482
  /** Format: date-time */
@@ -3076,6 +3090,8 @@ export interface components {
3076
3090
  filename: string;
3077
3091
  snapshot: string;
3078
3092
  source: string;
3093
+ /** @description Whether the current principal may run inference on this model. */
3094
+ access: boolean;
3079
3095
  model_params: {
3080
3096
  [key: string]: unknown;
3081
3097
  };
@@ -3951,7 +3967,7 @@ export interface operations {
3951
3967
  [name: string]: unknown;
3952
3968
  };
3953
3969
  content: {
3954
- "application/json": components["schemas"]["Mcp"];
3970
+ "application/json": components["schemas"]["McpResponse"];
3955
3971
  };
3956
3972
  };
3957
3973
  /** @description Invalid request parameters */
@@ -4596,7 +4612,7 @@ export interface operations {
4596
4612
  [name: string]: unknown;
4597
4613
  };
4598
4614
  content: {
4599
- "application/json": components["schemas"]["Mcp"];
4615
+ "application/json": components["schemas"]["McpResponse"];
4600
4616
  };
4601
4617
  };
4602
4618
  /** @description Invalid request parameters */
@@ -5622,7 +5638,7 @@ export interface operations {
5622
5638
  [name: string]: unknown;
5623
5639
  };
5624
5640
  content: {
5625
- "application/json": components["schemas"]["Mcp"];
5641
+ "application/json": components["schemas"]["McpResponse"];
5626
5642
  };
5627
5643
  };
5628
5644
  /** @description Invalid request parameters */
@@ -5692,7 +5708,7 @@ export interface operations {
5692
5708
  [name: string]: unknown;
5693
5709
  };
5694
5710
  content: {
5695
- "application/json": components["schemas"]["Mcp"];
5711
+ "application/json": components["schemas"]["McpResponse"];
5696
5712
  };
5697
5713
  };
5698
5714
  /** @description Invalid request parameters */
@@ -1470,8 +1470,8 @@ export interface components {
1470
1470
  api_format: components["schemas"]["ApiFormat"];
1471
1471
  base_url: string;
1472
1472
  has_api_key: boolean;
1473
- /** @description Models available through this alias with full provider metadata */
1474
- models: components["schemas"]["ApiModel"][];
1473
+ /** @description Models available through this alias with full provider metadata and per-model `access` */
1474
+ models: components["schemas"]["ApiModelResponse"][];
1475
1475
  prefix?: string | null;
1476
1476
  forward_all_with_prefix: boolean;
1477
1477
  extra_headers?: unknown;
@@ -1559,6 +1559,11 @@ export interface components {
1559
1559
  /** @enum {string} */
1560
1560
  api_format: "llm_liberty_oauth";
1561
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
+ };
1562
1567
  /** @description DB-storable `Vec<ApiModel>` — stored as JSON binary in SeaORM columns. */
1563
1568
  ApiModelVec: components["schemas"]["ApiModel"][];
1564
1569
  /** @enum {string} */
@@ -2065,7 +2070,7 @@ export interface components {
2065
2070
  mcp_servers: components["schemas"]["McpServerResponse"][];
2066
2071
  };
2067
2072
  ListMcpsResponse: {
2068
- mcps: components["schemas"]["Mcp"][];
2073
+ mcps: components["schemas"]["McpResponse"][];
2069
2074
  };
2070
2075
  /** @description List users query parameters. Intentionally omits sort fields (unlike PaginationSortParams)
2071
2076
  * because user listing is fetched from the auth service which handles its own ordering. */
@@ -2319,6 +2324,11 @@ export interface components {
2319
2324
  /** @description OAuth token ID to link to this MCP instance (set after OAuth flow). */
2320
2325
  oauth_token_id?: string | null;
2321
2326
  };
2327
+ /** @description `Mcp` plus the request-scoped `access` verdict (kept off the domain entity). */
2328
+ McpResponse: components["schemas"]["Mcp"] & {
2329
+ /** @description Whether the current principal may invoke (connect to) this MCP. */
2330
+ access: boolean;
2331
+ };
2322
2332
  /** @description Admin-managed MCP server registry entry that users create instances of. */
2323
2333
  McpServer: {
2324
2334
  id: string;
@@ -2397,6 +2407,8 @@ export interface components {
2397
2407
  repo: string;
2398
2408
  filename: string;
2399
2409
  snapshot: string;
2410
+ /** @description Whether the current principal may run inference on this model. */
2411
+ access: boolean;
2400
2412
  /**
2401
2413
  * Format: int64
2402
2414
  * @description Local GGUF file size in bytes (present when the file is resolvable on disk)
@@ -2464,6 +2476,8 @@ export interface components {
2464
2476
  source: string;
2465
2477
  id: string;
2466
2478
  alias: string;
2479
+ /** @description Whether the current principal may run inference on this router. */
2480
+ access: boolean;
2467
2481
  targets: components["schemas"]["RouterTarget"][];
2468
2482
  strategy: components["schemas"]["RoutingStrategyConfig"];
2469
2483
  /** Format: date-time */
@@ -3077,6 +3091,8 @@ export interface components {
3077
3091
  filename: string;
3078
3092
  snapshot: string;
3079
3093
  source: string;
3094
+ /** @description Whether the current principal may run inference on this model. */
3095
+ access: boolean;
3080
3096
  model_params: {
3081
3097
  [key: string]: unknown;
3082
3098
  };
@@ -3952,7 +3968,7 @@ export interface operations {
3952
3968
  [name: string]: unknown;
3953
3969
  };
3954
3970
  content: {
3955
- "application/json": components["schemas"]["Mcp"];
3971
+ "application/json": components["schemas"]["McpResponse"];
3956
3972
  };
3957
3973
  };
3958
3974
  /** @description Invalid request parameters */
@@ -4597,7 +4613,7 @@ export interface operations {
4597
4613
  [name: string]: unknown;
4598
4614
  };
4599
4615
  content: {
4600
- "application/json": components["schemas"]["Mcp"];
4616
+ "application/json": components["schemas"]["McpResponse"];
4601
4617
  };
4602
4618
  };
4603
4619
  /** @description Invalid request parameters */
@@ -5623,7 +5639,7 @@ export interface operations {
5623
5639
  [name: string]: unknown;
5624
5640
  };
5625
5641
  content: {
5626
- "application/json": components["schemas"]["Mcp"];
5642
+ "application/json": components["schemas"]["McpResponse"];
5627
5643
  };
5628
5644
  };
5629
5645
  /** @description Invalid request parameters */
@@ -5693,7 +5709,7 @@ export interface operations {
5693
5709
  [name: string]: unknown;
5694
5710
  };
5695
5711
  content: {
5696
- "application/json": components["schemas"]["Mcp"];
5712
+ "application/json": components["schemas"]["McpResponse"];
5697
5713
  };
5698
5714
  };
5699
5715
  /** @description Invalid request parameters */
@@ -152,9 +152,9 @@ export type ApiAliasResponse = {
152
152
  base_url: string;
153
153
  has_api_key: boolean;
154
154
  /**
155
- * Models available through this alias with full provider metadata
155
+ * Models available through this alias with full provider metadata and per-model `access`
156
156
  */
157
- models: Array<ApiModel>;
157
+ models: Array<ApiModelResponse>;
158
158
  prefix?: string | null;
159
159
  forward_all_with_prefix: boolean;
160
160
  extra_headers?: unknown;
@@ -218,6 +218,15 @@ export type ApiModelRequest = (DefaultApiModelRequest & {
218
218
  }) | (LlmLibertyApiModelRequest & {
219
219
  api_format: 'llm_liberty_oauth';
220
220
  });
221
+ /**
222
+ * `ApiModel` plus the request-scoped `access` verdict (kept off the stored shape).
223
+ */
224
+ export type ApiModelResponse = ApiModel & {
225
+ /**
226
+ * Whether the current principal may run inference on this model.
227
+ */
228
+ access: boolean;
229
+ };
221
230
  /**
222
231
  * DB-storable `Vec<ApiModel>` — stored as JSON binary in SeaORM columns.
223
232
  */
@@ -675,7 +684,7 @@ export type ListMcpServersResponse = {
675
684
  mcp_servers: Array<McpServerResponse>;
676
685
  };
677
686
  export type ListMcpsResponse = {
678
- mcps: Array<Mcp>;
687
+ mcps: Array<McpResponse>;
679
688
  };
680
689
  /**
681
690
  * List users query parameters. Intentionally omits sort fields (unlike PaginationSortParams)
@@ -960,6 +969,15 @@ export type McpRequest = {
960
969
  */
961
970
  oauth_token_id?: string | null;
962
971
  };
972
+ /**
973
+ * `Mcp` plus the request-scoped `access` verdict (kept off the domain entity).
974
+ */
975
+ export type McpResponse = Mcp & {
976
+ /**
977
+ * Whether the current principal may invoke (connect to) this MCP.
978
+ */
979
+ access: boolean;
980
+ };
963
981
  /**
964
982
  * Admin-managed MCP server registry entry that users create instances of.
965
983
  */
@@ -1050,6 +1068,10 @@ export type ModelAliasResponse = {
1050
1068
  repo: string;
1051
1069
  filename: string;
1052
1070
  snapshot: string;
1071
+ /**
1072
+ * Whether the current principal may run inference on this model.
1073
+ */
1074
+ access: boolean;
1053
1075
  /**
1054
1076
  * Local GGUF file size in bytes (present when the file is resolvable on disk)
1055
1077
  */
@@ -1125,6 +1147,10 @@ export type ModelRouterResponse = {
1125
1147
  source: string;
1126
1148
  id: string;
1127
1149
  alias: string;
1150
+ /**
1151
+ * Whether the current principal may run inference on this router.
1152
+ */
1153
+ access: boolean;
1128
1154
  targets: Array<RouterTarget>;
1129
1155
  strategy: RoutingStrategyConfig;
1130
1156
  created_at: string;
@@ -1694,6 +1720,10 @@ export type UserAliasResponse = {
1694
1720
  filename: string;
1695
1721
  snapshot: string;
1696
1722
  source: string;
1723
+ /**
1724
+ * Whether the current principal may run inference on this model.
1725
+ */
1726
+ access: boolean;
1697
1727
  model_params: {};
1698
1728
  request_params: OaiRequestParams;
1699
1729
  context_params: Array<string>;
@@ -2257,7 +2287,7 @@ export type AppsGetMcpResponses = {
2257
2287
  /**
2258
2288
  * MCP instance
2259
2289
  */
2260
- 200: Mcp;
2290
+ 200: McpResponse;
2261
2291
  };
2262
2292
  export type AppsGetMcpResponse = AppsGetMcpResponses[keyof AppsGetMcpResponses];
2263
2293
  export type McpProxyData = {
@@ -2601,7 +2631,7 @@ export type CreateMcpResponses = {
2601
2631
  /**
2602
2632
  * MCP created
2603
2633
  */
2604
- 201: Mcp;
2634
+ 201: McpResponse;
2605
2635
  };
2606
2636
  export type CreateMcpResponse = CreateMcpResponses[keyof CreateMcpResponses];
2607
2637
  export type ListMcpAuthConfigsData = {
@@ -3250,7 +3280,7 @@ export type GetMcpResponses = {
3250
3280
  /**
3251
3281
  * MCP instance
3252
3282
  */
3253
- 200: Mcp;
3283
+ 200: McpResponse;
3254
3284
  };
3255
3285
  export type GetMcpResponse = GetMcpResponses[keyof GetMcpResponses];
3256
3286
  export type UpdateMcpData = {
@@ -3291,7 +3321,7 @@ export type UpdateMcpResponses = {
3291
3321
  /**
3292
3322
  * MCP updated
3293
3323
  */
3294
- 200: Mcp;
3324
+ 200: McpResponse;
3295
3325
  };
3296
3326
  export type UpdateMcpResponse = UpdateMcpResponses[keyof UpdateMcpResponses];
3297
3327
  export type ListAllModelsData = {
@@ -163,9 +163,9 @@ export type ApiAliasResponse = {
163
163
  base_url: string;
164
164
  has_api_key: boolean;
165
165
  /**
166
- * Models available through this alias with full provider metadata
166
+ * Models available through this alias with full provider metadata and per-model `access`
167
167
  */
168
- models: Array<ApiModel>;
168
+ models: Array<ApiModelResponse>;
169
169
  prefix?: string | null;
170
170
  forward_all_with_prefix: boolean;
171
171
  extra_headers?: unknown;
@@ -236,6 +236,16 @@ export type ApiModelRequest = (DefaultApiModelRequest & {
236
236
  api_format: 'llm_liberty_oauth';
237
237
  });
238
238
 
239
+ /**
240
+ * `ApiModel` plus the request-scoped `access` verdict (kept off the stored shape).
241
+ */
242
+ export type ApiModelResponse = ApiModel & {
243
+ /**
244
+ * Whether the current principal may run inference on this model.
245
+ */
246
+ access: boolean;
247
+ };
248
+
239
249
  /**
240
250
  * DB-storable `Vec<ApiModel>` — stored as JSON binary in SeaORM columns.
241
251
  */
@@ -737,7 +747,7 @@ export type ListMcpServersResponse = {
737
747
  };
738
748
 
739
749
  export type ListMcpsResponse = {
740
- mcps: Array<Mcp>;
750
+ mcps: Array<McpResponse>;
741
751
  };
742
752
 
743
753
  /**
@@ -1048,6 +1058,16 @@ export type McpRequest = {
1048
1058
  oauth_token_id?: string | null;
1049
1059
  };
1050
1060
 
1061
+ /**
1062
+ * `Mcp` plus the request-scoped `access` verdict (kept off the domain entity).
1063
+ */
1064
+ export type McpResponse = Mcp & {
1065
+ /**
1066
+ * Whether the current principal may invoke (connect to) this MCP.
1067
+ */
1068
+ access: boolean;
1069
+ };
1070
+
1051
1071
  /**
1052
1072
  * Admin-managed MCP server registry entry that users create instances of.
1053
1073
  */
@@ -1145,6 +1165,10 @@ export type ModelAliasResponse = {
1145
1165
  repo: string;
1146
1166
  filename: string;
1147
1167
  snapshot: string;
1168
+ /**
1169
+ * Whether the current principal may run inference on this model.
1170
+ */
1171
+ access: boolean;
1148
1172
  /**
1149
1173
  * Local GGUF file size in bytes (present when the file is resolvable on disk)
1150
1174
  */
@@ -1227,6 +1251,10 @@ export type ModelRouterResponse = {
1227
1251
  source: string;
1228
1252
  id: string;
1229
1253
  alias: string;
1254
+ /**
1255
+ * Whether the current principal may run inference on this router.
1256
+ */
1257
+ access: boolean;
1230
1258
  targets: Array<RouterTarget>;
1231
1259
  strategy: RoutingStrategyConfig;
1232
1260
  created_at: string;
@@ -1857,6 +1885,10 @@ export type UserAliasResponse = {
1857
1885
  filename: string;
1858
1886
  snapshot: string;
1859
1887
  source: string;
1888
+ /**
1889
+ * Whether the current principal may run inference on this model.
1890
+ */
1891
+ access: boolean;
1860
1892
  model_params: {};
1861
1893
  request_params: OaiRequestParams;
1862
1894
  context_params: Array<string>;
@@ -2482,7 +2514,7 @@ export type AppsGetMcpResponses = {
2482
2514
  /**
2483
2515
  * MCP instance
2484
2516
  */
2485
- 200: Mcp;
2517
+ 200: McpResponse;
2486
2518
  };
2487
2519
 
2488
2520
  export type AppsGetMcpResponse = AppsGetMcpResponses[keyof AppsGetMcpResponses];
@@ -2875,7 +2907,7 @@ export type CreateMcpResponses = {
2875
2907
  /**
2876
2908
  * MCP created
2877
2909
  */
2878
- 201: Mcp;
2910
+ 201: McpResponse;
2879
2911
  };
2880
2912
 
2881
2913
  export type CreateMcpResponse = CreateMcpResponses[keyof CreateMcpResponses];
@@ -3609,7 +3641,7 @@ export type GetMcpResponses = {
3609
3641
  /**
3610
3642
  * MCP instance
3611
3643
  */
3612
- 200: Mcp;
3644
+ 200: McpResponse;
3613
3645
  };
3614
3646
 
3615
3647
  export type GetMcpResponse = GetMcpResponses[keyof GetMcpResponses];
@@ -3655,7 +3687,7 @@ export type UpdateMcpResponses = {
3655
3687
  /**
3656
3688
  * MCP updated
3657
3689
  */
3658
- 200: Mcp;
3690
+ 200: McpResponse;
3659
3691
  };
3660
3692
 
3661
3693
  export type UpdateMcpResponse = UpdateMcpResponses[keyof UpdateMcpResponses];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bodhiapp/ts-client",
3
- "version": "0.1.35",
3
+ "version": "0.1.37",
4
4
  "description": "TypeScript types for Bodhi API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",