@bodhiapp/reference-api-types 0.0.6 → 0.0.8
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/index.d.ts +25 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -228,6 +228,8 @@ export interface ModelFacets {
|
|
|
228
228
|
status: FacetBucket;
|
|
229
229
|
/** provider slug → model count. */
|
|
230
230
|
provider: FacetBucket;
|
|
231
|
+
/** family name → model count. Null/absent family is omitted (no key). */
|
|
232
|
+
family: FacetBucket;
|
|
231
233
|
/** keys: open|closed. */
|
|
232
234
|
open_weights: FacetBucket;
|
|
233
235
|
}
|
|
@@ -278,12 +280,20 @@ export interface ProviderDetailResponse {
|
|
|
278
280
|
provider_shape: ProviderShape;
|
|
279
281
|
bridge: ConfigureBridge;
|
|
280
282
|
}
|
|
283
|
+
/** Sort direction; applied on top of each sort key's natural default. */
|
|
284
|
+
export type SortOrder = 'asc' | 'desc';
|
|
281
285
|
export interface ListProvidersQuery {
|
|
282
286
|
q?: string;
|
|
287
|
+
/** Repeatable; AND. */
|
|
283
288
|
capability?: Capability | Capability[];
|
|
284
289
|
api_format?: ApiFormatHint | ApiFormatHint[];
|
|
290
|
+
/** Min input price ($/1M) across the provider's models. */
|
|
285
291
|
pricing_max?: number;
|
|
286
|
-
|
|
292
|
+
/** "free" = cheapest model is $0; "paid" = has a positive price. */
|
|
293
|
+
pricing?: 'free' | 'paid';
|
|
294
|
+
/** Defaults: rank/model_count desc, name/api_format asc, pricing asc (free first). */
|
|
295
|
+
sort?: 'rank' | 'name' | 'model_count' | 'api_format' | 'pricing';
|
|
296
|
+
order?: SortOrder;
|
|
287
297
|
page?: number;
|
|
288
298
|
page_size?: number;
|
|
289
299
|
}
|
|
@@ -303,7 +313,9 @@ export interface ProviderModelsResponse {
|
|
|
303
313
|
total: number;
|
|
304
314
|
}
|
|
305
315
|
export interface ListProviderModelsQuery {
|
|
316
|
+
/** Defaults: context desc, name asc, price asc. */
|
|
306
317
|
sort?: 'name' | 'context' | 'price';
|
|
318
|
+
order?: SortOrder;
|
|
307
319
|
}
|
|
308
320
|
/** One logical model (serving rows grouped by canonical_id). `slug`/`model_id`/`pricing` are the
|
|
309
321
|
* primary (cheapest input_per_m) provider in the group. */
|
|
@@ -331,15 +343,25 @@ export interface ListCatalogModelsQuery {
|
|
|
331
343
|
capability?: Capability | Capability[];
|
|
332
344
|
/** Repeatable; OR. Matches modalities_in ∪ modalities_out. */
|
|
333
345
|
modality?: Modality | Modality[];
|
|
346
|
+
/** Max input price ($/1M). `pricing_max=0` selects free (zero input price) models. */
|
|
334
347
|
pricing_max?: number;
|
|
335
|
-
|
|
348
|
+
/** Min input price ($/1M). */
|
|
349
|
+
pricing_min?: number;
|
|
350
|
+
/** Max output price ($/1M). */
|
|
351
|
+
pricing_out_max?: number;
|
|
336
352
|
context_min?: number;
|
|
337
353
|
/** Repeatable. "stable" selects rows whose status is ABSENT. */
|
|
338
354
|
status?: ('alpha' | 'beta' | 'deprecated' | 'stable') | ('alpha' | 'beta' | 'deprecated' | 'stable')[];
|
|
339
355
|
/** Repeatable; OR. */
|
|
340
356
|
provider?: string | string[];
|
|
357
|
+
/** Repeatable; OR. Case-insensitive match on the model family. */
|
|
358
|
+
family?: string | string[];
|
|
341
359
|
open_weights?: 'open' | 'closed';
|
|
342
|
-
|
|
360
|
+
/** "relevance" ranks by full-text match (bm25); only meaningful with `q`. Default "updated".
|
|
361
|
+
* "price"/"price_out" sort by input/output price. */
|
|
362
|
+
sort?: 'relevance' | 'updated' | 'context' | 'price' | 'price_out' | 'name' | 'family' | 'providers';
|
|
363
|
+
/** Defaults: name/family asc, price/price_out asc, context/providers/updated/relevance desc. */
|
|
364
|
+
order?: SortOrder;
|
|
343
365
|
page?: number;
|
|
344
366
|
page_size?: number;
|
|
345
367
|
}
|
package/package.json
CHANGED