@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/dist/validation.d.ts
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { AveragePrice, Capabilities, CatalogModel, CatalogModelRecord, CatalogSearchIndexPayload, Latency, ModelCatalog, Price, Rankings, Rankings1, RateLimits, Status } from "./_generated/schemas.js";
|
|
3
|
+
/** Runtime schema for the complete published model catalog. */
|
|
4
|
+
export declare const ModelCatalogSchema: z.ZodType<ModelCatalog>;
|
|
5
|
+
/** Runtime schema for the published catalog search index. */
|
|
6
|
+
export declare const CatalogSearchIndexSchema: z.ZodType<CatalogSearchIndexPayload>;
|
|
7
|
+
/** Runtime schema for one catalog model without its map key. */
|
|
8
|
+
export declare const CatalogModelSchema: z.ZodType<CatalogModel, unknown, z.core.$ZodTypeInternals<CatalogModel, unknown>>;
|
|
9
|
+
/** Runtime schema for one catalog model with its stable id. */
|
|
10
|
+
export declare const CatalogModelRecordSchema: z.ZodType<CatalogModelRecord, unknown, z.core.$ZodTypeInternals<CatalogModelRecord, unknown>>;
|
|
11
|
+
/** Runtime schema for catalog-owned model capabilities. */
|
|
12
|
+
export declare const CatalogCapabilitiesSchema: z.ZodType<Capabilities, unknown, z.core.$ZodTypeInternals<Capabilities, unknown>>;
|
|
13
|
+
/** Runtime schema for catalog-owned pay-per-token rate limits. */
|
|
14
|
+
export declare const CatalogRateLimitsSchema: z.ZodType<RateLimits, unknown, z.core.$ZodTypeInternals<RateLimits, unknown>>;
|
|
15
|
+
/** Runtime schema for catalog-owned latency measurements and score. */
|
|
16
|
+
export declare const CatalogLatencySchema: z.ZodType<Latency, unknown, z.core.$ZodTypeInternals<Latency, unknown>>;
|
|
17
|
+
/** Runtime schema for one catalog-owned cloud and currency price. */
|
|
18
|
+
export declare const CatalogPriceSchema: z.ZodType<Price, unknown, z.core.$ZodTypeInternals<Price, unknown>>;
|
|
19
|
+
/** Runtime schema for one catalog-owned normalized currency price. */
|
|
20
|
+
export declare const CatalogAveragePriceSchema: z.ZodType<AveragePrice, unknown, z.core.$ZodTypeInternals<AveragePrice, unknown>>;
|
|
21
|
+
/** Runtime schema for a preference-rating ranking. */
|
|
22
|
+
export declare const CatalogPreferenceRankingSchema: z.ZodType<Rankings, unknown, z.core.$ZodTypeInternals<Rankings, unknown>>;
|
|
23
|
+
/** Runtime schema for a scored-evaluation ranking. */
|
|
24
|
+
export declare const CatalogScoreRankingSchema: z.ZodType<Rankings1, unknown, z.core.$ZodTypeInternals<Rankings1, unknown>>;
|
|
25
|
+
/** Runtime schema for either catalog ranking representation. */
|
|
26
|
+
export declare const CatalogRankingSchema: z.ZodUnion<readonly [z.ZodType<Rankings, unknown, z.core.$ZodTypeInternals<Rankings, unknown>>, z.ZodType<Rankings1, unknown, z.core.$ZodTypeInternals<Rankings1, unknown>>]>;
|
|
27
|
+
/** Runtime schema for a catalog model lifecycle status. */
|
|
28
|
+
export declare const CatalogStatusSchema: z.ZodType<Status, unknown, z.core.$ZodTypeInternals<Status, unknown>>;
|
|
2
29
|
/** Validate an untrusted catalog payload against the Python-owned contract. */
|
|
3
30
|
export declare function parseModelCatalog(value: unknown): ModelCatalog;
|
|
4
31
|
/** Validate an untrusted search-index payload against the Python-owned contract. */
|
|
5
32
|
export declare function parseCatalogSearchIndex(value: unknown): CatalogSearchIndexPayload;
|
|
33
|
+
/** Validate one untrusted catalog model record. */
|
|
34
|
+
export declare function parseCatalogModelRecord(value: unknown): CatalogModelRecord;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dbx-tools/dbx-model-catalog",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "Node and browser client for the published Databricks model catalog",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"packageManager": "bun@1.4.4",
|
|
@@ -45,7 +45,9 @@
|
|
|
45
45
|
},
|
|
46
46
|
"./package.json": "./package.json"
|
|
47
47
|
},
|
|
48
|
-
"files": [
|
|
48
|
+
"files": [
|
|
49
|
+
"dist"
|
|
50
|
+
],
|
|
49
51
|
"scripts": {
|
|
50
52
|
"build": "bun scripts/build.ts",
|
|
51
53
|
"prepack": "bun scripts/build.ts",
|