@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.
@@ -9,7 +9,7 @@ import { z } from 'zod';
9
9
  /** The AI SDK video model spelling: a catalog id or a provider video model instance. */
10
10
  type VideoModel = Parameters<typeof experimental_generateVideo>[0]["model"];
11
11
  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";
12
- type ImageSize = "512" | "1K" | "2K" | "4K";
12
+ type ImageSize = "512" | "1K" | "2K" | "4K" | "8K";
13
13
  type VideoResolution = "360p" | "480p" | "720p" | "768p" | "1080p" | "2k" | "4k";
14
14
  /** "xhigh" and "max" exist only on gpt-image-2.5; gpt-image-2 rejects them at the provider. */
15
15
  type ImageQuality = "auto" | "low" | "medium" | "high" | "xhigh" | "max";
@@ -1336,6 +1336,7 @@ declare const CatalogModelSchemaBase: z.ZodObject<{
1336
1336
  "1K": "1K";
1337
1337
  "2K": "2K";
1338
1338
  "4K": "4K";
1339
+ "8K": "8K";
1339
1340
  }>>>;
1340
1341
  resolutions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1341
1342
  "360p": "360p";
@@ -1647,6 +1648,7 @@ declare const CatalogModelSchemaBase: z.ZodObject<{
1647
1648
  "1K": "1K";
1648
1649
  "2K": "2K";
1649
1650
  "4K": "4K";
1651
+ "8K": "8K";
1650
1652
  }>>;
1651
1653
  exactSize: z.ZodOptional<z.ZodString>;
1652
1654
  quality: z.ZodOptional<z.ZodEnum<{
package/dist/catalog.d.ts CHANGED
@@ -9,7 +9,7 @@ import { z } from 'zod';
9
9
  /** The AI SDK video model spelling: a catalog id or a provider video model instance. */
10
10
  type VideoModel = Parameters<typeof experimental_generateVideo>[0]["model"];
11
11
  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";
12
- type ImageSize = "512" | "1K" | "2K" | "4K";
12
+ type ImageSize = "512" | "1K" | "2K" | "4K" | "8K";
13
13
  type VideoResolution = "360p" | "480p" | "720p" | "768p" | "1080p" | "2k" | "4k";
14
14
  /** "xhigh" and "max" exist only on gpt-image-2.5; gpt-image-2 rejects them at the provider. */
15
15
  type ImageQuality = "auto" | "low" | "medium" | "high" | "xhigh" | "max";
@@ -1336,6 +1336,7 @@ declare const CatalogModelSchemaBase: z.ZodObject<{
1336
1336
  "1K": "1K";
1337
1337
  "2K": "2K";
1338
1338
  "4K": "4K";
1339
+ "8K": "8K";
1339
1340
  }>>>;
1340
1341
  resolutions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1341
1342
  "360p": "360p";
@@ -1647,6 +1648,7 @@ declare const CatalogModelSchemaBase: z.ZodObject<{
1647
1648
  "1K": "1K";
1648
1649
  "2K": "2K";
1649
1650
  "4K": "4K";
1651
+ "8K": "8K";
1650
1652
  }>>;
1651
1653
  exactSize: z.ZodOptional<z.ZodString>;
1652
1654
  quality: z.ZodOptional<z.ZodEnum<{
package/dist/catalog.js CHANGED
@@ -8204,7 +8204,7 @@ var AspectRatioSchema = z3.enum([
8204
8204
  "8:1",
8205
8205
  "adaptive"
8206
8206
  ]);
8207
- var ImageSizeSchema = z3.enum(["512", "1K", "2K", "4K"]);
8207
+ var ImageSizeSchema = z3.enum(["512", "1K", "2K", "4K", "8K"]);
8208
8208
  var VideoResolutionSchema = z3.enum(["360p", "480p", "720p", "768p", "1080p", "2k", "4k"]);
8209
8209
  var ImageQualitySchema = z3.enum(["auto", "low", "medium", "high", "xhigh", "max"]);
8210
8210
  var OutputFormatSchema = z3.enum(["png", "jpeg", "webp", "gif", "svg"]);
@@ -9964,7 +9964,7 @@ function applyFalVideoRules(model, req, callerRatio, warnings) {
9964
9964
  }
9965
9965
 
9966
9966
  // src/resolve-options.ts
9967
- var SIZE_ORDER = ["512", "1K", "2K", "4K"];
9967
+ var SIZE_ORDER = ["512", "1K", "2K", "4K", "8K"];
9968
9968
  var RESOLUTION_ORDER = ["360p", "480p", "720p", "768p", "1080p", "2k", "4k"];
9969
9969
  function ratioValue(r) {
9970
9970
  if (r === "adaptive") return 1;