@dbx-tools/dbx-model-catalog 0.2.0 → 0.3.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/README.md +294 -57
- package/dist/_generated/channels.d.ts +4 -3
- package/dist/_generated/json-schema.d.ts +6527 -175
- package/dist/_generated/schemas.d.ts +154 -0
- package/dist/_generated/workspace-rules.d.ts +133 -0
- package/dist/browser.d.ts +34 -17
- package/dist/browser.js +1192 -149
- package/dist/catalog-index.d.ts +15 -2
- package/dist/chunk-engbh7tj.js +39 -0
- package/dist/chunk-gzjer0mc.js +1797 -0
- package/dist/chunk-pp7fw379.js +51 -0
- package/dist/chunk-pwssxaq0.js +39 -0
- package/dist/cli.js +9 -654
- package/dist/effective.d.ts +31 -0
- package/dist/index.d.ts +33 -16
- package/dist/index.js +60 -660
- package/dist/local-client.d.ts +16 -3
- package/dist/pynect.d.ts +6 -3
- package/dist/search.d.ts +7 -1
- package/dist/serving-endpoints.d.ts +15 -0
- package/dist/sources.d.ts +30 -0
- package/dist/types.d.ts +31 -3
- package/dist/validation.d.ts +15 -1
- package/dist/workspace-cache.d.ts +68 -0
- package/dist/workspace-client.d.ts +49 -0
- package/dist/workspace-connection.d.ts +67 -0
- package/dist/workspace-file-cache.d.ts +11 -0
- package/dist/workspace-identity.d.ts +27 -0
- package/dist/workspace-overlay.d.ts +71 -0
- package/package.json +5 -6
- package/src/_generated/channels.ts +5 -2
- package/src/_generated/json-schema.ts +4 -2
- package/src/_generated/schemas.ts +177 -0
- package/src/_generated/workspace-rules.ts +285 -0
- package/src/browser.ts +105 -54
- package/src/catalog-index.ts +46 -19
- package/src/cli.ts +8 -11
- package/src/effective.ts +200 -0
- package/src/identity.ts +3 -26
- package/src/index.ts +155 -82
- package/src/local-client.ts +94 -18
- package/src/pynect.ts +28 -65
- package/src/search.ts +48 -0
- package/src/serving-endpoints.ts +157 -0
- package/src/sources.ts +107 -0
- package/src/types.ts +32 -2
- package/src/validation.ts +33 -0
- package/src/workspace-cache.ts +234 -0
- package/src/workspace-client.ts +134 -0
- package/src/workspace-connection.ts +160 -0
- package/src/workspace-file-cache.ts +45 -0
- package/src/workspace-identity.ts +77 -0
- package/src/workspace-overlay.ts +200 -0
- package/dist/pynect.js +0 -557
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/** AI Gateway relative quality, speed, and cost profile. */
|
|
2
|
+
export interface AiGatewayModelProfile {
|
|
3
|
+
quality?: number | null;
|
|
4
|
+
speed?: number | null;
|
|
5
|
+
cost?: number | null;
|
|
6
|
+
}
|
|
1
7
|
/** Model availability on one Databricks cloud provider. */
|
|
2
8
|
export interface Availability {
|
|
3
9
|
status: Status1;
|
|
@@ -141,8 +147,56 @@ export interface CatalogSearchWeights {
|
|
|
141
147
|
}
|
|
142
148
|
/** Default reasoning effort when no level is specified. */
|
|
143
149
|
export type DefaultEffort = "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "default";
|
|
150
|
+
/** Accessible endpoint: normalized live metadata, public match, and field provenance. */
|
|
151
|
+
export interface EffectiveEndpoint {
|
|
152
|
+
/** Invocable serving endpoint name. */
|
|
153
|
+
name: string;
|
|
154
|
+
display_name?: string | null;
|
|
155
|
+
description?: string | null;
|
|
156
|
+
/** Databricks serving task, such as llm/v1/chat. */
|
|
157
|
+
task?: string | null;
|
|
158
|
+
/** Catalog type mapped from a known task. */
|
|
159
|
+
type?: Type | null;
|
|
160
|
+
/** Modalities mapped from a known task. */
|
|
161
|
+
modalities?: Modalities | null;
|
|
162
|
+
/** Endpoint readiness, such as READY. */
|
|
163
|
+
state?: string | null;
|
|
164
|
+
source: WorkspaceEndpointSource;
|
|
165
|
+
family?: string | null;
|
|
166
|
+
capabilities: WorkspaceEndpointCapabilities;
|
|
167
|
+
profile?: WorkspaceModelProfile | null;
|
|
168
|
+
identities: Array<IdentityCandidate>;
|
|
169
|
+
match?: MatchedPublicIdentity | null;
|
|
170
|
+
/** Origin of each overlay or placeholder field (dotted path). Matched records inherit every unlisted field from the public record, attributed by the record's sources; placeholder values are schema-required, not facts. */
|
|
171
|
+
fields: Record<string, FieldOrigin>;
|
|
172
|
+
}
|
|
173
|
+
/** Public catalog merged with one workspace's accessible endpoints. */
|
|
174
|
+
export interface EffectiveModelCatalog {
|
|
175
|
+
contract_version: number;
|
|
176
|
+
catalog: ModelCatalog;
|
|
177
|
+
workspace: WorkspaceRefresh;
|
|
178
|
+
/** Accessible endpoints keyed by invocable endpoint name, which is also the record id in catalog.models when the endpoint has a record. An unmatched endpoint whose task maps to no catalog type is listed here only. Records without an entry are public references not confirmed accessible in the workspace. */
|
|
179
|
+
endpoints: Record<string, EffectiveEndpoint>;
|
|
180
|
+
}
|
|
144
181
|
/** Normalized reasoning effort level. */
|
|
145
182
|
export type EffortEnum = "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "default";
|
|
183
|
+
/** External model provider and name reported for a served entity. */
|
|
184
|
+
export interface ExternalModel {
|
|
185
|
+
name?: string | null;
|
|
186
|
+
provider?: string | null;
|
|
187
|
+
task?: string | null;
|
|
188
|
+
}
|
|
189
|
+
/** Where an effective record field value came from. */
|
|
190
|
+
export type FieldOrigin = "workspace" | "public" | "placeholder";
|
|
191
|
+
/** Foundation model metadata reported for a served entity. */
|
|
192
|
+
export interface FoundationModel {
|
|
193
|
+
name?: string | null;
|
|
194
|
+
display_name?: string | null;
|
|
195
|
+
description?: string | null;
|
|
196
|
+
docs?: string | null;
|
|
197
|
+
model_class?: string | null;
|
|
198
|
+
ai_gateway_model_profile?: AiGatewayModelProfile | null;
|
|
199
|
+
}
|
|
146
200
|
export interface GetCatalogRequest {
|
|
147
201
|
action: "get_catalog";
|
|
148
202
|
payload: CatalogFilters;
|
|
@@ -159,6 +213,11 @@ export interface GetSearchIndexResponse {
|
|
|
159
213
|
action: "search_index";
|
|
160
214
|
payload: CatalogSearchIndexPayload;
|
|
161
215
|
}
|
|
216
|
+
/** One exact identity reported for an endpoint. */
|
|
217
|
+
export interface IdentityCandidate {
|
|
218
|
+
kind: "endpoint_name" | "served_entity" | "foundation_model" | "external_model" | "model_service";
|
|
219
|
+
value: string;
|
|
220
|
+
}
|
|
162
221
|
/** Known model input and output modalities. */
|
|
163
222
|
export type Input = "text" | "image" | "audio" | "video" | "application/pdf" | "embedding" | "reranking" | "decision";
|
|
164
223
|
/** Known Databricks documentation notice kinds. */
|
|
@@ -190,6 +249,14 @@ export interface ListModelsResponse {
|
|
|
190
249
|
action: "models";
|
|
191
250
|
payload: Array<CatalogModelRecord>;
|
|
192
251
|
}
|
|
252
|
+
/** Public catalog record an endpoint matched, and the endpoint identity that matched it. */
|
|
253
|
+
export interface MatchedPublicIdentity {
|
|
254
|
+
/** Public catalog record id. */
|
|
255
|
+
id: string;
|
|
256
|
+
kind: "endpoint_name" | "served_entity" | "foundation_model" | "external_model" | "model_service";
|
|
257
|
+
/** Endpoint identity that matched exactly. */
|
|
258
|
+
value: string;
|
|
259
|
+
}
|
|
193
260
|
/** Model input and output modalities. */
|
|
194
261
|
export interface Modalities {
|
|
195
262
|
input: Array<Input | string>;
|
|
@@ -210,6 +277,14 @@ export interface Notice {
|
|
|
210
277
|
}
|
|
211
278
|
/** Known model input and output modalities. */
|
|
212
279
|
export type Output = "text" | "image" | "audio" | "video" | "application/pdf" | "embedding" | "reranking" | "decision";
|
|
280
|
+
export interface OverlayServingEndpointsRequest {
|
|
281
|
+
action: "overlay_serving_endpoints";
|
|
282
|
+
payload: ServingEndpointsResponse;
|
|
283
|
+
}
|
|
284
|
+
export interface OverlayServingEndpointsResponse {
|
|
285
|
+
action: "effective_catalog";
|
|
286
|
+
payload: EffectiveModelCatalog;
|
|
287
|
+
}
|
|
213
288
|
/** Normalized Databricks price in one currency. */
|
|
214
289
|
export interface Price {
|
|
215
290
|
unit: Unit;
|
|
@@ -294,6 +369,54 @@ export interface Schedule {
|
|
|
294
369
|
offering: string;
|
|
295
370
|
dates: Array<string>;
|
|
296
371
|
}
|
|
372
|
+
/** One served entity in a Serving Endpoints configuration. */
|
|
373
|
+
export interface ServedEntity {
|
|
374
|
+
name?: string | null;
|
|
375
|
+
entity_name?: string | null;
|
|
376
|
+
entity_version?: string | null;
|
|
377
|
+
foundation_model?: FoundationModel | null;
|
|
378
|
+
external_model?: ExternalModel | null;
|
|
379
|
+
}
|
|
380
|
+
/** Legacy served model in a Serving Endpoints configuration. */
|
|
381
|
+
export interface ServedModel {
|
|
382
|
+
name?: string | null;
|
|
383
|
+
model_name?: string | null;
|
|
384
|
+
model_version?: string | null;
|
|
385
|
+
}
|
|
386
|
+
/** One serving endpoint from ``GET /api/2.0/serving-endpoints``. */
|
|
387
|
+
export interface ServingEndpoint {
|
|
388
|
+
name?: string | null;
|
|
389
|
+
id?: string | null;
|
|
390
|
+
description?: string | null;
|
|
391
|
+
task?: string | null;
|
|
392
|
+
state?: ServingEndpointState | null;
|
|
393
|
+
config?: ServingEndpointConfig | null;
|
|
394
|
+
tags?: Array<ServingEndpointTag>;
|
|
395
|
+
capabilities?: ServingEndpointCapabilities | null;
|
|
396
|
+
}
|
|
397
|
+
/** Explicit endpoint capabilities reported by the workspace. */
|
|
398
|
+
export interface ServingEndpointCapabilities {
|
|
399
|
+
function_calling?: boolean | null;
|
|
400
|
+
}
|
|
401
|
+
/** Served entities and legacy served models for one endpoint. */
|
|
402
|
+
export interface ServingEndpointConfig {
|
|
403
|
+
served_entities?: Array<ServedEntity>;
|
|
404
|
+
served_models?: Array<ServedModel>;
|
|
405
|
+
}
|
|
406
|
+
/** Serving endpoint readiness and configuration update state. */
|
|
407
|
+
export interface ServingEndpointState {
|
|
408
|
+
ready?: string | null;
|
|
409
|
+
config_update?: string | null;
|
|
410
|
+
}
|
|
411
|
+
/** User-defined serving endpoint tag. */
|
|
412
|
+
export interface ServingEndpointTag {
|
|
413
|
+
key: string;
|
|
414
|
+
value?: string | null;
|
|
415
|
+
}
|
|
416
|
+
/** Raw ``GET /api/2.0/serving-endpoints`` response body. */
|
|
417
|
+
export interface ServingEndpointsResponse {
|
|
418
|
+
endpoints?: Array<ServingEndpoint>;
|
|
419
|
+
}
|
|
297
420
|
/** Databricks serving mode available for the model. */
|
|
298
421
|
export type ServingMode = "pay_per_token" | "priority_pay_per_token" | "provisioned_throughput" | "batch";
|
|
299
422
|
/** Openable attribution for published catalog data. */
|
|
@@ -352,3 +475,34 @@ export interface Variant2 {
|
|
|
352
475
|
harness?: string | null;
|
|
353
476
|
context?: number | null;
|
|
354
477
|
}
|
|
478
|
+
/** Capabilities the workspace states explicitly; ``None`` means unknown. */
|
|
479
|
+
export interface WorkspaceEndpointCapabilities {
|
|
480
|
+
function_calling?: boolean | null;
|
|
481
|
+
}
|
|
482
|
+
/** How the workspace serves the endpoint's model. */
|
|
483
|
+
export type WorkspaceEndpointSource = "foundation" | "external" | "custom";
|
|
484
|
+
/** AI Gateway relative quality, speed, and cost scores. */
|
|
485
|
+
export interface WorkspaceModelProfile {
|
|
486
|
+
quality?: number | null;
|
|
487
|
+
speed?: number | null;
|
|
488
|
+
cost?: number | null;
|
|
489
|
+
}
|
|
490
|
+
/** Workspace overlay refresh state for one effective catalog. */
|
|
491
|
+
export interface WorkspaceRefresh {
|
|
492
|
+
/** disabled: no workspace connection. current: overlay refreshed within the refresh interval. stale: a cached overlay served after a failed refresh. unavailable: discovery failed with no eligible cached overlay, so no workspace access is claimed. */
|
|
493
|
+
status: WorkspaceRefreshStatus;
|
|
494
|
+
/** Normalized workspace identity: id:<workspace id> or host:<host[/path]>. */
|
|
495
|
+
workspace?: string | null;
|
|
496
|
+
/** True when the overlay is stored in the shared persistent cache. */
|
|
497
|
+
persistent?: boolean;
|
|
498
|
+
/** When the served endpoint inventory was fetched. */
|
|
499
|
+
refreshed_at?: string | null;
|
|
500
|
+
/** When the most recent refresh was attempted. */
|
|
501
|
+
attempted_at?: string | null;
|
|
502
|
+
/** Age of the served inventory when this catalog was built. */
|
|
503
|
+
age_seconds?: number | null;
|
|
504
|
+
/** Most recent refresh error. */
|
|
505
|
+
error?: string | null;
|
|
506
|
+
}
|
|
507
|
+
/** Whether, and how currently, workspace enrichment applies. */
|
|
508
|
+
export type WorkspaceRefreshStatus = "disabled" | "current" | "stale" | "unavailable";
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
export declare const WORKSPACE_OVERLAY_RULES: {
|
|
2
|
+
readonly contract_version: 1;
|
|
3
|
+
readonly serving_endpoints_path: "/api/2.0/serving-endpoints";
|
|
4
|
+
readonly principal: {
|
|
5
|
+
readonly path: "/api/2.0/preview/scim/v2/Me";
|
|
6
|
+
readonly fields: readonly ["id", "userName"];
|
|
7
|
+
};
|
|
8
|
+
readonly cache: {
|
|
9
|
+
readonly refresh_interval_seconds: 300;
|
|
10
|
+
readonly stale_ttl_seconds: 604800;
|
|
11
|
+
};
|
|
12
|
+
readonly identity_fields: readonly [{
|
|
13
|
+
readonly kind: "endpoint_name";
|
|
14
|
+
readonly path: readonly ["name"];
|
|
15
|
+
}, {
|
|
16
|
+
readonly kind: "served_entity";
|
|
17
|
+
readonly path: readonly ["config", "served_entities", "*", "entity_name"];
|
|
18
|
+
}, {
|
|
19
|
+
readonly kind: "served_entity";
|
|
20
|
+
readonly path: readonly ["config", "served_models", "*", "model_name"];
|
|
21
|
+
}, {
|
|
22
|
+
readonly kind: "foundation_model";
|
|
23
|
+
readonly path: readonly ["config", "served_entities", "*", "foundation_model", "name"];
|
|
24
|
+
}, {
|
|
25
|
+
readonly kind: "external_model";
|
|
26
|
+
readonly path: readonly ["config", "served_entities", "*", "external_model", "name"];
|
|
27
|
+
}, {
|
|
28
|
+
readonly kind: "external_model";
|
|
29
|
+
readonly path: readonly ["config", "served_entities", "*", "external_model"];
|
|
30
|
+
readonly join: readonly ["provider", "name"];
|
|
31
|
+
}];
|
|
32
|
+
readonly model_service_prefixes: readonly ["system.ai."];
|
|
33
|
+
readonly display_name_fields: readonly [readonly ["config", "served_entities", "*", "foundation_model", "display_name"]];
|
|
34
|
+
readonly display_name_tag_keys: readonly ["display_name", "displayName"];
|
|
35
|
+
readonly description_fields: readonly [readonly ["description"], readonly ["config", "served_entities", "*", "foundation_model", "description"]];
|
|
36
|
+
readonly family_fields: readonly [readonly ["config", "served_entities", "*", "foundation_model", "model_class"]];
|
|
37
|
+
readonly profile_fields: readonly [readonly ["config", "served_entities", "*", "foundation_model", "ai_gateway_model_profile"]];
|
|
38
|
+
readonly profile_keys: readonly ["quality", "speed", "cost"];
|
|
39
|
+
readonly capability_fields: {
|
|
40
|
+
readonly function_calling: readonly ["capabilities", "function_calling"];
|
|
41
|
+
};
|
|
42
|
+
readonly task_types: {
|
|
43
|
+
readonly "llm/v1/chat": {
|
|
44
|
+
readonly type: "chat";
|
|
45
|
+
readonly modalities: {
|
|
46
|
+
readonly input: readonly ["text"];
|
|
47
|
+
readonly output: readonly ["text"];
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
readonly "llm/v1/completions": {
|
|
51
|
+
readonly type: "chat";
|
|
52
|
+
readonly modalities: {
|
|
53
|
+
readonly input: readonly ["text"];
|
|
54
|
+
readonly output: readonly ["text"];
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
readonly "llm/v1/embeddings": {
|
|
58
|
+
readonly type: "embedding";
|
|
59
|
+
readonly modalities: {
|
|
60
|
+
readonly input: readonly ["text"];
|
|
61
|
+
readonly output: readonly ["embedding"];
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
readonly "agent/v1/chat": {
|
|
65
|
+
readonly type: "chat";
|
|
66
|
+
readonly modalities: {
|
|
67
|
+
readonly input: readonly ["text"];
|
|
68
|
+
readonly output: readonly ["text"];
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
readonly "agent/v2/chat": {
|
|
72
|
+
readonly type: "chat";
|
|
73
|
+
readonly modalities: {
|
|
74
|
+
readonly input: readonly ["text"];
|
|
75
|
+
readonly output: readonly ["text"];
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
readonly "agent/v1/responses": {
|
|
79
|
+
readonly type: "chat";
|
|
80
|
+
readonly modalities: {
|
|
81
|
+
readonly input: readonly ["text"];
|
|
82
|
+
readonly output: readonly ["text"];
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
readonly overlay_fields: readonly [{
|
|
87
|
+
readonly target: "name";
|
|
88
|
+
readonly source: "display_name";
|
|
89
|
+
}, {
|
|
90
|
+
readonly target: "description";
|
|
91
|
+
readonly source: "description";
|
|
92
|
+
}, {
|
|
93
|
+
readonly target: "family";
|
|
94
|
+
readonly source: "family";
|
|
95
|
+
}, {
|
|
96
|
+
readonly target: "capabilities.tools";
|
|
97
|
+
readonly source: "capabilities.function_calling";
|
|
98
|
+
}, {
|
|
99
|
+
readonly target: "type";
|
|
100
|
+
readonly source: "type";
|
|
101
|
+
readonly unmatched_only: true;
|
|
102
|
+
}, {
|
|
103
|
+
readonly target: "modalities";
|
|
104
|
+
readonly source: "modalities";
|
|
105
|
+
readonly unmatched_only: true;
|
|
106
|
+
}];
|
|
107
|
+
readonly placeholders: {
|
|
108
|
+
readonly description: "";
|
|
109
|
+
readonly type: "chat";
|
|
110
|
+
readonly status: "active";
|
|
111
|
+
readonly modalities: {
|
|
112
|
+
readonly input: readonly [];
|
|
113
|
+
readonly output: readonly [];
|
|
114
|
+
};
|
|
115
|
+
readonly "capabilities.responses": false;
|
|
116
|
+
readonly "capabilities.apply_patch": false;
|
|
117
|
+
readonly "capabilities.web_search": false;
|
|
118
|
+
};
|
|
119
|
+
readonly runtime_search_quality: {
|
|
120
|
+
readonly leaderboard: 50;
|
|
121
|
+
readonly benchmark: 50;
|
|
122
|
+
readonly version: 50;
|
|
123
|
+
readonly freshness: 50;
|
|
124
|
+
readonly lifecycle: 100;
|
|
125
|
+
};
|
|
126
|
+
readonly provider_prefixes: readonly ["alibaba", "anthropic", "deepseek", "google", "meta", "moonshot", "openai", "xai", "zhipu"];
|
|
127
|
+
readonly provider_families: readonly ["claude", "deepseek", "gemini", "gemma", "glm", "gpt", "grok", "gte", "bge", "kimi", "llama", "qwen"];
|
|
128
|
+
readonly workspace_identity: {
|
|
129
|
+
readonly header_names: readonly ["x-databricks-org-id", "x-databricks-workspace-id"];
|
|
130
|
+
readonly host_patterns: readonly ["^adb-(\\d+)\\.\\d+\\.azuredatabricks\\.net$", "^(\\d+)\\.\\d+\\.gcp\\.databricks\\.com$"];
|
|
131
|
+
readonly query_parameters: readonly ["o"];
|
|
132
|
+
};
|
|
133
|
+
};
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,18 +1,35 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { type CatalogSourceOptions, type ModelCatalogSourceInput } from "./sources.js";
|
|
2
|
+
import type { ModelCatalogClient } from "./types.js";
|
|
3
|
+
import { type BrowserModelServingClientOption } from "./workspace-connection.js";
|
|
4
|
+
import type { WorkspaceCacheOptions } from "./workspace-overlay.js";
|
|
5
|
+
/** Options for the browser `createModelCatalogClient`. */
|
|
6
|
+
interface BrowserModelCatalogClientOptions extends CatalogSourceOptions {
|
|
7
|
+
/**
|
|
8
|
+
* Workspace connection: a `{ host, headers }` connection or a sync or async function returning
|
|
9
|
+
* one. SDK clients need the Node entry point.
|
|
10
|
+
*/
|
|
11
|
+
modelServingClient?: BrowserModelServingClientOption;
|
|
12
|
+
/** Workspace overlay refresh and cache settings. Defaults to process memory. */
|
|
13
|
+
workspaceCache?: WorkspaceCacheOptions;
|
|
10
14
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
export
|
|
15
|
+
/**
|
|
16
|
+
* Create a catalog client from any source: the published catalog by default, an `http(s)` catalog
|
|
17
|
+
* URL (its `search-index.json` is read from the same directory), a `ws(s)` URL of the Python
|
|
18
|
+
* catalog server (needs the optional `pynect` and `@chanx-js/client` peers), or an in-memory
|
|
19
|
+
* catalog with `options.searchIndex`. With `modelServingClient` every read serves the
|
|
20
|
+
* workspace-effective catalog, whatever the source.
|
|
21
|
+
*/
|
|
22
|
+
export declare function createModelCatalogClient(source?: ModelCatalogSourceInput, options?: BrowserModelCatalogClientOptions): Promise<ModelCatalogClient>;
|
|
23
|
+
export type { BrowserModelCatalogClientOptions as ModelCatalogClientOptions };
|
|
24
|
+
export type { ModelCatalogSourceInput } from "./sources.js";
|
|
25
|
+
export type { ModelCatalogClient, ModelCatalogSource, ModelCatalogSourceKind } from "./types.js";
|
|
26
|
+
export type { Availability, AveragePrice, Benchmark, Capabilities, CatalogFilters, CatalogModel, CatalogModelRecord, CatalogSearchIndexDocument, CatalogSearchIndexPayload, CatalogSearchQualityScores, EffectiveEndpoint, EffectiveModelCatalog, FieldOrigin, IdentityCandidate, Latency, Limits, MatchedPublicIdentity, Modalities, ModelCatalog, Notice, Price, Rankings, RateLimits, Reasoning, Retirement, SourceLink, Status, Type, WorkspaceEndpointCapabilities, WorkspaceEndpointSource, WorkspaceModelProfile, WorkspaceRefresh, WorkspaceRefreshStatus, } from "./_generated/schemas.js";
|
|
27
|
+
export type { CatalogIdentityMatch } from "./catalog-index.js";
|
|
28
|
+
export type { ModelIdentity, ModelIdentityKind } from "./identity.js";
|
|
29
|
+
export type { CatalogSearchMatch } from "./search.js";
|
|
30
|
+
export type { CachedWorkspaceOverlay, WorkspaceCacheOptions } from "./workspace-overlay.js";
|
|
31
|
+
export type { WorkspaceCacheStore, WorkspaceCatalogCache } from "./workspace-cache.js";
|
|
32
|
+
export type { BrowserModelServingClientOption, ModelServingConnection, ModelServingConnectionGenerator, } from "./workspace-connection.js";
|
|
33
|
+
export { EFFECTIVE_CATALOG_CONTRACT_VERSION } from "./effective.js";
|
|
34
|
+
export { PUBLISHED_CATALOG_DATABASE_URL, PUBLISHED_CATALOG_INDEX_URL, PUBLISHED_CATALOG_ROOT_URL, PUBLISHED_CATALOG_SCHEMA_URL, PUBLISHED_CATALOG_SCHEMA_VERSION, PUBLISHED_CATALOG_SEARCH_INDEX_URL, PUBLISHED_CATALOG_URL, } from "./_generated/published.js";
|
|
35
|
+
export { CatalogAveragePriceSchema, CatalogCapabilitiesSchema, CatalogLatencySchema, CatalogModelRecordSchema, CatalogModelSchema, CatalogPreferenceRankingSchema, CatalogPriceSchema, CatalogRankingSchema, CatalogRateLimitsSchema, CatalogScoreRankingSchema, CatalogSearchIndexSchema, CatalogStatusSchema, EffectiveModelCatalogSchema, ModelCatalogSchema, WorkspaceRefreshSchema, parseCatalogModelRecord, parseCatalogSearchIndex, parseEffectiveModelCatalog, parseModelCatalog, } from "./validation.js";
|