@fungi.computer/darkroom 0.11.34 → 0.11.36

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.
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod";
2
2
 
3
3
  /** An explicitly requested image encoding; video is outside this contract. */
4
- export const mediaRequestedImageFormatSchema = z.enum({
4
+ export const mediaRequestedImageFormatSchema = /* @__PURE__ */ z.enum({
5
5
  /** PNG image encoding. */
6
6
  png: "png",
7
7
  /** JPEG image encoding. */
@@ -15,7 +15,7 @@ export const mediaRequestedImageFormatSchema = z.enum({
15
15
  * premium for art the user will see, and max for the most expensive models.
16
16
  * One value per model; never a price.
17
17
  */
18
- export const mediaModelTierSchema = z.enum({
18
+ export const mediaModelTierSchema = /* @__PURE__ */ z.enum({
19
19
  /** Cheap, fast draft model. */
20
20
  draft: "draft",
21
21
  /** Balanced model selection. */
@@ -29,7 +29,7 @@ export const mediaModelTierSchema = z.enum({
29
29
  export type MediaModelTier = z.output<typeof mediaModelTierSchema>;
30
30
 
31
31
  /** Media's provider catalog: Workers AI images plus gateway image, video and audio models. */
32
- export const mediaModelInputSchema = z.lazy(() =>
32
+ export const mediaModelInputSchema = /* @__PURE__ */ z.lazy(() =>
33
33
  z
34
34
  .strictObject({
35
35
  /**
@@ -116,7 +116,7 @@ export const mediaModelInputSchema = z.lazy(() =>
116
116
  export const MAX_REFERENCE_COUNT = 30;
117
117
 
118
118
  /** Verified Unified AI video identifiers; no inferred family aliases. */
119
- export const mediaVideoModelIdSchema = z.enum({
119
+ export const mediaVideoModelIdSchema = /* @__PURE__ */ z.enum({
120
120
  /** Seedance 2.5. */
121
121
  seedance25: "bytedance/seedance-2.5",
122
122
  /** Seedance 2.0. */
@@ -135,7 +135,7 @@ export const mediaVideoModelIdSchema = z.enum({
135
135
  /** Verified video model identifier. */
136
136
  export type MediaVideoModelId = z.output<typeof mediaVideoModelIdSchema>;
137
137
  /** Provider resolution selectors, refined against the selected catalog entry. */
138
- export const mediaVideoResolutionSchema = z.enum({
138
+ export const mediaVideoResolutionSchema = /* @__PURE__ */ z.enum({
139
139
  /** 480p. */
140
140
  p480: "480p",
141
141
  /** 720p. */
@@ -150,7 +150,7 @@ export const mediaVideoResolutionSchema = z.enum({
150
150
  /** A video resolution selector. */
151
151
  export type MediaVideoResolution = z.output<typeof mediaVideoResolutionSchema>;
152
152
  /** Documented video aspect selectors, refined per model. */
153
- export const mediaVideoAspectRatioSchema = z.enum({
153
+ export const mediaVideoAspectRatioSchema = /* @__PURE__ */ z.enum({
154
154
  /** Landscape widescreen. */
155
155
  wide: "16:9",
156
156
  /** Landscape standard. */
@@ -171,7 +171,7 @@ export type MediaVideoAspectRatio = z.output<
171
171
  typeof mediaVideoAspectRatioSchema
172
172
  >;
173
173
  /** Explicit reference meaning; frame mode and reference mode are exclusive. */
174
- export const mediaVideoReferenceRoleSchema = z.enum({
174
+ export const mediaVideoReferenceRoleSchema = /* @__PURE__ */ z.enum({
175
175
  /** First frame; required when a last frame is supplied. */
176
176
  first: "first-frame",
177
177
  /** Last frame, supported by Seedance only (`last_frame_image`). */
@@ -185,7 +185,7 @@ export type MediaVideoReferenceRole = z.output<
185
185
  >;
186
186
 
187
187
  /** One nominal size used to select provider resolution and aspect. */
188
- export const mediaVideoFormatSchema = z.lazy(() =>
188
+ export const mediaVideoFormatSchema = /* @__PURE__ */ z.lazy(() =>
189
189
  z
190
190
  .strictObject({
191
191
  /** Provider resolution. */
@@ -203,7 +203,7 @@ export const mediaVideoFormatSchema = z.lazy(() =>
203
203
  export type MediaVideoFormat = z.output<typeof mediaVideoFormatSchema>;
204
204
 
205
205
  /** Verified video parameters and provider costs, checked 2026-10-11. */
206
- export const mediaVideoSchema = z.lazy(() =>
206
+ export const mediaVideoSchema = /* @__PURE__ */ z.lazy(() =>
207
207
  z
208
208
  .strictObject({
209
209
  /** Minimum duration, for callers displaying bounds. */
@@ -282,7 +282,7 @@ export type MediaVideoModel = z.output<typeof mediaVideoSchema>;
282
282
  * answered 403 code 2047 ("not available via unified billing. Please use
283
283
  * BYOK"), so they are not offered. Multilingual v2 is the default voice model.
284
284
  */
285
- export const mediaAudioModelIdSchema = z.enum({
285
+ export const mediaAudioModelIdSchema = /* @__PURE__ */ z.enum({
286
286
  /** Eleven Multilingual v2 text to speech. */
287
287
  multilingual: "elevenlabs/eleven-multilingual-v2",
288
288
  /** Eleven v3 expressive text to speech. */
@@ -294,7 +294,7 @@ export const mediaAudioModelIdSchema = z.enum({
294
294
  export type MediaAudioModelId = z.output<typeof mediaAudioModelIdSchema>;
295
295
 
296
296
  /** One premade voice a speech model may speak with. */
297
- export const mediaAudioVoiceSchema = z.lazy(() =>
297
+ export const mediaAudioVoiceSchema = /* @__PURE__ */ z.lazy(() =>
298
298
  z
299
299
  .strictObject({
300
300
  /** ElevenLabs voice identifier, exactly as Cloudflare's docs list it. */
@@ -308,7 +308,7 @@ export const mediaAudioVoiceSchema = z.lazy(() =>
308
308
  export type MediaAudioVoice = z.output<typeof mediaAudioVoiceSchema>;
309
309
 
310
310
  /** Verified audio parameters and provider cost, checked 2026-11-13. */
311
- export const mediaAudioSchema = z.lazy(() =>
311
+ export const mediaAudioSchema = /* @__PURE__ */ z.lazy(() =>
312
312
  z
313
313
  .strictObject({
314
314
  /** Provider translation family. */
@@ -359,7 +359,7 @@ const UNDOCUMENTED_PROMPT_LENGTH = 2_048;
359
359
  * What a source-image operation does to its one reference image. Both write a
360
360
  * new image and never touch the source.
361
361
  */
362
- export const mediaTransformOperationSchema = z.enum({
362
+ export const mediaTransformOperationSchema = /* @__PURE__ */ z.enum({
363
363
  /** Cut the foreground out onto a transparent PNG. */
364
364
  remove_background: "remove_background",
365
365
  /** Enlarge the image to a chosen output size in megapixels. */
@@ -375,7 +375,7 @@ export type MediaTransformOperation = z.output<
375
375
  * from a prompt. The source limits are Botanical's own conservative bounds, not
376
376
  * Cloudflare's: neither model page publishes an input size limit.
377
377
  */
378
- export const mediaTransformSchema = z.lazy(() =>
378
+ export const mediaTransformSchema = /* @__PURE__ */ z.lazy(() =>
379
379
  z
380
380
  .strictObject({
381
381
  /** What the operation does. */
@@ -444,7 +444,7 @@ const TRANSFORM_SOURCE_MAX_PIXELS = 25_000_000;
444
444
  * blocks of {@link AUDIO_CHARACTER_BLOCK} speech characters (so a per-character
445
445
  * provider rate is marked up once per block, not rounded up per character).
446
446
  */
447
- export const mediaBillingUnitSchema = z.enum({
447
+ export const mediaBillingUnitSchema = /* @__PURE__ */ z.enum({
448
448
  /** One image. */
449
449
  image: "image",
450
450
  /** One whole second of video. */
@@ -473,14 +473,14 @@ export const mediaBillingUnit = (
473
473
  };
474
474
 
475
475
  /** Public wire grammar for a catalog entry returned by the Media owner. */
476
- export const mediaModelSchema = z
476
+ export const mediaModelSchema = /* @__PURE__ */ z
477
477
  .strictObject({
478
478
  /** Provider model identifier. */
479
- id: z.string().min(1).max(256),
479
+ id: /* @__PURE__ */ z.string().min(1).max(256),
480
480
  /** Customer-visible model label. */
481
- label: z.string().min(1).max(512),
481
+ label: /* @__PURE__ */ z.string().min(1).max(512),
482
482
  /** Outcome or model-kind discriminant. */
483
- kind: z.enum({
483
+ kind: /* @__PURE__ */ z.enum({
484
484
  /** Still-image generation. */
485
485
  image: "image",
486
486
  /** Video generation. */
@@ -491,26 +491,33 @@ export const mediaModelSchema = z
491
491
  /** Model selection tier, independent of price. */
492
492
  tier: mediaModelTierSchema,
493
493
  /** Verified provider encodings; an empty list refuses pinned formats. */
494
- outputFormats: z.array(mediaRequestedImageFormatSchema).max(3).readonly(),
494
+ outputFormats: /* @__PURE__ */ z
495
+ .array(mediaRequestedImageFormatSchema)
496
+ .max(3)
497
+ .readonly(),
495
498
  /**
496
499
  * Maximum prompt length in characters for this model: the provider's
497
500
  * documented limit, or the retained 2,048 host cap where none is documented.
498
501
  */
499
- maxPromptLength: z.number().int().positive().max(MAX_MEDIA_PROMPT_LENGTH),
502
+ maxPromptLength: /* @__PURE__ */ z
503
+ .number()
504
+ .int()
505
+ .positive()
506
+ .max(MAX_MEDIA_PROMPT_LENGTH),
500
507
  /** Model-native input options and reference limits. */
501
508
  input: mediaModelInputSchema,
502
509
  /**
503
510
  * Image output sizes or nominal video selectors, as `WIDTHxHEIGHT`; null means
504
511
  * any size within the input bounds.
505
512
  */
506
- sizes: z
507
- .array(z.string().regex(/^\d+x\d+$/u))
513
+ sizes: /* @__PURE__ */ z
514
+ .array(/* @__PURE__ */ z.string().regex(/^\d+x\d+$/u))
508
515
  .readonly()
509
516
  .nullable(),
510
517
  /** Video length constraints, or null for a still-image model. */
511
- video: mediaVideoSchema.nullable(),
518
+ video: /* @__PURE__ */ mediaVideoSchema.nullable(),
512
519
  /** Speech or music constraints, or null for an image or video model. */
513
- audio: mediaAudioSchema.nullable(),
520
+ audio: /* @__PURE__ */ mediaAudioSchema.nullable(),
514
521
  /**
515
522
  * Price basis: the unit one generation bills in. The cost of those units
516
523
  * depends on the settings (size, steps, resolution, sound, references), so
@@ -519,7 +526,7 @@ export const mediaModelSchema = z
519
526
  */
520
527
  billingUnit: mediaBillingUnitSchema,
521
528
  /** Source-image operation facts, or null for a model that generates from a prompt. */
522
- transform: mediaTransformSchema.nullable(),
529
+ transform: /* @__PURE__ */ mediaTransformSchema.nullable(),
523
530
  })
524
531
  .readonly();
525
532
 
@@ -585,7 +592,7 @@ const COMMON_IMAGE_RATIOS = [
585
592
  [9, 16],
586
593
  [21, 9],
587
594
  ] as const;
588
- const gptImageSizes: readonly string[] = (() => {
595
+ const gptImageSizes: readonly string[] = /* @__PURE__ */ (() => {
589
596
  const keep = new Set(["1024x1024", "1024x1536", "1536x1024"]);
590
597
  const standard: string[] = [];
591
598
  const largest: string[] = [];
@@ -642,7 +649,7 @@ const commonRatioSizes = (area: number): readonly string[] =>
642
649
  * https://developers.cloudflare.com/ai/models/bytedance/seedream-5-pro/
643
650
  * https://developers.cloudflare.com/ai/models/bytedance/seedream-5-pro/schema-input.json
644
651
  */
645
- const seedreamSizes = commonRatioSizes(1536 * 864);
652
+ const seedreamSizes = /* @__PURE__ */ commonRatioSizes(1536 * 864);
646
653
 
647
654
  const videoShortEdges = {
648
655
  "480p": 480,
@@ -677,7 +684,7 @@ const seedance25 = {
677
684
  audioReferences: { max: 10, totalSeconds: 30 },
678
685
  maxPromptLength: 25_000,
679
686
  resolutions: ["480p", "720p"],
680
- aspects: mediaVideoAspectRatioSchema.options.filter(
687
+ aspects: /* @__PURE__ */ mediaVideoAspectRatioSchema.options.filter(
681
688
  (aspectRatio) => aspectRatio !== mediaVideoAspectRatioSchema.enum.ultratall,
682
689
  ),
683
690
  } as const;
@@ -930,9 +937,14 @@ function minimaxVideoModel(): MediaModel {
930
937
  * lists them.
931
938
  * https://developers.cloudflare.com/ai/models/elevenlabs/eleven-v3/
932
939
  */
933
- const premadeVoices: readonly MediaAudioVoice[] = Object.freeze([
934
- Object.freeze({ id: "JBFqnCBsd6RMkjVDRZzb", label: "Default voice" }),
935
- ]);
940
+ const premadeVoices: readonly MediaAudioVoice[] = /* @__PURE__ */ Object.freeze(
941
+ [
942
+ /* @__PURE__ */ Object.freeze({
943
+ id: "JBFqnCBsd6RMkjVDRZzb",
944
+ label: "Default voice",
945
+ }),
946
+ ],
947
+ );
936
948
 
937
949
  /**
938
950
  * An ElevenLabs speech model. Text is at most 10,000 characters and a
@@ -1087,12 +1099,12 @@ function transformModel(
1087
1099
  });
1088
1100
  }
1089
1101
 
1090
- const models: readonly MediaModel[] = Object.freeze([
1091
- freezeModel({
1102
+ const models: readonly MediaModel[] = /* @__PURE__ */ Object.freeze([
1103
+ /* @__PURE__ */ freezeModel({
1092
1104
  id: "@cf/black-forest-labs/flux-1-schnell",
1093
1105
  // 2,048 characters: input schema maxLength at developers.cloudflare.com/workers-ai/models/flux-1-schnell/.
1094
1106
  maxPromptLength: 2_048,
1095
- outputFormats: Object.freeze(["jpeg"]),
1107
+ outputFormats: /* @__PURE__ */ Object.freeze(["jpeg"]),
1096
1108
  tier: "draft",
1097
1109
  label: "Flux 1 Schnell — cheap/fast sketches",
1098
1110
  input: {
@@ -1113,7 +1125,7 @@ const models: readonly MediaModel[] = Object.freeze([
1113
1125
  referenceFormat: "png",
1114
1126
  },
1115
1127
  }),
1116
- freezeModel({
1128
+ /* @__PURE__ */ freezeModel({
1117
1129
  id: "@cf/black-forest-labs/flux-2-klein-4b",
1118
1130
  // Workers AI documents no prompt maxLength for this model; keep the 2,048 host cap.
1119
1131
  maxPromptLength: UNDOCUMENTED_PROMPT_LENGTH,
@@ -1137,7 +1149,7 @@ const models: readonly MediaModel[] = Object.freeze([
1137
1149
  referenceFormat: "png",
1138
1150
  },
1139
1151
  }),
1140
- freezeModel({
1152
+ /* @__PURE__ */ freezeModel({
1141
1153
  id: "@cf/black-forest-labs/flux-2-klein-9b",
1142
1154
  // Workers AI documents no prompt maxLength for this model; keep the 2,048 host cap.
1143
1155
  maxPromptLength: UNDOCUMENTED_PROMPT_LENGTH,
@@ -1161,7 +1173,7 @@ const models: readonly MediaModel[] = Object.freeze([
1161
1173
  referenceFormat: "png",
1162
1174
  },
1163
1175
  }),
1164
- freezeModel({
1176
+ /* @__PURE__ */ freezeModel({
1165
1177
  id: "@cf/black-forest-labs/flux-2-dev",
1166
1178
  // Workers AI documents no prompt maxLength for this model; keep the 2,048 host cap.
1167
1179
  maxPromptLength: UNDOCUMENTED_PROMPT_LENGTH,
@@ -1185,7 +1197,7 @@ const models: readonly MediaModel[] = Object.freeze([
1185
1197
  referenceFormat: "png",
1186
1198
  },
1187
1199
  }),
1188
- freezeModel({
1200
+ /* @__PURE__ */ freezeModel({
1189
1201
  id: "@cf/leonardo/lucid-origin",
1190
1202
  // Workers AI documents no prompt maxLength for this model; keep the 2,048 host cap.
1191
1203
  maxPromptLength: UNDOCUMENTED_PROMPT_LENGTH,
@@ -1212,7 +1224,7 @@ const models: readonly MediaModel[] = Object.freeze([
1212
1224
  referenceFormat: "png",
1213
1225
  },
1214
1226
  }),
1215
- freezeModel({
1227
+ /* @__PURE__ */ freezeModel({
1216
1228
  id: "@cf/leonardo/phoenix-1.0",
1217
1229
  // Workers AI documents no prompt maxLength for this model; keep the 2,048 host cap.
1218
1230
  maxPromptLength: UNDOCUMENTED_PROMPT_LENGTH,
@@ -1241,11 +1253,11 @@ const models: readonly MediaModel[] = Object.freeze([
1241
1253
  }),
1242
1254
  // Third-party models run through the AI Gateway (Unified Billing): OpenAI's
1243
1255
  // image model and ByteDance's video model return a result URL, not bytes.
1244
- freezeModel({
1256
+ /* @__PURE__ */ freezeModel({
1245
1257
  id: "openai/gpt-image-2",
1246
1258
  // 32,000 characters: OpenAI's Images API reference gives GPT image models a 32000-character prompt limit.
1247
1259
  maxPromptLength: 32_000,
1248
- outputFormats: Object.freeze(["png", "jpeg", "webp"]),
1260
+ outputFormats: /* @__PURE__ */ Object.freeze(["png", "jpeg", "webp"]),
1249
1261
  tier: "premium",
1250
1262
  label: "GPT Image 2 — strong text and layout, premium",
1251
1263
  sizes: gptImageSizes,
@@ -1277,13 +1289,13 @@ const models: readonly MediaModel[] = Object.freeze([
1277
1289
  referenceFormat: "webp",
1278
1290
  },
1279
1291
  }),
1280
- freezeModel({
1292
+ /* @__PURE__ */ freezeModel({
1281
1293
  id: "bytedance/seedream-5-pro",
1282
1294
  // The page documents no prompt maxLength (schema-input.json has none):
1283
1295
  // keep the 2,048 host cap.
1284
1296
  maxPromptLength: UNDOCUMENTED_PROMPT_LENGTH,
1285
1297
  // The page's example results are .jpeg URLs; the schema has no format field.
1286
- outputFormats: Object.freeze(["jpeg"]),
1298
+ outputFormats: /* @__PURE__ */ Object.freeze(["jpeg"]),
1287
1299
  tier: "premium",
1288
1300
  label: "Seedream 5 Pro — ByteDance, high-quality images",
1289
1301
  sizes: seedreamSizes,
@@ -1308,7 +1320,7 @@ const models: readonly MediaModel[] = Object.freeze([
1308
1320
  referenceFormat: "png",
1309
1321
  },
1310
1322
  }),
1311
- transformModel({
1323
+ /* @__PURE__ */ transformModel({
1312
1324
  id: "bria/remove-background",
1313
1325
  label: "Remove background — Bria RMBG 2.0",
1314
1326
  tier: "draft",
@@ -1318,7 +1330,7 @@ const models: readonly MediaModel[] = Object.freeze([
1318
1330
  sizes: [],
1319
1331
  defaultMegapixels: null,
1320
1332
  }),
1321
- transformModel({
1333
+ /* @__PURE__ */ transformModel({
1322
1334
  id: "pruna/p-image-upscale",
1323
1335
  label: "Upscale — Pruna P-Image-Upscale",
1324
1336
  tier: "draft",
@@ -1327,13 +1339,13 @@ const models: readonly MediaModel[] = Object.freeze([
1327
1339
  // WebP keeps transparency.
1328
1340
  outputFormat: "webp",
1329
1341
  flatUsd: null,
1330
- sizes: UPSCALE_TARGET_MEGAPIXELS.map((megapixels) => ({
1342
+ sizes: /* @__PURE__ */ UPSCALE_TARGET_MEGAPIXELS.map((megapixels) => ({
1331
1343
  megapixels,
1332
1344
  usd: upscaleTierUsd(megapixels),
1333
1345
  })),
1334
1346
  defaultMegapixels: 4,
1335
1347
  }),
1336
- videoModel(
1348
+ /* @__PURE__ */ videoModel(
1337
1349
  mediaVideoModelIdSchema.enum.seedance25,
1338
1350
  "Seedance 2.5",
1339
1351
  "balanced",
@@ -1344,7 +1356,7 @@ const models: readonly MediaModel[] = Object.freeze([
1344
1356
  ],
1345
1357
  seedance25,
1346
1358
  ),
1347
- videoModel(
1359
+ /* @__PURE__ */ videoModel(
1348
1360
  mediaVideoModelIdSchema.enum.seedance,
1349
1361
  "Seedance 2.0",
1350
1362
  "balanced",
@@ -1356,7 +1368,7 @@ const models: readonly MediaModel[] = Object.freeze([
1356
1368
  ["4k", 78_000, 78_000],
1357
1369
  ],
1358
1370
  ),
1359
- videoModel(
1371
+ /* @__PURE__ */ videoModel(
1360
1372
  mediaVideoModelIdSchema.enum.seedanceFast,
1361
1373
  "Seedance 2.0 Fast",
1362
1374
  "draft",
@@ -1366,7 +1378,7 @@ const models: readonly MediaModel[] = Object.freeze([
1366
1378
  ["720p", 12_000, 12_000],
1367
1379
  ],
1368
1380
  ),
1369
- videoModel(
1381
+ /* @__PURE__ */ videoModel(
1370
1382
  mediaVideoModelIdSchema.enum.seedanceMini,
1371
1383
  "Seedance 2.0 Mini",
1372
1384
  "draft",
@@ -1376,11 +1388,17 @@ const models: readonly MediaModel[] = Object.freeze([
1376
1388
  ["720p", 9_000, 9_000],
1377
1389
  ],
1378
1390
  ),
1379
- videoModel(mediaVideoModelIdSchema.enum.veo, "Veo 3.1", "premium", "veo", [
1380
- ["720p", 20_000, 40_000],
1381
- ["1080p", 20_000, 40_000],
1382
- ]),
1383
- videoModel(
1391
+ /* @__PURE__ */ videoModel(
1392
+ mediaVideoModelIdSchema.enum.veo,
1393
+ "Veo 3.1",
1394
+ "premium",
1395
+ "veo",
1396
+ [
1397
+ ["720p", 20_000, 40_000],
1398
+ ["1080p", 20_000, 40_000],
1399
+ ],
1400
+ ),
1401
+ /* @__PURE__ */ videoModel(
1384
1402
  mediaVideoModelIdSchema.enum.veoFast,
1385
1403
  "Veo 3.1 Fast",
1386
1404
  "balanced",
@@ -1390,21 +1408,21 @@ const models: readonly MediaModel[] = Object.freeze([
1390
1408
  ["1080p", 10_000, 12_000],
1391
1409
  ],
1392
1410
  ),
1393
- minimaxVideoModel(),
1411
+ /* @__PURE__ */ minimaxVideoModel(),
1394
1412
  // ElevenLabs on Unified Billing: URL results, like the video models.
1395
- speechModel(
1413
+ /* @__PURE__ */ speechModel(
1396
1414
  mediaAudioModelIdSchema.enum.multilingual,
1397
1415
  "Eleven Multilingual v2 — natural speech",
1398
1416
  "balanced",
1399
1417
  10,
1400
1418
  ),
1401
- speechModel(
1419
+ /* @__PURE__ */ speechModel(
1402
1420
  mediaAudioModelIdSchema.enum.v3,
1403
1421
  "Eleven v3 — expressive speech",
1404
1422
  "premium",
1405
1423
  10,
1406
1424
  ),
1407
- musicModel(),
1425
+ /* @__PURE__ */ musicModel(),
1408
1426
  ]);
1409
1427
 
1410
1428
  /** The Fungi gateway provider's own immutable image, video and audio model catalog. */
@@ -1414,27 +1432,30 @@ export const mediaModels: readonly MediaModel[] = models;
1414
1432
  * video model may name `host` as its provider family: the injected provider
1415
1433
  * owns that model's wire grammar and Darkroom builds no gateway request for it.
1416
1434
  */
1417
- export const mediaCatalogueModelSchema = mediaModelSchema
1435
+ export const mediaCatalogueModelSchema = /* @__PURE__ */ mediaModelSchema
1418
1436
  .unwrap()
1419
1437
  .extend({
1420
1438
  /** Optional on a host's entry because Darkroom derives it; a stated value must match. */
1421
- billingUnit: mediaBillingUnitSchema.optional(),
1439
+ billingUnit: /* @__PURE__ */ mediaBillingUnitSchema.optional(),
1422
1440
  /** Speech or music constraints; a host's catalogue omits it unless it lists audio models. */
1423
- audio: mediaAudioSchema.unwrap().nullable().default(null),
1441
+ audio: /* @__PURE__ */ mediaAudioSchema.unwrap().nullable().default(null),
1424
1442
  /** Source-image operation facts; a host's catalogue omits it unless it lists such models. */
1425
- transform: mediaTransformSchema.unwrap().nullable().default(null),
1443
+ transform: /* @__PURE__ */ mediaTransformSchema
1444
+ .unwrap()
1445
+ .nullable()
1446
+ .default(null),
1426
1447
  /** Video length constraints, or null for a still-image model. */
1427
- video: mediaVideoSchema
1448
+ video: /* @__PURE__ */ mediaVideoSchema
1428
1449
  .unwrap()
1429
1450
  .unwrap()
1430
1451
  .extend({
1431
1452
  /** Audio reference limits; a host's catalogue omits it unless its model takes audio references. */
1432
- audioReferences: mediaVideoSchema
1453
+ audioReferences: /* @__PURE__ */ mediaVideoSchema
1433
1454
  .unwrap()
1434
1455
  .unwrap()
1435
1456
  .shape.audioReferences.default(null),
1436
1457
  /** Provider translation family, or `host` for a host-injected provider. */
1437
- provider: z.enum({
1458
+ provider: /* @__PURE__ */ z.enum({
1438
1459
  /** Seedance integer duration and data-URI image fields. */
1439
1460
  seedance: "seedance",
1440
1461
  /** Veo duration string and base64 image_input. */
@@ -1462,7 +1483,7 @@ const MAX_CATALOGUE_MODELS = 256;
1462
1483
  * validator relies on (unique ids, video metadata iff `kind` is video, defaults
1463
1484
  * inside their own bounds).
1464
1485
  */
1465
- export const mediaCatalogueSchema = z
1486
+ export const mediaCatalogueSchema = /* @__PURE__ */ z
1466
1487
  .array(mediaCatalogueModelSchema)
1467
1488
  .min(1)
1468
1489
  .max(MAX_CATALOGUE_MODELS)