@shop-os/modelkit 0.33.0 → 0.34.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/CHANGELOG.md +13 -0
- package/README.md +1 -1
- package/dist/catalog.cjs +45 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +4 -3
- package/dist/catalog.d.ts +4 -3
- package/dist/catalog.js +45 -1
- package/dist/catalog.js.map +1 -1
- package/dist/index.cjs +571 -264
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -4
- package/dist/index.d.ts +7 -4
- package/dist/index.js +570 -264
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/catalog.d.cts
CHANGED
|
@@ -168,7 +168,7 @@ type Lifecycle = "active" | "deprecated" | "retired";
|
|
|
168
168
|
type Surface = "cowork" | "space_builder";
|
|
169
169
|
/** @deprecated use Surface[] */
|
|
170
170
|
type Exposure = Surface[];
|
|
171
|
-
type AdapterId = "ai-sdk-text" | "google-image" | "openai-image" | "google-genai" | "ark" | "fal" | "replicate" | "prodia" | "higgsfield" | "xai-video" | "alibaba" | "luma" | "fish" | "elevenlabs";
|
|
171
|
+
type AdapterId = "ai-sdk-text" | "google-image" | "openai-image" | "google-genai" | "ark" | "fal" | "replicate" | "prodia" | "higgsfield" | "xai-video" | "alibaba" | "luma" | "fish" | "elevenlabs" | "wavespeed";
|
|
172
172
|
/** Gemini image safety threshold, per category, sent only when the caller opts in. */
|
|
173
173
|
type ImageSafetySetting = {
|
|
174
174
|
category: string;
|
|
@@ -1111,7 +1111,7 @@ interface UsageEvent {
|
|
|
1111
1111
|
keySource?: KeySource;
|
|
1112
1112
|
raw?: unknown;
|
|
1113
1113
|
}
|
|
1114
|
-
type ProviderKeyName = "openai" | "anthropic" | "google" | "xai" | "perplexity" | "deepseek" | "moonshot" | "minimax" | "ark" | "fal" | "replicate" | "prodia" | "higgsfield" | "alibaba" | "luma" | "fish" | "elevenlabs" | "cloudflare";
|
|
1114
|
+
type ProviderKeyName = "openai" | "anthropic" | "google" | "xai" | "perplexity" | "deepseek" | "moonshot" | "minimax" | "ark" | "fal" | "replicate" | "prodia" | "higgsfield" | "alibaba" | "luma" | "fish" | "elevenlabs" | "wavespeed" | "cloudflare";
|
|
1115
1115
|
type ProviderKeys = Partial<Record<ProviderKeyName, string>> & {
|
|
1116
1116
|
/** Higgsfield needs the pair; both switch together. */
|
|
1117
1117
|
higgsfieldSecret?: string;
|
|
@@ -1261,7 +1261,7 @@ declare function isListed(row: CatalogModel): boolean;
|
|
|
1261
1261
|
*/
|
|
1262
1262
|
declare const MODELS: CatalogModel[];
|
|
1263
1263
|
|
|
1264
|
-
declare const ADAPTER_IDS: readonly ["ai-sdk-text", "google-image", "openai-image", "google-genai", "ark", "fal", "replicate", "prodia", "higgsfield", "xai-video", "luma", "alibaba", "fish", "elevenlabs"];
|
|
1264
|
+
declare const ADAPTER_IDS: readonly ["ai-sdk-text", "google-image", "openai-image", "google-genai", "ark", "fal", "replicate", "prodia", "higgsfield", "xai-video", "luma", "alibaba", "fish", "elevenlabs", "wavespeed"];
|
|
1265
1265
|
declare const SurfaceSchema: z.ZodEnum<{
|
|
1266
1266
|
cowork: "cowork";
|
|
1267
1267
|
space_builder: "space_builder";
|
|
@@ -1315,6 +1315,7 @@ declare const CatalogModelSchemaBase: z.ZodObject<{
|
|
|
1315
1315
|
luma: "luma";
|
|
1316
1316
|
fish: "fish";
|
|
1317
1317
|
elevenlabs: "elevenlabs";
|
|
1318
|
+
wavespeed: "wavespeed";
|
|
1318
1319
|
}>;
|
|
1319
1320
|
providerModelId: z.ZodString;
|
|
1320
1321
|
lifecycle: z.ZodEnum<{
|
package/dist/catalog.d.ts
CHANGED
|
@@ -168,7 +168,7 @@ type Lifecycle = "active" | "deprecated" | "retired";
|
|
|
168
168
|
type Surface = "cowork" | "space_builder";
|
|
169
169
|
/** @deprecated use Surface[] */
|
|
170
170
|
type Exposure = Surface[];
|
|
171
|
-
type AdapterId = "ai-sdk-text" | "google-image" | "openai-image" | "google-genai" | "ark" | "fal" | "replicate" | "prodia" | "higgsfield" | "xai-video" | "alibaba" | "luma" | "fish" | "elevenlabs";
|
|
171
|
+
type AdapterId = "ai-sdk-text" | "google-image" | "openai-image" | "google-genai" | "ark" | "fal" | "replicate" | "prodia" | "higgsfield" | "xai-video" | "alibaba" | "luma" | "fish" | "elevenlabs" | "wavespeed";
|
|
172
172
|
/** Gemini image safety threshold, per category, sent only when the caller opts in. */
|
|
173
173
|
type ImageSafetySetting = {
|
|
174
174
|
category: string;
|
|
@@ -1111,7 +1111,7 @@ interface UsageEvent {
|
|
|
1111
1111
|
keySource?: KeySource;
|
|
1112
1112
|
raw?: unknown;
|
|
1113
1113
|
}
|
|
1114
|
-
type ProviderKeyName = "openai" | "anthropic" | "google" | "xai" | "perplexity" | "deepseek" | "moonshot" | "minimax" | "ark" | "fal" | "replicate" | "prodia" | "higgsfield" | "alibaba" | "luma" | "fish" | "elevenlabs" | "cloudflare";
|
|
1114
|
+
type ProviderKeyName = "openai" | "anthropic" | "google" | "xai" | "perplexity" | "deepseek" | "moonshot" | "minimax" | "ark" | "fal" | "replicate" | "prodia" | "higgsfield" | "alibaba" | "luma" | "fish" | "elevenlabs" | "wavespeed" | "cloudflare";
|
|
1115
1115
|
type ProviderKeys = Partial<Record<ProviderKeyName, string>> & {
|
|
1116
1116
|
/** Higgsfield needs the pair; both switch together. */
|
|
1117
1117
|
higgsfieldSecret?: string;
|
|
@@ -1261,7 +1261,7 @@ declare function isListed(row: CatalogModel): boolean;
|
|
|
1261
1261
|
*/
|
|
1262
1262
|
declare const MODELS: CatalogModel[];
|
|
1263
1263
|
|
|
1264
|
-
declare const ADAPTER_IDS: readonly ["ai-sdk-text", "google-image", "openai-image", "google-genai", "ark", "fal", "replicate", "prodia", "higgsfield", "xai-video", "luma", "alibaba", "fish", "elevenlabs"];
|
|
1264
|
+
declare const ADAPTER_IDS: readonly ["ai-sdk-text", "google-image", "openai-image", "google-genai", "ark", "fal", "replicate", "prodia", "higgsfield", "xai-video", "luma", "alibaba", "fish", "elevenlabs", "wavespeed"];
|
|
1265
1265
|
declare const SurfaceSchema: z.ZodEnum<{
|
|
1266
1266
|
cowork: "cowork";
|
|
1267
1267
|
space_builder: "space_builder";
|
|
@@ -1315,6 +1315,7 @@ declare const CatalogModelSchemaBase: z.ZodObject<{
|
|
|
1315
1315
|
luma: "luma";
|
|
1316
1316
|
fish: "fish";
|
|
1317
1317
|
elevenlabs: "elevenlabs";
|
|
1318
|
+
wavespeed: "wavespeed";
|
|
1318
1319
|
}>;
|
|
1319
1320
|
providerModelId: z.ZodString;
|
|
1320
1321
|
lifecycle: z.ZodEnum<{
|
package/dist/catalog.js
CHANGED
|
@@ -6470,6 +6470,7 @@ var GROK_RATIOS = ["1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3"];
|
|
|
6470
6470
|
var H3_RATIOS2 = ["21:9", "16:9", "4:3", "1:1", "3:4", "9:16"];
|
|
6471
6471
|
var H3_REFERENCE_RATIOS = ["adaptive", ...H3_RATIOS2];
|
|
6472
6472
|
var WAN_RATIOS = ["adaptive", "16:9", "4:3", "1:1", "3:4", "9:16"];
|
|
6473
|
+
var MAGI_RATIOS = ["21:9", "16:9", "4:3", "1:1", "3:4", "9:16"];
|
|
6473
6474
|
var NEGATIVE_PROMPT = "blur, distort, and low quality";
|
|
6474
6475
|
var FRAMES_EXCLUDE_REFERENCES = { framesExcludeReferences: true };
|
|
6475
6476
|
var KLING_PROMPT2 = { referenceSyntax: "numbered", maxChars: 2500 };
|
|
@@ -7399,6 +7400,48 @@ var VIDEO_MODELS = [
|
|
|
7399
7400
|
},
|
|
7400
7401
|
capabilities: {}
|
|
7401
7402
|
},
|
|
7403
|
+
{
|
|
7404
|
+
// Sand AI MAGI-2 on WaveSpeed. One row for text-, image- (start/end frame) and
|
|
7405
|
+
// reference-to-video; the adapter picks the endpoint from the inputs. WaveSpeed bills
|
|
7406
|
+
// USD 0.08 per requested second, sound and references included.
|
|
7407
|
+
// https://wavespeed.ai/docs/docs-api/sand-ai/magi-2/reference-to-video
|
|
7408
|
+
id: "magi-2",
|
|
7409
|
+
aliases: ["magi2", "sand-magi-2"],
|
|
7410
|
+
label: "MAGI-2",
|
|
7411
|
+
type: "video",
|
|
7412
|
+
adapter: "wavespeed",
|
|
7413
|
+
providerModelId: "sand-ai/magi-2",
|
|
7414
|
+
lifecycle: "active",
|
|
7415
|
+
exposure: ["cowork", "space_builder"],
|
|
7416
|
+
constraints: {
|
|
7417
|
+
aspectRatios: [...MAGI_RATIOS],
|
|
7418
|
+
resolutions: ["1080p"],
|
|
7419
|
+
durations: { min: 4, max: 30 },
|
|
7420
|
+
preferDefaultDuration: true,
|
|
7421
|
+
references: {
|
|
7422
|
+
images: 10,
|
|
7423
|
+
videos: 5,
|
|
7424
|
+
audios: 5,
|
|
7425
|
+
videoSeconds: { min: 2, max: 30, total: 30 },
|
|
7426
|
+
audioSeconds: { min: 2, max: 30, total: 30 }
|
|
7427
|
+
},
|
|
7428
|
+
supports: ["seed", "lastFrame", "generateAudio"],
|
|
7429
|
+
prompt: { referenceSyntax: "descriptive", maxChars: 15e3 },
|
|
7430
|
+
audio: "optional"
|
|
7431
|
+
},
|
|
7432
|
+
defaults: {
|
|
7433
|
+
durationSeconds: 5,
|
|
7434
|
+
resolution: "1080p",
|
|
7435
|
+
generateAudio: true
|
|
7436
|
+
},
|
|
7437
|
+
usage: { ...VIDEO_USAGE3 },
|
|
7438
|
+
pricingKind: "video_per_second",
|
|
7439
|
+
display: {
|
|
7440
|
+
provider: "sand-ai",
|
|
7441
|
+
description: "Sand AI MAGI-2 video model for text-to-video, image-to-video (start/end frame), and reference-to-video from up to 10 images, 5 videos and 5 audio clips, with native audio; 4 to 30 seconds at 1080p."
|
|
7442
|
+
},
|
|
7443
|
+
capabilities: { ...FRAMES_EXCLUDE_REFERENCES, lastFrameRequiresFirstFrame: true }
|
|
7444
|
+
},
|
|
7402
7445
|
...VIDEO_FAMILY_MODELS,
|
|
7403
7446
|
...VIDEO_AVATAR_MODELS,
|
|
7404
7447
|
...LUMA_VIDEO_MODELS
|
|
@@ -8637,7 +8680,8 @@ var ADAPTER_IDS = [
|
|
|
8637
8680
|
"luma",
|
|
8638
8681
|
"alibaba",
|
|
8639
8682
|
"fish",
|
|
8640
|
-
"elevenlabs"
|
|
8683
|
+
"elevenlabs",
|
|
8684
|
+
"wavespeed"
|
|
8641
8685
|
];
|
|
8642
8686
|
var ModelTypeSchema = z3.enum([
|
|
8643
8687
|
"text",
|