@fungi.computer/darkroom 0.0.0-stage → 0.0.1

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.
Files changed (80) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +315 -2
  3. package/dist/app-media-contracts.d.ts +499 -0
  4. package/dist/app-media-contracts.js +98 -0
  5. package/dist/browser-failure.d.ts +40 -0
  6. package/dist/browser-failure.js +39 -0
  7. package/dist/browser.d.ts +2 -0
  8. package/dist/browser.js +1 -0
  9. package/dist/cloudflare/provider.d.ts +13 -0
  10. package/dist/cloudflare/provider.js +140 -0
  11. package/dist/cloudflare/reference-images.d.ts +42 -0
  12. package/dist/cloudflare/reference-images.js +102 -0
  13. package/dist/cloudflare.d.ts +6 -0
  14. package/dist/cloudflare.js +4 -0
  15. package/dist/cost-estimate.d.ts +22 -0
  16. package/dist/cost-estimate.js +76 -0
  17. package/dist/effect.d.ts +2 -0
  18. package/dist/effect.js +2 -0
  19. package/dist/execution-error.d.ts +54 -0
  20. package/dist/execution-error.js +62 -0
  21. package/dist/failure.d.ts +2 -0
  22. package/dist/failure.js +8 -0
  23. package/dist/gateway-models.d.ts +23 -0
  24. package/dist/gateway-models.js +77 -0
  25. package/dist/gateway-wire.d.ts +16 -0
  26. package/dist/gateway-wire.js +22 -0
  27. package/dist/index.d.ts +361 -0
  28. package/dist/index.js +611 -0
  29. package/dist/media-binding.d.ts +291 -0
  30. package/dist/media-binding.js +146 -0
  31. package/dist/media-generation.d.ts +10 -0
  32. package/dist/media-generation.js +110 -0
  33. package/dist/media-operation-contract.d.ts +104 -0
  34. package/dist/media-operation-contract.js +29 -0
  35. package/dist/media-operation-do.d.ts +55 -0
  36. package/dist/media-operation-do.js +105 -0
  37. package/dist/media-operation-owner.d.ts +301 -0
  38. package/dist/media-operation-owner.js +903 -0
  39. package/dist/media-operation-storage.d.ts +81 -0
  40. package/dist/media-operation-storage.js +1 -0
  41. package/dist/media-operation.d.ts +33 -0
  42. package/dist/media-operation.js +230 -0
  43. package/dist/model-catalog.d.ts +456 -0
  44. package/dist/model-catalog.js +565 -0
  45. package/dist/neurons.d.ts +4 -0
  46. package/dist/neurons.js +4 -0
  47. package/dist/provenance-bytes.d.ts +3 -0
  48. package/dist/provenance-bytes.js +15 -0
  49. package/dist/provenance-export.d.ts +23 -0
  50. package/dist/provenance-export.js +103 -0
  51. package/dist/provenance-jpeg.d.ts +3 -0
  52. package/dist/provenance-jpeg.js +76 -0
  53. package/dist/provenance-png.d.ts +1 -0
  54. package/dist/provenance-png.js +21 -0
  55. package/dist/provenance-xmp.d.ts +2 -0
  56. package/dist/provenance-xmp.js +54 -0
  57. package/dist/provenance.d.ts +20 -0
  58. package/dist/provenance.js +58 -0
  59. package/dist/server.d.ts +158 -0
  60. package/dist/server.js +207 -0
  61. package/dist/video-providers/index.d.ts +14 -0
  62. package/dist/video-providers/index.js +14 -0
  63. package/dist/video-providers/minimax.d.ts +25 -0
  64. package/dist/video-providers/minimax.js +63 -0
  65. package/dist/video-providers/reference-encoding.d.ts +4 -0
  66. package/dist/video-providers/reference-encoding.js +11 -0
  67. package/dist/video-providers/types.d.ts +28 -0
  68. package/dist/video-providers/types.js +1 -0
  69. package/dist/video-providers/unified.d.ts +18 -0
  70. package/dist/video-providers/unified.js +52 -0
  71. package/docs/api/README.md +16 -0
  72. package/docs/api/app-media-contracts.md +507 -0
  73. package/docs/api/browser.md +126 -0
  74. package/docs/api/cloudflare.md +678 -0
  75. package/docs/api/effect.md +39 -0
  76. package/docs/api/index.md +1775 -0
  77. package/docs/api/modules.md +19 -0
  78. package/docs/api/provenance-export.md +114 -0
  79. package/docs/api/server.md +1672 -0
  80. package/package.json +110 -3
@@ -0,0 +1,456 @@
1
+ import * as z from "zod";
2
+ /** An explicitly requested image encoding; video is outside this contract. */
3
+ export declare const mediaRequestedImageFormatSchema: z.ZodEnum<{
4
+ /** PNG image encoding. */
5
+ readonly png: "png";
6
+ /** JPEG image encoding. */
7
+ readonly jpeg: "jpeg";
8
+ /** WebP image encoding. */
9
+ readonly webp: "webp";
10
+ }>;
11
+ /**
12
+ * Agent-facing selection tier: cheap/fast draft work, the balanced default,
13
+ * premium for art the user will see, and max for the most expensive models.
14
+ * One value per model; never a price.
15
+ */
16
+ export declare const mediaModelTierSchema: z.ZodEnum<{
17
+ /** Cheap, fast draft model. */
18
+ readonly draft: "draft";
19
+ /** Balanced model selection. */
20
+ readonly balanced: "balanced";
21
+ /** Premium model selection. */
22
+ readonly premium: "premium";
23
+ /** Most expensive model selection. */
24
+ readonly max: "max";
25
+ }>;
26
+ /** A model selection tier, independent of billing price. */
27
+ export type MediaModelTier = z.output<typeof mediaModelTierSchema>;
28
+ /** Media's provider catalog: Workers AI images plus gateway image and video models. */
29
+ export declare const mediaModelInputSchema: z.ZodReadonly<z.ZodObject<{
30
+ transport: z.ZodEnum<{
31
+ /** JSON provider input. */
32
+ readonly json: "json";
33
+ /** Multipart provider input. */
34
+ readonly multipart: "multipart";
35
+ }>;
36
+ dimensions: z.ZodEnum<{
37
+ /** Provider chooses its own dimensions. */
38
+ readonly none: "none";
39
+ /** Provider accepts the requested dimensions. */
40
+ readonly own: "own";
41
+ }>;
42
+ maxDimension: z.ZodNullable<z.ZodNumber>;
43
+ defaultWidth: z.ZodNumber;
44
+ defaultHeight: z.ZodNumber;
45
+ steps: z.ZodEnum<{
46
+ /** Provider reads the steps field. */
47
+ readonly steps: "steps";
48
+ /** Provider reads the num_steps field. */
49
+ readonly num_steps: "num_steps";
50
+ /** Provider uses fixed inference steps. */
51
+ readonly fixed: "fixed";
52
+ }>;
53
+ maxSteps: z.ZodNullable<z.ZodNumber>;
54
+ defaultSteps: z.ZodNullable<z.ZodNumber>;
55
+ referenceField: z.ZodNullable<z.ZodString>;
56
+ maxReferences: z.ZodNumber;
57
+ }, z.core.$strict>>;
58
+ /** Verified Unified AI video identifiers; no inferred family aliases. */
59
+ export declare const mediaVideoModelIdSchema: z.ZodEnum<{
60
+ /** Seedance 2.0. */
61
+ readonly seedance: "bytedance/seedance-2.0";
62
+ /** Seedance 2.0 Fast. */
63
+ readonly seedanceFast: "bytedance/seedance-2.0-fast";
64
+ /** Seedance 2.0 Mini. */
65
+ readonly seedanceMini: "bytedance/seedance-2.0-mini";
66
+ /** Veo 3.1. */
67
+ readonly veo: "google/veo-3.1";
68
+ /** Veo 3.1 Fast. */
69
+ readonly veoFast: "google/veo-3.1-fast";
70
+ /** MiniMax H3 Max. */
71
+ readonly minimaxH3Max: "minimax/h3-max";
72
+ }>;
73
+ /** Verified video model identifier. */
74
+ export type MediaVideoModelId = z.output<typeof mediaVideoModelIdSchema>;
75
+ /** Provider resolution selectors, refined against the selected catalog entry. */
76
+ export declare const mediaVideoResolutionSchema: z.ZodEnum<{
77
+ /** 480p. */
78
+ readonly p480: "480p";
79
+ /** 720p. */
80
+ readonly p720: "720p";
81
+ /** 768p, admitted only by MiniMax H3 Max. */
82
+ readonly p768: "768p";
83
+ /** 1080p. */
84
+ readonly p1080: "1080p";
85
+ /** 4k, admitted only by Seedance 2.0. */
86
+ readonly p4k: "4k";
87
+ }>;
88
+ /** A video resolution selector. */
89
+ export type MediaVideoResolution = z.output<typeof mediaVideoResolutionSchema>;
90
+ /** Documented video aspect selectors, refined per model. */
91
+ export declare const mediaVideoAspectRatioSchema: z.ZodEnum<{
92
+ /** Landscape widescreen. */
93
+ readonly wide: "16:9";
94
+ /** Landscape standard. */
95
+ readonly landscape: "4:3";
96
+ /** Square. */
97
+ readonly square: "1:1";
98
+ /** Portrait standard. */
99
+ readonly portrait: "3:4";
100
+ /** Portrait widescreen. */
101
+ readonly tall: "9:16";
102
+ /** Landscape ultrawide. */
103
+ readonly ultrawide: "21:9";
104
+ /** Portrait ultrawide. */
105
+ readonly ultratall: "9:21";
106
+ }>;
107
+ /** A video aspect selector. */
108
+ export type MediaVideoAspectRatio = z.output<typeof mediaVideoAspectRatioSchema>;
109
+ /** Explicit reference meaning; frame mode and reference mode are exclusive. */
110
+ export declare const mediaVideoReferenceRoleSchema: z.ZodEnum<{
111
+ /** First frame; required when a last frame is supplied. */
112
+ readonly first: "first-frame";
113
+ /** Last frame, supported by Seedance only. */
114
+ readonly last: "last-frame";
115
+ /** One image in Seedance reference-image mode. */
116
+ readonly reference: "reference";
117
+ }>;
118
+ /** The role of a selected reference image in a video request. */
119
+ export type MediaVideoReferenceRole = z.output<typeof mediaVideoReferenceRoleSchema>;
120
+ /** One nominal size used to select provider resolution and aspect. */
121
+ export declare const mediaVideoFormatSchema: z.ZodReadonly<z.ZodObject<{
122
+ resolution: z.ZodEnum<{
123
+ /** 480p. */
124
+ readonly p480: "480p";
125
+ /** 720p. */
126
+ readonly p720: "720p";
127
+ /** 768p, admitted only by MiniMax H3 Max. */
128
+ readonly p768: "768p";
129
+ /** 1080p. */
130
+ readonly p1080: "1080p";
131
+ /** 4k, admitted only by Seedance 2.0. */
132
+ readonly p4k: "4k";
133
+ }>;
134
+ aspectRatio: z.ZodEnum<{
135
+ /** Landscape widescreen. */
136
+ readonly wide: "16:9";
137
+ /** Landscape standard. */
138
+ readonly landscape: "4:3";
139
+ /** Square. */
140
+ readonly square: "1:1";
141
+ /** Portrait standard. */
142
+ readonly portrait: "3:4";
143
+ /** Portrait widescreen. */
144
+ readonly tall: "9:16";
145
+ /** Landscape ultrawide. */
146
+ readonly ultrawide: "21:9";
147
+ /** Portrait ultrawide. */
148
+ readonly ultratall: "9:21";
149
+ }>;
150
+ width: z.ZodNumber;
151
+ height: z.ZodNumber;
152
+ }, z.core.$strict>>;
153
+ /** One immutable nominal video format. */
154
+ export type MediaVideoFormat = z.output<typeof mediaVideoFormatSchema>;
155
+ /** Verified video parameters and provider costs, checked 2026-10-11. */
156
+ export declare const mediaVideoSchema: z.ZodReadonly<z.ZodObject<{
157
+ minSeconds: z.ZodNumber;
158
+ maxSeconds: z.ZodNumber;
159
+ defaultSeconds: z.ZodNumber;
160
+ durations: z.ZodReadonly<z.ZodArray<z.ZodNumber>>;
161
+ provider: z.ZodEnum<{
162
+ /** Seedance integer duration and data-URI image fields. */
163
+ readonly seedance: "seedance";
164
+ /** Veo duration string and base64 image_input. */
165
+ readonly veo: "veo";
166
+ /** MiniMax multimodal `content[]` array and uppercase resolution. */
167
+ readonly minimax: "minimax";
168
+ }>;
169
+ formats: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
170
+ resolution: z.ZodEnum<{
171
+ /** 480p. */
172
+ readonly p480: "480p";
173
+ /** 720p. */
174
+ readonly p720: "720p";
175
+ /** 768p, admitted only by MiniMax H3 Max. */
176
+ readonly p768: "768p";
177
+ /** 1080p. */
178
+ readonly p1080: "1080p";
179
+ /** 4k, admitted only by Seedance 2.0. */
180
+ readonly p4k: "4k";
181
+ }>;
182
+ aspectRatio: z.ZodEnum<{
183
+ /** Landscape widescreen. */
184
+ readonly wide: "16:9";
185
+ /** Landscape standard. */
186
+ readonly landscape: "4:3";
187
+ /** Square. */
188
+ readonly square: "1:1";
189
+ /** Portrait standard. */
190
+ readonly portrait: "3:4";
191
+ /** Portrait widescreen. */
192
+ readonly tall: "9:16";
193
+ /** Landscape ultrawide. */
194
+ readonly ultrawide: "21:9";
195
+ /** Portrait ultrawide. */
196
+ readonly ultratall: "9:21";
197
+ }>;
198
+ width: z.ZodNumber;
199
+ height: z.ZodNumber;
200
+ }, z.core.$strict>>>>;
201
+ defaultResolution: z.ZodEnum<{
202
+ /** 480p. */
203
+ readonly p480: "480p";
204
+ /** 720p. */
205
+ readonly p720: "720p";
206
+ /** 768p, admitted only by MiniMax H3 Max. */
207
+ readonly p768: "768p";
208
+ /** 1080p. */
209
+ readonly p1080: "1080p";
210
+ /** 4k, admitted only by Seedance 2.0. */
211
+ readonly p4k: "4k";
212
+ }>;
213
+ defaultAspectRatio: z.ZodEnum<{
214
+ /** Landscape widescreen. */
215
+ readonly wide: "16:9";
216
+ /** Landscape standard. */
217
+ readonly landscape: "4:3";
218
+ /** Square. */
219
+ readonly square: "1:1";
220
+ /** Portrait standard. */
221
+ readonly portrait: "3:4";
222
+ /** Portrait widescreen. */
223
+ readonly tall: "9:16";
224
+ /** Landscape ultrawide. */
225
+ readonly ultrawide: "21:9";
226
+ /** Portrait ultrawide. */
227
+ readonly ultratall: "9:21";
228
+ }>;
229
+ defaultGenerateAudio: z.ZodNullable<z.ZodBoolean>;
230
+ maxPromptLength: z.ZodNumber;
231
+ referenceRoles: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
232
+ /** First frame; required when a last frame is supplied. */
233
+ readonly first: "first-frame";
234
+ /** Last frame, supported by Seedance only. */
235
+ readonly last: "last-frame";
236
+ /** One image in Seedance reference-image mode. */
237
+ readonly reference: "reference";
238
+ }>>>;
239
+ maxReferenceImages: z.ZodNumber;
240
+ referenceResolutions: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
241
+ /** 480p. */
242
+ readonly p480: "480p";
243
+ /** 720p. */
244
+ readonly p720: "720p";
245
+ /** 768p, admitted only by MiniMax H3 Max. */
246
+ readonly p768: "768p";
247
+ /** 1080p. */
248
+ readonly p1080: "1080p";
249
+ /** 4k, admitted only by Seedance 2.0. */
250
+ readonly p4k: "4k";
251
+ }>>>;
252
+ prices: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
253
+ resolution: z.ZodEnum<{
254
+ /** 480p. */
255
+ readonly p480: "480p";
256
+ /** 720p. */
257
+ readonly p720: "720p";
258
+ /** 768p, admitted only by MiniMax H3 Max. */
259
+ readonly p768: "768p";
260
+ /** 1080p. */
261
+ readonly p1080: "1080p";
262
+ /** 4k, admitted only by Seedance 2.0. */
263
+ readonly p4k: "4k";
264
+ }>;
265
+ silentMilliunitsPerSecond: z.ZodNumber;
266
+ audioMilliunitsPerSecond: z.ZodNumber;
267
+ }, z.core.$strict>>>>;
268
+ }, z.core.$strict>>;
269
+ /** Immutable video capability and price metadata. */
270
+ export type MediaVideoModel = z.output<typeof mediaVideoSchema>;
271
+ /** Public wire grammar for a catalog entry returned by the Media owner. */
272
+ export declare const mediaModelSchema: z.ZodReadonly<z.ZodObject<{
273
+ id: z.ZodString;
274
+ label: z.ZodString;
275
+ kind: z.ZodEnum<{
276
+ /** Still-image generation. */
277
+ readonly image: "image";
278
+ /** Video generation. */
279
+ readonly video: "video";
280
+ }>;
281
+ tier: z.ZodEnum<{
282
+ /** Cheap, fast draft model. */
283
+ readonly draft: "draft";
284
+ /** Balanced model selection. */
285
+ readonly balanced: "balanced";
286
+ /** Premium model selection. */
287
+ readonly premium: "premium";
288
+ /** Most expensive model selection. */
289
+ readonly max: "max";
290
+ }>;
291
+ outputFormats: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
292
+ /** PNG image encoding. */
293
+ readonly png: "png";
294
+ /** JPEG image encoding. */
295
+ readonly jpeg: "jpeg";
296
+ /** WebP image encoding. */
297
+ readonly webp: "webp";
298
+ }>>>;
299
+ input: z.ZodReadonly<z.ZodObject<{
300
+ transport: z.ZodEnum<{
301
+ /** JSON provider input. */
302
+ readonly json: "json";
303
+ /** Multipart provider input. */
304
+ readonly multipart: "multipart";
305
+ }>;
306
+ dimensions: z.ZodEnum<{
307
+ /** Provider chooses its own dimensions. */
308
+ readonly none: "none";
309
+ /** Provider accepts the requested dimensions. */
310
+ readonly own: "own";
311
+ }>;
312
+ maxDimension: z.ZodNullable<z.ZodNumber>;
313
+ defaultWidth: z.ZodNumber;
314
+ defaultHeight: z.ZodNumber;
315
+ steps: z.ZodEnum<{
316
+ /** Provider reads the steps field. */
317
+ readonly steps: "steps";
318
+ /** Provider reads the num_steps field. */
319
+ readonly num_steps: "num_steps";
320
+ /** Provider uses fixed inference steps. */
321
+ readonly fixed: "fixed";
322
+ }>;
323
+ maxSteps: z.ZodNullable<z.ZodNumber>;
324
+ defaultSteps: z.ZodNullable<z.ZodNumber>;
325
+ referenceField: z.ZodNullable<z.ZodString>;
326
+ maxReferences: z.ZodNumber;
327
+ }, z.core.$strict>>;
328
+ sizes: z.ZodNullable<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
329
+ video: z.ZodNullable<z.ZodReadonly<z.ZodObject<{
330
+ minSeconds: z.ZodNumber;
331
+ maxSeconds: z.ZodNumber;
332
+ defaultSeconds: z.ZodNumber;
333
+ durations: z.ZodReadonly<z.ZodArray<z.ZodNumber>>;
334
+ provider: z.ZodEnum<{
335
+ /** Seedance integer duration and data-URI image fields. */
336
+ readonly seedance: "seedance";
337
+ /** Veo duration string and base64 image_input. */
338
+ readonly veo: "veo";
339
+ /** MiniMax multimodal `content[]` array and uppercase resolution. */
340
+ readonly minimax: "minimax";
341
+ }>;
342
+ formats: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
343
+ resolution: z.ZodEnum<{
344
+ /** 480p. */
345
+ readonly p480: "480p";
346
+ /** 720p. */
347
+ readonly p720: "720p";
348
+ /** 768p, admitted only by MiniMax H3 Max. */
349
+ readonly p768: "768p";
350
+ /** 1080p. */
351
+ readonly p1080: "1080p";
352
+ /** 4k, admitted only by Seedance 2.0. */
353
+ readonly p4k: "4k";
354
+ }>;
355
+ aspectRatio: z.ZodEnum<{
356
+ /** Landscape widescreen. */
357
+ readonly wide: "16:9";
358
+ /** Landscape standard. */
359
+ readonly landscape: "4:3";
360
+ /** Square. */
361
+ readonly square: "1:1";
362
+ /** Portrait standard. */
363
+ readonly portrait: "3:4";
364
+ /** Portrait widescreen. */
365
+ readonly tall: "9:16";
366
+ /** Landscape ultrawide. */
367
+ readonly ultrawide: "21:9";
368
+ /** Portrait ultrawide. */
369
+ readonly ultratall: "9:21";
370
+ }>;
371
+ width: z.ZodNumber;
372
+ height: z.ZodNumber;
373
+ }, z.core.$strict>>>>;
374
+ defaultResolution: z.ZodEnum<{
375
+ /** 480p. */
376
+ readonly p480: "480p";
377
+ /** 720p. */
378
+ readonly p720: "720p";
379
+ /** 768p, admitted only by MiniMax H3 Max. */
380
+ readonly p768: "768p";
381
+ /** 1080p. */
382
+ readonly p1080: "1080p";
383
+ /** 4k, admitted only by Seedance 2.0. */
384
+ readonly p4k: "4k";
385
+ }>;
386
+ defaultAspectRatio: z.ZodEnum<{
387
+ /** Landscape widescreen. */
388
+ readonly wide: "16:9";
389
+ /** Landscape standard. */
390
+ readonly landscape: "4:3";
391
+ /** Square. */
392
+ readonly square: "1:1";
393
+ /** Portrait standard. */
394
+ readonly portrait: "3:4";
395
+ /** Portrait widescreen. */
396
+ readonly tall: "9:16";
397
+ /** Landscape ultrawide. */
398
+ readonly ultrawide: "21:9";
399
+ /** Portrait ultrawide. */
400
+ readonly ultratall: "9:21";
401
+ }>;
402
+ defaultGenerateAudio: z.ZodNullable<z.ZodBoolean>;
403
+ maxPromptLength: z.ZodNumber;
404
+ referenceRoles: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
405
+ /** First frame; required when a last frame is supplied. */
406
+ readonly first: "first-frame";
407
+ /** Last frame, supported by Seedance only. */
408
+ readonly last: "last-frame";
409
+ /** One image in Seedance reference-image mode. */
410
+ readonly reference: "reference";
411
+ }>>>;
412
+ maxReferenceImages: z.ZodNumber;
413
+ referenceResolutions: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
414
+ /** 480p. */
415
+ readonly p480: "480p";
416
+ /** 720p. */
417
+ readonly p720: "720p";
418
+ /** 768p, admitted only by MiniMax H3 Max. */
419
+ readonly p768: "768p";
420
+ /** 1080p. */
421
+ readonly p1080: "1080p";
422
+ /** 4k, admitted only by Seedance 2.0. */
423
+ readonly p4k: "4k";
424
+ }>>>;
425
+ prices: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
426
+ resolution: z.ZodEnum<{
427
+ /** 480p. */
428
+ readonly p480: "480p";
429
+ /** 720p. */
430
+ readonly p720: "720p";
431
+ /** 768p, admitted only by MiniMax H3 Max. */
432
+ readonly p768: "768p";
433
+ /** 1080p. */
434
+ readonly p1080: "1080p";
435
+ /** 4k, admitted only by Seedance 2.0. */
436
+ readonly p4k: "4k";
437
+ }>;
438
+ silentMilliunitsPerSecond: z.ZodNumber;
439
+ audioMilliunitsPerSecond: z.ZodNumber;
440
+ }, z.core.$strict>>>>;
441
+ }, z.core.$strict>>>;
442
+ }, z.core.$strict>>;
443
+ /** Model-specific dimensions, steps, transport and reference limits. */
444
+ export type MediaModelInput = z.output<typeof mediaModelInputSchema>;
445
+ /** One immutable provider catalog entry. */
446
+ export type MediaModel = z.output<typeof mediaModelSchema>;
447
+ /** The immutable image and video model catalog. */
448
+ export declare const mediaModels: readonly MediaModel[];
449
+ /** List all image and video models in catalog order. */
450
+ export declare const listMediaModels: () => readonly MediaModel[];
451
+ /** Find a model by provider identifier, returning undefined when it is absent. */
452
+ export declare const getMediaModel: (id: string) => MediaModel | undefined;
453
+ /** Invalid generation settings or unsupported model parameters. */
454
+ export declare class MediaSettingsError extends Error {
455
+ constructor(message: string);
456
+ }