@nodaro/shared 3.57.0 → 3.58.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.
Files changed (118) hide show
  1. package/dist/{chunk-ZSTL4JEJ.cjs → chunk-4UUX62S3.cjs} +12 -12
  2. package/dist/{chunk-ZSTL4JEJ.cjs.map → chunk-4UUX62S3.cjs.map} +1 -1
  3. package/dist/{chunk-JYNW4QK7.cjs → chunk-4ZZ6SVIQ.cjs} +57 -5
  4. package/dist/chunk-4ZZ6SVIQ.cjs.map +1 -0
  5. package/dist/{chunk-O33WVAYQ.cjs → chunk-5PJC4ZWO.cjs} +6 -6
  6. package/dist/{chunk-O33WVAYQ.cjs.map → chunk-5PJC4ZWO.cjs.map} +1 -1
  7. package/dist/{chunk-ZLSPGMES.cjs → chunk-5UVBFY2G.cjs} +11 -11
  8. package/dist/{chunk-ZLSPGMES.cjs.map → chunk-5UVBFY2G.cjs.map} +1 -1
  9. package/dist/{chunk-IQS3WQXQ.js → chunk-6CYS7VRH.js} +56 -6
  10. package/dist/chunk-6CYS7VRH.js.map +1 -0
  11. package/dist/{chunk-D56ALOLY.js → chunk-6TFWFYYI.js} +3 -3
  12. package/dist/{chunk-D56ALOLY.js.map → chunk-6TFWFYYI.js.map} +1 -1
  13. package/dist/{chunk-2LRBQOKA.js → chunk-A5ESI2NY.js} +8 -8
  14. package/dist/{chunk-2LRBQOKA.js.map → chunk-A5ESI2NY.js.map} +1 -1
  15. package/dist/{chunk-EXCZD5ZY.js → chunk-BSENM6HM.js} +3 -3
  16. package/dist/{chunk-EXCZD5ZY.js.map → chunk-BSENM6HM.js.map} +1 -1
  17. package/dist/{chunk-ZPPFPQPO.js → chunk-CNSRCZYY.js} +5 -5
  18. package/dist/{chunk-ZPPFPQPO.js.map → chunk-CNSRCZYY.js.map} +1 -1
  19. package/dist/{chunk-6NZWWMVY.js → chunk-DC2QPACA.js} +4 -4
  20. package/dist/{chunk-6NZWWMVY.js.map → chunk-DC2QPACA.js.map} +1 -1
  21. package/dist/{chunk-ASSJKIZO.cjs → chunk-DCP7JFSE.cjs} +5 -5
  22. package/dist/{chunk-ASSJKIZO.cjs.map → chunk-DCP7JFSE.cjs.map} +1 -1
  23. package/dist/{chunk-MBKJ7IBS.js → chunk-HEUWAIXG.js} +5 -5
  24. package/dist/{chunk-MBKJ7IBS.js.map → chunk-HEUWAIXG.js.map} +1 -1
  25. package/dist/{chunk-2LWHRJPB.cjs → chunk-I7NG2D6X.cjs} +21 -21
  26. package/dist/{chunk-2LWHRJPB.cjs.map → chunk-I7NG2D6X.cjs.map} +1 -1
  27. package/dist/{chunk-P5KH7GAI.cjs → chunk-IKOKRJDI.cjs} +4 -4
  28. package/dist/{chunk-P5KH7GAI.cjs.map → chunk-IKOKRJDI.cjs.map} +1 -1
  29. package/dist/{chunk-QMP3W5GA.js → chunk-IQBIH3AE.js} +3 -3
  30. package/dist/{chunk-QMP3W5GA.js.map → chunk-IQBIH3AE.js.map} +1 -1
  31. package/dist/{chunk-QTTVIQJP.js → chunk-JUEFRVHZ.js} +4 -4
  32. package/dist/{chunk-QTTVIQJP.js.map → chunk-JUEFRVHZ.js.map} +1 -1
  33. package/dist/{chunk-BBMK5XNO.js → chunk-K6UMB37V.js} +3 -3
  34. package/dist/{chunk-BBMK5XNO.js.map → chunk-K6UMB37V.js.map} +1 -1
  35. package/dist/{chunk-5SXI7IYW.cjs → chunk-KYHDKKUJ.cjs} +8 -8
  36. package/dist/{chunk-5SXI7IYW.cjs.map → chunk-KYHDKKUJ.cjs.map} +1 -1
  37. package/dist/{chunk-INGQNLY4.js → chunk-L26G7B27.js} +3 -3
  38. package/dist/{chunk-INGQNLY4.js.map → chunk-L26G7B27.js.map} +1 -1
  39. package/dist/{chunk-UFB36LWU.js → chunk-M7SMSAOU.js} +4 -4
  40. package/dist/{chunk-UFB36LWU.js.map → chunk-M7SMSAOU.js.map} +1 -1
  41. package/dist/{chunk-SWPTF7QJ.js → chunk-ODTZV3BW.js} +4 -4
  42. package/dist/{chunk-SWPTF7QJ.js.map → chunk-ODTZV3BW.js.map} +1 -1
  43. package/dist/{chunk-KZTXGMVH.js → chunk-OMUYZKRB.js} +3 -3
  44. package/dist/{chunk-KZTXGMVH.js.map → chunk-OMUYZKRB.js.map} +1 -1
  45. package/dist/{chunk-ALVO5Q36.cjs → chunk-PK4ZR2SK.cjs} +4 -4
  46. package/dist/{chunk-ALVO5Q36.cjs.map → chunk-PK4ZR2SK.cjs.map} +1 -1
  47. package/dist/chunk-QCW6J6BQ.cjs +27 -0
  48. package/dist/{chunk-RKTWLAJO.cjs.map → chunk-QCW6J6BQ.cjs.map} +1 -1
  49. package/dist/{chunk-D5J332XS.cjs → chunk-QPBBIRLF.cjs} +39 -39
  50. package/dist/{chunk-D5J332XS.cjs.map → chunk-QPBBIRLF.cjs.map} +1 -1
  51. package/dist/{chunk-FFW2HTR2.cjs → chunk-QVPIO2NU.cjs} +5 -5
  52. package/dist/{chunk-FFW2HTR2.cjs.map → chunk-QVPIO2NU.cjs.map} +1 -1
  53. package/dist/{chunk-BH2IDJVO.cjs → chunk-S5VBJJUT.cjs} +46 -46
  54. package/dist/{chunk-BH2IDJVO.cjs.map → chunk-S5VBJJUT.cjs.map} +1 -1
  55. package/dist/{chunk-R5GOPHYB.js → chunk-SEQ5L72K.js} +5 -4
  56. package/dist/chunk-SEQ5L72K.js.map +1 -0
  57. package/dist/{chunk-3SH5ZUNJ.js → chunk-VVGSIWNL.js} +4 -4
  58. package/dist/{chunk-3SH5ZUNJ.js.map → chunk-VVGSIWNL.js.map} +1 -1
  59. package/dist/{chunk-4KKFO6YR.cjs → chunk-VZXRDSWA.cjs} +23 -21
  60. package/dist/chunk-VZXRDSWA.cjs.map +1 -0
  61. package/dist/{chunk-R3OIZ2BM.cjs → chunk-WBERPAXE.cjs} +6 -6
  62. package/dist/{chunk-R3OIZ2BM.cjs.map → chunk-WBERPAXE.cjs.map} +1 -1
  63. package/dist/{chunk-OHQBQOGH.cjs → chunk-WLFT5UVV.cjs} +8 -8
  64. package/dist/{chunk-OHQBQOGH.cjs.map → chunk-WLFT5UVV.cjs.map} +1 -1
  65. package/dist/{chunk-C3E6UZS4.js → chunk-ZMH56CLL.js} +3 -3
  66. package/dist/{chunk-C3E6UZS4.js.map → chunk-ZMH56CLL.js.map} +1 -1
  67. package/dist/{chunk-NJTLBZIP.cjs → chunk-ZX6RRM6R.cjs} +43 -43
  68. package/dist/{chunk-NJTLBZIP.cjs.map → chunk-ZX6RRM6R.cjs.map} +1 -1
  69. package/dist/entries/apps.cjs +42 -42
  70. package/dist/entries/apps.js +7 -7
  71. package/dist/entries/credits.cjs +150 -150
  72. package/dist/entries/credits.d.cts +1 -1
  73. package/dist/entries/credits.d.ts +1 -1
  74. package/dist/entries/credits.js +7 -7
  75. package/dist/entries/llm-models.d.cts +1 -1
  76. package/dist/entries/llm-models.d.ts +1 -1
  77. package/dist/entries/model-catalog.cjs +76 -68
  78. package/dist/entries/model-catalog.d.cts +2 -2
  79. package/dist/entries/model-catalog.d.ts +2 -2
  80. package/dist/entries/model-catalog.js +4 -4
  81. package/dist/entries/models.cjs +291 -287
  82. package/dist/entries/models.d.cts +3 -3
  83. package/dist/entries/models.d.ts +3 -3
  84. package/dist/entries/models.js +4 -4
  85. package/dist/entries/nodes.cjs +206 -206
  86. package/dist/entries/nodes.d.cts +1 -1
  87. package/dist/entries/nodes.d.ts +1 -1
  88. package/dist/entries/nodes.js +8 -8
  89. package/dist/entries/pipeline.cjs +152 -152
  90. package/dist/entries/pipeline.d.cts +1 -1
  91. package/dist/entries/pipeline.d.ts +1 -1
  92. package/dist/entries/pipeline.js +3 -3
  93. package/dist/entries/ugc.cjs +71 -71
  94. package/dist/entries/ugc.js +4 -4
  95. package/dist/entries/video.cjs +117 -117
  96. package/dist/entries/video.js +4 -4
  97. package/dist/index.cjs +1081 -1069
  98. package/dist/index.d.cts +2 -2
  99. package/dist/index.d.ts +2 -2
  100. package/dist/index.js +17 -17
  101. package/dist/{model-catalog-CwkG9xi-.d.ts → model-catalog-CCsA1isC.d.cts} +51 -11
  102. package/dist/{model-catalog-CwkG9xi-.d.cts → model-catalog-CCsA1isC.d.ts} +51 -11
  103. package/dist/{model-constants-BbsZSVTA.d.cts → model-constants-BtXkUsX3.d.cts} +14 -2
  104. package/dist/{model-constants-BbsZSVTA.d.ts → model-constants-BtXkUsX3.d.ts} +14 -2
  105. package/package.json +1 -1
  106. package/src/__tests__/auto-aspect-source.test.ts +93 -0
  107. package/src/__tests__/normalize-model-input.test.ts +62 -8
  108. package/src/__tests__/resolutions-by-aspect-ratio.test.ts +134 -0
  109. package/src/__tests__/video-frame-slot.test.ts +5 -0
  110. package/src/entries/model-catalog.ts +2 -0
  111. package/src/entries/models.ts +1 -0
  112. package/src/model-catalog.ts +122 -17
  113. package/src/model-constants.ts +14 -1
  114. package/dist/chunk-4KKFO6YR.cjs.map +0 -1
  115. package/dist/chunk-IQS3WQXQ.js.map +0 -1
  116. package/dist/chunk-JYNW4QK7.cjs.map +0 -1
  117. package/dist/chunk-R5GOPHYB.js.map +0 -1
  118. package/dist/chunk-RKTWLAJO.cjs +0 -27
@@ -295,10 +295,31 @@ interface ModelCatalogEntry {
295
295
  * Declared only where the provider documents its own form: Grok Imagine's
296
296
  * `@image(n)` (docs.kie.ai/market/grok-imagine/image-to-video) and
297
297
  * HappyHorse's `[Image N]` (docs.kie.ai/market/happyhorse-1-1/reference-to-video).
298
+ * Gemini Omni Flash 1.2 documents none and is written plain `image N`, the
299
+ * form of KIE's own example; beside references its frames only guide the
300
+ * clip, in either wording.
298
301
  */
299
- referenceSyntax?: "@image(n)" | "[Image N]";
302
+ referenceSyntax?: "@image(n)" | "[Image N]" | "image N";
300
303
  aspectRatios?: readonly string[];
304
+ /**
305
+ * The model lists "auto", but its own auto does not keep the photo's shape
306
+ * (GPT Image 2.6 renders a portrait square). "auto" with a photo is then
307
+ * resolved as on a model without a native auto: to the listed ratio nearest
308
+ * the photo (`autoAspectNeedsSourceImage`, `normalizeModelInput`). With no
309
+ * photo, or one whose size cannot be read, the model's own "auto" is sent,
310
+ * as before. "auto" stays in `aspectRatios`, so every menu still offers it.
311
+ */
312
+ autoAspectFromSourceImage?: true;
301
313
  resolutions?: readonly string[];
314
+ /**
315
+ * The aspect ratios at which this model renders fewer sizes than
316
+ * `resolutions`: each one names the sizes it renders, in the catalog's own
317
+ * spelling. A ratio not listed renders every entry of `resolutions`.
318
+ * `normalizeModelInput` moves a size such a ratio does not render to the
319
+ * largest one it does at or below it, and says so, before the run is priced;
320
+ * a menu reads the sizes on offer with `resolutionsAtAspectRatio`.
321
+ */
322
+ resolutionsByAspectRatio?: Readonly<Record<string, readonly string[]>>;
302
323
  /** The resolution a caller who names none lands on when it is not the
303
324
  * cheapest entry (see `defaultResolutionFor`). */
304
325
  defaultResolution?: string;
@@ -525,8 +546,9 @@ interface SourceImageSize {
525
546
  interface ModelInputContext {
526
547
  /**
527
548
  * The image an image-to-image or edit request transforms. Only read to
528
- * resolve "auto" on a model without a native auto; absent or unusable means
529
- * the size is unknown and "auto" snaps the way it always has.
549
+ * resolve "auto" on a model without a native auto, or whose own auto does
550
+ * not keep the photo's shape (`autoAspectFromSourceImage`); absent or
551
+ * unusable means the size is unknown and "auto" snaps the way it always has.
530
552
  */
531
553
  sourceImage?: SourceImageSize;
532
554
  }
@@ -543,11 +565,28 @@ declare function isAutoAspectToken(value: unknown): boolean;
543
565
  declare function nearestCatalogAspectRatio(sourceWidth: number, sourceHeight: number, ratios: readonly string[]): string | undefined;
544
566
  /**
545
567
  * True when `aspectRatio` is "auto" and `modelId`'s catalog ratio list does not
546
- * carry "auto" — the one case where the source image's size decides the ratio.
547
- * A caller that has to fetch the size asks this first, so a request that will
548
- * not use it never pays for the read.
568
+ * carry "auto", or carries it but the model's own auto does not keep the
569
+ * photo's shape (`autoAspectFromSourceImage`) — the cases where the source
570
+ * image's size decides the ratio. A caller that has to fetch the size asks
571
+ * this first, so a request that will not use it never pays for the read.
549
572
  */
550
573
  declare function autoAspectNeedsSourceImage(modelId: string | undefined, aspectRatio: unknown): boolean;
574
+ /**
575
+ * The sizes `modelId` renders at `aspectRatio`, in the catalog's order: its
576
+ * `resolutions`, narrowed where `resolutionsByAspectRatio` lists that ratio.
577
+ * `undefined` for an unknown model or one with no size setting. What a menu
578
+ * offers once a ratio is chosen.
579
+ */
580
+ declare function resolutionsAtAspectRatio(modelId: string, aspectRatio: unknown): readonly string[] | undefined;
581
+ /**
582
+ * The size `modelId` renders `resolution` at, at `aspectRatio`: the same size
583
+ * where that ratio renders it (or the model limits no ratio), else the largest
584
+ * size the ratio renders at or below it, else its smallest. A size the model
585
+ * does not list comes back as it is: snapping the lever itself is
586
+ * `normalizeModelInput`'s. A route that prices a run without that function
587
+ * prices and sends the size this returns, so the two agree.
588
+ */
589
+ declare function resolutionAtAspectRatio(modelId: string, aspectRatio: unknown, resolution: string | undefined): string | undefined;
551
590
  /**
552
591
  * Coerce a model's parameters into a combination the model actually accepts.
553
592
  *
@@ -562,10 +601,11 @@ declare function autoAspectNeedsSourceImage(modelId: string | undefined, aspectR
562
601
  *
563
602
  * Rules, mirroring the config panels' provider-change snap:
564
603
  * - Model has no such lever → drop the value (sending it 400s upstream).
565
- * - "auto" on a model whose list lacks it, with a known `context.sourceImage`
566
- * → the listed ratio nearest the source's shape (`nearestCatalogAspectRatio`).
567
- * "auto" asks to keep the source photo's shape; the first listed ratio
568
- * would reframe every source of another shape.
604
+ * - "auto" on a model whose list lacks it, or whose own auto does not keep
605
+ * the photo's shape (`autoAspectFromSourceImage`), with a known
606
+ * `context.sourceImage` → the listed ratio nearest the source's shape
607
+ * (`nearestCatalogAspectRatio`). "auto" asks to keep the source photo's
608
+ * shape; the first listed ratio would reframe every source of another shape.
569
609
  * - Value outside the model's allow-list → snap to the model's default
570
610
  * (`defaultResolutionFor`) or the first valid option.
571
611
  * - Then apply cross-field constraints that only hold for certain models.
@@ -737,4 +777,4 @@ declare function modelIdsByKindMode(kind: ModelKind | null, modes: readonly Mode
737
777
  includeHidden?: boolean;
738
778
  }): [string, ...string[]];
739
779
 
740
- export { getDurationsForModel as A, getModel as B, getQualityOptions as C, getResolutionOptions as D, groupByFamily as E, groupByKindAndFamily as F, hasFeature as G, isAutoAspectToken as H, isModelMakerId as I, listModels as J, modelIdsByKindMode as K, type LabeledOption as L, MODEL_CATALOG as M, type NormalizedModelInput as N, modelMakerOf as O, type PriceVariant as P, modelTakesSeed as Q, modelsWithFeature as R, SPEECH_UNIT_PRICE_NOTE as S, type TtsCapabilities as T, nearestCatalogAspectRatio as U, type ValidationField as V, normalizeModelInput as W, normalizeVideoRequestParams as X, qualityOptionsByKind as Y, resolutionOptionsByKind as Z, validateModelInput as _, MODEL_KINDS as a, MODEL_MAKERS as b, MODEL_RECOMMENDATIONS as c, type ModelCatalogEntry as d, type ModelInputAdjustment as e, type ModelInputContext as f, type ModelKind as g, type ModelMaker as h, type ModelMakerId as i, type ModelMenuOption as j, type ModelMode as k, type ModelRecommendation as l, type ModelValidationIssue as m, type NormalizedVideoRequest as n, type SourceImageSize as o, type TtsSettingLever as p, aspectRatioOptionsByKind as q, autoAspectNeedsSourceImage as r, backgroundOptionsByKind as s, buildModelMenu as t, creditRangesAll as u, defaultResolutionFor as v, durationsByMode as w, fitAspectRatioToModel as x, getAspectRatioOptions as y, getCreditRange as z };
780
+ export { resolutionsAtAspectRatio as $, getDurationsForModel as A, getModel as B, getQualityOptions as C, getResolutionOptions as D, groupByFamily as E, groupByKindAndFamily as F, hasFeature as G, isAutoAspectToken as H, isModelMakerId as I, listModels as J, modelIdsByKindMode as K, type LabeledOption as L, MODEL_CATALOG as M, type NormalizedModelInput as N, modelMakerOf as O, type PriceVariant as P, modelTakesSeed as Q, modelsWithFeature as R, SPEECH_UNIT_PRICE_NOTE as S, type TtsCapabilities as T, nearestCatalogAspectRatio as U, type ValidationField as V, normalizeModelInput as W, normalizeVideoRequestParams as X, qualityOptionsByKind as Y, resolutionAtAspectRatio as Z, resolutionOptionsByKind as _, MODEL_KINDS as a, validateModelInput as a0, MODEL_MAKERS as b, MODEL_RECOMMENDATIONS as c, type ModelCatalogEntry as d, type ModelInputAdjustment as e, type ModelInputContext as f, type ModelKind as g, type ModelMaker as h, type ModelMakerId as i, type ModelMenuOption as j, type ModelMode as k, type ModelRecommendation as l, type ModelValidationIssue as m, type NormalizedVideoRequest as n, type SourceImageSize as o, type TtsSettingLever as p, aspectRatioOptionsByKind as q, autoAspectNeedsSourceImage as r, backgroundOptionsByKind as s, buildModelMenu as t, creditRangesAll as u, defaultResolutionFor as v, durationsByMode as w, fitAspectRatioToModel as x, getAspectRatioOptions as y, getCreditRange as z };
@@ -151,6 +151,18 @@ declare const PROMPT_HARD_CEILING = 30000;
151
151
  * route's maxTokens.
152
152
  */
153
153
  declare const LLM_TEXT_INPUT_MAX = 100000;
154
+ /**
155
+ * Ceiling for the `system` prompt of the structured-output routes
156
+ * (`POST /v1/llm/structured` and `POST /v1/llm/structured/jobs`). A client
157
+ * that has the model write in its own vocabulary sends that vocabulary as the
158
+ * system prompt, and it grows with the client's catalogs (Nodaro Studio's
159
+ * production format is close to 100,000 chars), so this is twice
160
+ * {@link LLM_TEXT_INPUT_MAX}. The routes' `input`, and every other LLM text
161
+ * field, stay at LLM_TEXT_INPUT_MAX. 200,000 chars is roughly 50,000 to
162
+ * 100,000 tokens, and a body at both ceilings still fits the API's 1 MB
163
+ * request limit.
164
+ */
165
+ declare const LLM_STRUCTURED_SYSTEM_MAX = 200000;
154
166
  /**
155
167
  * Per-provider maximum VIDEO prompt length (chars), VERIFIED against each model's
156
168
  * official docs.kie.ai schema (2026-06). Absent → {@link VIDEO_PROMPT_MAX} (8000)
@@ -462,7 +474,7 @@ declare function resolveVideoModeForInputs(provider: string | undefined, inputs:
462
474
  readonly hasImageRefs: boolean;
463
475
  }): "image-to-video" | "text-to-video";
464
476
  /** The prompt syntax a video provider addresses its images in, by array order. */
465
- type VideoReferenceSyntax = "@image_N" | "@image(n)" | "[Image N]";
477
+ type VideoReferenceSyntax = "@image_N" | "@image(n)" | "[Image N]" | "image N";
466
478
  /**
467
479
  * The syntax this video model's frame / identity binding sentences are written
468
480
  * in — the catalog's `referenceSyntax`, else the platform's `@image_N`. One
@@ -1717,4 +1729,4 @@ declare function applyDefaultVideoSelection<D>(input: {
1717
1729
  duration: D | number | undefined;
1718
1730
  };
1719
1731
 
1720
- export { IMAGE_MASK_MODE as $, AI_WRITER_PROVIDERS as A, type FaceSwapProvider as B, CHARACTER_MOTION_PROVIDERS as C, DEFAULT_DIALOGUE_PROVIDER as D, EXTEND_VIDEO_PROVIDERS as E, FACE_SWAP_PROVIDERS as F, GEMINI_OMNI_12_MAX_SOURCE_SEC as G, GEMINI_OMNI_PER_SECOND_PROVIDERS as H, GEMINI_OMNI_PROVIDERS as I, GUIDANCE_SCALE_SUPPORT as J, GVP_ANCHOR_CHOICES as K, GVP_DEFAULT_PROVIDER as L, GVP_END_FRAME_PROVIDERS as M, GVP_EXTEND_PROVIDERS as N, GVP_SUPPORTED_PROVIDERS as O, type GvpAnchorChoice as P, type GvpAnchorWireMode as Q, HIGH_QUALITY_PROVIDERS as R, I2I_MASK_SUPPORT as S, I2I_STRENGTH_SUPPORT as T, IDEOGRAM_PROVIDERS as U, IMAGE_ASPECT_RATIO_VALUES as V, IMAGE_BACKGROUND_VALUES as W, IMAGE_EDIT_PROVIDERS as X, IMAGE_EDIT_TARGET_RESOLUTION_VALUES as Y, IMAGE_GEN_PROVIDERS as Z, IMAGE_I2I_PROVIDERS as _, ASPECT_RATIO_DIMENSIONS as a, SEEDANCE_2_EXTEND_STITCH as a$, IMAGE_PROMPT_MAX as a0, IMAGE_QUALITY_VALUES as a1, IMAGE_RENDERING_SPEED_VALUES as a2, IMAGE_RESOLUTION_VALUES as a3, IMAGE_TO_VIDEO_PROVIDERS as a4, type ImageAspectRatio as a5, type ImageBackground as a6, type ImageEditProvider as a7, type ImageEditTargetResolution as a8, type ImageGenProvider as a9, MUSIC_PROVIDER_LABELS as aA, type ModelPromptingStyle as aB, type ModifyImageProvider as aC, type MotionTransferProviderType as aD, type MusicProvider as aE, NATIVE_ADAPTIVE_ASPECT as aF, NATIVE_NEGATIVE_PROMPT_MODELS as aG, NATIVE_NEGATIVE_VIDEO_PROVIDERS as aH, NEGATIVE_PROMPT_MAX as aI, OBJECT_MOTION_PROVIDERS as aJ, type ObjectMotionProvider as aK, PRICING_DEFAULT_DURATION_SEC as aL, PRICING_DEFAULT_RESOLUTION as aM, PROMPT_HARD_CEILING as aN, QA_CHECK_PROVIDERS as aO, type QaCheckProvider as aP, REF_IMAGE_MAX_LIMITS as aQ, RENDERING_SPEED_SUPPORT as aR, REPLICATE_LIP_SYNC_PROVIDERS as aS, RETIRED_VIDEO_PROVIDERS as aT, type RefAudioCheck as aU, type RefAudioProbe as aV, type RefAudioRule as aW, type RefVideoDurationLimit as aX, SCRIPT_PROVIDERS as aY, SEEDANCE_2_5_REF_LIMITS as aZ, SEEDANCE_2_CONTINUATION_REF_SEC as a_, type ImageI2IProvider as aa, type ImageMaskMode as ab, type ImageQuality as ac, type ImageRenderingSpeed as ad, type ImageResolution as ae, type ImageToVideoProvider as af, KLING_4_DEFAULT_RESOLUTION as ag, KLING_4_MAX_MIDDLE_FRAMES as ah, KLING_4_PROVIDERS as ai, LIP_SYNC_PROVIDERS as aj, LLM_TEXT_INPUT_MAX as ak, LOCATION_ATMOSPHERE_PROVIDERS as al, type LipSyncProvider as am, type LocationAtmosphereProvider as an, MAX_IMAGE_PROMPT_CHARS_BY_PROVIDER as ao, MAX_NEGATIVE_PROMPT_CHARS_BY_PROVIDER as ap, MAX_REQUEST_IMAGE_LIMIT as aq, MAX_TTS_CHARS_BY_PROVIDER as ar, MAX_VIDEO_PROMPT_CHARS_BY_PROVIDER as as, MINIMAX_H3_DEFAULT_RESOLUTION as at, MINIMAX_H3_PROVIDERS as au, MODELS_WITH_REFERENCE_IMAGE_SUPPORT as av, MODIFY_IMAGE_PROVIDERS as aw, MOTION_TRANSFER_PROVIDERS as ax, MUSIC_CREDIT_ID as ay, MUSIC_PROVIDERS as az, AUDIO_ADDON_PROVIDERS as b, VIDEO_UPSCALE_PROVIDERS as b$, SEEDANCE_2_PROVIDERS as b0, SEEDANCE_2_R2V_MAX_AUDIO_SEC_BY_PROVIDER as b1, SEEDANCE_2_R2V_MIN_REF_VIDEO_SEC as b2, SEEDANCE_2_REF_LIMITS as b3, SEEDANCE_LIP_SYNC_PROVIDERS as b4, SEEDANCE_VIDEO_EDIT_PROVIDERS as b5, SEEDANCE_VIDEO_EDIT_SHAPE as b6, SEED_SUPPORT as b7, SUNO_ACTIVE_MODELS as b8, SUNO_ADD_TRACK_MODELS as b9, type TextToAudioProvider as bA, type TextToVideoProvider as bB, type TranscribeLane as bC, type TranscribeProvider as bD, type TtsOutputFormat as bE, type TtsProvider as bF, UPSCALE_IMAGE_PROVIDERS as bG, type UpscaleImageProvider as bH, VARIABLE_PRICING_MODELS as bI, VEO_PROVIDERS as bJ, VIDEO_AUDIO_CAPABILITY as bK, VIDEO_DURATION_TIERS as bL, VIDEO_GEN_COLLAPSED_T2V_IDS as bM, VIDEO_GEN_PROVIDERS as bN, VIDEO_INPUT_LIP_SYNC_PROVIDERS as bO, VIDEO_MODEL_CAPS as bP, VIDEO_MODE_ALIASES as bQ, VIDEO_PROMPT_MAX as bR, VIDEO_PROVIDERS_REQUIRING_IMAGE as bS, VIDEO_PROVIDERS_WITHOUT_DISPATCH as bT, VIDEO_PROVIDERS_WITH_SEPARATE_FRAME_CHANNEL as bU, VIDEO_REF_AUDIO_RULES as bV, VIDEO_REF_LIMITS_BY_PROVIDER as bW, VIDEO_REF_RATE_PROVIDERS as bX, VIDEO_REF_VIDEO_DURATION_LIMITS as bY, VIDEO_TO_VIDEO_NODE_PROVIDERS as bZ, VIDEO_TO_VIDEO_PROVIDERS as b_, SUNO_DURATION_MODELS as ba, SUNO_HARD_CEILING as bb, SUNO_LEGACY_MODELS as bc, SUNO_MODELS as bd, SUNO_TEXT_MAX as be, SUNO_TITLE_MAX as bf, type SceneInputMode as bg, SceneInputModeSchema as bh, type ScriptProvider as bi, type SeedanceVideoEditProvider as bj, type SunoAddTrackModel as bk, type SunoModel as bl, T2I_TO_I2I_VARIANT as bm, TASK_CHAINED_EDIT_PROVIDERS as bn, TASK_CHAINED_EDIT_PROVIDER_IDS as bo, TEXT_TO_AUDIO_PROVIDERS as bp, TEXT_TO_VIDEO_PROVIDERS as bq, TRANSCRIBE_LANES as br, TRANSCRIBE_PROVIDERS as bs, TRANSCRIBE_PROVIDER_CAPABILITIES as bt, TTS_OUTPUT_FORMATS as bu, TTS_OUTPUT_FORMAT_FILES as bv, TTS_PROVIDERS as bw, TTS_TEXT_MAX as bx, TWO_K_RESOLUTION_PROVIDERS as by, type TaskChainedEditProvider as bz, type AiWriterProvider as c, segmentDurationsFor as c$, VIDEO_VARIABLE_PRICING as c0, VIDU_Q4_DEFAULT_RESOLUTION as c1, VIDU_Q4_PROVIDERS as c2, VOICE_DESIGN_MODELS as c3, type VideoAudioCapability as c4, type VideoAudioMode as c5, type VideoGenProvider as c6, type VideoModeAlias as c7, type VideoModelCapabilities as c8, type VideoReferenceSyntax as c9, isGvpSupportedProvider as cA, isKling4Provider as cB, isLegacySunoModel as cC, isMinimaxH3Provider as cD, isSeedance2Provider as cE, isSeedanceVideoEditProvider as cF, isVeoProvider as cG, isViduQ4Provider as cH, isWan3Provider as cI, kling4KeyframeFrameCap as cJ, maxSegmentSecFor as cK, maxSegmentsFor as cL, maxVideoDurationSec as cM, minSegmentSecFor as cN, modelsForInputMode as cO, normalizeKling4Resolution as cP, normalizeMinimaxH3Resolution as cQ, normalizeViduQ4Resolution as cR, normalizeWan3Resolution as cS, preferredInputModeForModel as cT, pricedOutputDurationSec as cU, requestImageLimit as cV, resolveGvpAnchorWire as cW, resolveMusicProvider as cX, resolveVideoModeForInputs as cY, resolveVideoProviderForMode as cZ, seedance2AudioLimitSec as c_, type VideoToVideoNodeProvider as ca, type VideoToVideoProvider as cb, type VideoUpscaleProvider as cc, type VoiceDesignModel as cd, WAN_3_DEFAULT_RESOLUTION as ce, WAN_3_PROVIDERS as cf, applyDefaultVideoSelection as cg, applyVideoAudioToggle as ch, applyVideoNegativePrompt as ci, billsReferenceVideoSeconds as cj, canonicalVideoProvider as ck, checkRefAudioRules as cl, checkRefVideoDurations as cm, defaultVideoAspectRatio as cn, findSeedance2AudioOverLimit as co, getMaxImagePromptChars as cp, getMaxNegativePromptChars as cq, getMaxSunoPromptChars as cr, getMaxSunoStyleChars as cs, getMaxTtsChars as ct, getMaxVideoPromptChars as cu, getVideoAudioCapability as cv, hasContiguousSegmentDurations as cw, imageReferenceLimit as cx, isGeminiOmniPerSecondProvider as cy, isGeminiOmniProvider as cz, COMPOSER_PLAN_FIELDS as d, snapToNearestDuration as d0, sunoModelHonoursDuration as d1, supportsAutoVideoDuration as d2, supportsEndAnchor as d3, supportsExtendRender as d4, transcribeLaneSupportsWordTimestamps as d5, transcribeProvidersWithWordTimestamps as d6, videoDefaultDurationSec as d7, videoModelCanSpeakDialogue as d8, videoModelSupportsAudio as d9, videoNegativeSuffix as da, videoProviderAppendsFrames as db, videoProviderFoldsLoneEndFrame as dc, videoProviderRefModeFrameSeats as dd, videoProviderReferenceSyntax as de, videoProviderRequiresImage as df, videoProviderRunsFromReferences as dg, videoSourceTrimMaxSec as dh, COMPOSER_PLAN_MAP as e, CREDIT_BASE_USD as f, type CharacterMotionProvider as g, DEFAULT_MUSIC_PROVIDER as h, DEFAULT_REF_IMAGE_MAX as i, DEFAULT_REQUEST_IMAGE_LIMIT as j, DEFAULT_SUNO_MODEL as k, DEFAULT_TEXT_TO_AUDIO_PROVIDER as l, DEFAULT_TRANSCRIBE_NODE_PROVIDER as m, DEFAULT_TRANSCRIBE_PROVIDER as n, DEFAULT_TTS_OUTPUT_FORMAT as o, DEFAULT_TTS_PROVIDER as p, DEFAULT_VIDEO_DURATION_SEC as q, DEFAULT_VIDEO_PROVIDER as r, DEFAULT_VOICE_DESIGN_MODEL as s, DIALOGUE_PROVIDERS as t, DURATION_PRICED_PROVIDERS as u, type DialogueProvider as v, type ExtendVideoProvider as w, FAL_LIP_SYNC_PROVIDERS as x, FLEXIBLE_INPUT_LIP_SYNC_PROVIDERS as y, FRAME_MODE_ADAPTIVE_ONLY_ASPECT as z };
1732
+ export { IMAGE_MASK_MODE as $, AI_WRITER_PROVIDERS as A, type FaceSwapProvider as B, CHARACTER_MOTION_PROVIDERS as C, DEFAULT_DIALOGUE_PROVIDER as D, EXTEND_VIDEO_PROVIDERS as E, FACE_SWAP_PROVIDERS as F, GEMINI_OMNI_12_MAX_SOURCE_SEC as G, GEMINI_OMNI_PER_SECOND_PROVIDERS as H, GEMINI_OMNI_PROVIDERS as I, GUIDANCE_SCALE_SUPPORT as J, GVP_ANCHOR_CHOICES as K, GVP_DEFAULT_PROVIDER as L, GVP_END_FRAME_PROVIDERS as M, GVP_EXTEND_PROVIDERS as N, GVP_SUPPORTED_PROVIDERS as O, type GvpAnchorChoice as P, type GvpAnchorWireMode as Q, HIGH_QUALITY_PROVIDERS as R, I2I_MASK_SUPPORT as S, I2I_STRENGTH_SUPPORT as T, IDEOGRAM_PROVIDERS as U, IMAGE_ASPECT_RATIO_VALUES as V, IMAGE_BACKGROUND_VALUES as W, IMAGE_EDIT_PROVIDERS as X, IMAGE_EDIT_TARGET_RESOLUTION_VALUES as Y, IMAGE_GEN_PROVIDERS as Z, IMAGE_I2I_PROVIDERS as _, ASPECT_RATIO_DIMENSIONS as a, SEEDANCE_2_CONTINUATION_REF_SEC as a$, IMAGE_PROMPT_MAX as a0, IMAGE_QUALITY_VALUES as a1, IMAGE_RENDERING_SPEED_VALUES as a2, IMAGE_RESOLUTION_VALUES as a3, IMAGE_TO_VIDEO_PROVIDERS as a4, type ImageAspectRatio as a5, type ImageBackground as a6, type ImageEditProvider as a7, type ImageEditTargetResolution as a8, type ImageGenProvider as a9, MUSIC_PROVIDERS as aA, MUSIC_PROVIDER_LABELS as aB, type ModelPromptingStyle as aC, type ModifyImageProvider as aD, type MotionTransferProviderType as aE, type MusicProvider as aF, NATIVE_ADAPTIVE_ASPECT as aG, NATIVE_NEGATIVE_PROMPT_MODELS as aH, NATIVE_NEGATIVE_VIDEO_PROVIDERS as aI, NEGATIVE_PROMPT_MAX as aJ, OBJECT_MOTION_PROVIDERS as aK, type ObjectMotionProvider as aL, PRICING_DEFAULT_DURATION_SEC as aM, PRICING_DEFAULT_RESOLUTION as aN, PROMPT_HARD_CEILING as aO, QA_CHECK_PROVIDERS as aP, type QaCheckProvider as aQ, REF_IMAGE_MAX_LIMITS as aR, RENDERING_SPEED_SUPPORT as aS, REPLICATE_LIP_SYNC_PROVIDERS as aT, RETIRED_VIDEO_PROVIDERS as aU, type RefAudioCheck as aV, type RefAudioProbe as aW, type RefAudioRule as aX, type RefVideoDurationLimit as aY, SCRIPT_PROVIDERS as aZ, SEEDANCE_2_5_REF_LIMITS as a_, type ImageI2IProvider as aa, type ImageMaskMode as ab, type ImageQuality as ac, type ImageRenderingSpeed as ad, type ImageResolution as ae, type ImageToVideoProvider as af, KLING_4_DEFAULT_RESOLUTION as ag, KLING_4_MAX_MIDDLE_FRAMES as ah, KLING_4_PROVIDERS as ai, LIP_SYNC_PROVIDERS as aj, LLM_STRUCTURED_SYSTEM_MAX as ak, LLM_TEXT_INPUT_MAX as al, LOCATION_ATMOSPHERE_PROVIDERS as am, type LipSyncProvider as an, type LocationAtmosphereProvider as ao, MAX_IMAGE_PROMPT_CHARS_BY_PROVIDER as ap, MAX_NEGATIVE_PROMPT_CHARS_BY_PROVIDER as aq, MAX_REQUEST_IMAGE_LIMIT as ar, MAX_TTS_CHARS_BY_PROVIDER as as, MAX_VIDEO_PROMPT_CHARS_BY_PROVIDER as at, MINIMAX_H3_DEFAULT_RESOLUTION as au, MINIMAX_H3_PROVIDERS as av, MODELS_WITH_REFERENCE_IMAGE_SUPPORT as aw, MODIFY_IMAGE_PROVIDERS as ax, MOTION_TRANSFER_PROVIDERS as ay, MUSIC_CREDIT_ID as az, AUDIO_ADDON_PROVIDERS as b, VIDEO_TO_VIDEO_PROVIDERS as b$, SEEDANCE_2_EXTEND_STITCH as b0, SEEDANCE_2_PROVIDERS as b1, SEEDANCE_2_R2V_MAX_AUDIO_SEC_BY_PROVIDER as b2, SEEDANCE_2_R2V_MIN_REF_VIDEO_SEC as b3, SEEDANCE_2_REF_LIMITS as b4, SEEDANCE_LIP_SYNC_PROVIDERS as b5, SEEDANCE_VIDEO_EDIT_PROVIDERS as b6, SEEDANCE_VIDEO_EDIT_SHAPE as b7, SEED_SUPPORT as b8, SUNO_ACTIVE_MODELS as b9, type TaskChainedEditProvider as bA, type TextToAudioProvider as bB, type TextToVideoProvider as bC, type TranscribeLane as bD, type TranscribeProvider as bE, type TtsOutputFormat as bF, type TtsProvider as bG, UPSCALE_IMAGE_PROVIDERS as bH, type UpscaleImageProvider as bI, VARIABLE_PRICING_MODELS as bJ, VEO_PROVIDERS as bK, VIDEO_AUDIO_CAPABILITY as bL, VIDEO_DURATION_TIERS as bM, VIDEO_GEN_COLLAPSED_T2V_IDS as bN, VIDEO_GEN_PROVIDERS as bO, VIDEO_INPUT_LIP_SYNC_PROVIDERS as bP, VIDEO_MODEL_CAPS as bQ, VIDEO_MODE_ALIASES as bR, VIDEO_PROMPT_MAX as bS, VIDEO_PROVIDERS_REQUIRING_IMAGE as bT, VIDEO_PROVIDERS_WITHOUT_DISPATCH as bU, VIDEO_PROVIDERS_WITH_SEPARATE_FRAME_CHANNEL as bV, VIDEO_REF_AUDIO_RULES as bW, VIDEO_REF_LIMITS_BY_PROVIDER as bX, VIDEO_REF_RATE_PROVIDERS as bY, VIDEO_REF_VIDEO_DURATION_LIMITS as bZ, VIDEO_TO_VIDEO_NODE_PROVIDERS as b_, SUNO_ADD_TRACK_MODELS as ba, SUNO_DURATION_MODELS as bb, SUNO_HARD_CEILING as bc, SUNO_LEGACY_MODELS as bd, SUNO_MODELS as be, SUNO_TEXT_MAX as bf, SUNO_TITLE_MAX as bg, type SceneInputMode as bh, SceneInputModeSchema as bi, type ScriptProvider as bj, type SeedanceVideoEditProvider as bk, type SunoAddTrackModel as bl, type SunoModel as bm, T2I_TO_I2I_VARIANT as bn, TASK_CHAINED_EDIT_PROVIDERS as bo, TASK_CHAINED_EDIT_PROVIDER_IDS as bp, TEXT_TO_AUDIO_PROVIDERS as bq, TEXT_TO_VIDEO_PROVIDERS as br, TRANSCRIBE_LANES as bs, TRANSCRIBE_PROVIDERS as bt, TRANSCRIBE_PROVIDER_CAPABILITIES as bu, TTS_OUTPUT_FORMATS as bv, TTS_OUTPUT_FORMAT_FILES as bw, TTS_PROVIDERS as bx, TTS_TEXT_MAX as by, TWO_K_RESOLUTION_PROVIDERS as bz, type AiWriterProvider as c, seedance2AudioLimitSec as c$, VIDEO_UPSCALE_PROVIDERS as c0, VIDEO_VARIABLE_PRICING as c1, VIDU_Q4_DEFAULT_RESOLUTION as c2, VIDU_Q4_PROVIDERS as c3, VOICE_DESIGN_MODELS as c4, type VideoAudioCapability as c5, type VideoAudioMode as c6, type VideoGenProvider as c7, type VideoModeAlias as c8, type VideoModelCapabilities as c9, isGeminiOmniProvider as cA, isGvpSupportedProvider as cB, isKling4Provider as cC, isLegacySunoModel as cD, isMinimaxH3Provider as cE, isSeedance2Provider as cF, isSeedanceVideoEditProvider as cG, isVeoProvider as cH, isViduQ4Provider as cI, isWan3Provider as cJ, kling4KeyframeFrameCap as cK, maxSegmentSecFor as cL, maxSegmentsFor as cM, maxVideoDurationSec as cN, minSegmentSecFor as cO, modelsForInputMode as cP, normalizeKling4Resolution as cQ, normalizeMinimaxH3Resolution as cR, normalizeViduQ4Resolution as cS, normalizeWan3Resolution as cT, preferredInputModeForModel as cU, pricedOutputDurationSec as cV, requestImageLimit as cW, resolveGvpAnchorWire as cX, resolveMusicProvider as cY, resolveVideoModeForInputs as cZ, resolveVideoProviderForMode as c_, type VideoReferenceSyntax as ca, type VideoToVideoNodeProvider as cb, type VideoToVideoProvider as cc, type VideoUpscaleProvider as cd, type VoiceDesignModel as ce, WAN_3_DEFAULT_RESOLUTION as cf, WAN_3_PROVIDERS as cg, applyDefaultVideoSelection as ch, applyVideoAudioToggle as ci, applyVideoNegativePrompt as cj, billsReferenceVideoSeconds as ck, canonicalVideoProvider as cl, checkRefAudioRules as cm, checkRefVideoDurations as cn, defaultVideoAspectRatio as co, findSeedance2AudioOverLimit as cp, getMaxImagePromptChars as cq, getMaxNegativePromptChars as cr, getMaxSunoPromptChars as cs, getMaxSunoStyleChars as ct, getMaxTtsChars as cu, getMaxVideoPromptChars as cv, getVideoAudioCapability as cw, hasContiguousSegmentDurations as cx, imageReferenceLimit as cy, isGeminiOmniPerSecondProvider as cz, COMPOSER_PLAN_FIELDS as d, segmentDurationsFor as d0, snapToNearestDuration as d1, sunoModelHonoursDuration as d2, supportsAutoVideoDuration as d3, supportsEndAnchor as d4, supportsExtendRender as d5, transcribeLaneSupportsWordTimestamps as d6, transcribeProvidersWithWordTimestamps as d7, videoDefaultDurationSec as d8, videoModelCanSpeakDialogue as d9, videoModelSupportsAudio as da, videoNegativeSuffix as db, videoProviderAppendsFrames as dc, videoProviderFoldsLoneEndFrame as dd, videoProviderRefModeFrameSeats as de, videoProviderReferenceSyntax as df, videoProviderRequiresImage as dg, videoProviderRunsFromReferences as dh, videoSourceTrimMaxSec as di, COMPOSER_PLAN_MAP as e, CREDIT_BASE_USD as f, type CharacterMotionProvider as g, DEFAULT_MUSIC_PROVIDER as h, DEFAULT_REF_IMAGE_MAX as i, DEFAULT_REQUEST_IMAGE_LIMIT as j, DEFAULT_SUNO_MODEL as k, DEFAULT_TEXT_TO_AUDIO_PROVIDER as l, DEFAULT_TRANSCRIBE_NODE_PROVIDER as m, DEFAULT_TRANSCRIBE_PROVIDER as n, DEFAULT_TTS_OUTPUT_FORMAT as o, DEFAULT_TTS_PROVIDER as p, DEFAULT_VIDEO_DURATION_SEC as q, DEFAULT_VIDEO_PROVIDER as r, DEFAULT_VOICE_DESIGN_MODEL as s, DIALOGUE_PROVIDERS as t, DURATION_PRICED_PROVIDERS as u, type DialogueProvider as v, type ExtendVideoProvider as w, FAL_LIP_SYNC_PROVIDERS as x, FLEXIBLE_INPUT_LIP_SYNC_PROVIDERS as y, FRAME_MODE_ADAPTIVE_ONLY_ASPECT as z };
@@ -151,6 +151,18 @@ declare const PROMPT_HARD_CEILING = 30000;
151
151
  * route's maxTokens.
152
152
  */
153
153
  declare const LLM_TEXT_INPUT_MAX = 100000;
154
+ /**
155
+ * Ceiling for the `system` prompt of the structured-output routes
156
+ * (`POST /v1/llm/structured` and `POST /v1/llm/structured/jobs`). A client
157
+ * that has the model write in its own vocabulary sends that vocabulary as the
158
+ * system prompt, and it grows with the client's catalogs (Nodaro Studio's
159
+ * production format is close to 100,000 chars), so this is twice
160
+ * {@link LLM_TEXT_INPUT_MAX}. The routes' `input`, and every other LLM text
161
+ * field, stay at LLM_TEXT_INPUT_MAX. 200,000 chars is roughly 50,000 to
162
+ * 100,000 tokens, and a body at both ceilings still fits the API's 1 MB
163
+ * request limit.
164
+ */
165
+ declare const LLM_STRUCTURED_SYSTEM_MAX = 200000;
154
166
  /**
155
167
  * Per-provider maximum VIDEO prompt length (chars), VERIFIED against each model's
156
168
  * official docs.kie.ai schema (2026-06). Absent → {@link VIDEO_PROMPT_MAX} (8000)
@@ -462,7 +474,7 @@ declare function resolveVideoModeForInputs(provider: string | undefined, inputs:
462
474
  readonly hasImageRefs: boolean;
463
475
  }): "image-to-video" | "text-to-video";
464
476
  /** The prompt syntax a video provider addresses its images in, by array order. */
465
- type VideoReferenceSyntax = "@image_N" | "@image(n)" | "[Image N]";
477
+ type VideoReferenceSyntax = "@image_N" | "@image(n)" | "[Image N]" | "image N";
466
478
  /**
467
479
  * The syntax this video model's frame / identity binding sentences are written
468
480
  * in — the catalog's `referenceSyntax`, else the platform's `@image_N`. One
@@ -1717,4 +1729,4 @@ declare function applyDefaultVideoSelection<D>(input: {
1717
1729
  duration: D | number | undefined;
1718
1730
  };
1719
1731
 
1720
- export { IMAGE_MASK_MODE as $, AI_WRITER_PROVIDERS as A, type FaceSwapProvider as B, CHARACTER_MOTION_PROVIDERS as C, DEFAULT_DIALOGUE_PROVIDER as D, EXTEND_VIDEO_PROVIDERS as E, FACE_SWAP_PROVIDERS as F, GEMINI_OMNI_12_MAX_SOURCE_SEC as G, GEMINI_OMNI_PER_SECOND_PROVIDERS as H, GEMINI_OMNI_PROVIDERS as I, GUIDANCE_SCALE_SUPPORT as J, GVP_ANCHOR_CHOICES as K, GVP_DEFAULT_PROVIDER as L, GVP_END_FRAME_PROVIDERS as M, GVP_EXTEND_PROVIDERS as N, GVP_SUPPORTED_PROVIDERS as O, type GvpAnchorChoice as P, type GvpAnchorWireMode as Q, HIGH_QUALITY_PROVIDERS as R, I2I_MASK_SUPPORT as S, I2I_STRENGTH_SUPPORT as T, IDEOGRAM_PROVIDERS as U, IMAGE_ASPECT_RATIO_VALUES as V, IMAGE_BACKGROUND_VALUES as W, IMAGE_EDIT_PROVIDERS as X, IMAGE_EDIT_TARGET_RESOLUTION_VALUES as Y, IMAGE_GEN_PROVIDERS as Z, IMAGE_I2I_PROVIDERS as _, ASPECT_RATIO_DIMENSIONS as a, SEEDANCE_2_EXTEND_STITCH as a$, IMAGE_PROMPT_MAX as a0, IMAGE_QUALITY_VALUES as a1, IMAGE_RENDERING_SPEED_VALUES as a2, IMAGE_RESOLUTION_VALUES as a3, IMAGE_TO_VIDEO_PROVIDERS as a4, type ImageAspectRatio as a5, type ImageBackground as a6, type ImageEditProvider as a7, type ImageEditTargetResolution as a8, type ImageGenProvider as a9, MUSIC_PROVIDER_LABELS as aA, type ModelPromptingStyle as aB, type ModifyImageProvider as aC, type MotionTransferProviderType as aD, type MusicProvider as aE, NATIVE_ADAPTIVE_ASPECT as aF, NATIVE_NEGATIVE_PROMPT_MODELS as aG, NATIVE_NEGATIVE_VIDEO_PROVIDERS as aH, NEGATIVE_PROMPT_MAX as aI, OBJECT_MOTION_PROVIDERS as aJ, type ObjectMotionProvider as aK, PRICING_DEFAULT_DURATION_SEC as aL, PRICING_DEFAULT_RESOLUTION as aM, PROMPT_HARD_CEILING as aN, QA_CHECK_PROVIDERS as aO, type QaCheckProvider as aP, REF_IMAGE_MAX_LIMITS as aQ, RENDERING_SPEED_SUPPORT as aR, REPLICATE_LIP_SYNC_PROVIDERS as aS, RETIRED_VIDEO_PROVIDERS as aT, type RefAudioCheck as aU, type RefAudioProbe as aV, type RefAudioRule as aW, type RefVideoDurationLimit as aX, SCRIPT_PROVIDERS as aY, SEEDANCE_2_5_REF_LIMITS as aZ, SEEDANCE_2_CONTINUATION_REF_SEC as a_, type ImageI2IProvider as aa, type ImageMaskMode as ab, type ImageQuality as ac, type ImageRenderingSpeed as ad, type ImageResolution as ae, type ImageToVideoProvider as af, KLING_4_DEFAULT_RESOLUTION as ag, KLING_4_MAX_MIDDLE_FRAMES as ah, KLING_4_PROVIDERS as ai, LIP_SYNC_PROVIDERS as aj, LLM_TEXT_INPUT_MAX as ak, LOCATION_ATMOSPHERE_PROVIDERS as al, type LipSyncProvider as am, type LocationAtmosphereProvider as an, MAX_IMAGE_PROMPT_CHARS_BY_PROVIDER as ao, MAX_NEGATIVE_PROMPT_CHARS_BY_PROVIDER as ap, MAX_REQUEST_IMAGE_LIMIT as aq, MAX_TTS_CHARS_BY_PROVIDER as ar, MAX_VIDEO_PROMPT_CHARS_BY_PROVIDER as as, MINIMAX_H3_DEFAULT_RESOLUTION as at, MINIMAX_H3_PROVIDERS as au, MODELS_WITH_REFERENCE_IMAGE_SUPPORT as av, MODIFY_IMAGE_PROVIDERS as aw, MOTION_TRANSFER_PROVIDERS as ax, MUSIC_CREDIT_ID as ay, MUSIC_PROVIDERS as az, AUDIO_ADDON_PROVIDERS as b, VIDEO_UPSCALE_PROVIDERS as b$, SEEDANCE_2_PROVIDERS as b0, SEEDANCE_2_R2V_MAX_AUDIO_SEC_BY_PROVIDER as b1, SEEDANCE_2_R2V_MIN_REF_VIDEO_SEC as b2, SEEDANCE_2_REF_LIMITS as b3, SEEDANCE_LIP_SYNC_PROVIDERS as b4, SEEDANCE_VIDEO_EDIT_PROVIDERS as b5, SEEDANCE_VIDEO_EDIT_SHAPE as b6, SEED_SUPPORT as b7, SUNO_ACTIVE_MODELS as b8, SUNO_ADD_TRACK_MODELS as b9, type TextToAudioProvider as bA, type TextToVideoProvider as bB, type TranscribeLane as bC, type TranscribeProvider as bD, type TtsOutputFormat as bE, type TtsProvider as bF, UPSCALE_IMAGE_PROVIDERS as bG, type UpscaleImageProvider as bH, VARIABLE_PRICING_MODELS as bI, VEO_PROVIDERS as bJ, VIDEO_AUDIO_CAPABILITY as bK, VIDEO_DURATION_TIERS as bL, VIDEO_GEN_COLLAPSED_T2V_IDS as bM, VIDEO_GEN_PROVIDERS as bN, VIDEO_INPUT_LIP_SYNC_PROVIDERS as bO, VIDEO_MODEL_CAPS as bP, VIDEO_MODE_ALIASES as bQ, VIDEO_PROMPT_MAX as bR, VIDEO_PROVIDERS_REQUIRING_IMAGE as bS, VIDEO_PROVIDERS_WITHOUT_DISPATCH as bT, VIDEO_PROVIDERS_WITH_SEPARATE_FRAME_CHANNEL as bU, VIDEO_REF_AUDIO_RULES as bV, VIDEO_REF_LIMITS_BY_PROVIDER as bW, VIDEO_REF_RATE_PROVIDERS as bX, VIDEO_REF_VIDEO_DURATION_LIMITS as bY, VIDEO_TO_VIDEO_NODE_PROVIDERS as bZ, VIDEO_TO_VIDEO_PROVIDERS as b_, SUNO_DURATION_MODELS as ba, SUNO_HARD_CEILING as bb, SUNO_LEGACY_MODELS as bc, SUNO_MODELS as bd, SUNO_TEXT_MAX as be, SUNO_TITLE_MAX as bf, type SceneInputMode as bg, SceneInputModeSchema as bh, type ScriptProvider as bi, type SeedanceVideoEditProvider as bj, type SunoAddTrackModel as bk, type SunoModel as bl, T2I_TO_I2I_VARIANT as bm, TASK_CHAINED_EDIT_PROVIDERS as bn, TASK_CHAINED_EDIT_PROVIDER_IDS as bo, TEXT_TO_AUDIO_PROVIDERS as bp, TEXT_TO_VIDEO_PROVIDERS as bq, TRANSCRIBE_LANES as br, TRANSCRIBE_PROVIDERS as bs, TRANSCRIBE_PROVIDER_CAPABILITIES as bt, TTS_OUTPUT_FORMATS as bu, TTS_OUTPUT_FORMAT_FILES as bv, TTS_PROVIDERS as bw, TTS_TEXT_MAX as bx, TWO_K_RESOLUTION_PROVIDERS as by, type TaskChainedEditProvider as bz, type AiWriterProvider as c, segmentDurationsFor as c$, VIDEO_VARIABLE_PRICING as c0, VIDU_Q4_DEFAULT_RESOLUTION as c1, VIDU_Q4_PROVIDERS as c2, VOICE_DESIGN_MODELS as c3, type VideoAudioCapability as c4, type VideoAudioMode as c5, type VideoGenProvider as c6, type VideoModeAlias as c7, type VideoModelCapabilities as c8, type VideoReferenceSyntax as c9, isGvpSupportedProvider as cA, isKling4Provider as cB, isLegacySunoModel as cC, isMinimaxH3Provider as cD, isSeedance2Provider as cE, isSeedanceVideoEditProvider as cF, isVeoProvider as cG, isViduQ4Provider as cH, isWan3Provider as cI, kling4KeyframeFrameCap as cJ, maxSegmentSecFor as cK, maxSegmentsFor as cL, maxVideoDurationSec as cM, minSegmentSecFor as cN, modelsForInputMode as cO, normalizeKling4Resolution as cP, normalizeMinimaxH3Resolution as cQ, normalizeViduQ4Resolution as cR, normalizeWan3Resolution as cS, preferredInputModeForModel as cT, pricedOutputDurationSec as cU, requestImageLimit as cV, resolveGvpAnchorWire as cW, resolveMusicProvider as cX, resolveVideoModeForInputs as cY, resolveVideoProviderForMode as cZ, seedance2AudioLimitSec as c_, type VideoToVideoNodeProvider as ca, type VideoToVideoProvider as cb, type VideoUpscaleProvider as cc, type VoiceDesignModel as cd, WAN_3_DEFAULT_RESOLUTION as ce, WAN_3_PROVIDERS as cf, applyDefaultVideoSelection as cg, applyVideoAudioToggle as ch, applyVideoNegativePrompt as ci, billsReferenceVideoSeconds as cj, canonicalVideoProvider as ck, checkRefAudioRules as cl, checkRefVideoDurations as cm, defaultVideoAspectRatio as cn, findSeedance2AudioOverLimit as co, getMaxImagePromptChars as cp, getMaxNegativePromptChars as cq, getMaxSunoPromptChars as cr, getMaxSunoStyleChars as cs, getMaxTtsChars as ct, getMaxVideoPromptChars as cu, getVideoAudioCapability as cv, hasContiguousSegmentDurations as cw, imageReferenceLimit as cx, isGeminiOmniPerSecondProvider as cy, isGeminiOmniProvider as cz, COMPOSER_PLAN_FIELDS as d, snapToNearestDuration as d0, sunoModelHonoursDuration as d1, supportsAutoVideoDuration as d2, supportsEndAnchor as d3, supportsExtendRender as d4, transcribeLaneSupportsWordTimestamps as d5, transcribeProvidersWithWordTimestamps as d6, videoDefaultDurationSec as d7, videoModelCanSpeakDialogue as d8, videoModelSupportsAudio as d9, videoNegativeSuffix as da, videoProviderAppendsFrames as db, videoProviderFoldsLoneEndFrame as dc, videoProviderRefModeFrameSeats as dd, videoProviderReferenceSyntax as de, videoProviderRequiresImage as df, videoProviderRunsFromReferences as dg, videoSourceTrimMaxSec as dh, COMPOSER_PLAN_MAP as e, CREDIT_BASE_USD as f, type CharacterMotionProvider as g, DEFAULT_MUSIC_PROVIDER as h, DEFAULT_REF_IMAGE_MAX as i, DEFAULT_REQUEST_IMAGE_LIMIT as j, DEFAULT_SUNO_MODEL as k, DEFAULT_TEXT_TO_AUDIO_PROVIDER as l, DEFAULT_TRANSCRIBE_NODE_PROVIDER as m, DEFAULT_TRANSCRIBE_PROVIDER as n, DEFAULT_TTS_OUTPUT_FORMAT as o, DEFAULT_TTS_PROVIDER as p, DEFAULT_VIDEO_DURATION_SEC as q, DEFAULT_VIDEO_PROVIDER as r, DEFAULT_VOICE_DESIGN_MODEL as s, DIALOGUE_PROVIDERS as t, DURATION_PRICED_PROVIDERS as u, type DialogueProvider as v, type ExtendVideoProvider as w, FAL_LIP_SYNC_PROVIDERS as x, FLEXIBLE_INPUT_LIP_SYNC_PROVIDERS as y, FRAME_MODE_ADAPTIVE_ONLY_ASPECT as z };
1732
+ export { IMAGE_MASK_MODE as $, AI_WRITER_PROVIDERS as A, type FaceSwapProvider as B, CHARACTER_MOTION_PROVIDERS as C, DEFAULT_DIALOGUE_PROVIDER as D, EXTEND_VIDEO_PROVIDERS as E, FACE_SWAP_PROVIDERS as F, GEMINI_OMNI_12_MAX_SOURCE_SEC as G, GEMINI_OMNI_PER_SECOND_PROVIDERS as H, GEMINI_OMNI_PROVIDERS as I, GUIDANCE_SCALE_SUPPORT as J, GVP_ANCHOR_CHOICES as K, GVP_DEFAULT_PROVIDER as L, GVP_END_FRAME_PROVIDERS as M, GVP_EXTEND_PROVIDERS as N, GVP_SUPPORTED_PROVIDERS as O, type GvpAnchorChoice as P, type GvpAnchorWireMode as Q, HIGH_QUALITY_PROVIDERS as R, I2I_MASK_SUPPORT as S, I2I_STRENGTH_SUPPORT as T, IDEOGRAM_PROVIDERS as U, IMAGE_ASPECT_RATIO_VALUES as V, IMAGE_BACKGROUND_VALUES as W, IMAGE_EDIT_PROVIDERS as X, IMAGE_EDIT_TARGET_RESOLUTION_VALUES as Y, IMAGE_GEN_PROVIDERS as Z, IMAGE_I2I_PROVIDERS as _, ASPECT_RATIO_DIMENSIONS as a, SEEDANCE_2_CONTINUATION_REF_SEC as a$, IMAGE_PROMPT_MAX as a0, IMAGE_QUALITY_VALUES as a1, IMAGE_RENDERING_SPEED_VALUES as a2, IMAGE_RESOLUTION_VALUES as a3, IMAGE_TO_VIDEO_PROVIDERS as a4, type ImageAspectRatio as a5, type ImageBackground as a6, type ImageEditProvider as a7, type ImageEditTargetResolution as a8, type ImageGenProvider as a9, MUSIC_PROVIDERS as aA, MUSIC_PROVIDER_LABELS as aB, type ModelPromptingStyle as aC, type ModifyImageProvider as aD, type MotionTransferProviderType as aE, type MusicProvider as aF, NATIVE_ADAPTIVE_ASPECT as aG, NATIVE_NEGATIVE_PROMPT_MODELS as aH, NATIVE_NEGATIVE_VIDEO_PROVIDERS as aI, NEGATIVE_PROMPT_MAX as aJ, OBJECT_MOTION_PROVIDERS as aK, type ObjectMotionProvider as aL, PRICING_DEFAULT_DURATION_SEC as aM, PRICING_DEFAULT_RESOLUTION as aN, PROMPT_HARD_CEILING as aO, QA_CHECK_PROVIDERS as aP, type QaCheckProvider as aQ, REF_IMAGE_MAX_LIMITS as aR, RENDERING_SPEED_SUPPORT as aS, REPLICATE_LIP_SYNC_PROVIDERS as aT, RETIRED_VIDEO_PROVIDERS as aU, type RefAudioCheck as aV, type RefAudioProbe as aW, type RefAudioRule as aX, type RefVideoDurationLimit as aY, SCRIPT_PROVIDERS as aZ, SEEDANCE_2_5_REF_LIMITS as a_, type ImageI2IProvider as aa, type ImageMaskMode as ab, type ImageQuality as ac, type ImageRenderingSpeed as ad, type ImageResolution as ae, type ImageToVideoProvider as af, KLING_4_DEFAULT_RESOLUTION as ag, KLING_4_MAX_MIDDLE_FRAMES as ah, KLING_4_PROVIDERS as ai, LIP_SYNC_PROVIDERS as aj, LLM_STRUCTURED_SYSTEM_MAX as ak, LLM_TEXT_INPUT_MAX as al, LOCATION_ATMOSPHERE_PROVIDERS as am, type LipSyncProvider as an, type LocationAtmosphereProvider as ao, MAX_IMAGE_PROMPT_CHARS_BY_PROVIDER as ap, MAX_NEGATIVE_PROMPT_CHARS_BY_PROVIDER as aq, MAX_REQUEST_IMAGE_LIMIT as ar, MAX_TTS_CHARS_BY_PROVIDER as as, MAX_VIDEO_PROMPT_CHARS_BY_PROVIDER as at, MINIMAX_H3_DEFAULT_RESOLUTION as au, MINIMAX_H3_PROVIDERS as av, MODELS_WITH_REFERENCE_IMAGE_SUPPORT as aw, MODIFY_IMAGE_PROVIDERS as ax, MOTION_TRANSFER_PROVIDERS as ay, MUSIC_CREDIT_ID as az, AUDIO_ADDON_PROVIDERS as b, VIDEO_TO_VIDEO_PROVIDERS as b$, SEEDANCE_2_EXTEND_STITCH as b0, SEEDANCE_2_PROVIDERS as b1, SEEDANCE_2_R2V_MAX_AUDIO_SEC_BY_PROVIDER as b2, SEEDANCE_2_R2V_MIN_REF_VIDEO_SEC as b3, SEEDANCE_2_REF_LIMITS as b4, SEEDANCE_LIP_SYNC_PROVIDERS as b5, SEEDANCE_VIDEO_EDIT_PROVIDERS as b6, SEEDANCE_VIDEO_EDIT_SHAPE as b7, SEED_SUPPORT as b8, SUNO_ACTIVE_MODELS as b9, type TaskChainedEditProvider as bA, type TextToAudioProvider as bB, type TextToVideoProvider as bC, type TranscribeLane as bD, type TranscribeProvider as bE, type TtsOutputFormat as bF, type TtsProvider as bG, UPSCALE_IMAGE_PROVIDERS as bH, type UpscaleImageProvider as bI, VARIABLE_PRICING_MODELS as bJ, VEO_PROVIDERS as bK, VIDEO_AUDIO_CAPABILITY as bL, VIDEO_DURATION_TIERS as bM, VIDEO_GEN_COLLAPSED_T2V_IDS as bN, VIDEO_GEN_PROVIDERS as bO, VIDEO_INPUT_LIP_SYNC_PROVIDERS as bP, VIDEO_MODEL_CAPS as bQ, VIDEO_MODE_ALIASES as bR, VIDEO_PROMPT_MAX as bS, VIDEO_PROVIDERS_REQUIRING_IMAGE as bT, VIDEO_PROVIDERS_WITHOUT_DISPATCH as bU, VIDEO_PROVIDERS_WITH_SEPARATE_FRAME_CHANNEL as bV, VIDEO_REF_AUDIO_RULES as bW, VIDEO_REF_LIMITS_BY_PROVIDER as bX, VIDEO_REF_RATE_PROVIDERS as bY, VIDEO_REF_VIDEO_DURATION_LIMITS as bZ, VIDEO_TO_VIDEO_NODE_PROVIDERS as b_, SUNO_ADD_TRACK_MODELS as ba, SUNO_DURATION_MODELS as bb, SUNO_HARD_CEILING as bc, SUNO_LEGACY_MODELS as bd, SUNO_MODELS as be, SUNO_TEXT_MAX as bf, SUNO_TITLE_MAX as bg, type SceneInputMode as bh, SceneInputModeSchema as bi, type ScriptProvider as bj, type SeedanceVideoEditProvider as bk, type SunoAddTrackModel as bl, type SunoModel as bm, T2I_TO_I2I_VARIANT as bn, TASK_CHAINED_EDIT_PROVIDERS as bo, TASK_CHAINED_EDIT_PROVIDER_IDS as bp, TEXT_TO_AUDIO_PROVIDERS as bq, TEXT_TO_VIDEO_PROVIDERS as br, TRANSCRIBE_LANES as bs, TRANSCRIBE_PROVIDERS as bt, TRANSCRIBE_PROVIDER_CAPABILITIES as bu, TTS_OUTPUT_FORMATS as bv, TTS_OUTPUT_FORMAT_FILES as bw, TTS_PROVIDERS as bx, TTS_TEXT_MAX as by, TWO_K_RESOLUTION_PROVIDERS as bz, type AiWriterProvider as c, seedance2AudioLimitSec as c$, VIDEO_UPSCALE_PROVIDERS as c0, VIDEO_VARIABLE_PRICING as c1, VIDU_Q4_DEFAULT_RESOLUTION as c2, VIDU_Q4_PROVIDERS as c3, VOICE_DESIGN_MODELS as c4, type VideoAudioCapability as c5, type VideoAudioMode as c6, type VideoGenProvider as c7, type VideoModeAlias as c8, type VideoModelCapabilities as c9, isGeminiOmniProvider as cA, isGvpSupportedProvider as cB, isKling4Provider as cC, isLegacySunoModel as cD, isMinimaxH3Provider as cE, isSeedance2Provider as cF, isSeedanceVideoEditProvider as cG, isVeoProvider as cH, isViduQ4Provider as cI, isWan3Provider as cJ, kling4KeyframeFrameCap as cK, maxSegmentSecFor as cL, maxSegmentsFor as cM, maxVideoDurationSec as cN, minSegmentSecFor as cO, modelsForInputMode as cP, normalizeKling4Resolution as cQ, normalizeMinimaxH3Resolution as cR, normalizeViduQ4Resolution as cS, normalizeWan3Resolution as cT, preferredInputModeForModel as cU, pricedOutputDurationSec as cV, requestImageLimit as cW, resolveGvpAnchorWire as cX, resolveMusicProvider as cY, resolveVideoModeForInputs as cZ, resolveVideoProviderForMode as c_, type VideoReferenceSyntax as ca, type VideoToVideoNodeProvider as cb, type VideoToVideoProvider as cc, type VideoUpscaleProvider as cd, type VoiceDesignModel as ce, WAN_3_DEFAULT_RESOLUTION as cf, WAN_3_PROVIDERS as cg, applyDefaultVideoSelection as ch, applyVideoAudioToggle as ci, applyVideoNegativePrompt as cj, billsReferenceVideoSeconds as ck, canonicalVideoProvider as cl, checkRefAudioRules as cm, checkRefVideoDurations as cn, defaultVideoAspectRatio as co, findSeedance2AudioOverLimit as cp, getMaxImagePromptChars as cq, getMaxNegativePromptChars as cr, getMaxSunoPromptChars as cs, getMaxSunoStyleChars as ct, getMaxTtsChars as cu, getMaxVideoPromptChars as cv, getVideoAudioCapability as cw, hasContiguousSegmentDurations as cx, imageReferenceLimit as cy, isGeminiOmniPerSecondProvider as cz, COMPOSER_PLAN_FIELDS as d, segmentDurationsFor as d0, snapToNearestDuration as d1, sunoModelHonoursDuration as d2, supportsAutoVideoDuration as d3, supportsEndAnchor as d4, supportsExtendRender as d5, transcribeLaneSupportsWordTimestamps as d6, transcribeProvidersWithWordTimestamps as d7, videoDefaultDurationSec as d8, videoModelCanSpeakDialogue as d9, videoModelSupportsAudio as da, videoNegativeSuffix as db, videoProviderAppendsFrames as dc, videoProviderFoldsLoneEndFrame as dd, videoProviderRefModeFrameSeats as de, videoProviderReferenceSyntax as df, videoProviderRequiresImage as dg, videoProviderRunsFromReferences as dh, videoSourceTrimMaxSec as di, COMPOSER_PLAN_MAP as e, CREDIT_BASE_USD as f, type CharacterMotionProvider as g, DEFAULT_MUSIC_PROVIDER as h, DEFAULT_REF_IMAGE_MAX as i, DEFAULT_REQUEST_IMAGE_LIMIT as j, DEFAULT_SUNO_MODEL as k, DEFAULT_TEXT_TO_AUDIO_PROVIDER as l, DEFAULT_TRANSCRIBE_NODE_PROVIDER as m, DEFAULT_TRANSCRIBE_PROVIDER as n, DEFAULT_TTS_OUTPUT_FORMAT as o, DEFAULT_TTS_PROVIDER as p, DEFAULT_VIDEO_DURATION_SEC as q, DEFAULT_VIDEO_PROVIDER as r, DEFAULT_VOICE_DESIGN_MODEL as s, DIALOGUE_PROVIDERS as t, DURATION_PRICED_PROVIDERS as u, type DialogueProvider as v, type ExtendVideoProvider as w, FAL_LIP_SYNC_PROVIDERS as x, FLEXIBLE_INPUT_LIP_SYNC_PROVIDERS as y, FRAME_MODE_ADAPTIVE_ONLY_ASPECT as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nodaro/shared",
3
- "version": "3.57.0",
3
+ "version": "3.58.0",
4
4
  "description": "Shared types, model catalog, wire contracts, and structural vocabularies for the Nodaro platform and SDK.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -111,6 +111,99 @@ describe("autoAspectNeedsSourceImage", () => {
111
111
  })
112
112
  })
113
113
 
114
+ /**
115
+ * GPT Image 2.6's own "auto" renders a portrait photo square (a 768x1024
116
+ * source came back 1024x1024; GPT Image 2.5's auto kept it at 3:4). So every
117
+ * 2.6 entry keeps "auto" on offer but has it resolved from the photo, exactly
118
+ * as on a model without a native auto, while 2.5 keeps its native auto.
119
+ */
120
+ describe("GPT Image 2.6 — 'auto' is resolved from the photo, never sent as the model's own", () => {
121
+ const GPT_IMAGE_2_6 = [
122
+ "gpt-image-2-6-flare", "gpt-image-2-6-flare-i2i",
123
+ "gpt-image-2-6-sunburst", "gpt-image-2-6-sunburst-i2i",
124
+ "gpt-image-2-6-economy", "gpt-image-2-6-economy-i2i",
125
+ ]
126
+ const portrait = { width: 768, height: 1024 }
127
+
128
+ it("keeps 'auto' on offer in every 2.6 ratio list, so the menus are unchanged", () => {
129
+ for (const id of GPT_IMAGE_2_6) {
130
+ expect(MODEL_CATALOG[id]!.aspectRatios, id).toContain("auto")
131
+ expect(MODEL_CATALOG[id]!.autoAspectFromSourceImage, id).toBe(true)
132
+ }
133
+ })
134
+
135
+ it("asks for the photo's size on every 2.6 id, and not on 2.5 or GPT Image 2", () => {
136
+ for (const id of GPT_IMAGE_2_6) expect(autoAspectNeedsSourceImage(id, "auto"), id).toBe(true)
137
+ for (const id of GPT_IMAGE_2_6) expect(autoAspectNeedsSourceImage(id, "3:4"), id).toBe(false)
138
+ for (const id of ["gpt-image-2-5-flare-i2i", "gpt-image-2-5-sunburst-i2i", "gpt-image-2-5-flare", "gpt-image-2-i2i"]) {
139
+ expect(autoAspectNeedsSourceImage(id, "auto"), id).toBe(false)
140
+ }
141
+ })
142
+
143
+ it.each(["gpt-image-2-6-flare-i2i", "gpt-image-2-6-sunburst-i2i"])("%s: a 3:4 photo is sent 3:4, and says why", (id) => {
144
+ const out = normalizeModelInput(id, { aspectRatio: "auto" }, { sourceImage: portrait })
145
+ expect(out.aspectRatio).toBe("3:4")
146
+ expect(out.adjustments).toHaveLength(1)
147
+ expect(out.adjustments[0]).toMatchObject({ field: "aspectRatio", from: "auto", to: "3:4" })
148
+ expect(out.adjustments[0].reason).toContain(`own "auto" does not keep the photo's shape`)
149
+ })
150
+
151
+ it("Economy picks from its own shorter list", () => {
152
+ // 3:4 is not on Economy's list; 2:3 is the nearest that is.
153
+ expect(normalizeModelInput("gpt-image-2-6-economy-i2i", { aspectRatio: "auto" }, { sourceImage: portrait }).aspectRatio).toBe("2:3")
154
+ })
155
+
156
+ it("never picks a ratio 2.6 refuses (2.5's 27:16, 16:27, 9:8, 8:9)", () => {
157
+ const refused = new Set(["27:16", "16:27", "9:8", "8:9"])
158
+ for (const id of GPT_IMAGE_2_6) {
159
+ for (const sourceImage of [{ width: 2700, height: 1600 }, { width: 1600, height: 2700 }, { width: 1125, height: 1000 }, { width: 1000, height: 1125 }]) {
160
+ const out = normalizeModelInput(id, { aspectRatio: "auto" }, { sourceImage })
161
+ expect(refused.has(out.aspectRatio!), `${id} ${sourceImage.width}x${sourceImage.height} → ${out.aspectRatio}`).toBe(false)
162
+ expect(MODEL_CATALOG[id]!.aspectRatios).toContain(out.aspectRatio)
163
+ }
164
+ }
165
+ })
166
+
167
+ it("with no photo, or one that cannot be read, still sends the model's own 'auto', as before", () => {
168
+ for (const id of GPT_IMAGE_2_6) {
169
+ expect(normalizeModelInput(id, { aspectRatio: "auto" }).aspectRatio, id).toBe("auto")
170
+ expect(normalizeModelInput(id, { aspectRatio: "auto" }, { sourceImage: { width: 0, height: 0 } }).aspectRatio, id).toBe("auto")
171
+ }
172
+ })
173
+
174
+ it("Generate Image with a reference on a 2.6 model resolves 'auto' from the photo; with none it sends 'auto'", () => {
175
+ const withRef = resolveNormalizedImageGen({ provider: "gpt-image-2-6-flare", aspectRatio: "auto", refCount: 1, swapToI2i: true, sourceImage: portrait })
176
+ expect(withRef.modelId).toBe("gpt-image-2-6-flare-i2i")
177
+ expect(withRef.aspectRatio).toBe("3:4")
178
+ expect(imageGenAutoAspectNeedsSourceImage({ provider: "gpt-image-2-6-flare", aspectRatio: "auto", refCount: 1 })).toBe(true)
179
+ const noRef = resolveNormalizedImageGen({ provider: "gpt-image-2-6-flare", aspectRatio: "auto", refCount: 0, swapToI2i: true })
180
+ expect(noRef.aspectRatio).toBe("auto")
181
+ })
182
+
183
+ it("2.5 keeps its native 'auto' even when the photo's size is known", () => {
184
+ const out = normalizeModelInput("gpt-image-2-5-flare-i2i", { aspectRatio: "auto" }, { sourceImage: portrait })
185
+ expect(out.aspectRatio).toBe("auto")
186
+ expect(out.adjustments).toEqual([])
187
+ })
188
+
189
+ it("the measured ratio never moves the price id", () => {
190
+ for (const provider of ["gpt-image-2-6-flare-i2i", "gpt-image-2-6-sunburst-i2i", "gpt-image-2-6-economy-i2i"]) {
191
+ for (const quality of [undefined, "low", "medium", "high", "xhigh", "max", "auto"]) {
192
+ for (const resolution of [undefined, "1K", "2K", "4K"]) {
193
+ for (const refCount of [1, 5, 16]) {
194
+ const base = { provider, quality, resolution, refCount, swapToI2i: false }
195
+ const unset = resolveNormalizedImageGen({ ...base }).identifier
196
+ const auto = resolveNormalizedImageGen({ ...base, aspectRatio: "auto" }).identifier
197
+ const measured = resolveNormalizedImageGen({ ...base, aspectRatio: "auto", sourceImage: portrait })
198
+ expect(measured.identifier).toBe(auto)
199
+ expect(auto).toBe(unset)
200
+ }
201
+ }
202
+ }
203
+ }
204
+ })
205
+ })
206
+
114
207
  describe("normalizeModelInput — 'auto' with a source image", () => {
115
208
  const portrait = { width: 1104, height: 1472 }
116
209
 
@@ -76,18 +76,19 @@ describe("normalizeModelInput", () => {
76
76
  expect(normalizeModelInput("gpt-image-2", { aspectRatio: "1:1", resolution: "4K" }).resolution).toBe("2K")
77
77
  })
78
78
 
79
- // GPT Image 2.5 is NOT GPT Image 2. Its KIE docs
80
- // (docs.kie.ai/market/gpt/gpt-image-2-5-*) state no aspect_ratio x resolution
81
- // restriction, so the cross-field block above must NOT be widened to these
82
- // ids "for consistency" — doing so would silently downgrade a paid 4K render
83
- // to 1K. If GPT Image 2.5 ever documents such a limit, add it deliberately
84
- // and change this test in the same commit.
85
- it.each([
79
+ // GPT Image 2.5 is NOT GPT Image 2. Its docs
80
+ // (docs.kie.ai/market/gpt/gpt-image-2-5-*) limit four ratios to 1K and
81
+ // nothing else, so GPT Image 2's own rules (auto → 1K, 1:1 not at 4K) must
82
+ // NOT be widened to these ids "for consistency" — that would downgrade a paid
83
+ // 4K render to 1K. The four ratios are the catalog's
84
+ // `resolutionsByAspectRatio`, tested below.
85
+ const GPT_IMAGE_2_5_IDS = [
86
86
  "gpt-image-2-5-flare",
87
87
  "gpt-image-2-5-flare-i2i",
88
88
  "gpt-image-2-5-sunburst",
89
89
  "gpt-image-2-5-sunburst-i2i",
90
- ])("%s has NO cross-field aspect-ratio x resolution rule", (modelId) => {
90
+ ]
91
+ it.each(GPT_IMAGE_2_5_IDS)("%s keeps 4K at auto and at 1:1 (GPT Image 2's rules are not its own)", (modelId) => {
91
92
  const auto4k = normalizeModelInput(modelId, { aspectRatio: "auto", resolution: "4K" })
92
93
  expect(auto4k.resolution).toBe("4K")
93
94
  expect(auto4k.adjustments).toEqual([])
@@ -97,6 +98,59 @@ describe("normalizeModelInput", () => {
97
98
  expect(square4k.adjustments).toEqual([])
98
99
  })
99
100
 
101
+ const ONE_K_ONLY_RATIOS = ["27:16", "16:27", "9:8", "8:9"]
102
+ describe.each(GPT_IMAGE_2_5_IDS)("%s renders 27:16, 16:27, 9:8 and 8:9 at 1K only", (modelId) => {
103
+ it.each(ONE_K_ONLY_RATIOS.flatMap((ratio) => ["2K", "4K"].map((size) => [ratio, size] as const)))(
104
+ "%s at %s moves to 1K and says so",
105
+ (ratio, size) => {
106
+ const out = normalizeModelInput(modelId, { aspectRatio: ratio, resolution: size })
107
+ expect(out.aspectRatio).toBe(ratio)
108
+ expect(out.resolution).toBe("1K")
109
+ expect(out.adjustments).toEqual([{
110
+ field: "resolution",
111
+ from: size,
112
+ to: "1K",
113
+ reason: `${MODEL_CATALOG[modelId].label} only renders 1K at the "${ratio}" aspect ratio.`,
114
+ }])
115
+ },
116
+ )
117
+
118
+ it.each(ONE_K_ONLY_RATIOS)("%s at 1K, or with no size, is left as it is", (ratio) => {
119
+ expect(normalizeModelInput(modelId, { aspectRatio: ratio, resolution: "1K" }).adjustments).toEqual([])
120
+ const unset = normalizeModelInput(modelId, { aspectRatio: ratio })
121
+ expect(unset.resolution).toBeUndefined()
122
+ expect(unset.adjustments).toEqual([])
123
+ })
124
+
125
+ it.each(["auto", "1:1", "3:2", "2:3", "4:3", "3:4", "16:9", "9:16", "21:9"])("%s keeps 2K and 4K", (ratio) => {
126
+ for (const size of ["2K", "4K"]) {
127
+ const out = normalizeModelInput(modelId, { aspectRatio: ratio, resolution: size })
128
+ expect(out.resolution).toBe(size)
129
+ expect(out.adjustments).toEqual([])
130
+ }
131
+ })
132
+
133
+ it("an opaque background at 27:16 and 2K keeps its setting, as the size it renders is 1K", () => {
134
+ const out = normalizeModelInput(modelId, { aspectRatio: "27:16", resolution: "2K", background: "opaque" })
135
+ expect(out.resolution).toBe("1K")
136
+ expect(out.background).toBe("opaque")
137
+ expect(out.adjustments.map((a) => a.field)).toEqual(["resolution"])
138
+ })
139
+
140
+ it("a transparent background at 9:8 and 4K is one move to 1K", () => {
141
+ const out = normalizeModelInput(modelId, { aspectRatio: "9:8", resolution: "4K", background: "transparent" })
142
+ expect(out.resolution).toBe("1K")
143
+ expect(out.background).toBe("transparent")
144
+ expect(out.adjustments).toHaveLength(1)
145
+ })
146
+ })
147
+
148
+ it("GPT Image 2.6 offers none of the four ratios, so the rule never reaches it", () => {
149
+ for (const id of Object.keys(MODEL_CATALOG).filter((m) => m.startsWith("gpt-image-2-6"))) {
150
+ expect(MODEL_CATALOG[id].resolutionsByAspectRatio, id).toBeUndefined()
151
+ }
152
+ })
153
+
100
154
  // The four ratios 2.5 introduced are new to the platform vocabulary; the snap
101
155
  // must accept them rather than rewrite them to a neighbour.
102
156
  it.each(["27:16", "16:27", "9:8", "8:9", "21:9", "3:2"])(
@@ -0,0 +1,134 @@
1
+ import { describe, it, expect } from "vitest"
2
+ import {
3
+ MODEL_CATALOG,
4
+ defaultResolutionFor,
5
+ resolutionAtAspectRatio,
6
+ resolutionsAtAspectRatio,
7
+ } from "../model-catalog.js"
8
+ import { buildCreditModelIdentifier, resolveNormalizedImageGen } from "../credit-identifiers.js"
9
+ import { normalizeNodeModelParams } from "../normalize-node-params.js"
10
+
11
+ /**
12
+ * `resolutionsByAspectRatio`: the ratios at which a model renders fewer sizes
13
+ * than it lists. GPT Image 2.5 renders 27:16, 16:27, 9:8 and 8:9 at 1K only, so
14
+ * a 2K or 4K request there is sent, and priced, as 1K.
15
+ */
16
+
17
+ const GPT_IMAGE_2_5 = [
18
+ "gpt-image-2-5-flare",
19
+ "gpt-image-2-5-flare-i2i",
20
+ "gpt-image-2-5-sunburst",
21
+ "gpt-image-2-5-sunburst-i2i",
22
+ ] as const
23
+ const ONE_K_ONLY = ["27:16", "16:27", "9:8", "8:9"] as const
24
+
25
+ describe("the catalog's resolutionsByAspectRatio", () => {
26
+ it("is declared on the four GPT Image 2.5 ids, 1K at each of the four ratios", () => {
27
+ for (const id of GPT_IMAGE_2_5) {
28
+ expect(MODEL_CATALOG[id].resolutionsByAspectRatio, id).toEqual({
29
+ "27:16": ["1K"], "16:27": ["1K"], "9:8": ["1K"], "8:9": ["1K"],
30
+ })
31
+ }
32
+ })
33
+
34
+ it("INVARIANT: every declaration names the model's own ratios and sizes, and its default size renders everywhere", () => {
35
+ const failures: string[] = []
36
+ for (const [id, m] of Object.entries(MODEL_CATALOG)) {
37
+ if (!m.resolutionsByAspectRatio) continue
38
+ // The size an unset request is priced at must render at every listed
39
+ // ratio, or a request naming no size would be priced above what it renders.
40
+ const unsetSize = defaultResolutionFor(id) ?? m.resolutions?.[0]
41
+ for (const [ratio, sizes] of Object.entries(m.resolutionsByAspectRatio)) {
42
+ if (!m.aspectRatios?.includes(ratio)) failures.push(`${id}: ${ratio} is not one of its ratios`)
43
+ if (sizes.length === 0) failures.push(`${id}: ${ratio} renders no size`)
44
+ for (const size of sizes) {
45
+ if (!m.resolutions?.includes(size)) failures.push(`${id}: ${ratio} names ${size}, not one of its sizes`)
46
+ }
47
+ if (unsetSize !== undefined && !sizes.includes(unsetSize)) {
48
+ failures.push(`${id}: its default size ${unsetSize} does not render at ${ratio}`)
49
+ }
50
+ }
51
+ }
52
+ expect(failures).toEqual([])
53
+ })
54
+ })
55
+
56
+ describe("resolutionsAtAspectRatio", () => {
57
+ it("narrows the sizes at a limited ratio, in the catalog's order", () => {
58
+ for (const id of GPT_IMAGE_2_5) {
59
+ for (const ratio of ONE_K_ONLY) expect(resolutionsAtAspectRatio(id, ratio)).toEqual(["1K"])
60
+ expect(resolutionsAtAspectRatio(id, "16:9")).toEqual(["1K", "2K", "4K"])
61
+ expect(resolutionsAtAspectRatio(id, "auto")).toEqual(["1K", "2K", "4K"])
62
+ expect(resolutionsAtAspectRatio(id, undefined)).toEqual(["1K", "2K", "4K"])
63
+ }
64
+ })
65
+
66
+ it("reads a padded ratio, and never the object's prototype", () => {
67
+ expect(resolutionsAtAspectRatio("gpt-image-2-5-flare", " 9:8 ")).toEqual(["1K"])
68
+ expect(resolutionsAtAspectRatio("gpt-image-2-5-flare", "constructor")).toEqual(["1K", "2K", "4K"])
69
+ expect(resolutionsAtAspectRatio("gpt-image-2-5-flare", "__proto__")).toEqual(["1K", "2K", "4K"])
70
+ })
71
+
72
+ it("is the model's own list where nothing is limited, and undefined with no size setting", () => {
73
+ expect(resolutionsAtAspectRatio("gpt-image-2-6-flare", "16:9")).toEqual(MODEL_CATALOG["gpt-image-2-6-flare"].resolutions)
74
+ expect(resolutionsAtAspectRatio("nano-banana", "16:9")).toBeUndefined()
75
+ expect(resolutionsAtAspectRatio("not-a-model", "27:16")).toBeUndefined()
76
+ })
77
+ })
78
+
79
+ describe("resolutionAtAspectRatio", () => {
80
+ it("moves a size the ratio does not render to the largest it does at or below it", () => {
81
+ for (const ratio of ONE_K_ONLY) {
82
+ expect(resolutionAtAspectRatio("gpt-image-2-5-sunburst", ratio, "4K")).toBe("1K")
83
+ expect(resolutionAtAspectRatio("gpt-image-2-5-sunburst", ratio, "2K")).toBe("1K")
84
+ expect(resolutionAtAspectRatio("gpt-image-2-5-sunburst", ratio, "1K")).toBe("1K")
85
+ }
86
+ })
87
+
88
+ it("leaves everything else as it is", () => {
89
+ expect(resolutionAtAspectRatio("gpt-image-2-5-flare", "16:9", "4K")).toBe("4K")
90
+ expect(resolutionAtAspectRatio("gpt-image-2-5-flare", "27:16", undefined)).toBeUndefined()
91
+ // A size the model does not list is the lever snap's to correct, not this one's.
92
+ expect(resolutionAtAspectRatio("gpt-image-2-5-flare", "27:16", "8K")).toBe("8K")
93
+ expect(resolutionAtAspectRatio("gpt-image-2-6-flare", "21:9", "4K")).toBe("4K")
94
+ expect(resolutionAtAspectRatio("not-a-model", "27:16", "4K")).toBe("4K")
95
+ })
96
+ })
97
+
98
+ describe("the price follows the size that renders (quote = charge)", () => {
99
+ it.each(GPT_IMAGE_2_5.flatMap((id) => ONE_K_ONLY.map((ratio) => [id, ratio] as const)))(
100
+ "%s at %s: a 2K or 4K request is priced as 1K",
101
+ (id, ratio) => {
102
+ for (const resolution of ["2K", "4K"]) {
103
+ // Image-to-image / edit pricing (no swap) and Generate Image pricing.
104
+ const direct = resolveNormalizedImageGen({ provider: id, aspectRatio: ratio, resolution, refCount: 1, swapToI2i: false })
105
+ expect(direct.resolution).toBe("1K")
106
+ expect(direct.identifier).toBe(buildCreditModelIdentifier(id, undefined, "1K"))
107
+ expect(direct.identifier).toBe(id)
108
+ expect(direct.adjustments.some((a) => a.field === "resolution" && a.to === "1K")).toBe(true)
109
+ }
110
+ },
111
+ )
112
+
113
+ it("a text-to-image id swapped onto its edit sibling by references is priced as that sibling's 1K", () => {
114
+ const out = resolveNormalizedImageGen({ provider: "gpt-image-2-5-flare", aspectRatio: "16:27", resolution: "4K", refCount: 2, swapToI2i: true })
115
+ expect(out.modelId).toBe("gpt-image-2-5-flare-i2i")
116
+ expect(out.resolution).toBe("1K")
117
+ expect(out.identifier).toBe("gpt-image-2-5-flare-i2i")
118
+ })
119
+
120
+ it("other ratios keep their 2K and 4K prices", () => {
121
+ expect(resolveNormalizedImageGen({ provider: "gpt-image-2-5-flare", aspectRatio: "21:9", resolution: "2K", refCount: 0 }).identifier)
122
+ .toBe("gpt-image-2-5-flare:2K")
123
+ expect(resolveNormalizedImageGen({ provider: "gpt-image-2-5-sunburst-i2i", aspectRatio: "auto", resolution: "4K", refCount: 1 }).identifier)
124
+ .toBe("gpt-image-2-5-sunburst-i2i:4K")
125
+ })
126
+
127
+ it("a workflow written by an agent stores the size that renders (normalizeNodeModelParams)", () => {
128
+ const { nodes, adjustments } = normalizeNodeModelParams([
129
+ { id: "n1", type: "generate-image", data: { provider: "gpt-image-2-5-sunburst", aspectRatio: "9:8", resolution: "4K" } },
130
+ ])
131
+ expect((nodes[0]!.data as Record<string, unknown>).resolution).toBe("1K")
132
+ expect(adjustments).toMatchObject([{ nodeId: "n1", field: "resolution", from: "4K", to: "1K" }])
133
+ })
134
+ })
@@ -75,6 +75,11 @@ describe("videoProviderReferenceSyntax", () => {
75
75
  expect(videoProviderReferenceSyntax("happyhorse-ref2v")).toBe("[Image N]")
76
76
  })
77
77
 
78
+ it("names Gemini Omni Flash 1.2's images in plain words", () => {
79
+ expect(videoProviderReferenceSyntax("gemini-omni-flash-1-2")).toBe("image N")
80
+ expect(videoProviderReferenceSyntax("gemini-omni-flash")).toBe("@image_N")
81
+ })
82
+
78
83
  it("is declared only on reference-capable video models", () => {
79
84
  for (const m of Object.values(MODEL_CATALOG)) {
80
85
  if (!m.referenceSyntax) continue
@@ -63,6 +63,8 @@ export {
63
63
  nearestCatalogAspectRatio,
64
64
  autoAspectNeedsSourceImage,
65
65
  isAutoAspectToken,
66
+ resolutionsAtAspectRatio,
67
+ resolutionAtAspectRatio,
66
68
  } from "../model-catalog.js"
67
69
  export type {
68
70
  NormalizedVideoRequest,
@@ -18,6 +18,7 @@ export {
18
18
  getMaxImagePromptChars,
19
19
  PROMPT_HARD_CEILING,
20
20
  LLM_TEXT_INPUT_MAX,
21
+ LLM_STRUCTURED_SYSTEM_MAX,
21
22
  MAX_VIDEO_PROMPT_CHARS_BY_PROVIDER,
22
23
  getMaxVideoPromptChars,
23
24
  NEGATIVE_PROMPT_MAX,