@dbx-tools/dbx-model-catalog 0.1.7 → 0.1.9
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 +15 -0
- package/dist/browser.js +42 -5
- package/dist/browser.js.map +3 -3
- package/dist/catalog.json +1 -1
- package/dist/cli.js +25 -5
- package/dist/cli.js.map +3 -3
- package/dist/index.js +25 -5
- package/dist/index.js.map +3 -3
- package/dist/search-index.json +1 -1
- package/dist/snapshot.js +29 -9
- package/dist/snapshot.js.map +3 -3
- package/dist/validation.d.ts +30 -1
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -19,6 +19,21 @@ Set `DBX_MODEL_CATALOG_PATH` to load a local catalog. The client loads
|
|
|
19
19
|
`search-index.json` from the same directory unless `searchIndexPath` is set.
|
|
20
20
|
Generated catalog types are re-exported from the package.
|
|
21
21
|
|
|
22
|
+
The browser-safe entry point also exports the catalog-owned Zod schemas. Use
|
|
23
|
+
these schemas directly in downstream wire contracts instead of recreating the
|
|
24
|
+
catalog fields:
|
|
25
|
+
|
|
26
|
+
```ts
|
|
27
|
+
import {
|
|
28
|
+
CatalogModelRecordSchema,
|
|
29
|
+
CatalogStatusSchema,
|
|
30
|
+
type CatalogModelRecord,
|
|
31
|
+
} from "@dbx-tools/dbx-model-catalog/browser";
|
|
32
|
+
|
|
33
|
+
const model: CatalogModelRecord = CatalogModelRecordSchema.parse(value);
|
|
34
|
+
const status = CatalogStatusSchema.parse(model.status);
|
|
35
|
+
```
|
|
36
|
+
|
|
22
37
|
For direct public ingestion without the service client, use the exported URL
|
|
23
38
|
for the schema this package was generated against:
|
|
24
39
|
|
package/dist/browser.js
CHANGED
|
@@ -9501,13 +9501,36 @@ var MODEL_CATALOG_JSON_SCHEMA = { additionalProperties: false, description: "Pub
|
|
|
9501
9501
|
var CATALOG_SEARCH_INDEX_JSON_SCHEMA = { additionalProperties: false, properties: { schema_version: { title: "Schema Version", type: "integer" }, catalog_schema_version: { title: "Catalog Schema Version", type: "integer" }, updated_at: { format: "date-time", title: "Updated At", type: "string" }, weights: { $ref: "#/$defs/CatalogSearchWeights" }, documents: { items: { $ref: "#/$defs/CatalogSearchIndexDocument" }, title: "Documents", type: "array" } }, required: ["schema_version", "catalog_schema_version", "updated_at", "weights", "documents"], title: "CatalogSearchIndexPayload", type: "object", $defs: { Availability: { additionalProperties: false, description: "Model availability on one Databricks cloud provider.", properties: { status: { $ref: "#/$defs/Status1" }, serving_modes: { items: { $ref: "#/$defs/ServingMode" }, title: "Serving Modes", type: "array" }, details: { anyOf: [{ type: "string" }, { type: "null" }], default: null, title: "Details" } }, required: ["status", "serving_modes"], title: "Availability", type: "object" }, AveragePrice: { additionalProperties: false, description: "Normalized Databricks price in one currency.", properties: { unit: { $ref: "#/$defs/Unit" }, rates: { additionalProperties: { minimum: 0, type: "number" }, propertyNames: { minLength: 1 }, title: "Rates", type: "object" } }, required: ["unit", "rates"], title: "AveragePrice", type: "object" }, Benchmark: { additionalProperties: false, description: "Task-suite benchmark result.", properties: { name: { title: "Name", type: "string" }, rank: { exclusiveMinimum: 0, maximum: 9007199254740991, title: "Rank", type: "integer" }, score: { title: "Score", type: "number" }, task_count: { exclusiveMinimum: 0, maximum: 9007199254740991, title: "Task Count", type: "integer" }, published_at: { anyOf: [{ format: "date", type: "string" }, { type: "null" }], default: null, title: "Published At" }, variant: { anyOf: [{ $ref: "#/$defs/Variant2" }, { type: "null" }], default: null }, sources: { items: { $ref: "#/$defs/SourceLink" }, title: "Sources", type: "array" } }, required: ["name", "rank", "score", "task_count", "sources"], title: "Benchmark", type: "object" }, Budget: { additionalProperties: false, description: "Supported reasoning-token budget range.", properties: { min: { anyOf: [{ maximum: 9007199254740991, minimum: -9007199254740991, type: "integer" }, { type: "null" }], default: null, title: "Min" }, max: { anyOf: [{ maximum: 9007199254740991, minimum: -9007199254740991, type: "integer" }, { type: "null" }], default: null, title: "Max" } }, title: "Budget", type: "object" }, Capabilities: { additionalProperties: false, description: "Capabilities used to select the model for a workload.", properties: { attachments: { anyOf: [{ type: "boolean" }, { type: "null" }], default: null, title: "Attachments" }, tools: { anyOf: [{ type: "boolean" }, { type: "null" }], default: null, title: "Tools" }, structured_output: { anyOf: [{ type: "boolean" }, { type: "null" }], default: null, title: "Structured Output" }, temperature: { anyOf: [{ type: "boolean" }, { type: "null" }], default: null, title: "Temperature" }, interleaved_reasoning: { anyOf: [{ type: "boolean" }, { type: "null" }], default: null, title: "Interleaved Reasoning" }, responses: { title: "Responses", type: "boolean" }, apply_patch: { title: "Apply Patch", type: "boolean" }, web_search: { title: "Web Search", type: "boolean" }, reasoning: { anyOf: [{ $ref: "#/$defs/Reasoning" }, { $ref: "#/$defs/Reasoning1" }, { type: "null" }], default: null, title: "Reasoning" } }, required: ["responses", "apply_patch", "web_search"], title: "Capabilities", type: "object" }, CatalogFilters: { additionalProperties: false, properties: { query: { anyOf: [{ type: "string" }, { type: "null" }], default: null, title: "Query" }, status: { items: { $ref: "#/$defs/Status" }, title: "Status", type: "array" }, type: { items: { $ref: "#/$defs/Type" }, title: "Type", type: "array" }, publisher: { items: { type: "string" }, title: "Publisher", type: "array" }, task: { items: { type: "string" }, title: "Task", type: "array" }, capability: { items: { enum: ["apply-patch", "attachments", "reasoning", "responses", "structured-output", "tools", "web-search"], type: "string" }, title: "Capability", type: "array" }, limit: { anyOf: [{ maximum: 1000, minimum: 0, type: "integer" }, { type: "null" }], default: 50, title: "Limit" } }, title: "CatalogFilters", type: "object" }, CatalogModel: { additionalProperties: false, description: "Published statistics for one Databricks model.", properties: { name: { title: "Name", type: "string" }, description: { title: "Description", type: "string" }, aliases: { items: { type: "string" }, title: "Aliases", type: "array" }, type: { $ref: "#/$defs/Type" }, family: { anyOf: [{ type: "string" }, { type: "null" }], default: null, title: "Family" }, publisher: { anyOf: [{ type: "string" }, { type: "null" }], default: null, title: "Publisher" }, license: { anyOf: [{ type: "string" }, { type: "null" }], default: null, title: "License" }, open_weights: { anyOf: [{ type: "boolean" }, { type: "null" }], default: null, title: "Open Weights" }, status: { $ref: "#/$defs/Status" }, release_date: { anyOf: [{ format: "date", type: "string" }, { type: "null" }], default: null, title: "Release Date" }, last_updated: { anyOf: [{ format: "date", type: "string" }, { type: "null" }], default: null, title: "Last Updated" }, knowledge_cutoff: { anyOf: [{ format: "date", type: "string" }, { type: "null" }], default: null, title: "Knowledge Cutoff" }, retirement: { anyOf: [{ $ref: "#/$defs/Retirement" }, { type: "null" }], default: null }, modalities: { $ref: "#/$defs/Modalities" }, capabilities: { $ref: "#/$defs/Capabilities" }, limits: { anyOf: [{ $ref: "#/$defs/Limits" }, { type: "null" }], default: null }, rate_limits: { anyOf: [{ $ref: "#/$defs/RateLimits" }, { type: "null" }], default: null }, latency: { anyOf: [{ $ref: "#/$defs/Latency" }, { type: "null" }], default: null }, tasks: { items: { type: "string" }, title: "Tasks", type: "array" }, use_cases: { items: { type: "string" }, title: "Use Cases", type: "array" }, availability: { additionalProperties: { $ref: "#/$defs/Availability" }, propertyNames: { enum: ["aws", "azure", "gcp"] }, title: "Availability", type: "object" }, price: { additionalProperties: { additionalProperties: { $ref: "#/$defs/Price" }, propertyNames: { enum: ["DBU", "USD"] }, type: "object" }, propertyNames: { enum: ["aws", "azure", "gcp"] }, title: "Price", type: "object" }, average_price: { additionalProperties: { $ref: "#/$defs/AveragePrice" }, propertyNames: { enum: ["DBU", "USD"] }, title: "Average Price", type: "object" }, sources: { additionalProperties: { items: { $ref: "#/$defs/SourceLink" }, type: "array" }, propertyNames: { minLength: 1 }, title: "Sources", type: "object" }, notices: { items: { $ref: "#/$defs/Notice" }, title: "Notices", type: "array" }, rankings: { items: { anyOf: [{ $ref: "#/$defs/Rankings" }, { $ref: "#/$defs/Rankings1" }] }, title: "Rankings", type: "array" }, benchmarks: { items: { $ref: "#/$defs/Benchmark" }, title: "Benchmarks", type: "array" } }, required: ["name", "description", "aliases", "type", "status", "modalities", "capabilities", "tasks", "use_cases", "availability", "price", "average_price", "sources", "notices", "rankings", "benchmarks"], title: "CatalogModel", type: "object" }, CatalogModelRecord: { additionalProperties: false, properties: { name: { title: "Name", type: "string" }, description: { title: "Description", type: "string" }, aliases: { items: { type: "string" }, title: "Aliases", type: "array" }, type: { $ref: "#/$defs/Type" }, family: { anyOf: [{ type: "string" }, { type: "null" }], default: null, title: "Family" }, publisher: { anyOf: [{ type: "string" }, { type: "null" }], default: null, title: "Publisher" }, license: { anyOf: [{ type: "string" }, { type: "null" }], default: null, title: "License" }, open_weights: { anyOf: [{ type: "boolean" }, { type: "null" }], default: null, title: "Open Weights" }, status: { $ref: "#/$defs/Status" }, release_date: { anyOf: [{ format: "date", type: "string" }, { type: "null" }], default: null, title: "Release Date" }, last_updated: { anyOf: [{ format: "date", type: "string" }, { type: "null" }], default: null, title: "Last Updated" }, knowledge_cutoff: { anyOf: [{ format: "date", type: "string" }, { type: "null" }], default: null, title: "Knowledge Cutoff" }, retirement: { anyOf: [{ $ref: "#/$defs/Retirement" }, { type: "null" }], default: null }, modalities: { $ref: "#/$defs/Modalities" }, capabilities: { $ref: "#/$defs/Capabilities" }, limits: { anyOf: [{ $ref: "#/$defs/Limits" }, { type: "null" }], default: null }, rate_limits: { anyOf: [{ $ref: "#/$defs/RateLimits" }, { type: "null" }], default: null }, latency: { anyOf: [{ $ref: "#/$defs/Latency" }, { type: "null" }], default: null }, tasks: { items: { type: "string" }, title: "Tasks", type: "array" }, use_cases: { items: { type: "string" }, title: "Use Cases", type: "array" }, availability: { additionalProperties: { $ref: "#/$defs/Availability" }, propertyNames: { enum: ["aws", "azure", "gcp"] }, title: "Availability", type: "object" }, price: { additionalProperties: { additionalProperties: { $ref: "#/$defs/Price" }, propertyNames: { enum: ["DBU", "USD"] }, type: "object" }, propertyNames: { enum: ["aws", "azure", "gcp"] }, title: "Price", type: "object" }, average_price: { additionalProperties: { $ref: "#/$defs/AveragePrice" }, propertyNames: { enum: ["DBU", "USD"] }, title: "Average Price", type: "object" }, sources: { additionalProperties: { items: { $ref: "#/$defs/SourceLink" }, type: "array" }, propertyNames: { minLength: 1 }, title: "Sources", type: "object" }, notices: { items: { $ref: "#/$defs/Notice" }, title: "Notices", type: "array" }, rankings: { items: { anyOf: [{ $ref: "#/$defs/Rankings" }, { $ref: "#/$defs/Rankings1" }] }, title: "Rankings", type: "array" }, benchmarks: { items: { $ref: "#/$defs/Benchmark" }, title: "Benchmarks", type: "array" }, id: { minLength: 1, title: "Id", type: "string" } }, required: ["name", "description", "aliases", "type", "status", "modalities", "capabilities", "tasks", "use_cases", "availability", "price", "average_price", "sources", "notices", "rankings", "benchmarks", "id"], title: "CatalogModelRecord", type: "object" }, CatalogSearchIndexDocument: { additionalProperties: false, properties: { id: { title: "Id", type: "string" }, exact_identities: { items: { type: "string" }, title: "Exact Identities", type: "array" }, identities: { items: { type: "string" }, title: "Identities", type: "array" }, keywords: { title: "Keywords", type: "string" }, description: { title: "Description", type: "string" }, tokens: { items: { type: "string" }, title: "Tokens", type: "array" }, family: { anyOf: [{ type: "string" }, { type: "null" }], default: null, title: "Family" }, version: { items: { type: "integer" }, title: "Version", type: "array" }, quality_score: { maximum: 100, minimum: 0, title: "Quality Score", type: "number" }, scores: { $ref: "#/$defs/CatalogSearchQualityScores" } }, required: ["id", "exact_identities", "identities", "keywords", "description", "tokens", "version", "quality_score", "scores"], title: "CatalogSearchIndexDocument", type: "object" }, CatalogSearchIndexPayload: { additionalProperties: false, properties: { schema_version: { title: "Schema Version", type: "integer" }, catalog_schema_version: { title: "Catalog Schema Version", type: "integer" }, updated_at: { format: "date-time", title: "Updated At", type: "string" }, weights: { $ref: "#/$defs/CatalogSearchWeights" }, documents: { items: { $ref: "#/$defs/CatalogSearchIndexDocument" }, title: "Documents", type: "array" } }, required: ["schema_version", "catalog_schema_version", "updated_at", "weights", "documents"], title: "CatalogSearchIndexPayload", type: "object" }, CatalogSearchQualityScores: { additionalProperties: false, properties: { leaderboard: { maximum: 100, minimum: 0, title: "Leaderboard", type: "number" }, benchmark: { maximum: 100, minimum: 0, title: "Benchmark", type: "number" }, version: { maximum: 100, minimum: 0, title: "Version", type: "number" }, freshness: { maximum: 100, minimum: 0, title: "Freshness", type: "number" }, lifecycle: { maximum: 100, minimum: 0, title: "Lifecycle", type: "number" } }, required: ["leaderboard", "benchmark", "version", "freshness", "lifecycle"], title: "CatalogSearchQualityScores", type: "object" }, CatalogSearchWeights: { additionalProperties: false, properties: { relevance: { title: "Relevance", type: "number" }, leaderboard: { title: "Leaderboard", type: "number" }, benchmark: { title: "Benchmark", type: "number" }, version: { title: "Version", type: "number" }, freshness: { title: "Freshness", type: "number" }, lifecycle: { title: "Lifecycle", type: "number" } }, required: ["relevance", "leaderboard", "benchmark", "version", "freshness", "lifecycle"], title: "CatalogSearchWeights", type: "object" }, DefaultEffort: { description: "Default reasoning effort when no level is specified.", enum: ["none", "minimal", "low", "medium", "high", "xhigh", "max", "default"], title: "DefaultEffort", type: "string" }, EffortEnum: { description: "Normalized reasoning effort level.", enum: ["none", "minimal", "low", "medium", "high", "xhigh", "max", "default"], title: "EffortEnum", type: "string" }, GetCatalogRequest: { properties: { action: { const: "get_catalog", default: "get_catalog", title: "Action", type: "string" }, payload: { $ref: "#/$defs/CatalogFilters" } }, required: ["payload"], title: "GetCatalogRequest", type: "object" }, GetCatalogResponse: { properties: { action: { const: "catalog", default: "catalog", title: "Action", type: "string" }, payload: { $ref: "#/$defs/ModelCatalog" } }, required: ["payload"], title: "GetCatalogResponse", type: "object" }, GetSearchIndexRequest: { properties: { action: { const: "get_search_index", default: "get_search_index", title: "Action", type: "string" }, payload: { $ref: "#/$defs/CatalogFilters" } }, required: ["payload"], title: "GetSearchIndexRequest", type: "object" }, GetSearchIndexResponse: { properties: { action: { const: "search_index", default: "search_index", title: "Action", type: "string" }, payload: { $ref: "#/$defs/CatalogSearchIndexPayload" } }, required: ["payload"], title: "GetSearchIndexResponse", type: "object" }, Input: { description: "Known model input and output modalities.", enum: ["text", "image", "audio", "video", "application/pdf", "embedding", "reranking", "decision"], title: "Input", type: "string" }, Kind: { description: "Known Databricks documentation notice kinds.", enum: ["note", "important", "warning", "tip", "caution", "info"], title: "Kind", type: "string" }, Latency: { additionalProperties: false, description: "Normalized response-time score and public benchmark measurements.", properties: { score: { exclusiveMinimum: 0, title: "Score", type: "number" }, measurements: { $ref: "#/$defs/LatencyMeasurements" } }, required: ["score", "measurements"], title: "Latency", type: "object" }, LatencyMeasurements: { additionalProperties: false, description: "Public benchmark measurements underlying one latency score.", properties: { time_to_first_token_ms: { minimum: 0, title: "Time To First Token Ms", type: "number" }, output_tokens_per_second: { exclusiveMinimum: 0, title: "Output Tokens Per Second", type: "number" }, successful_run_count: { exclusiveMinimum: 0, maximum: 9007199254740991, title: "Successful Run Count", type: "integer" }, completion_token_count: { exclusiveMinimum: 0, maximum: 9007199254740991, title: "Completion Token Count", type: "integer" }, measured_at: { format: "date-time", title: "Measured At", type: "string" } }, required: ["time_to_first_token_ms", "output_tokens_per_second", "successful_run_count", "completion_token_count", "measured_at"], title: "LatencyMeasurements", type: "object" }, Limits: { additionalProperties: false, description: "Documented token limits.", properties: { context: { anyOf: [{ maximum: 9007199254740991, minimum: 0, type: "integer" }, { type: "null" }], default: null, title: "Context" }, input: { anyOf: [{ maximum: 9007199254740991, minimum: 0, type: "integer" }, { type: "null" }], default: null, title: "Input" }, output: { anyOf: [{ maximum: 9007199254740991, minimum: 0, type: "integer" }, { type: "null" }], default: null, title: "Output" } }, title: "Limits", type: "object" }, ListModelsRequest: { properties: { action: { const: "list_models", default: "list_models", title: "Action", type: "string" }, payload: { $ref: "#/$defs/CatalogFilters" } }, required: ["payload"], title: "ListModelsRequest", type: "object" }, ListModelsResponse: { properties: { action: { const: "models", default: "models", title: "Action", type: "string" }, payload: { items: { $ref: "#/$defs/CatalogModelRecord" }, title: "Payload", type: "array" } }, required: ["payload"], title: "ListModelsResponse", type: "object" }, Modalities: { additionalProperties: false, description: "Model input and output modalities.", properties: { input: { items: { anyOf: [{ $ref: "#/$defs/Input" }, { pattern: "^(text|image|audio|video|application)\\/[A-Za-z0-9.+-]+$", type: "string" }] }, title: "Input", type: "array" }, output: { items: { anyOf: [{ $ref: "#/$defs/Output" }, { pattern: "^(text|image|audio|video|application)\\/[A-Za-z0-9.+-]+$", type: "string" }] }, title: "Output", type: "array" } }, required: ["input", "output"], title: "Modalities", type: "object" }, ModelCatalog: { additionalProperties: false, description: "Published Databricks model catalog with identity, capabilities, availability, pricing, lifecycle, rankings, and benchmarks.", properties: { schema_version: { const: 16, title: "Schema Version", type: "integer" }, updated_at: { format: "date-time", title: "Updated At", type: "string" }, models: { additionalProperties: { $ref: "#/$defs/CatalogModel" }, propertyNames: { minLength: 1 }, title: "Models", type: "object" } }, required: ["schema_version", "updated_at", "models"], title: "ModelCatalog", type: "object" }, Notice: { additionalProperties: false, description: "Important Databricks documentation notice.", properties: { kind: { anyOf: [{ $ref: "#/$defs/Kind" }, { minLength: 1, type: "string" }], title: "Kind" }, title: { anyOf: [{ type: "string" }, { type: "null" }], default: null, title: "Title" }, text: { title: "Text", type: "string" }, sources: { items: { $ref: "#/$defs/SourceLink" }, title: "Sources", type: "array" } }, required: ["kind", "text", "sources"], title: "Notice", type: "object" }, Output: { description: "Known model input and output modalities.", enum: ["text", "image", "audio", "video", "application/pdf", "embedding", "reranking", "decision"], title: "Output", type: "string" }, Price: { additionalProperties: false, description: "Normalized Databricks price in one currency.", properties: { unit: { $ref: "#/$defs/Unit" }, rates: { additionalProperties: { minimum: 0, type: "number" }, propertyNames: { minLength: 1 }, title: "Rates", type: "object" } }, required: ["unit", "rates"], title: "Price", type: "object" }, ProblemDetails: { description: "An RFC 9457 problem details object, the payload of an error frame. See https://python.chanx.dev/en/latest/protocol.html#protocol-errors", properties: { type: { description: "A URI reference that identifies the problem type.", format: "uri-reference", type: "string" }, title: { description: "A short, human-readable summary of the problem type.", type: "string" }, status: { description: "The HTTP status code generated by the origin server for this occurrence of the problem.", maximum: 599, minimum: 100, type: "integer" }, detail: { description: "A human-readable explanation specific to this occurrence of the problem.", type: "string" }, instance: { description: "A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.", format: "uri-reference", type: "string" }, errors: { description: "The validation failures, when type is validation-failed.", items: { $ref: "#/$defs/ValidationFailure" }, type: "array" } }, required: ["type", "title", "detail"], title: "ProblemDetails", type: "object" }, Rankings: { additionalProperties: false, description: "Competitive ranking based on human preference ratings.", properties: { domain: { title: "Domain", type: "string" }, category: { title: "Category", type: "string" }, rank: { exclusiveMinimum: 0, maximum: 9007199254740991, title: "Rank", type: "integer" }, published_at: { anyOf: [{ format: "date", type: "string" }, { type: "null" }], default: null, title: "Published At" }, variant: { anyOf: [{ $ref: "#/$defs/Variant" }, { type: "null" }], default: null }, sources: { items: { $ref: "#/$defs/SourceLink" }, title: "Sources", type: "array" }, metric: { const: "rating", title: "Metric", type: "string" }, rating: { title: "Rating", type: "number" }, lower: { title: "Lower", type: "number" }, upper: { title: "Upper", type: "number" }, variance: { minimum: 0, title: "Variance", type: "number" }, votes: { maximum: 9007199254740991, minimum: 0, title: "Votes", type: "integer" } }, required: ["domain", "category", "rank", "sources", "metric", "rating", "lower", "upper", "variance", "votes"], title: "Rankings", type: "object" }, Rankings1: { additionalProperties: false, description: "Competitive ranking based on a scored evaluation.", properties: { domain: { title: "Domain", type: "string" }, category: { title: "Category", type: "string" }, rank: { exclusiveMinimum: 0, maximum: 9007199254740991, title: "Rank", type: "integer" }, published_at: { anyOf: [{ format: "date", type: "string" }, { type: "null" }], default: null, title: "Published At" }, variant: { anyOf: [{ $ref: "#/$defs/Variant1" }, { type: "null" }], default: null }, sources: { items: { $ref: "#/$defs/SourceLink" }, title: "Sources", type: "array" }, metric: { const: "score", title: "Metric", type: "string" }, score: { title: "Score", type: "number" }, lower: { title: "Lower", type: "number" }, upper: { title: "Upper", type: "number" }, observations: { maximum: 9007199254740991, minimum: 0, title: "Observations", type: "integer" }, sessions: { anyOf: [{ maximum: 9007199254740991, minimum: 0, type: "integer" }, { type: "null" }], title: "Sessions" } }, required: ["domain", "category", "rank", "sources", "metric", "score", "lower", "upper", "observations", "sessions"], title: "Rankings1", type: "object" }, RateLimits: { additionalProperties: false, description: "Published pay-per-token limits for one model.", properties: { input_tokens_per_minute: { anyOf: [{ maximum: 9007199254740991, minimum: 0, type: "integer" }, { type: "null" }], title: "Input Tokens Per Minute" }, output_tokens_per_minute: { anyOf: [{ maximum: 9007199254740991, minimum: 0, type: "integer" }, { type: "null" }], title: "Output Tokens Per Minute" }, queries_per_hour: { anyOf: [{ maximum: 9007199254740991, minimum: 0, type: "integer" }, { type: "null" }], title: "Queries Per Hour" } }, required: ["input_tokens_per_minute", "output_tokens_per_minute", "queries_per_hour"], title: "RateLimits", type: "object" }, Reasoning: { additionalProperties: false, description: "Reasoning support and controls when known.", properties: { supported: { const: false, title: "Supported", type: "boolean" } }, required: ["supported"], title: "Reasoning", type: "object" }, Reasoning1: { additionalProperties: false, description: "Reasoning support and controls when known.", properties: { supported: { const: true, title: "Supported", type: "boolean" }, effort: { anyOf: [{ items: { $ref: "#/$defs/EffortEnum" }, type: "array" }, { type: "null" }], default: null, title: "Effort" }, default_effort: { anyOf: [{ $ref: "#/$defs/DefaultEffort" }, { type: "null" }], default: null }, toggle: { anyOf: [{ type: "boolean" }, { type: "null" }], default: null, title: "Toggle" }, budget: { anyOf: [{ $ref: "#/$defs/Budget" }, { type: "null" }], default: null }, description: { anyOf: [{ type: "string" }, { type: "null" }], default: null, title: "Description" } }, required: ["supported"], title: "Reasoning1", type: "object" }, ReasoningEffort: { description: "Reasoning effort used by the evaluated variant.", enum: ["none", "minimal", "low", "medium", "high", "xhigh", "max", "default"], title: "ReasoningEffort", type: "string" }, ReasoningMode: { description: "Reasoning execution mode used by the evaluated variant.", enum: ["auto", "thinking"], title: "ReasoningMode", type: "string" }, Retirement: { additionalProperties: false, description: "Databricks retirement and replacement information.", properties: { schedules: { items: { $ref: "#/$defs/Schedule" }, title: "Schedules", type: "array" }, replacement: { anyOf: [{ minLength: 1, type: "string" }, { type: "null" }], default: null, title: "Replacement" }, replacement_name: { anyOf: [{ type: "string" }, { type: "null" }], default: null, title: "Replacement Name" } }, required: ["schedules"], title: "Retirement", type: "object" }, Schedule: { additionalProperties: false, description: "Retirement dates for one serving offering.", properties: { offering: { title: "Offering", type: "string" }, dates: { items: { format: "date", type: "string" }, title: "Dates", type: "array" } }, required: ["offering", "dates"], title: "Schedule", type: "object" }, ServingMode: { description: "Databricks serving mode available for the model.", enum: ["pay_per_token", "priority_pay_per_token", "provisioned_throughput", "batch"], title: "ServingMode", type: "string" }, SourceLink: { additionalProperties: false, description: "Openable attribution for published catalog data.", properties: { label: { minLength: 1, title: "Label", type: "string" }, url: { minLength: 1, pattern: "^https?://", title: "Url", type: "string" } }, required: ["label", "url"], title: "SourceLink", type: "object" }, Status: { description: "Current normalized lifecycle state.", enum: ["active", "preview", "alpha", "beta", "legacy", "deprecated", "retired"], title: "Status", type: "string" }, Status1: { description: "Lifecycle state for this cloud-provider deployment.", enum: ["active", "preview", "alpha", "beta", "legacy", "deprecated", "retired"], title: "Status1", type: "string" }, StreamModelsRequest: { properties: { action: { const: "stream_models", default: "stream_models", title: "Action", type: "string" }, payload: { $ref: "#/$defs/CatalogFilters" } }, required: ["payload"], title: "StreamModelsRequest", type: "object" }, StreamModelsResponse: { properties: { action: { const: "model", default: "model", title: "Action", type: "string" }, payload: { $ref: "#/$defs/CatalogModelRecord" } }, required: ["payload"], title: "StreamModelsResponse", type: "object" }, Type: { description: "Normalized model type.", enum: ["chat", "image", "video", "embedding", "reranking", "decision", "transcription", "speech", "realtime", "extraction", "audio"], title: "Type", type: "string" }, Unit: { description: "Quantity to which the rates apply.", enum: ["per_million_tokens", "per_hour", "per_hour_per_50_model_units"], title: "Unit", type: "string" }, ValidationFailure: { description: "One validation failure, shaped like RFC 9457's validation example.", properties: { keyword: { description: "The JSON Schema keyword that failed, or custom.", type: "string" }, pointer: { description: "A JSON Pointer to the failing value in the frame; for required, the object lacking the member.", type: "string" }, detail: { description: "A human-readable message.", type: "string" }, property: { anyOf: [{ type: "string" }, { type: "integer" }], description: "For required only: the missing member." } }, required: ["keyword", "pointer", "detail"], title: "ValidationFailure", type: "object" }, Variant: { additionalProperties: false, description: "Evaluated model variant when it differs from the base model.", properties: { reasoning: { anyOf: [{ type: "boolean" }, { type: "null" }], default: null, title: "Reasoning" }, reasoning_effort: { anyOf: [{ $ref: "#/$defs/ReasoningEffort" }, { type: "null" }], default: null }, reasoning_mode: { anyOf: [{ $ref: "#/$defs/ReasoningMode" }, { type: "null" }], default: null }, harness: { anyOf: [{ type: "string" }, { type: "null" }], default: null, title: "Harness" }, context: { anyOf: [{ exclusiveMinimum: 0, maximum: 9007199254740991, type: "integer" }, { type: "null" }], default: null, title: "Context" } }, title: "Variant", type: "object" }, Variant1: { additionalProperties: false, description: "Evaluated model variant when it differs from the base model.", properties: { reasoning: { anyOf: [{ type: "boolean" }, { type: "null" }], default: null, title: "Reasoning" }, reasoning_effort: { anyOf: [{ $ref: "#/$defs/ReasoningEffort" }, { type: "null" }], default: null }, reasoning_mode: { anyOf: [{ $ref: "#/$defs/ReasoningMode" }, { type: "null" }], default: null }, harness: { anyOf: [{ type: "string" }, { type: "null" }], default: null, title: "Harness" }, context: { anyOf: [{ exclusiveMinimum: 0, maximum: 9007199254740991, type: "integer" }, { type: "null" }], default: null, title: "Context" } }, title: "Variant1", type: "object" }, Variant2: { additionalProperties: false, description: "Evaluated model variant when it differs from the base model.", properties: { reasoning: { anyOf: [{ type: "boolean" }, { type: "null" }], default: null, title: "Reasoning" }, reasoning_effort: { anyOf: [{ $ref: "#/$defs/ReasoningEffort" }, { type: "null" }], default: null }, reasoning_mode: { anyOf: [{ $ref: "#/$defs/ReasoningMode" }, { type: "null" }], default: null }, harness: { anyOf: [{ type: "string" }, { type: "null" }], default: null, title: "Harness" }, context: { anyOf: [{ exclusiveMinimum: 0, maximum: 9007199254740991, type: "integer" }, { type: "null" }], default: null, title: "Context" } }, title: "Variant2", type: "object" } } };
|
|
9502
9502
|
|
|
9503
9503
|
// src/validation.ts
|
|
9504
|
-
|
|
9505
|
-
|
|
9504
|
+
function modelCatalogDefinitionSchema(definition) {
|
|
9505
|
+
return fromJSONSchema({
|
|
9506
|
+
...MODEL_CATALOG_JSON_SCHEMA.$defs[definition],
|
|
9507
|
+
$defs: MODEL_CATALOG_JSON_SCHEMA.$defs
|
|
9508
|
+
});
|
|
9509
|
+
}
|
|
9510
|
+
var ModelCatalogSchema = fromJSONSchema(MODEL_CATALOG_JSON_SCHEMA);
|
|
9511
|
+
var CatalogSearchIndexSchema = fromJSONSchema(CATALOG_SEARCH_INDEX_JSON_SCHEMA);
|
|
9512
|
+
var CatalogModelSchema = modelCatalogDefinitionSchema("CatalogModel");
|
|
9513
|
+
var CatalogModelRecordSchema = modelCatalogDefinitionSchema("CatalogModelRecord");
|
|
9514
|
+
var CatalogCapabilitiesSchema = modelCatalogDefinitionSchema("Capabilities");
|
|
9515
|
+
var CatalogRateLimitsSchema = modelCatalogDefinitionSchema("RateLimits");
|
|
9516
|
+
var CatalogLatencySchema = modelCatalogDefinitionSchema("Latency");
|
|
9517
|
+
var CatalogPriceSchema = modelCatalogDefinitionSchema("Price");
|
|
9518
|
+
var CatalogAveragePriceSchema = modelCatalogDefinitionSchema("AveragePrice");
|
|
9519
|
+
var CatalogPreferenceRankingSchema = modelCatalogDefinitionSchema("Rankings");
|
|
9520
|
+
var CatalogScoreRankingSchema = modelCatalogDefinitionSchema("Rankings1");
|
|
9521
|
+
var CatalogRankingSchema = union([
|
|
9522
|
+
CatalogPreferenceRankingSchema,
|
|
9523
|
+
CatalogScoreRankingSchema
|
|
9524
|
+
]);
|
|
9525
|
+
var CatalogStatusSchema = modelCatalogDefinitionSchema("Status");
|
|
9506
9526
|
function parseModelCatalog(value) {
|
|
9507
|
-
return
|
|
9527
|
+
return ModelCatalogSchema.parse(value);
|
|
9508
9528
|
}
|
|
9509
9529
|
function parseCatalogSearchIndex(value) {
|
|
9510
|
-
return
|
|
9530
|
+
return CatalogSearchIndexSchema.parse(value);
|
|
9531
|
+
}
|
|
9532
|
+
function parseCatalogModelRecord(value) {
|
|
9533
|
+
return CatalogModelRecordSchema.parse(value);
|
|
9511
9534
|
}
|
|
9512
9535
|
|
|
9513
9536
|
// src/browser.ts
|
|
@@ -9527,7 +9550,20 @@ async function loadModelCatalog(options = {}) {
|
|
|
9527
9550
|
return createModelCatalogClient(parseModelCatalog(await catalogResponse.json()), parseCatalogSearchIndex(await searchIndexResponse.json()));
|
|
9528
9551
|
}
|
|
9529
9552
|
export {
|
|
9553
|
+
CatalogAveragePriceSchema,
|
|
9554
|
+
CatalogCapabilitiesSchema,
|
|
9555
|
+
CatalogLatencySchema,
|
|
9556
|
+
CatalogModelRecordSchema,
|
|
9557
|
+
CatalogModelSchema,
|
|
9558
|
+
CatalogPreferenceRankingSchema,
|
|
9559
|
+
CatalogPriceSchema,
|
|
9560
|
+
CatalogRankingSchema,
|
|
9561
|
+
CatalogRateLimitsSchema,
|
|
9562
|
+
CatalogScoreRankingSchema,
|
|
9563
|
+
CatalogSearchIndexSchema,
|
|
9564
|
+
CatalogStatusSchema,
|
|
9530
9565
|
ModelCatalogIndex,
|
|
9566
|
+
ModelCatalogSchema,
|
|
9531
9567
|
PUBLISHED_CATALOG_DATABASE_URL,
|
|
9532
9568
|
PUBLISHED_CATALOG_INDEX_URL,
|
|
9533
9569
|
PUBLISHED_CATALOG_ROOT_URL,
|
|
@@ -9544,10 +9580,11 @@ export {
|
|
|
9544
9580
|
modelProviderFamily,
|
|
9545
9581
|
modelVersion,
|
|
9546
9582
|
normalizeModelIdentity,
|
|
9583
|
+
parseCatalogModelRecord,
|
|
9547
9584
|
parseCatalogSearchIndex,
|
|
9548
9585
|
parseModelCatalog,
|
|
9549
9586
|
searchCatalogMatches,
|
|
9550
9587
|
searchCatalogRecords
|
|
9551
9588
|
};
|
|
9552
9589
|
|
|
9553
|
-
//# debugId=
|
|
9590
|
+
//# debugId=D1212E6C103B214E64756E2164756E21
|