@shop-os/modelkit 0.6.0 → 0.7.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 +17 -0
- package/README.md +3 -3
- package/dist/catalog.cjs +241 -46
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +6 -3
- package/dist/catalog.d.ts +6 -3
- package/dist/catalog.js +241 -46
- package/dist/catalog.js.map +1 -1
- package/dist/index.cjs +895 -114
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -5
- package/dist/index.d.ts +10 -5
- package/dist/index.js +894 -114
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/catalog.d.cts
CHANGED
|
@@ -133,7 +133,7 @@ type Lifecycle = "active" | "deprecated" | "retired";
|
|
|
133
133
|
type Surface = "cowork" | "space_builder";
|
|
134
134
|
/** @deprecated use Surface[] */
|
|
135
135
|
type Exposure = Surface[];
|
|
136
|
-
type AdapterId = "ai-sdk-text" | "google-image" | "openai-image" | "google-genai" | "ark" | "fal" | "replicate" | "prodia" | "higgsfield" | "xai-video";
|
|
136
|
+
type AdapterId = "ai-sdk-text" | "google-image" | "openai-image" | "google-genai" | "ark" | "fal" | "replicate" | "prodia" | "higgsfield" | "xai-video" | "luma";
|
|
137
137
|
/** Gemini image safety threshold, per category, sent only when the caller opts in. */
|
|
138
138
|
type ImageSafetySetting = {
|
|
139
139
|
category: string;
|
|
@@ -901,7 +901,7 @@ interface UsageEvent {
|
|
|
901
901
|
latencyMs?: number;
|
|
902
902
|
raw?: unknown;
|
|
903
903
|
}
|
|
904
|
-
type ProviderKeyName = "openai" | "anthropic" | "google" | "xai" | "perplexity" | "deepseek" | "moonshot" | "minimax" | "ark" | "fal" | "replicate" | "prodia" | "higgsfield" | "cloudflare";
|
|
904
|
+
type ProviderKeyName = "openai" | "anthropic" | "google" | "xai" | "perplexity" | "deepseek" | "moonshot" | "minimax" | "ark" | "fal" | "replicate" | "prodia" | "higgsfield" | "luma" | "cloudflare";
|
|
905
905
|
type ProviderKeys = Partial<Record<ProviderKeyName, string>> & {
|
|
906
906
|
/** Higgsfield needs the pair; both switch together. */
|
|
907
907
|
higgsfieldSecret?: string;
|
|
@@ -950,6 +950,8 @@ interface Routing {
|
|
|
950
950
|
interface AdapterEndpoints {
|
|
951
951
|
/** Ark (Seedream images, Seedance videos). Defaults to the BytePlus ap-southeast endpoint. */
|
|
952
952
|
ark?: string;
|
|
953
|
+
/** Luma Agents API. Defaults to https://agents.lumalabs.ai. */
|
|
954
|
+
luma?: string;
|
|
953
955
|
}
|
|
954
956
|
interface ModelKitConfig {
|
|
955
957
|
keys: {
|
|
@@ -1024,7 +1026,7 @@ declare function isListed(row: CatalogModel): boolean;
|
|
|
1024
1026
|
*/
|
|
1025
1027
|
declare const MODELS: CatalogModel[];
|
|
1026
1028
|
|
|
1027
|
-
declare const ADAPTER_IDS: readonly ["ai-sdk-text", "google-image", "openai-image", "google-genai", "ark", "fal", "replicate", "prodia", "higgsfield", "xai-video"];
|
|
1029
|
+
declare const ADAPTER_IDS: readonly ["ai-sdk-text", "google-image", "openai-image", "google-genai", "ark", "fal", "replicate", "prodia", "higgsfield", "xai-video", "luma"];
|
|
1028
1030
|
declare const SurfaceSchema: z.ZodEnum<{
|
|
1029
1031
|
cowork: "cowork";
|
|
1030
1032
|
space_builder: "space_builder";
|
|
@@ -1072,6 +1074,7 @@ declare const CatalogModelSchemaBase: z.ZodObject<{
|
|
|
1072
1074
|
prodia: "prodia";
|
|
1073
1075
|
higgsfield: "higgsfield";
|
|
1074
1076
|
"xai-video": "xai-video";
|
|
1077
|
+
luma: "luma";
|
|
1075
1078
|
}>;
|
|
1076
1079
|
providerModelId: z.ZodString;
|
|
1077
1080
|
lifecycle: z.ZodEnum<{
|
package/dist/catalog.d.ts
CHANGED
|
@@ -133,7 +133,7 @@ type Lifecycle = "active" | "deprecated" | "retired";
|
|
|
133
133
|
type Surface = "cowork" | "space_builder";
|
|
134
134
|
/** @deprecated use Surface[] */
|
|
135
135
|
type Exposure = Surface[];
|
|
136
|
-
type AdapterId = "ai-sdk-text" | "google-image" | "openai-image" | "google-genai" | "ark" | "fal" | "replicate" | "prodia" | "higgsfield" | "xai-video";
|
|
136
|
+
type AdapterId = "ai-sdk-text" | "google-image" | "openai-image" | "google-genai" | "ark" | "fal" | "replicate" | "prodia" | "higgsfield" | "xai-video" | "luma";
|
|
137
137
|
/** Gemini image safety threshold, per category, sent only when the caller opts in. */
|
|
138
138
|
type ImageSafetySetting = {
|
|
139
139
|
category: string;
|
|
@@ -901,7 +901,7 @@ interface UsageEvent {
|
|
|
901
901
|
latencyMs?: number;
|
|
902
902
|
raw?: unknown;
|
|
903
903
|
}
|
|
904
|
-
type ProviderKeyName = "openai" | "anthropic" | "google" | "xai" | "perplexity" | "deepseek" | "moonshot" | "minimax" | "ark" | "fal" | "replicate" | "prodia" | "higgsfield" | "cloudflare";
|
|
904
|
+
type ProviderKeyName = "openai" | "anthropic" | "google" | "xai" | "perplexity" | "deepseek" | "moonshot" | "minimax" | "ark" | "fal" | "replicate" | "prodia" | "higgsfield" | "luma" | "cloudflare";
|
|
905
905
|
type ProviderKeys = Partial<Record<ProviderKeyName, string>> & {
|
|
906
906
|
/** Higgsfield needs the pair; both switch together. */
|
|
907
907
|
higgsfieldSecret?: string;
|
|
@@ -950,6 +950,8 @@ interface Routing {
|
|
|
950
950
|
interface AdapterEndpoints {
|
|
951
951
|
/** Ark (Seedream images, Seedance videos). Defaults to the BytePlus ap-southeast endpoint. */
|
|
952
952
|
ark?: string;
|
|
953
|
+
/** Luma Agents API. Defaults to https://agents.lumalabs.ai. */
|
|
954
|
+
luma?: string;
|
|
953
955
|
}
|
|
954
956
|
interface ModelKitConfig {
|
|
955
957
|
keys: {
|
|
@@ -1024,7 +1026,7 @@ declare function isListed(row: CatalogModel): boolean;
|
|
|
1024
1026
|
*/
|
|
1025
1027
|
declare const MODELS: CatalogModel[];
|
|
1026
1028
|
|
|
1027
|
-
declare const ADAPTER_IDS: readonly ["ai-sdk-text", "google-image", "openai-image", "google-genai", "ark", "fal", "replicate", "prodia", "higgsfield", "xai-video"];
|
|
1029
|
+
declare const ADAPTER_IDS: readonly ["ai-sdk-text", "google-image", "openai-image", "google-genai", "ark", "fal", "replicate", "prodia", "higgsfield", "xai-video", "luma"];
|
|
1028
1030
|
declare const SurfaceSchema: z.ZodEnum<{
|
|
1029
1031
|
cowork: "cowork";
|
|
1030
1032
|
space_builder: "space_builder";
|
|
@@ -1072,6 +1074,7 @@ declare const CatalogModelSchemaBase: z.ZodObject<{
|
|
|
1072
1074
|
prodia: "prodia";
|
|
1073
1075
|
higgsfield: "higgsfield";
|
|
1074
1076
|
"xai-video": "xai-video";
|
|
1077
|
+
luma: "luma";
|
|
1075
1078
|
}>;
|
|
1076
1079
|
providerModelId: z.ZodString;
|
|
1077
1080
|
lifecycle: z.ZodEnum<{
|