@babav/knowledge-core-client 0.50.0 → 0.51.0

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 CHANGED
@@ -555,7 +555,8 @@ export type QueryProfileWrite = Partial<Omit<QueryProfile, "id" | "tenant_id" |
555
555
  /** Model catalog for the query-profile-config UI (GET /v1/query-profiles/model-options). `models` maps id → its
556
556
  * capabilities; `fields` gives each profile model-field its supported ids + default (+ usage metadata);
557
557
  * `modes` says which model field governs each mode (reasoning is valid only if that model's
558
- * supports_reasoning is true). KC provides the data; the UI decides presentation. */
558
+ * supports_reasoning is true); `rerankers` gives the supported values for a profile's `reranker_provider`
559
+ * field + the system default. KC provides the data; the UI decides presentation. */
559
560
  export interface ModelOptions {
560
561
  models: Record<string, {
561
562
  label: string;
@@ -574,6 +575,11 @@ export interface ModelOptions {
574
575
  depends_on: string;
575
576
  values: string[];
576
577
  }>;
578
+ /** Supported `reranker_provider` values (null on a profile => system default). */
579
+ rerankers: {
580
+ supported: string[];
581
+ default: string;
582
+ };
577
583
  }
578
584
  export type BenchmarkTier = "client_quick" | "screening" | "full";
579
585
  export type BenchmarkCategory = "quality" | "quality_cost" | "quality_latency";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babav/knowledge-core-client",
3
- "version": "0.50.0",
3
+ "version": "0.51.0",
4
4
  "description": "TypeScript client for the Babav Knowledge Core API (Deno + Node 18+, zero deps). Includes the babav.visual grammar TYPES at the ./visual subpath (types only; all visual rendering is server-side).",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/src/index.ts CHANGED
@@ -529,11 +529,14 @@ export type QueryProfileWrite = Partial<Omit<QueryProfile,
529
529
  /** Model catalog for the query-profile-config UI (GET /v1/query-profiles/model-options). `models` maps id → its
530
530
  * capabilities; `fields` gives each profile model-field its supported ids + default (+ usage metadata);
531
531
  * `modes` says which model field governs each mode (reasoning is valid only if that model's
532
- * supports_reasoning is true). KC provides the data; the UI decides presentation. */
532
+ * supports_reasoning is true); `rerankers` gives the supported values for a profile's `reranker_provider`
533
+ * field + the system default. KC provides the data; the UI decides presentation. */
533
534
  export interface ModelOptions {
534
535
  models: Record<string, { label: string; provider: "anthropic" | "vertex" | "moonshot"; kind: "text" | "vision"; supports_reasoning: boolean }>;
535
536
  fields: Record<string, { supported: string[]; default: string; applies_when?: string; applies_to?: string[]; note?: string }>;
536
537
  modes: Record<string, { depends_on: string; values: string[] }>;
538
+ /** Supported `reranker_provider` values (null on a profile => system default). */
539
+ rerankers: { supported: string[]; default: string };
537
540
  }
538
541
 
539
542
  // ---- benchmark (score-my-profile + leaderboards) --------------------------