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