@shop-os/modelkit 0.1.7 → 0.1.8
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 +12 -0
- package/dist/catalog.cjs +2140 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +458 -0
- package/dist/catalog.d.ts +458 -0
- package/dist/catalog.js +2117 -0
- package/dist/catalog.js.map +1 -0
- package/dist/index.cjs +186 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +186 -25
- package/dist/index.js.map +1 -1
- package/package.json +7 -2
package/dist/index.d.cts
CHANGED
|
@@ -171,6 +171,10 @@ interface ModelConstraints {
|
|
|
171
171
|
min: number;
|
|
172
172
|
max: number;
|
|
173
173
|
} | number[];
|
|
174
|
+
/** Curated UI choices when `durations` is a range; `resolveOptions` ignores it. */
|
|
175
|
+
durationPresets?: number[];
|
|
176
|
+
/** Curated quality choices for rows whose `supports` includes "quality". */
|
|
177
|
+
qualityOptions?: string[];
|
|
174
178
|
references?: ReferenceLimits;
|
|
175
179
|
requires?: RequiredInput[];
|
|
176
180
|
supports?: SupportedOption[];
|
|
@@ -208,6 +212,10 @@ interface CatalogDisplay {
|
|
|
208
212
|
description: string;
|
|
209
213
|
/** CDN URL of the vendor or model logo. */
|
|
210
214
|
logo?: string;
|
|
215
|
+
/** Chat picker cost bucket: 1 = cheapest tier (Haiku/Flash/mini), 2 = Sonnet class, 3 = Opus/Pro/frontier. */
|
|
216
|
+
costTier?: 1 | 2 | 3;
|
|
217
|
+
/** Chat picker highlight flag. */
|
|
218
|
+
recommended?: boolean;
|
|
211
219
|
}
|
|
212
220
|
/** Capability flags a UI keys off. Absent means false / unknown. */
|
|
213
221
|
interface CatalogCapabilities {
|
|
@@ -236,6 +244,11 @@ interface CatalogModel {
|
|
|
236
244
|
providerModelId: string;
|
|
237
245
|
lifecycle: Lifecycle;
|
|
238
246
|
replacedBy?: string;
|
|
247
|
+
/**
|
|
248
|
+
* "catalog" = offered in product pickers (Creative Studio, chat, Space Builder);
|
|
249
|
+
* "internal" = callable by id only.
|
|
250
|
+
*/
|
|
251
|
+
exposure: "catalog" | "internal";
|
|
239
252
|
constraints: ModelConstraints;
|
|
240
253
|
defaults: Partial<Omit<ImageRequest, "model" | "prompt"> & Omit<VideoRequest, "model" | "prompt"> & Omit<AudioRequest, "model" | "prompt">>;
|
|
241
254
|
providerOptions?: ProviderOptions;
|
package/dist/index.d.ts
CHANGED
|
@@ -171,6 +171,10 @@ interface ModelConstraints {
|
|
|
171
171
|
min: number;
|
|
172
172
|
max: number;
|
|
173
173
|
} | number[];
|
|
174
|
+
/** Curated UI choices when `durations` is a range; `resolveOptions` ignores it. */
|
|
175
|
+
durationPresets?: number[];
|
|
176
|
+
/** Curated quality choices for rows whose `supports` includes "quality". */
|
|
177
|
+
qualityOptions?: string[];
|
|
174
178
|
references?: ReferenceLimits;
|
|
175
179
|
requires?: RequiredInput[];
|
|
176
180
|
supports?: SupportedOption[];
|
|
@@ -208,6 +212,10 @@ interface CatalogDisplay {
|
|
|
208
212
|
description: string;
|
|
209
213
|
/** CDN URL of the vendor or model logo. */
|
|
210
214
|
logo?: string;
|
|
215
|
+
/** Chat picker cost bucket: 1 = cheapest tier (Haiku/Flash/mini), 2 = Sonnet class, 3 = Opus/Pro/frontier. */
|
|
216
|
+
costTier?: 1 | 2 | 3;
|
|
217
|
+
/** Chat picker highlight flag. */
|
|
218
|
+
recommended?: boolean;
|
|
211
219
|
}
|
|
212
220
|
/** Capability flags a UI keys off. Absent means false / unknown. */
|
|
213
221
|
interface CatalogCapabilities {
|
|
@@ -236,6 +244,11 @@ interface CatalogModel {
|
|
|
236
244
|
providerModelId: string;
|
|
237
245
|
lifecycle: Lifecycle;
|
|
238
246
|
replacedBy?: string;
|
|
247
|
+
/**
|
|
248
|
+
* "catalog" = offered in product pickers (Creative Studio, chat, Space Builder);
|
|
249
|
+
* "internal" = callable by id only.
|
|
250
|
+
*/
|
|
251
|
+
exposure: "catalog" | "internal";
|
|
239
252
|
constraints: ModelConstraints;
|
|
240
253
|
defaults: Partial<Omit<ImageRequest, "model" | "prompt"> & Omit<VideoRequest, "model" | "prompt"> & Omit<AudioRequest, "model" | "prompt">>;
|
|
241
254
|
providerOptions?: ProviderOptions;
|