@shop-os/modelkit 0.24.1 → 0.25.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/dist/index.d.cts CHANGED
@@ -12,7 +12,7 @@ import { LanguageModelV3, LanguageModelV2 } from '@ai-sdk/provider';
12
12
  /** The AI SDK video model spelling: a catalog id or a provider video model instance. */
13
13
  type VideoModel = Parameters<typeof experimental_generateVideo>[0]["model"];
14
14
  type AspectRatio = "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3" | "4:5" | "5:4" | "21:9" | "9:21" | "97:30" | "1:4" | "4:1" | "1:8" | "8:1" | "adaptive";
15
- type ImageSize = "512" | "1K" | "2K" | "4K";
15
+ type ImageSize = "512" | "1K" | "2K" | "4K" | "8K";
16
16
  type VideoResolution = "360p" | "480p" | "720p" | "768p" | "1080p" | "2k" | "4k";
17
17
  /** "xhigh" and "max" exist only on gpt-image-2.5; gpt-image-2 rejects them at the provider. */
18
18
  type ImageQuality = "auto" | "low" | "medium" | "high" | "xhigh" | "max";
@@ -1376,6 +1376,7 @@ declare const CatalogModelSchemaBase: z.ZodObject<{
1376
1376
  "1K": "1K";
1377
1377
  "2K": "2K";
1378
1378
  "4K": "4K";
1379
+ "8K": "8K";
1379
1380
  }>>>;
1380
1381
  resolutions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1381
1382
  "360p": "360p";
@@ -1687,6 +1688,7 @@ declare const CatalogModelSchemaBase: z.ZodObject<{
1687
1688
  "1K": "1K";
1688
1689
  "2K": "2K";
1689
1690
  "4K": "4K";
1691
+ "8K": "8K";
1690
1692
  }>>;
1691
1693
  exactSize: z.ZodOptional<z.ZodString>;
1692
1694
  quality: z.ZodOptional<z.ZodEnum<{
package/dist/index.d.ts CHANGED
@@ -12,7 +12,7 @@ import { LanguageModelV3, LanguageModelV2 } from '@ai-sdk/provider';
12
12
  /** The AI SDK video model spelling: a catalog id or a provider video model instance. */
13
13
  type VideoModel = Parameters<typeof experimental_generateVideo>[0]["model"];
14
14
  type AspectRatio = "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3" | "4:5" | "5:4" | "21:9" | "9:21" | "97:30" | "1:4" | "4:1" | "1:8" | "8:1" | "adaptive";
15
- type ImageSize = "512" | "1K" | "2K" | "4K";
15
+ type ImageSize = "512" | "1K" | "2K" | "4K" | "8K";
16
16
  type VideoResolution = "360p" | "480p" | "720p" | "768p" | "1080p" | "2k" | "4k";
17
17
  /** "xhigh" and "max" exist only on gpt-image-2.5; gpt-image-2 rejects them at the provider. */
18
18
  type ImageQuality = "auto" | "low" | "medium" | "high" | "xhigh" | "max";
@@ -1376,6 +1376,7 @@ declare const CatalogModelSchemaBase: z.ZodObject<{
1376
1376
  "1K": "1K";
1377
1377
  "2K": "2K";
1378
1378
  "4K": "4K";
1379
+ "8K": "8K";
1379
1380
  }>>>;
1380
1381
  resolutions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1381
1382
  "360p": "360p";
@@ -1687,6 +1688,7 @@ declare const CatalogModelSchemaBase: z.ZodObject<{
1687
1688
  "1K": "1K";
1688
1689
  "2K": "2K";
1689
1690
  "4K": "4K";
1691
+ "8K": "8K";
1690
1692
  }>>;
1691
1693
  exactSize: z.ZodOptional<z.ZodString>;
1692
1694
  quality: z.ZodOptional<z.ZodEnum<{
package/dist/index.js CHANGED
@@ -8209,7 +8209,7 @@ var AspectRatioSchema = z3.enum([
8209
8209
  "8:1",
8210
8210
  "adaptive"
8211
8211
  ]);
8212
- var ImageSizeSchema = z3.enum(["512", "1K", "2K", "4K"]);
8212
+ var ImageSizeSchema = z3.enum(["512", "1K", "2K", "4K", "8K"]);
8213
8213
  var VideoResolutionSchema = z3.enum(["360p", "480p", "720p", "768p", "1080p", "2k", "4k"]);
8214
8214
  var ImageQualitySchema = z3.enum(["auto", "low", "medium", "high", "xhigh", "max"]);
8215
8215
  var OutputFormatSchema = z3.enum(["png", "jpeg", "webp", "gif", "svg"]);
@@ -11954,7 +11954,7 @@ var KLING_V3 = klingImage(
11954
11954
  );
11955
11955
  var KLING_V42 = klingImage(
11956
11956
  "kling/v4/image-to-image",
11957
- { "2K": "2K", "4K": "4K" },
11957
+ { "2K": "2K", "4K": "4K", "8K": "8K" },
11958
11958
  "image_urls",
11959
11959
  "2K"
11960
11960
  );
@@ -18802,7 +18802,7 @@ function resolveOutputFormat(model, format, onUnsupported, warnings) {
18802
18802
  }
18803
18803
 
18804
18804
  // src/resolve-options.ts
18805
- var SIZE_ORDER = ["512", "1K", "2K", "4K"];
18805
+ var SIZE_ORDER = ["512", "1K", "2K", "4K", "8K"];
18806
18806
  var RESOLUTION_ORDER = ["360p", "480p", "720p", "768p", "1080p", "2k", "4k"];
18807
18807
  function ratioValue(r) {
18808
18808
  if (r === "adaptive") return 1;
@@ -20613,7 +20613,7 @@ function textAbortOptions(sdk, context) {
20613
20613
  var catalogId = z38.string();
20614
20614
  var exactSize = z38.templateLiteral([z38.number(), "x", z38.number()]);
20615
20615
  var sdkRatio = z38.templateLiteral([z38.number(), ":", z38.number()]);
20616
- var sizeTier = z38.enum(["512", "1K", "2K", "4K"]);
20616
+ var sizeTier = z38.enum(["512", "1K", "2K", "4K", "8K"]);
20617
20617
  function isCatalogId(model) {
20618
20618
  return catalogId.safeParse(model).success;
20619
20619
  }