@nodaro/shared 3.64.0 → 3.65.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 (205) hide show
  1. package/dist/{chunk-PJJAZQVZ.js → chunk-222QM7CO.js} +3 -3
  2. package/dist/{chunk-PJJAZQVZ.js.map → chunk-222QM7CO.js.map} +1 -1
  3. package/dist/chunk-27HA6YOL.cjs +377 -0
  4. package/dist/chunk-27HA6YOL.cjs.map +1 -0
  5. package/dist/{chunk-TTGZ2L3O.js → chunk-2NKF476Z.js} +3 -3
  6. package/dist/{chunk-TTGZ2L3O.js.map → chunk-2NKF476Z.js.map} +1 -1
  7. package/dist/chunk-3AU52TSW.js +143 -0
  8. package/dist/chunk-3AU52TSW.js.map +1 -0
  9. package/dist/{chunk-7AJGUI7L.cjs → chunk-5NVGKXJV.cjs} +34 -17
  10. package/dist/chunk-5NVGKXJV.cjs.map +1 -0
  11. package/dist/{chunk-3AYM47GW.js → chunk-5SSMPYE5.js} +99 -9
  12. package/dist/chunk-5SSMPYE5.js.map +1 -0
  13. package/dist/{chunk-KHH54GRP.cjs → chunk-6ET3KDO4.cjs} +15 -338
  14. package/dist/chunk-6ET3KDO4.cjs.map +1 -0
  15. package/dist/{chunk-ACZZHHFZ.cjs → chunk-6OSIOVF7.cjs} +44 -22
  16. package/dist/chunk-6OSIOVF7.cjs.map +1 -0
  17. package/dist/{chunk-OBOOHG3N.js → chunk-6X5PBAC4.js} +3 -3
  18. package/dist/{chunk-OBOOHG3N.js.map → chunk-6X5PBAC4.js.map} +1 -1
  19. package/dist/chunk-7BN4EDIC.cjs +185 -0
  20. package/dist/chunk-7BN4EDIC.cjs.map +1 -0
  21. package/dist/{chunk-IYSOVS7O.js → chunk-7OWXHW7Z.js} +31 -13
  22. package/dist/chunk-7OWXHW7Z.js.map +1 -0
  23. package/dist/{chunk-ZI3QDUHO.js → chunk-AT53ZQUC.js} +3 -3
  24. package/dist/{chunk-ZI3QDUHO.js.map → chunk-AT53ZQUC.js.map} +1 -1
  25. package/dist/{chunk-SHH2T4CR.js → chunk-BSTAAGLY.js} +3 -3
  26. package/dist/{chunk-SHH2T4CR.js.map → chunk-BSTAAGLY.js.map} +1 -1
  27. package/dist/{chunk-DZ4IOP3Q.js → chunk-CW6MMQNO.js} +277 -3
  28. package/dist/chunk-CW6MMQNO.js.map +1 -0
  29. package/dist/{chunk-Q2Y4JHF7.js → chunk-D5Y3EYRM.js} +5 -5
  30. package/dist/{chunk-Q2Y4JHF7.js.map → chunk-D5Y3EYRM.js.map} +1 -1
  31. package/dist/{chunk-EXEVT6D2.cjs → chunk-DQ2PARNH.cjs} +5 -5
  32. package/dist/{chunk-EXEVT6D2.cjs.map → chunk-DQ2PARNH.cjs.map} +1 -1
  33. package/dist/{chunk-OOZW2MM6.cjs → chunk-E66HSC2E.cjs} +9 -9
  34. package/dist/{chunk-OOZW2MM6.cjs.map → chunk-E66HSC2E.cjs.map} +1 -1
  35. package/dist/{chunk-NIAFR5EE.js → chunk-FGBGKBML.js} +32 -3
  36. package/dist/chunk-FGBGKBML.js.map +1 -0
  37. package/dist/{chunk-5OBTGNUQ.cjs → chunk-FI3HJZWM.cjs} +294 -2
  38. package/dist/chunk-FI3HJZWM.cjs.map +1 -0
  39. package/dist/{chunk-SPAHI7DY.cjs → chunk-FJZTQTF4.cjs} +4 -4
  40. package/dist/{chunk-SPAHI7DY.cjs.map → chunk-FJZTQTF4.cjs.map} +1 -1
  41. package/dist/{chunk-J6B7J73J.cjs → chunk-GJ3D5X4X.cjs} +49 -49
  42. package/dist/{chunk-J6B7J73J.cjs.map → chunk-GJ3D5X4X.cjs.map} +1 -1
  43. package/dist/{chunk-KB2SQAR3.js → chunk-H745DQ6V.js} +3 -3
  44. package/dist/{chunk-KB2SQAR3.js.map → chunk-H745DQ6V.js.map} +1 -1
  45. package/dist/{chunk-7KQ6W5DS.js → chunk-HAH2F7LT.js} +4 -4
  46. package/dist/{chunk-7KQ6W5DS.js.map → chunk-HAH2F7LT.js.map} +1 -1
  47. package/dist/{chunk-HDPJNNMF.cjs → chunk-JQMFJAYU.cjs} +21 -21
  48. package/dist/{chunk-HDPJNNMF.cjs.map → chunk-JQMFJAYU.cjs.map} +1 -1
  49. package/dist/{chunk-D4KWNDPH.cjs → chunk-JYU5EIRM.cjs} +12 -12
  50. package/dist/{chunk-D4KWNDPH.cjs.map → chunk-JYU5EIRM.cjs.map} +1 -1
  51. package/dist/{chunk-AZNZ5WNZ.cjs → chunk-K6RIN3LW.cjs} +142 -45
  52. package/dist/chunk-K6RIN3LW.cjs.map +1 -0
  53. package/dist/{chunk-YQV53HRR.cjs → chunk-KTCEKGBJ.cjs} +7 -7
  54. package/dist/{chunk-YQV53HRR.cjs.map → chunk-KTCEKGBJ.cjs.map} +1 -1
  55. package/dist/{chunk-W6VJAUGM.cjs → chunk-KWYS4IIM.cjs} +83 -37
  56. package/dist/chunk-KWYS4IIM.cjs.map +1 -0
  57. package/dist/{chunk-GTWUS6MQ.cjs → chunk-MIT2USTS.cjs} +61 -61
  58. package/dist/{chunk-GTWUS6MQ.cjs.map → chunk-MIT2USTS.cjs.map} +1 -1
  59. package/dist/{chunk-Y4GCJJPF.cjs → chunk-NYZQOIXJ.cjs} +35 -2
  60. package/dist/chunk-NYZQOIXJ.cjs.map +1 -0
  61. package/dist/{chunk-FHGRKQVZ.cjs → chunk-PGDR7CO3.cjs} +8 -8
  62. package/dist/{chunk-FHGRKQVZ.cjs.map → chunk-PGDR7CO3.cjs.map} +1 -1
  63. package/dist/{chunk-W7KHHNZR.js → chunk-PL7AQQV7.js} +53 -9
  64. package/dist/chunk-PL7AQQV7.js.map +1 -0
  65. package/dist/chunk-Q4YOLT4M.js +164 -0
  66. package/dist/chunk-Q4YOLT4M.js.map +1 -0
  67. package/dist/{chunk-CHS2SIP6.cjs → chunk-R5ILCNCC.cjs} +90 -76
  68. package/dist/chunk-R5ILCNCC.cjs.map +1 -0
  69. package/dist/chunk-RP4KQUNU.cjs +168 -0
  70. package/dist/chunk-RP4KQUNU.cjs.map +1 -0
  71. package/dist/{chunk-CHTZZRAL.cjs → chunk-SPU7MUWE.cjs} +6 -6
  72. package/dist/{chunk-CHTZZRAL.cjs.map → chunk-SPU7MUWE.cjs.map} +1 -1
  73. package/dist/{chunk-VPTA4Z7G.js → chunk-ST7OBB5J.js} +5 -5
  74. package/dist/{chunk-VPTA4Z7G.js.map → chunk-ST7OBB5J.js.map} +1 -1
  75. package/dist/{chunk-TPQJKS7D.js → chunk-V5NLQ4L5.js} +21 -7
  76. package/dist/{chunk-CHS2SIP6.cjs.map → chunk-V5NLQ4L5.js.map} +1 -1
  77. package/dist/{chunk-QYU7J5EQ.js → chunk-V6OXSXIX.js} +29 -18
  78. package/dist/chunk-V6OXSXIX.js.map +1 -0
  79. package/dist/{chunk-T2OVDF2M.cjs → chunk-WQMPIURW.cjs} +6 -6
  80. package/dist/{chunk-T2OVDF2M.cjs.map → chunk-WQMPIURW.cjs.map} +1 -1
  81. package/dist/{chunk-67CMMTLN.cjs → chunk-WZG6GZIL.cjs} +4 -4
  82. package/dist/{chunk-67CMMTLN.cjs.map → chunk-WZG6GZIL.cjs.map} +1 -1
  83. package/dist/{chunk-36VWLB4J.js → chunk-XJANKTIL.js} +3 -3
  84. package/dist/{chunk-36VWLB4J.js.map → chunk-XJANKTIL.js.map} +1 -1
  85. package/dist/{chunk-O7RZRUMZ.js → chunk-XJWED257.js} +14 -309
  86. package/dist/chunk-XJWED257.js.map +1 -0
  87. package/dist/chunk-XSSLNINL.js +346 -0
  88. package/dist/chunk-XSSLNINL.js.map +1 -0
  89. package/dist/{chunk-O4RPXBDZ.cjs → chunk-YD4XY74W.cjs} +8 -8
  90. package/dist/{chunk-O4RPXBDZ.cjs.map → chunk-YD4XY74W.cjs.map} +1 -1
  91. package/dist/{chunk-SXHHLZ22.js → chunk-YMZUE2IX.js} +9 -9
  92. package/dist/{chunk-SXHHLZ22.js.map → chunk-YMZUE2IX.js.map} +1 -1
  93. package/dist/{chunk-4IUE2JB7.js → chunk-Z77M7Q2R.js} +3 -3
  94. package/dist/{chunk-4IUE2JB7.js.map → chunk-Z77M7Q2R.js.map} +1 -1
  95. package/dist/{chunk-3KTWYYCN.js → chunk-ZSRXY5YT.js} +3 -3
  96. package/dist/{chunk-3KTWYYCN.js.map → chunk-ZSRXY5YT.js.map} +1 -1
  97. package/dist/entries/apps.cjs +42 -42
  98. package/dist/entries/apps.js +7 -7
  99. package/dist/entries/captions.d.cts +1 -1
  100. package/dist/entries/captions.d.ts +1 -1
  101. package/dist/entries/credits.cjs +230 -214
  102. package/dist/entries/credits.d.cts +51 -14
  103. package/dist/entries/credits.d.ts +51 -14
  104. package/dist/entries/credits.js +10 -10
  105. package/dist/entries/entities.cjs +202 -193
  106. package/dist/entries/entities.d.cts +44 -9
  107. package/dist/entries/entities.d.ts +44 -9
  108. package/dist/entries/entities.js +2 -1
  109. package/dist/entries/llm-models.cjs +86 -62
  110. package/dist/entries/llm-models.d.cts +46 -15
  111. package/dist/entries/llm-models.d.ts +46 -15
  112. package/dist/entries/llm-models.js +2 -2
  113. package/dist/entries/media.cjs +79 -63
  114. package/dist/entries/media.d.cts +154 -1
  115. package/dist/entries/media.d.ts +154 -1
  116. package/dist/entries/media.js +1 -1
  117. package/dist/entries/model-catalog.cjs +175 -119
  118. package/dist/entries/model-catalog.d.cts +4 -54
  119. package/dist/entries/model-catalog.d.ts +4 -54
  120. package/dist/entries/model-catalog.js +4 -4
  121. package/dist/entries/models.cjs +491 -358
  122. package/dist/entries/models.d.cts +86 -7
  123. package/dist/entries/models.d.ts +86 -7
  124. package/dist/entries/models.js +6 -5
  125. package/dist/entries/nodes.cjs +212 -212
  126. package/dist/entries/nodes.d.cts +1 -1
  127. package/dist/entries/nodes.d.ts +1 -1
  128. package/dist/entries/nodes.js +8 -8
  129. package/dist/entries/pipeline.cjs +153 -153
  130. package/dist/entries/pipeline.d.cts +3 -3
  131. package/dist/entries/pipeline.d.ts +3 -3
  132. package/dist/entries/pipeline.js +3 -3
  133. package/dist/entries/social.cjs +177 -177
  134. package/dist/entries/social.js +2 -2
  135. package/dist/entries/ugc.cjs +71 -71
  136. package/dist/entries/ugc.js +4 -4
  137. package/dist/entries/video.cjs +174 -145
  138. package/dist/entries/video.d.cts +114 -2
  139. package/dist/entries/video.d.ts +114 -2
  140. package/dist/entries/video.js +7 -6
  141. package/dist/entries/workflow.d.cts +1 -1
  142. package/dist/entries/workflow.d.ts +1 -1
  143. package/dist/index.cjs +2074 -1793
  144. package/dist/index.d.cts +10 -9
  145. package/dist/index.d.ts +10 -9
  146. package/dist/index.js +24 -23
  147. package/dist/{model-catalog-Cf9fkEUp.d.ts → model-catalog-BoUKGFNl.d.cts} +167 -1
  148. package/dist/{model-catalog-Cf9fkEUp.d.cts → model-catalog-BoUKGFNl.d.ts} +167 -1
  149. package/dist/{model-constants-BxjiWVQ9.d.ts → model-constants-BElS3AeE.d.ts} +55 -6
  150. package/dist/{model-constants-C_Nyft_i.d.cts → model-constants-CpQz1bGa.d.cts} +55 -6
  151. package/dist/tts-capabilities-BtnDWK9K.d.ts +133 -0
  152. package/dist/tts-capabilities-C52UccTI.d.cts +133 -0
  153. package/package.json +1 -1
  154. package/src/__tests__/dialogue-capabilities.test.ts +167 -6
  155. package/src/__tests__/extend-providers.test.ts +87 -0
  156. package/src/__tests__/kling4-catalog.test.ts +1 -1
  157. package/src/__tests__/llm-models.test.ts +41 -4
  158. package/src/__tests__/speech-pricing.test.ts +62 -1
  159. package/src/__tests__/tts-capabilities.test.ts +160 -4
  160. package/src/__tests__/video-analysis-pricing.test.ts +13 -1
  161. package/src/__tests__/video-subjects.test.ts +192 -0
  162. package/src/__tests__/wired-character-names.test.ts +142 -0
  163. package/src/credit-estimators/index.ts +4 -0
  164. package/src/credit-estimators/speech.ts +57 -9
  165. package/src/credit-identifiers.ts +48 -13
  166. package/src/dialogue-capabilities.ts +220 -3
  167. package/src/dubbing-structure.ts +186 -0
  168. package/src/entries/entities.ts +2 -0
  169. package/src/entries/llm-models.ts +7 -0
  170. package/src/entries/media.ts +3 -1
  171. package/src/entries/model-catalog.ts +17 -0
  172. package/src/entries/models.ts +39 -0
  173. package/src/entries/video.ts +8 -1
  174. package/src/gemini-tts.ts +144 -0
  175. package/src/llm-models.ts +71 -21
  176. package/src/model-catalog.ts +259 -0
  177. package/src/model-constants.ts +101 -8
  178. package/src/tts-capabilities.ts +193 -1
  179. package/src/video-analysis-pricing.ts +11 -0
  180. package/src/video-character-refs.ts +160 -3
  181. package/src/wired-character-names.ts +134 -18
  182. package/src/wired-character-video-subjects.ts +63 -0
  183. package/dist/chunk-3AYM47GW.js.map +0 -1
  184. package/dist/chunk-5OBTGNUQ.cjs.map +0 -1
  185. package/dist/chunk-6YIV37V7.js +0 -31
  186. package/dist/chunk-6YIV37V7.js.map +0 -1
  187. package/dist/chunk-7AJGUI7L.cjs.map +0 -1
  188. package/dist/chunk-ACZZHHFZ.cjs.map +0 -1
  189. package/dist/chunk-AZNZ5WNZ.cjs.map +0 -1
  190. package/dist/chunk-DZ4IOP3Q.js.map +0 -1
  191. package/dist/chunk-IYSOVS7O.js.map +0 -1
  192. package/dist/chunk-KHH54GRP.cjs.map +0 -1
  193. package/dist/chunk-NIAFR5EE.js.map +0 -1
  194. package/dist/chunk-O7RZRUMZ.js.map +0 -1
  195. package/dist/chunk-QYU7J5EQ.js.map +0 -1
  196. package/dist/chunk-S3UGLZSF.js +0 -42
  197. package/dist/chunk-S3UGLZSF.js.map +0 -1
  198. package/dist/chunk-TPQJKS7D.js.map +0 -1
  199. package/dist/chunk-TQW3R44P.cjs +0 -38
  200. package/dist/chunk-TQW3R44P.cjs.map +0 -1
  201. package/dist/chunk-VZ6TE23U.cjs +0 -54
  202. package/dist/chunk-VZ6TE23U.cjs.map +0 -1
  203. package/dist/chunk-W6VJAUGM.cjs.map +0 -1
  204. package/dist/chunk-W7KHHNZR.js.map +0 -1
  205. package/dist/chunk-Y4GCJJPF.cjs.map +0 -1
@@ -48,6 +48,16 @@ interface VideoCharacterReference {
48
48
  * positive `voices` cap take it.
49
49
  */
50
50
  voice?: VideoCharacterVoice;
51
+ /**
52
+ * A short single-shot clip of this character (public URL). On a model with a
53
+ * positive `videoCharacters` cap (Kling 4.0, Kling 4.0 Flash) the character
54
+ * becomes a VIDEO subject made from this clip instead of an image subject.
55
+ * The clip rides as one more reference video ({@link seatCharacterVideos}),
56
+ * so it is measured, capped and priced exactly as a reference video is; its
57
+ * own length must fit `VIDEO_CHARACTER_CLIP_DURATION_LIMITS`. Any other model
58
+ * refuses it.
59
+ */
60
+ videoUrl?: string;
51
61
  }
52
62
  /** Zod `.max()` ceiling for the wire field — the widest cap any provider declares. */
53
63
  declare const VIDEO_CHARACTER_REFS_WIRE_MAX: number;
@@ -63,6 +73,71 @@ declare const VIDEO_CHARACTER_VOICE_DESCRIPTION_MAX = 2000;
63
73
  declare const VIDEO_CHARACTER_VOICE_EXAMPLE_MAX = 120;
64
74
  /** How many character references the provider takes; 0 = none (or unknown). */
65
75
  declare function videoCharacterRefCap(provider: string | undefined): number;
76
+ /** How many characters may be VIDEO subjects (a `videoUrl` clip) on the provider; 0 = none. */
77
+ declare function videoCharacterVideoCap(provider: string | undefined): number;
78
+ /** Every provider that takes video subjects, in declaration order. */
79
+ declare function videoCharacterVideoProviders(): string[];
80
+ /** The clips a set of character references carries (`videoUrl`, trimmed, non-empty), in order. */
81
+ declare function characterVideoUrls(characterReferences: readonly unknown[] | undefined): string[];
82
+ /**
83
+ * Whether the provider bills a character's video subject as reference-video
84
+ * seconds (`videoCharactersBillAsReferenceVideo`: Kling 4.0). On any other
85
+ * model that takes video subjects (Kling 4.0 Flash, measured, decided
86
+ * 2026-11-14) the subject is priced like an image subject.
87
+ */
88
+ declare function videoCharacterClipsBilledAsReferenceVideo(provider: string | undefined): boolean;
89
+ /**
90
+ * The reference videos a run is PRICED on: `referenceVideoUrls` as sent, less
91
+ * — on a model that does not bill video subjects as reference video
92
+ * ({@link videoCharacterClipsBilledAsReferenceVideo}) — the seats that are a
93
+ * character's clip. Those seats still count toward the model's video cap and
94
+ * the reference videos' total length (`seatCharacterVideos`, the duration
95
+ * check); they only leave the price. The same value when nothing leaves it.
96
+ * Every price path reads it: the routes' credit guard and `POST /v1/quote`,
97
+ * the workflow reservation, the estimates and the completion settlement.
98
+ */
99
+ declare function pricedReferenceVideoUrls(args: {
100
+ provider: string | undefined;
101
+ referenceVideoUrls: readonly unknown[] | undefined;
102
+ characterReferences: readonly unknown[] | undefined;
103
+ }): readonly unknown[] | undefined;
104
+ /** A refusal from {@link seatCharacterVideos}: a finished, user-facing sentence. */
105
+ interface CharacterVideoSeatProblem {
106
+ code: "character_video_unsupported" | "character_videos_over_limit" | "character_video_shared" | "reference_videos_over_limit";
107
+ message: string;
108
+ }
109
+ /**
110
+ * The reference-video list a run sends once its characters' clips are seated
111
+ * in it — the ONE rule both video routes (a precheck, before the duration
112
+ * check, the quote and any reservation) and the workflow run (the payload
113
+ * builder) apply, so a video subject's clip is measured, capped, priced, held
114
+ * and settled exactly as a reference video is (KIE bills video subjects as
115
+ * reference-video seconds, summed). The provider runner then takes the seat
116
+ * back out of the reference videos and sends it as the character's subject.
117
+ *
118
+ * - No clip: the list as it came (the same value).
119
+ * - A clip already in the list (also wired as a plain reference video) keeps
120
+ * its seat, and becomes the subject only; any other is appended, in
121
+ * character order, after the reference videos.
122
+ * - Refused: a model that takes no video subjects; more clips than its
123
+ * `videoCharacters` cap; two characters with the same clip; reference
124
+ * videos plus clips over its `videos` cap (the provider counts both in one
125
+ * cap, and a clip past it would be neither measured nor sent).
126
+ * - On a model that takes video subjects (one shared cap), plain reference
127
+ * videos alone over that cap are refused too, instead of the extra ones
128
+ * being left out without a word (decided 2026-11-13). Any other model's
129
+ * list is not judged here.
130
+ */
131
+ declare function seatCharacterVideos(args: {
132
+ provider: string | undefined;
133
+ referenceVideoUrls: readonly unknown[] | undefined;
134
+ characterReferences: readonly unknown[] | undefined;
135
+ }): {
136
+ ok: true;
137
+ referenceVideoUrls: readonly unknown[] | undefined;
138
+ } | ({
139
+ ok: false;
140
+ } & CharacterVideoSeatProblem);
66
141
  /** How many DISTINCT voice personas the provider takes per request; 0 = none. */
67
142
  declare function videoCharacterVoiceCap(provider: string | undefined): number;
68
143
  /**
@@ -133,7 +208,44 @@ declare function videoCharacterRefProblem(args: {
133
208
  * image still yields a reference — the provider decides (Kling keeps it a
134
209
  * reference image).
135
210
  */
136
- declare function characterReferencesFromWired(refs: readonly ConnectedReference[]): VideoCharacterReference[];
211
+ declare function characterReferencesFromWired(refs: readonly ConnectedReference[],
212
+ /**
213
+ * The clip each wired character carries, by its slug (`wiredCharacterVideoUrls`):
214
+ * pass it only for a model that takes video subjects. Absent = none.
215
+ */
216
+ videoBySlug?: ReadonlyMap<string, string>): VideoCharacterReference[];
217
+
218
+ type GraphNode = {
219
+ readonly id: string;
220
+ readonly type?: string | null;
221
+ readonly data?: unknown;
222
+ };
223
+ type GraphEdge = {
224
+ readonly source: string;
225
+ readonly target: string;
226
+ readonly sourceHandle?: string | null;
227
+ };
228
+ /**
229
+ * The clips a Generate Video run on `provider` sends as its characters' video
230
+ * subjects (decided 2026-11-13), in the order the run seats them — read off the
231
+ * graph without building the run, for an estimate that must price exactly what
232
+ * the run sends:
233
+ *
234
+ * - none on a model that takes no video subjects (or no named subjects at all);
235
+ * - the characters as the run groups them (`characterReferencesFromWired`): one
236
+ * per wired character by the slug it goes by, in wire order of its first node
237
+ * that gives an image — a node with no image at all makes no character, so
238
+ * its clip is not sent;
239
+ * - only the first `videoCharacterRefCap(provider)` characters (the run's slice);
240
+ * - each character's clip as `wiredCharacterVideoUrls` gives it (its first
241
+ * node's, in wire order).
242
+ *
243
+ * The workflow run itself builds the same list through
244
+ * `characterReferencesFromWired(expandWiredCharacterRefs(…), clips).slice(…)`;
245
+ * a parity test holds the two together. Only Generate Video carries video
246
+ * subjects — the older Image to Video / Text to Video nodes never do.
247
+ */
248
+ declare function wiredCharacterSubjectClips(consumerId: string, nodes: ReadonlyArray<GraphNode>, edges: ReadonlyArray<GraphEdge>, provider: string): string[];
137
249
 
138
250
  /**
139
251
  * How far past a whole second a delivered clip's container may read without
@@ -2206,4 +2318,4 @@ declare function resolveFrameDelivery(args: {
2206
2318
  supportsReferenceImages: boolean;
2207
2319
  }): Exclude<FrameDelivery, "auto">;
2208
2320
 
2209
- export { AUTO_DOWNLOAD_MAX_SEC, type AnalyzedScene, type AudioLayer, CONTAINER_OVERHANG_SEC, type ClipLook, DEFAULT_FRAME_DELIVERY, DEFAULT_FRAME_FIT, DEFAULT_VIDEO_OVERLAY_LAYER, DIRECT_VIDEO_EXTENSIONS, type EntitySlot, type EntitySlotOwner, type ExpandedVideoOverlayRequest, FRAME_DELIVERIES, FRAME_DELIVERY_BY_PROVIDER, FRAME_FITS, FRAME_FIT_STRETCH_TOLERANCE, type FrameDelivery, type FrameFit, type FrameFitPlan, INSTAGRAM_HOSTS, MAX_VIDEO_LINK_INPUT_CHARS, type PlacedVideoOverlayVideoInput, SLOT_TOKEN_RE, SOCIAL_VIDEO_HOSTS, type SlotVariation, VIDEO_ANALYSIS_AUDIO_MODES, VIDEO_ANALYSIS_CLIP_TRANSITIONS_IN, VIDEO_ANALYSIS_DEFAULT_VARIATION, VIDEO_ANALYSIS_ENTITY_SOURCES, VIDEO_ANALYSIS_FACELESS_ANGLES, VIDEO_ANALYSIS_MAX_SCENE_SEC, VIDEO_ANALYSIS_MAX_VARIATIONS, VIDEO_ANALYSIS_SHOT_ANGLES, VIDEO_ANALYSIS_SPEED_EFFECTS, VIDEO_ANALYSIS_STORY_JUMPS, VIDEO_ANALYSIS_TEXT_KINDS, VIDEO_ANALYSIS_TIMES_OF_DAY, VIDEO_ANALYSIS_TRANSITIONS, VIDEO_ANALYSIS_VARIATION_SLUGS, VIDEO_ANALYSIS_VISUAL_EFFECTS, VIDEO_CHARACTER_DESCRIPTION_MAX, VIDEO_CHARACTER_EXTRA_IMAGES_MAX, VIDEO_CHARACTER_NAME_MAX, VIDEO_CHARACTER_REFS_WIRE_MAX, VIDEO_CHARACTER_VOICE_DESCRIPTION_MAX, VIDEO_CHARACTER_VOICE_EXAMPLE_MAX, VIDEO_LINK_AUDIO_CONSUMER_TYPES, VIDEO_LINK_DERIVED_FIELDS, VIDEO_LINK_TOLERANT_CONSUMER_TYPES, VIDEO_OUTPUT_CANVAS, VIDEO_OVERLAY_ANIMATION_MIN_SCALE, VIDEO_OVERLAY_ANIMATION_SEC, VIDEO_OVERLAY_ASPECT_BOUNDS, VIDEO_OVERLAY_BADGE_INSET, VIDEO_OVERLAY_BADGE_WIDTH, VIDEO_OVERLAY_BOUNDS, VIDEO_OVERLAY_BOX_FIELDS, VIDEO_OVERLAY_CORNERS, VIDEO_OVERLAY_DEFAULT_BACKGROUND, VIDEO_OVERLAY_ERROR_CODES, VIDEO_OVERLAY_FITS, VIDEO_OVERLAY_HANDLE_IDS, VIDEO_OVERLAY_LAYER_PLAN_HANDLE, VIDEO_OVERLAY_LAYOUT_IDS, VIDEO_OVERLAY_MAX_COMPOSITION_KEY_LENGTH, VIDEO_OVERLAY_MAX_LAYERS, VIDEO_OVERLAY_MAX_LAYER_VIDEO_BYTES, VIDEO_OVERLAY_MAX_TIME_SEC, VIDEO_OVERLAY_MAX_TOTAL_LAYER_BYTES, VIDEO_OVERLAY_MAX_VIDEO_LAYERS, VIDEO_OVERLAY_OUTPUT_ASPECTS, VIDEO_OVERLAY_PIP_INSET, VIDEO_OVERLAY_PIP_WIDTH, VIDEO_OVERLAY_PRESETS, VIDEO_OVERLAY_PRESET_IDS, VIDEO_OVERLAY_VIDEO_MAX_BASE_SEC, VIDEO_OVERLAY_VOLUME_BOUNDS, VIDEO_OVERLAY_WARNING_CODES, type VideoAnalysisAudioMode, type VideoAnalysisClipTransitionIn, type VideoAnalysisEntitySource, type VideoAnalysisResult, type VideoAnalysisShotAngle, type VideoAnalysisSpeedEffect, type VideoAnalysisTextKind, type VideoAnalysisTransition, type VideoAnalysisVisualEffect, type VideoCharacterRefProblem, type VideoCharacterReference, type VideoCharacterVoice, type VideoLinkGraphEdge, type VideoLinkGraphNode, type VideoLinkInputProblem, type VideoLinkNeed, type VideoLinkNodeFields, type VideoLinkPlatform, type VideoOutputCanvas, type VideoOverlayBaseBoxSpec, type VideoOverlayBox, type VideoOverlayBoxInput, type VideoOverlayCanvas, type VideoOverlayComposition, type VideoOverlayCorner, type VideoOverlayErrorCode, type VideoOverlayFit, type VideoOverlayGeometry, type VideoOverlayIssue, type VideoOverlayLayer, type VideoOverlayLayerInput, type VideoOverlayLayerSpec, type VideoOverlayLayoutFields, type VideoOverlayLayoutId, type VideoOverlayNodeFields, type VideoOverlayOrderable, type VideoOverlayOutputAspect, type VideoOverlayPlacedRect, type VideoOverlayPresetId, type VideoOverlayRect, type VideoOverlayRequest, type VideoOverlaySound, type VideoOverlayValidation, type VideoOverlayValidationInput, type VideoOverlayVideoPlacement, type VideoOverlayWarning, type VideoOverlayWarningCode, type VideoOverlayWireBeforeRun, type VideoOverlayWireMedium, type VideoOverlayWiredLayerKind, type VideoOverlayWiredSource, type WindowAnalysis, type WindowScene, YOUTUBE_HOSTS, YOUTUBE_MAX_HEIGHT, analyzedSceneSchema, applyVideoOverlayPreset, aspectRatioFromDims, assembleVideoOverlayRequest, centreCropToAspect, characterReferencesFromWired, clampVideoOverlayAspect, clearWiredVideoOverlayImageUrls, clipLookSchema, computeFrameFitPlan, declaredOutputMediaType, deriveSlotRefs, detectVideoLinkPlatform, dropStaleVideoLinkFields, dropUnknownBindings, dropUnknownSpeakers, editPlanSourceDurationSec, entitySlotSchema, evenVideoOverlayRect, expandVideoOverlayLayer, expandVideoOverlayLayout, expandVideoOverlayPresets, extractVideoDurationFromNode, firstVideoLayerIndex, formatVideoOverlayError, hasDrawableVideoOverlayBox, hasUrlParserHazard, hostnameMatchesAllowlist, inferMusicVideo, isDirectVideoFileUrl, isOversizedScene, isSocialVideoUrl, isVideoOverlayCorner, isVideoOverlayLayoutId, isVideoOverlayOutputAspect, isVideoOverlayPresetId, listColumnMediaType, measuredCanvasCombinations, mergeClipLook, minimalRatioDimensions, normalizeVideoOverlayNodes, parseAspectToken, parseVideoOverlayLayerPlan, placeVideoOverlayVideos, renderAnalyzedScene, resolveFrameDelivery, resolveFrameFitAspect, resolveOutputCanvas, resolveVideoLinkOutput, resolveVideoOverlayBaseRect, resolveVideoOverlayGeometry, resolveVideoOverlayStackRects, rewriteSceneBindings, rewriteSlotTokens, rewriteSpeakerSlots, slotVariationSchema, stripDerivedAnalysisFields, toCustomVideoOverlayLayer, uiAspectRatioFill, uiDurationFill, uiResolutionFill, unwrapUnresolvedTokens, validateVideoOverlayRequest, videoAnalysisResultSchema, videoCharacterDistinctVoices, videoCharacterRefCap, videoCharacterRefProblem, videoCharacterRefProviders, videoCharacterRefUnits, videoCharacterVoiceCap, videoCharacterVoiceKey, videoCharacterVoiceProblem, videoLinkDownloadedFile, videoLinkInputProblem, videoLinkNeedOf, videoLinkNeedsDownload, videoLinkPageUrl, videoLinkRunNeeds, videoOverlayCanvas, videoOverlayCompositionKey, videoOverlayHasVideoLayer, videoOverlayLayerLabel, videoOverlayLayoutNeedsAspect, videoOverlayLayoutNeedsVideoLayer, videoOverlayLayoutPlacesBase, videoOverlayPresetBox, videoOverlayRenderOrder, videoOverlaySlotOfHandle, videoOverlaySlotSources, videoOverlayWireMediumBeforeRun, videoOverlayWiredLayerKind, windowAnalysisSchema, withoutImpliedVideoOverlayAnimate };
2321
+ export { AUTO_DOWNLOAD_MAX_SEC, type AnalyzedScene, type AudioLayer, CONTAINER_OVERHANG_SEC, type CharacterVideoSeatProblem, type ClipLook, DEFAULT_FRAME_DELIVERY, DEFAULT_FRAME_FIT, DEFAULT_VIDEO_OVERLAY_LAYER, DIRECT_VIDEO_EXTENSIONS, type EntitySlot, type EntitySlotOwner, type ExpandedVideoOverlayRequest, FRAME_DELIVERIES, FRAME_DELIVERY_BY_PROVIDER, FRAME_FITS, FRAME_FIT_STRETCH_TOLERANCE, type FrameDelivery, type FrameFit, type FrameFitPlan, INSTAGRAM_HOSTS, MAX_VIDEO_LINK_INPUT_CHARS, type PlacedVideoOverlayVideoInput, SLOT_TOKEN_RE, SOCIAL_VIDEO_HOSTS, type SlotVariation, VIDEO_ANALYSIS_AUDIO_MODES, VIDEO_ANALYSIS_CLIP_TRANSITIONS_IN, VIDEO_ANALYSIS_DEFAULT_VARIATION, VIDEO_ANALYSIS_ENTITY_SOURCES, VIDEO_ANALYSIS_FACELESS_ANGLES, VIDEO_ANALYSIS_MAX_SCENE_SEC, VIDEO_ANALYSIS_MAX_VARIATIONS, VIDEO_ANALYSIS_SHOT_ANGLES, VIDEO_ANALYSIS_SPEED_EFFECTS, VIDEO_ANALYSIS_STORY_JUMPS, VIDEO_ANALYSIS_TEXT_KINDS, VIDEO_ANALYSIS_TIMES_OF_DAY, VIDEO_ANALYSIS_TRANSITIONS, VIDEO_ANALYSIS_VARIATION_SLUGS, VIDEO_ANALYSIS_VISUAL_EFFECTS, VIDEO_CHARACTER_DESCRIPTION_MAX, VIDEO_CHARACTER_EXTRA_IMAGES_MAX, VIDEO_CHARACTER_NAME_MAX, VIDEO_CHARACTER_REFS_WIRE_MAX, VIDEO_CHARACTER_VOICE_DESCRIPTION_MAX, VIDEO_CHARACTER_VOICE_EXAMPLE_MAX, VIDEO_LINK_AUDIO_CONSUMER_TYPES, VIDEO_LINK_DERIVED_FIELDS, VIDEO_LINK_TOLERANT_CONSUMER_TYPES, VIDEO_OUTPUT_CANVAS, VIDEO_OVERLAY_ANIMATION_MIN_SCALE, VIDEO_OVERLAY_ANIMATION_SEC, VIDEO_OVERLAY_ASPECT_BOUNDS, VIDEO_OVERLAY_BADGE_INSET, VIDEO_OVERLAY_BADGE_WIDTH, VIDEO_OVERLAY_BOUNDS, VIDEO_OVERLAY_BOX_FIELDS, VIDEO_OVERLAY_CORNERS, VIDEO_OVERLAY_DEFAULT_BACKGROUND, VIDEO_OVERLAY_ERROR_CODES, VIDEO_OVERLAY_FITS, VIDEO_OVERLAY_HANDLE_IDS, VIDEO_OVERLAY_LAYER_PLAN_HANDLE, VIDEO_OVERLAY_LAYOUT_IDS, VIDEO_OVERLAY_MAX_COMPOSITION_KEY_LENGTH, VIDEO_OVERLAY_MAX_LAYERS, VIDEO_OVERLAY_MAX_LAYER_VIDEO_BYTES, VIDEO_OVERLAY_MAX_TIME_SEC, VIDEO_OVERLAY_MAX_TOTAL_LAYER_BYTES, VIDEO_OVERLAY_MAX_VIDEO_LAYERS, VIDEO_OVERLAY_OUTPUT_ASPECTS, VIDEO_OVERLAY_PIP_INSET, VIDEO_OVERLAY_PIP_WIDTH, VIDEO_OVERLAY_PRESETS, VIDEO_OVERLAY_PRESET_IDS, VIDEO_OVERLAY_VIDEO_MAX_BASE_SEC, VIDEO_OVERLAY_VOLUME_BOUNDS, VIDEO_OVERLAY_WARNING_CODES, type VideoAnalysisAudioMode, type VideoAnalysisClipTransitionIn, type VideoAnalysisEntitySource, type VideoAnalysisResult, type VideoAnalysisShotAngle, type VideoAnalysisSpeedEffect, type VideoAnalysisTextKind, type VideoAnalysisTransition, type VideoAnalysisVisualEffect, type VideoCharacterRefProblem, type VideoCharacterReference, type VideoCharacterVoice, type VideoLinkGraphEdge, type VideoLinkGraphNode, type VideoLinkInputProblem, type VideoLinkNeed, type VideoLinkNodeFields, type VideoLinkPlatform, type VideoOutputCanvas, type VideoOverlayBaseBoxSpec, type VideoOverlayBox, type VideoOverlayBoxInput, type VideoOverlayCanvas, type VideoOverlayComposition, type VideoOverlayCorner, type VideoOverlayErrorCode, type VideoOverlayFit, type VideoOverlayGeometry, type VideoOverlayIssue, type VideoOverlayLayer, type VideoOverlayLayerInput, type VideoOverlayLayerSpec, type VideoOverlayLayoutFields, type VideoOverlayLayoutId, type VideoOverlayNodeFields, type VideoOverlayOrderable, type VideoOverlayOutputAspect, type VideoOverlayPlacedRect, type VideoOverlayPresetId, type VideoOverlayRect, type VideoOverlayRequest, type VideoOverlaySound, type VideoOverlayValidation, type VideoOverlayValidationInput, type VideoOverlayVideoPlacement, type VideoOverlayWarning, type VideoOverlayWarningCode, type VideoOverlayWireBeforeRun, type VideoOverlayWireMedium, type VideoOverlayWiredLayerKind, type VideoOverlayWiredSource, type WindowAnalysis, type WindowScene, YOUTUBE_HOSTS, YOUTUBE_MAX_HEIGHT, analyzedSceneSchema, applyVideoOverlayPreset, aspectRatioFromDims, assembleVideoOverlayRequest, centreCropToAspect, characterReferencesFromWired, characterVideoUrls, clampVideoOverlayAspect, clearWiredVideoOverlayImageUrls, clipLookSchema, computeFrameFitPlan, declaredOutputMediaType, deriveSlotRefs, detectVideoLinkPlatform, dropStaleVideoLinkFields, dropUnknownBindings, dropUnknownSpeakers, editPlanSourceDurationSec, entitySlotSchema, evenVideoOverlayRect, expandVideoOverlayLayer, expandVideoOverlayLayout, expandVideoOverlayPresets, extractVideoDurationFromNode, firstVideoLayerIndex, formatVideoOverlayError, hasDrawableVideoOverlayBox, hasUrlParserHazard, hostnameMatchesAllowlist, inferMusicVideo, isDirectVideoFileUrl, isOversizedScene, isSocialVideoUrl, isVideoOverlayCorner, isVideoOverlayLayoutId, isVideoOverlayOutputAspect, isVideoOverlayPresetId, listColumnMediaType, measuredCanvasCombinations, mergeClipLook, minimalRatioDimensions, normalizeVideoOverlayNodes, parseAspectToken, parseVideoOverlayLayerPlan, placeVideoOverlayVideos, pricedReferenceVideoUrls, renderAnalyzedScene, resolveFrameDelivery, resolveFrameFitAspect, resolveOutputCanvas, resolveVideoLinkOutput, resolveVideoOverlayBaseRect, resolveVideoOverlayGeometry, resolveVideoOverlayStackRects, rewriteSceneBindings, rewriteSlotTokens, rewriteSpeakerSlots, seatCharacterVideos, slotVariationSchema, stripDerivedAnalysisFields, toCustomVideoOverlayLayer, uiAspectRatioFill, uiDurationFill, uiResolutionFill, unwrapUnresolvedTokens, validateVideoOverlayRequest, videoAnalysisResultSchema, videoCharacterClipsBilledAsReferenceVideo, videoCharacterDistinctVoices, videoCharacterRefCap, videoCharacterRefProblem, videoCharacterRefProviders, videoCharacterRefUnits, videoCharacterVideoCap, videoCharacterVideoProviders, videoCharacterVoiceCap, videoCharacterVoiceKey, videoCharacterVoiceProblem, videoLinkDownloadedFile, videoLinkInputProblem, videoLinkNeedOf, videoLinkNeedsDownload, videoLinkPageUrl, videoLinkRunNeeds, videoOverlayCanvas, videoOverlayCompositionKey, videoOverlayHasVideoLayer, videoOverlayLayerLabel, videoOverlayLayoutNeedsAspect, videoOverlayLayoutNeedsVideoLayer, videoOverlayLayoutPlacesBase, videoOverlayPresetBox, videoOverlayRenderOrder, videoOverlaySlotOfHandle, videoOverlaySlotSources, videoOverlayWireMediumBeforeRun, videoOverlayWiredLayerKind, windowAnalysisSchema, wiredCharacterSubjectClips, withoutImpliedVideoOverlayAnimate };
@@ -48,6 +48,16 @@ interface VideoCharacterReference {
48
48
  * positive `voices` cap take it.
49
49
  */
50
50
  voice?: VideoCharacterVoice;
51
+ /**
52
+ * A short single-shot clip of this character (public URL). On a model with a
53
+ * positive `videoCharacters` cap (Kling 4.0, Kling 4.0 Flash) the character
54
+ * becomes a VIDEO subject made from this clip instead of an image subject.
55
+ * The clip rides as one more reference video ({@link seatCharacterVideos}),
56
+ * so it is measured, capped and priced exactly as a reference video is; its
57
+ * own length must fit `VIDEO_CHARACTER_CLIP_DURATION_LIMITS`. Any other model
58
+ * refuses it.
59
+ */
60
+ videoUrl?: string;
51
61
  }
52
62
  /** Zod `.max()` ceiling for the wire field — the widest cap any provider declares. */
53
63
  declare const VIDEO_CHARACTER_REFS_WIRE_MAX: number;
@@ -63,6 +73,71 @@ declare const VIDEO_CHARACTER_VOICE_DESCRIPTION_MAX = 2000;
63
73
  declare const VIDEO_CHARACTER_VOICE_EXAMPLE_MAX = 120;
64
74
  /** How many character references the provider takes; 0 = none (or unknown). */
65
75
  declare function videoCharacterRefCap(provider: string | undefined): number;
76
+ /** How many characters may be VIDEO subjects (a `videoUrl` clip) on the provider; 0 = none. */
77
+ declare function videoCharacterVideoCap(provider: string | undefined): number;
78
+ /** Every provider that takes video subjects, in declaration order. */
79
+ declare function videoCharacterVideoProviders(): string[];
80
+ /** The clips a set of character references carries (`videoUrl`, trimmed, non-empty), in order. */
81
+ declare function characterVideoUrls(characterReferences: readonly unknown[] | undefined): string[];
82
+ /**
83
+ * Whether the provider bills a character's video subject as reference-video
84
+ * seconds (`videoCharactersBillAsReferenceVideo`: Kling 4.0). On any other
85
+ * model that takes video subjects (Kling 4.0 Flash, measured, decided
86
+ * 2026-11-14) the subject is priced like an image subject.
87
+ */
88
+ declare function videoCharacterClipsBilledAsReferenceVideo(provider: string | undefined): boolean;
89
+ /**
90
+ * The reference videos a run is PRICED on: `referenceVideoUrls` as sent, less
91
+ * — on a model that does not bill video subjects as reference video
92
+ * ({@link videoCharacterClipsBilledAsReferenceVideo}) — the seats that are a
93
+ * character's clip. Those seats still count toward the model's video cap and
94
+ * the reference videos' total length (`seatCharacterVideos`, the duration
95
+ * check); they only leave the price. The same value when nothing leaves it.
96
+ * Every price path reads it: the routes' credit guard and `POST /v1/quote`,
97
+ * the workflow reservation, the estimates and the completion settlement.
98
+ */
99
+ declare function pricedReferenceVideoUrls(args: {
100
+ provider: string | undefined;
101
+ referenceVideoUrls: readonly unknown[] | undefined;
102
+ characterReferences: readonly unknown[] | undefined;
103
+ }): readonly unknown[] | undefined;
104
+ /** A refusal from {@link seatCharacterVideos}: a finished, user-facing sentence. */
105
+ interface CharacterVideoSeatProblem {
106
+ code: "character_video_unsupported" | "character_videos_over_limit" | "character_video_shared" | "reference_videos_over_limit";
107
+ message: string;
108
+ }
109
+ /**
110
+ * The reference-video list a run sends once its characters' clips are seated
111
+ * in it — the ONE rule both video routes (a precheck, before the duration
112
+ * check, the quote and any reservation) and the workflow run (the payload
113
+ * builder) apply, so a video subject's clip is measured, capped, priced, held
114
+ * and settled exactly as a reference video is (KIE bills video subjects as
115
+ * reference-video seconds, summed). The provider runner then takes the seat
116
+ * back out of the reference videos and sends it as the character's subject.
117
+ *
118
+ * - No clip: the list as it came (the same value).
119
+ * - A clip already in the list (also wired as a plain reference video) keeps
120
+ * its seat, and becomes the subject only; any other is appended, in
121
+ * character order, after the reference videos.
122
+ * - Refused: a model that takes no video subjects; more clips than its
123
+ * `videoCharacters` cap; two characters with the same clip; reference
124
+ * videos plus clips over its `videos` cap (the provider counts both in one
125
+ * cap, and a clip past it would be neither measured nor sent).
126
+ * - On a model that takes video subjects (one shared cap), plain reference
127
+ * videos alone over that cap are refused too, instead of the extra ones
128
+ * being left out without a word (decided 2026-11-13). Any other model's
129
+ * list is not judged here.
130
+ */
131
+ declare function seatCharacterVideos(args: {
132
+ provider: string | undefined;
133
+ referenceVideoUrls: readonly unknown[] | undefined;
134
+ characterReferences: readonly unknown[] | undefined;
135
+ }): {
136
+ ok: true;
137
+ referenceVideoUrls: readonly unknown[] | undefined;
138
+ } | ({
139
+ ok: false;
140
+ } & CharacterVideoSeatProblem);
66
141
  /** How many DISTINCT voice personas the provider takes per request; 0 = none. */
67
142
  declare function videoCharacterVoiceCap(provider: string | undefined): number;
68
143
  /**
@@ -133,7 +208,44 @@ declare function videoCharacterRefProblem(args: {
133
208
  * image still yields a reference — the provider decides (Kling keeps it a
134
209
  * reference image).
135
210
  */
136
- declare function characterReferencesFromWired(refs: readonly ConnectedReference[]): VideoCharacterReference[];
211
+ declare function characterReferencesFromWired(refs: readonly ConnectedReference[],
212
+ /**
213
+ * The clip each wired character carries, by its slug (`wiredCharacterVideoUrls`):
214
+ * pass it only for a model that takes video subjects. Absent = none.
215
+ */
216
+ videoBySlug?: ReadonlyMap<string, string>): VideoCharacterReference[];
217
+
218
+ type GraphNode = {
219
+ readonly id: string;
220
+ readonly type?: string | null;
221
+ readonly data?: unknown;
222
+ };
223
+ type GraphEdge = {
224
+ readonly source: string;
225
+ readonly target: string;
226
+ readonly sourceHandle?: string | null;
227
+ };
228
+ /**
229
+ * The clips a Generate Video run on `provider` sends as its characters' video
230
+ * subjects (decided 2026-11-13), in the order the run seats them — read off the
231
+ * graph without building the run, for an estimate that must price exactly what
232
+ * the run sends:
233
+ *
234
+ * - none on a model that takes no video subjects (or no named subjects at all);
235
+ * - the characters as the run groups them (`characterReferencesFromWired`): one
236
+ * per wired character by the slug it goes by, in wire order of its first node
237
+ * that gives an image — a node with no image at all makes no character, so
238
+ * its clip is not sent;
239
+ * - only the first `videoCharacterRefCap(provider)` characters (the run's slice);
240
+ * - each character's clip as `wiredCharacterVideoUrls` gives it (its first
241
+ * node's, in wire order).
242
+ *
243
+ * The workflow run itself builds the same list through
244
+ * `characterReferencesFromWired(expandWiredCharacterRefs(…), clips).slice(…)`;
245
+ * a parity test holds the two together. Only Generate Video carries video
246
+ * subjects — the older Image to Video / Text to Video nodes never do.
247
+ */
248
+ declare function wiredCharacterSubjectClips(consumerId: string, nodes: ReadonlyArray<GraphNode>, edges: ReadonlyArray<GraphEdge>, provider: string): string[];
137
249
 
138
250
  /**
139
251
  * How far past a whole second a delivered clip's container may read without
@@ -2206,4 +2318,4 @@ declare function resolveFrameDelivery(args: {
2206
2318
  supportsReferenceImages: boolean;
2207
2319
  }): Exclude<FrameDelivery, "auto">;
2208
2320
 
2209
- export { AUTO_DOWNLOAD_MAX_SEC, type AnalyzedScene, type AudioLayer, CONTAINER_OVERHANG_SEC, type ClipLook, DEFAULT_FRAME_DELIVERY, DEFAULT_FRAME_FIT, DEFAULT_VIDEO_OVERLAY_LAYER, DIRECT_VIDEO_EXTENSIONS, type EntitySlot, type EntitySlotOwner, type ExpandedVideoOverlayRequest, FRAME_DELIVERIES, FRAME_DELIVERY_BY_PROVIDER, FRAME_FITS, FRAME_FIT_STRETCH_TOLERANCE, type FrameDelivery, type FrameFit, type FrameFitPlan, INSTAGRAM_HOSTS, MAX_VIDEO_LINK_INPUT_CHARS, type PlacedVideoOverlayVideoInput, SLOT_TOKEN_RE, SOCIAL_VIDEO_HOSTS, type SlotVariation, VIDEO_ANALYSIS_AUDIO_MODES, VIDEO_ANALYSIS_CLIP_TRANSITIONS_IN, VIDEO_ANALYSIS_DEFAULT_VARIATION, VIDEO_ANALYSIS_ENTITY_SOURCES, VIDEO_ANALYSIS_FACELESS_ANGLES, VIDEO_ANALYSIS_MAX_SCENE_SEC, VIDEO_ANALYSIS_MAX_VARIATIONS, VIDEO_ANALYSIS_SHOT_ANGLES, VIDEO_ANALYSIS_SPEED_EFFECTS, VIDEO_ANALYSIS_STORY_JUMPS, VIDEO_ANALYSIS_TEXT_KINDS, VIDEO_ANALYSIS_TIMES_OF_DAY, VIDEO_ANALYSIS_TRANSITIONS, VIDEO_ANALYSIS_VARIATION_SLUGS, VIDEO_ANALYSIS_VISUAL_EFFECTS, VIDEO_CHARACTER_DESCRIPTION_MAX, VIDEO_CHARACTER_EXTRA_IMAGES_MAX, VIDEO_CHARACTER_NAME_MAX, VIDEO_CHARACTER_REFS_WIRE_MAX, VIDEO_CHARACTER_VOICE_DESCRIPTION_MAX, VIDEO_CHARACTER_VOICE_EXAMPLE_MAX, VIDEO_LINK_AUDIO_CONSUMER_TYPES, VIDEO_LINK_DERIVED_FIELDS, VIDEO_LINK_TOLERANT_CONSUMER_TYPES, VIDEO_OUTPUT_CANVAS, VIDEO_OVERLAY_ANIMATION_MIN_SCALE, VIDEO_OVERLAY_ANIMATION_SEC, VIDEO_OVERLAY_ASPECT_BOUNDS, VIDEO_OVERLAY_BADGE_INSET, VIDEO_OVERLAY_BADGE_WIDTH, VIDEO_OVERLAY_BOUNDS, VIDEO_OVERLAY_BOX_FIELDS, VIDEO_OVERLAY_CORNERS, VIDEO_OVERLAY_DEFAULT_BACKGROUND, VIDEO_OVERLAY_ERROR_CODES, VIDEO_OVERLAY_FITS, VIDEO_OVERLAY_HANDLE_IDS, VIDEO_OVERLAY_LAYER_PLAN_HANDLE, VIDEO_OVERLAY_LAYOUT_IDS, VIDEO_OVERLAY_MAX_COMPOSITION_KEY_LENGTH, VIDEO_OVERLAY_MAX_LAYERS, VIDEO_OVERLAY_MAX_LAYER_VIDEO_BYTES, VIDEO_OVERLAY_MAX_TIME_SEC, VIDEO_OVERLAY_MAX_TOTAL_LAYER_BYTES, VIDEO_OVERLAY_MAX_VIDEO_LAYERS, VIDEO_OVERLAY_OUTPUT_ASPECTS, VIDEO_OVERLAY_PIP_INSET, VIDEO_OVERLAY_PIP_WIDTH, VIDEO_OVERLAY_PRESETS, VIDEO_OVERLAY_PRESET_IDS, VIDEO_OVERLAY_VIDEO_MAX_BASE_SEC, VIDEO_OVERLAY_VOLUME_BOUNDS, VIDEO_OVERLAY_WARNING_CODES, type VideoAnalysisAudioMode, type VideoAnalysisClipTransitionIn, type VideoAnalysisEntitySource, type VideoAnalysisResult, type VideoAnalysisShotAngle, type VideoAnalysisSpeedEffect, type VideoAnalysisTextKind, type VideoAnalysisTransition, type VideoAnalysisVisualEffect, type VideoCharacterRefProblem, type VideoCharacterReference, type VideoCharacterVoice, type VideoLinkGraphEdge, type VideoLinkGraphNode, type VideoLinkInputProblem, type VideoLinkNeed, type VideoLinkNodeFields, type VideoLinkPlatform, type VideoOutputCanvas, type VideoOverlayBaseBoxSpec, type VideoOverlayBox, type VideoOverlayBoxInput, type VideoOverlayCanvas, type VideoOverlayComposition, type VideoOverlayCorner, type VideoOverlayErrorCode, type VideoOverlayFit, type VideoOverlayGeometry, type VideoOverlayIssue, type VideoOverlayLayer, type VideoOverlayLayerInput, type VideoOverlayLayerSpec, type VideoOverlayLayoutFields, type VideoOverlayLayoutId, type VideoOverlayNodeFields, type VideoOverlayOrderable, type VideoOverlayOutputAspect, type VideoOverlayPlacedRect, type VideoOverlayPresetId, type VideoOverlayRect, type VideoOverlayRequest, type VideoOverlaySound, type VideoOverlayValidation, type VideoOverlayValidationInput, type VideoOverlayVideoPlacement, type VideoOverlayWarning, type VideoOverlayWarningCode, type VideoOverlayWireBeforeRun, type VideoOverlayWireMedium, type VideoOverlayWiredLayerKind, type VideoOverlayWiredSource, type WindowAnalysis, type WindowScene, YOUTUBE_HOSTS, YOUTUBE_MAX_HEIGHT, analyzedSceneSchema, applyVideoOverlayPreset, aspectRatioFromDims, assembleVideoOverlayRequest, centreCropToAspect, characterReferencesFromWired, clampVideoOverlayAspect, clearWiredVideoOverlayImageUrls, clipLookSchema, computeFrameFitPlan, declaredOutputMediaType, deriveSlotRefs, detectVideoLinkPlatform, dropStaleVideoLinkFields, dropUnknownBindings, dropUnknownSpeakers, editPlanSourceDurationSec, entitySlotSchema, evenVideoOverlayRect, expandVideoOverlayLayer, expandVideoOverlayLayout, expandVideoOverlayPresets, extractVideoDurationFromNode, firstVideoLayerIndex, formatVideoOverlayError, hasDrawableVideoOverlayBox, hasUrlParserHazard, hostnameMatchesAllowlist, inferMusicVideo, isDirectVideoFileUrl, isOversizedScene, isSocialVideoUrl, isVideoOverlayCorner, isVideoOverlayLayoutId, isVideoOverlayOutputAspect, isVideoOverlayPresetId, listColumnMediaType, measuredCanvasCombinations, mergeClipLook, minimalRatioDimensions, normalizeVideoOverlayNodes, parseAspectToken, parseVideoOverlayLayerPlan, placeVideoOverlayVideos, renderAnalyzedScene, resolveFrameDelivery, resolveFrameFitAspect, resolveOutputCanvas, resolveVideoLinkOutput, resolveVideoOverlayBaseRect, resolveVideoOverlayGeometry, resolveVideoOverlayStackRects, rewriteSceneBindings, rewriteSlotTokens, rewriteSpeakerSlots, slotVariationSchema, stripDerivedAnalysisFields, toCustomVideoOverlayLayer, uiAspectRatioFill, uiDurationFill, uiResolutionFill, unwrapUnresolvedTokens, validateVideoOverlayRequest, videoAnalysisResultSchema, videoCharacterDistinctVoices, videoCharacterRefCap, videoCharacterRefProblem, videoCharacterRefProviders, videoCharacterRefUnits, videoCharacterVoiceCap, videoCharacterVoiceKey, videoCharacterVoiceProblem, videoLinkDownloadedFile, videoLinkInputProblem, videoLinkNeedOf, videoLinkNeedsDownload, videoLinkPageUrl, videoLinkRunNeeds, videoOverlayCanvas, videoOverlayCompositionKey, videoOverlayHasVideoLayer, videoOverlayLayerLabel, videoOverlayLayoutNeedsAspect, videoOverlayLayoutNeedsVideoLayer, videoOverlayLayoutPlacesBase, videoOverlayPresetBox, videoOverlayRenderOrder, videoOverlaySlotOfHandle, videoOverlaySlotSources, videoOverlayWireMediumBeforeRun, videoOverlayWiredLayerKind, windowAnalysisSchema, withoutImpliedVideoOverlayAnimate };
2321
+ export { AUTO_DOWNLOAD_MAX_SEC, type AnalyzedScene, type AudioLayer, CONTAINER_OVERHANG_SEC, type CharacterVideoSeatProblem, type ClipLook, DEFAULT_FRAME_DELIVERY, DEFAULT_FRAME_FIT, DEFAULT_VIDEO_OVERLAY_LAYER, DIRECT_VIDEO_EXTENSIONS, type EntitySlot, type EntitySlotOwner, type ExpandedVideoOverlayRequest, FRAME_DELIVERIES, FRAME_DELIVERY_BY_PROVIDER, FRAME_FITS, FRAME_FIT_STRETCH_TOLERANCE, type FrameDelivery, type FrameFit, type FrameFitPlan, INSTAGRAM_HOSTS, MAX_VIDEO_LINK_INPUT_CHARS, type PlacedVideoOverlayVideoInput, SLOT_TOKEN_RE, SOCIAL_VIDEO_HOSTS, type SlotVariation, VIDEO_ANALYSIS_AUDIO_MODES, VIDEO_ANALYSIS_CLIP_TRANSITIONS_IN, VIDEO_ANALYSIS_DEFAULT_VARIATION, VIDEO_ANALYSIS_ENTITY_SOURCES, VIDEO_ANALYSIS_FACELESS_ANGLES, VIDEO_ANALYSIS_MAX_SCENE_SEC, VIDEO_ANALYSIS_MAX_VARIATIONS, VIDEO_ANALYSIS_SHOT_ANGLES, VIDEO_ANALYSIS_SPEED_EFFECTS, VIDEO_ANALYSIS_STORY_JUMPS, VIDEO_ANALYSIS_TEXT_KINDS, VIDEO_ANALYSIS_TIMES_OF_DAY, VIDEO_ANALYSIS_TRANSITIONS, VIDEO_ANALYSIS_VARIATION_SLUGS, VIDEO_ANALYSIS_VISUAL_EFFECTS, VIDEO_CHARACTER_DESCRIPTION_MAX, VIDEO_CHARACTER_EXTRA_IMAGES_MAX, VIDEO_CHARACTER_NAME_MAX, VIDEO_CHARACTER_REFS_WIRE_MAX, VIDEO_CHARACTER_VOICE_DESCRIPTION_MAX, VIDEO_CHARACTER_VOICE_EXAMPLE_MAX, VIDEO_LINK_AUDIO_CONSUMER_TYPES, VIDEO_LINK_DERIVED_FIELDS, VIDEO_LINK_TOLERANT_CONSUMER_TYPES, VIDEO_OUTPUT_CANVAS, VIDEO_OVERLAY_ANIMATION_MIN_SCALE, VIDEO_OVERLAY_ANIMATION_SEC, VIDEO_OVERLAY_ASPECT_BOUNDS, VIDEO_OVERLAY_BADGE_INSET, VIDEO_OVERLAY_BADGE_WIDTH, VIDEO_OVERLAY_BOUNDS, VIDEO_OVERLAY_BOX_FIELDS, VIDEO_OVERLAY_CORNERS, VIDEO_OVERLAY_DEFAULT_BACKGROUND, VIDEO_OVERLAY_ERROR_CODES, VIDEO_OVERLAY_FITS, VIDEO_OVERLAY_HANDLE_IDS, VIDEO_OVERLAY_LAYER_PLAN_HANDLE, VIDEO_OVERLAY_LAYOUT_IDS, VIDEO_OVERLAY_MAX_COMPOSITION_KEY_LENGTH, VIDEO_OVERLAY_MAX_LAYERS, VIDEO_OVERLAY_MAX_LAYER_VIDEO_BYTES, VIDEO_OVERLAY_MAX_TIME_SEC, VIDEO_OVERLAY_MAX_TOTAL_LAYER_BYTES, VIDEO_OVERLAY_MAX_VIDEO_LAYERS, VIDEO_OVERLAY_OUTPUT_ASPECTS, VIDEO_OVERLAY_PIP_INSET, VIDEO_OVERLAY_PIP_WIDTH, VIDEO_OVERLAY_PRESETS, VIDEO_OVERLAY_PRESET_IDS, VIDEO_OVERLAY_VIDEO_MAX_BASE_SEC, VIDEO_OVERLAY_VOLUME_BOUNDS, VIDEO_OVERLAY_WARNING_CODES, type VideoAnalysisAudioMode, type VideoAnalysisClipTransitionIn, type VideoAnalysisEntitySource, type VideoAnalysisResult, type VideoAnalysisShotAngle, type VideoAnalysisSpeedEffect, type VideoAnalysisTextKind, type VideoAnalysisTransition, type VideoAnalysisVisualEffect, type VideoCharacterRefProblem, type VideoCharacterReference, type VideoCharacterVoice, type VideoLinkGraphEdge, type VideoLinkGraphNode, type VideoLinkInputProblem, type VideoLinkNeed, type VideoLinkNodeFields, type VideoLinkPlatform, type VideoOutputCanvas, type VideoOverlayBaseBoxSpec, type VideoOverlayBox, type VideoOverlayBoxInput, type VideoOverlayCanvas, type VideoOverlayComposition, type VideoOverlayCorner, type VideoOverlayErrorCode, type VideoOverlayFit, type VideoOverlayGeometry, type VideoOverlayIssue, type VideoOverlayLayer, type VideoOverlayLayerInput, type VideoOverlayLayerSpec, type VideoOverlayLayoutFields, type VideoOverlayLayoutId, type VideoOverlayNodeFields, type VideoOverlayOrderable, type VideoOverlayOutputAspect, type VideoOverlayPlacedRect, type VideoOverlayPresetId, type VideoOverlayRect, type VideoOverlayRequest, type VideoOverlaySound, type VideoOverlayValidation, type VideoOverlayValidationInput, type VideoOverlayVideoPlacement, type VideoOverlayWarning, type VideoOverlayWarningCode, type VideoOverlayWireBeforeRun, type VideoOverlayWireMedium, type VideoOverlayWiredLayerKind, type VideoOverlayWiredSource, type WindowAnalysis, type WindowScene, YOUTUBE_HOSTS, YOUTUBE_MAX_HEIGHT, analyzedSceneSchema, applyVideoOverlayPreset, aspectRatioFromDims, assembleVideoOverlayRequest, centreCropToAspect, characterReferencesFromWired, characterVideoUrls, clampVideoOverlayAspect, clearWiredVideoOverlayImageUrls, clipLookSchema, computeFrameFitPlan, declaredOutputMediaType, deriveSlotRefs, detectVideoLinkPlatform, dropStaleVideoLinkFields, dropUnknownBindings, dropUnknownSpeakers, editPlanSourceDurationSec, entitySlotSchema, evenVideoOverlayRect, expandVideoOverlayLayer, expandVideoOverlayLayout, expandVideoOverlayPresets, extractVideoDurationFromNode, firstVideoLayerIndex, formatVideoOverlayError, hasDrawableVideoOverlayBox, hasUrlParserHazard, hostnameMatchesAllowlist, inferMusicVideo, isDirectVideoFileUrl, isOversizedScene, isSocialVideoUrl, isVideoOverlayCorner, isVideoOverlayLayoutId, isVideoOverlayOutputAspect, isVideoOverlayPresetId, listColumnMediaType, measuredCanvasCombinations, mergeClipLook, minimalRatioDimensions, normalizeVideoOverlayNodes, parseAspectToken, parseVideoOverlayLayerPlan, placeVideoOverlayVideos, pricedReferenceVideoUrls, renderAnalyzedScene, resolveFrameDelivery, resolveFrameFitAspect, resolveOutputCanvas, resolveVideoLinkOutput, resolveVideoOverlayBaseRect, resolveVideoOverlayGeometry, resolveVideoOverlayStackRects, rewriteSceneBindings, rewriteSlotTokens, rewriteSpeakerSlots, seatCharacterVideos, slotVariationSchema, stripDerivedAnalysisFields, toCustomVideoOverlayLayer, uiAspectRatioFill, uiDurationFill, uiResolutionFill, unwrapUnresolvedTokens, validateVideoOverlayRequest, videoAnalysisResultSchema, videoCharacterClipsBilledAsReferenceVideo, videoCharacterDistinctVoices, videoCharacterRefCap, videoCharacterRefProblem, videoCharacterRefProviders, videoCharacterRefUnits, videoCharacterVideoCap, videoCharacterVideoProviders, videoCharacterVoiceCap, videoCharacterVoiceKey, videoCharacterVoiceProblem, videoLinkDownloadedFile, videoLinkInputProblem, videoLinkNeedOf, videoLinkNeedsDownload, videoLinkPageUrl, videoLinkRunNeeds, videoOverlayCanvas, videoOverlayCompositionKey, videoOverlayHasVideoLayer, videoOverlayLayerLabel, videoOverlayLayoutNeedsAspect, videoOverlayLayoutNeedsVideoLayer, videoOverlayLayoutPlacesBase, videoOverlayPresetBox, videoOverlayRenderOrder, videoOverlaySlotOfHandle, videoOverlaySlotSources, videoOverlayWireMediumBeforeRun, videoOverlayWiredLayerKind, windowAnalysisSchema, wiredCharacterSubjectClips, withoutImpliedVideoOverlayAnimate };
@@ -1,12 +1,13 @@
1
- export { DEFAULT_FRAME_DELIVERY, DEFAULT_FRAME_FIT, FRAME_DELIVERIES, FRAME_DELIVERY_BY_PROVIDER, FRAME_FITS, FRAME_FIT_STRETCH_TOLERANCE, SLOT_TOKEN_RE, VIDEO_ANALYSIS_AUDIO_MODES, VIDEO_ANALYSIS_CLIP_TRANSITIONS_IN, VIDEO_ANALYSIS_DEFAULT_VARIATION, VIDEO_ANALYSIS_ENTITY_SOURCES, VIDEO_ANALYSIS_FACELESS_ANGLES, VIDEO_ANALYSIS_MAX_SCENE_SEC, VIDEO_ANALYSIS_MAX_VARIATIONS, VIDEO_ANALYSIS_SHOT_ANGLES, VIDEO_ANALYSIS_SPEED_EFFECTS, VIDEO_ANALYSIS_STORY_JUMPS, VIDEO_ANALYSIS_TEXT_KINDS, VIDEO_ANALYSIS_TIMES_OF_DAY, VIDEO_ANALYSIS_TRANSITIONS, VIDEO_ANALYSIS_VARIATION_SLUGS, VIDEO_ANALYSIS_VISUAL_EFFECTS, VIDEO_CHARACTER_DESCRIPTION_MAX, VIDEO_CHARACTER_EXTRA_IMAGES_MAX, VIDEO_CHARACTER_NAME_MAX, VIDEO_CHARACTER_REFS_WIRE_MAX, VIDEO_CHARACTER_VOICE_DESCRIPTION_MAX, VIDEO_CHARACTER_VOICE_EXAMPLE_MAX, VIDEO_OUTPUT_CANVAS, VIDEO_OVERLAY_ASPECT_BOUNDS, VIDEO_OVERLAY_LAYOUT_IDS, VIDEO_OVERLAY_PIP_INSET, VIDEO_OVERLAY_PIP_WIDTH, analyzedSceneSchema, aspectRatioFromDims, centreCropToAspect, characterReferencesFromWired, clampVideoOverlayAspect, clipLookSchema, computeFrameFitPlan, deriveSlotRefs, dropUnknownBindings, dropUnknownSpeakers, entitySlotSchema, evenVideoOverlayRect, expandVideoOverlayLayout, firstVideoLayerIndex, formatVideoOverlayError, hasDrawableVideoOverlayBox, inferMusicVideo, isOversizedScene, isVideoOverlayLayoutId, measuredCanvasCombinations, mergeClipLook, minimalRatioDimensions, parseAspectToken, placeVideoOverlayVideos, renderAnalyzedScene, resolveFrameDelivery, resolveFrameFitAspect, resolveOutputCanvas, resolveVideoOverlayBaseRect, resolveVideoOverlayGeometry, resolveVideoOverlayStackRects, rewriteSceneBindings, rewriteSlotTokens, rewriteSpeakerSlots, slotVariationSchema, stripDerivedAnalysisFields, unwrapUnresolvedTokens, validateVideoOverlayRequest, videoAnalysisResultSchema, videoCharacterDistinctVoices, videoCharacterRefCap, videoCharacterRefProblem, videoCharacterRefProviders, videoCharacterRefUnits, videoCharacterVoiceCap, videoCharacterVoiceKey, videoCharacterVoiceProblem, videoOverlayCanvas, videoOverlayLayerLabel, videoOverlayLayoutNeedsAspect, videoOverlayLayoutNeedsVideoLayer, videoOverlayLayoutPlacesBase, windowAnalysisSchema } from '../chunk-3AYM47GW.js';
1
+ export { DEFAULT_FRAME_DELIVERY, DEFAULT_FRAME_FIT, FRAME_DELIVERIES, FRAME_DELIVERY_BY_PROVIDER, FRAME_FITS, FRAME_FIT_STRETCH_TOLERANCE, SLOT_TOKEN_RE, VIDEO_ANALYSIS_AUDIO_MODES, VIDEO_ANALYSIS_CLIP_TRANSITIONS_IN, VIDEO_ANALYSIS_DEFAULT_VARIATION, VIDEO_ANALYSIS_ENTITY_SOURCES, VIDEO_ANALYSIS_FACELESS_ANGLES, VIDEO_ANALYSIS_MAX_SCENE_SEC, VIDEO_ANALYSIS_MAX_VARIATIONS, VIDEO_ANALYSIS_SHOT_ANGLES, VIDEO_ANALYSIS_SPEED_EFFECTS, VIDEO_ANALYSIS_STORY_JUMPS, VIDEO_ANALYSIS_TEXT_KINDS, VIDEO_ANALYSIS_TIMES_OF_DAY, VIDEO_ANALYSIS_TRANSITIONS, VIDEO_ANALYSIS_VARIATION_SLUGS, VIDEO_ANALYSIS_VISUAL_EFFECTS, VIDEO_CHARACTER_DESCRIPTION_MAX, VIDEO_CHARACTER_EXTRA_IMAGES_MAX, VIDEO_CHARACTER_NAME_MAX, VIDEO_CHARACTER_REFS_WIRE_MAX, VIDEO_CHARACTER_VOICE_DESCRIPTION_MAX, VIDEO_CHARACTER_VOICE_EXAMPLE_MAX, VIDEO_OUTPUT_CANVAS, VIDEO_OVERLAY_ASPECT_BOUNDS, VIDEO_OVERLAY_LAYOUT_IDS, VIDEO_OVERLAY_PIP_INSET, VIDEO_OVERLAY_PIP_WIDTH, analyzedSceneSchema, aspectRatioFromDims, centreCropToAspect, characterReferencesFromWired, characterVideoUrls, clampVideoOverlayAspect, clipLookSchema, computeFrameFitPlan, deriveSlotRefs, dropUnknownBindings, dropUnknownSpeakers, entitySlotSchema, evenVideoOverlayRect, expandVideoOverlayLayout, firstVideoLayerIndex, formatVideoOverlayError, hasDrawableVideoOverlayBox, inferMusicVideo, isOversizedScene, isVideoOverlayLayoutId, measuredCanvasCombinations, mergeClipLook, minimalRatioDimensions, parseAspectToken, placeVideoOverlayVideos, pricedReferenceVideoUrls, renderAnalyzedScene, resolveFrameDelivery, resolveFrameFitAspect, resolveOutputCanvas, resolveVideoOverlayBaseRect, resolveVideoOverlayGeometry, resolveVideoOverlayStackRects, rewriteSceneBindings, rewriteSlotTokens, rewriteSpeakerSlots, seatCharacterVideos, slotVariationSchema, stripDerivedAnalysisFields, unwrapUnresolvedTokens, validateVideoOverlayRequest, videoAnalysisResultSchema, videoCharacterClipsBilledAsReferenceVideo, videoCharacterDistinctVoices, videoCharacterRefCap, videoCharacterRefProblem, videoCharacterRefProviders, videoCharacterRefUnits, videoCharacterVideoCap, videoCharacterVideoProviders, videoCharacterVoiceCap, videoCharacterVoiceKey, videoCharacterVoiceProblem, videoOverlayCanvas, videoOverlayLayerLabel, videoOverlayLayoutNeedsAspect, videoOverlayLayoutNeedsVideoLayer, videoOverlayLayoutPlacesBase, windowAnalysisSchema, wiredCharacterSubjectClips } from '../chunk-5SSMPYE5.js';
2
2
  import '../chunk-ZNZDQAXN.js';
3
3
  export { AUTO_DOWNLOAD_MAX_SEC, DIRECT_VIDEO_EXTENSIONS, INSTAGRAM_HOSTS, MAX_VIDEO_LINK_INPUT_CHARS, SOCIAL_VIDEO_HOSTS, VIDEO_LINK_AUDIO_CONSUMER_TYPES, VIDEO_LINK_DERIVED_FIELDS, VIDEO_LINK_TOLERANT_CONSUMER_TYPES, YOUTUBE_HOSTS, YOUTUBE_MAX_HEIGHT, detectVideoLinkPlatform, dropStaleVideoLinkFields, hasUrlParserHazard, hostnameMatchesAllowlist, isDirectVideoFileUrl, isSocialVideoUrl, resolveVideoLinkOutput, videoLinkDownloadedFile, videoLinkInputProblem, videoLinkNeedOf, videoLinkNeedsDownload, videoLinkPageUrl, videoLinkRunNeeds } from '../chunk-JCNTNAZP.js';
4
- export { DEFAULT_VIDEO_OVERLAY_LAYER, VIDEO_OVERLAY_ANIMATION_MIN_SCALE, VIDEO_OVERLAY_ANIMATION_SEC, VIDEO_OVERLAY_BADGE_INSET, VIDEO_OVERLAY_BADGE_WIDTH, VIDEO_OVERLAY_BOUNDS, VIDEO_OVERLAY_BOX_FIELDS, VIDEO_OVERLAY_CORNERS, VIDEO_OVERLAY_DEFAULT_BACKGROUND, VIDEO_OVERLAY_ERROR_CODES, VIDEO_OVERLAY_FITS, VIDEO_OVERLAY_HANDLE_IDS, VIDEO_OVERLAY_LAYER_PLAN_HANDLE, VIDEO_OVERLAY_MAX_COMPOSITION_KEY_LENGTH, VIDEO_OVERLAY_MAX_LAYERS, VIDEO_OVERLAY_MAX_LAYER_VIDEO_BYTES, VIDEO_OVERLAY_MAX_TIME_SEC, VIDEO_OVERLAY_MAX_TOTAL_LAYER_BYTES, VIDEO_OVERLAY_MAX_VIDEO_LAYERS, VIDEO_OVERLAY_OUTPUT_ASPECTS, VIDEO_OVERLAY_PRESETS, VIDEO_OVERLAY_PRESET_IDS, VIDEO_OVERLAY_VIDEO_MAX_BASE_SEC, VIDEO_OVERLAY_VOLUME_BOUNDS, VIDEO_OVERLAY_WARNING_CODES, applyVideoOverlayPreset, assembleVideoOverlayRequest, clearWiredVideoOverlayImageUrls, declaredOutputMediaType, expandVideoOverlayLayer, expandVideoOverlayPresets, isVideoOverlayCorner, isVideoOverlayOutputAspect, isVideoOverlayPresetId, listColumnMediaType, normalizeVideoOverlayNodes, parseVideoOverlayLayerPlan, toCustomVideoOverlayLayer, videoOverlayCompositionKey, videoOverlayHasVideoLayer, videoOverlayPresetBox, videoOverlayRenderOrder, videoOverlaySlotOfHandle, videoOverlaySlotSources, videoOverlayWireMediumBeforeRun, videoOverlayWiredLayerKind, withoutImpliedVideoOverlayAnimate } from '../chunk-PJJAZQVZ.js';
5
- export { uiAspectRatioFill, uiDurationFill, uiResolutionFill } from '../chunk-Q2Y4JHF7.js';
6
- import '../chunk-KB2SQAR3.js';
4
+ export { DEFAULT_VIDEO_OVERLAY_LAYER, VIDEO_OVERLAY_ANIMATION_MIN_SCALE, VIDEO_OVERLAY_ANIMATION_SEC, VIDEO_OVERLAY_BADGE_INSET, VIDEO_OVERLAY_BADGE_WIDTH, VIDEO_OVERLAY_BOUNDS, VIDEO_OVERLAY_BOX_FIELDS, VIDEO_OVERLAY_CORNERS, VIDEO_OVERLAY_DEFAULT_BACKGROUND, VIDEO_OVERLAY_ERROR_CODES, VIDEO_OVERLAY_FITS, VIDEO_OVERLAY_HANDLE_IDS, VIDEO_OVERLAY_LAYER_PLAN_HANDLE, VIDEO_OVERLAY_MAX_COMPOSITION_KEY_LENGTH, VIDEO_OVERLAY_MAX_LAYERS, VIDEO_OVERLAY_MAX_LAYER_VIDEO_BYTES, VIDEO_OVERLAY_MAX_TIME_SEC, VIDEO_OVERLAY_MAX_TOTAL_LAYER_BYTES, VIDEO_OVERLAY_MAX_VIDEO_LAYERS, VIDEO_OVERLAY_OUTPUT_ASPECTS, VIDEO_OVERLAY_PRESETS, VIDEO_OVERLAY_PRESET_IDS, VIDEO_OVERLAY_VIDEO_MAX_BASE_SEC, VIDEO_OVERLAY_VOLUME_BOUNDS, VIDEO_OVERLAY_WARNING_CODES, applyVideoOverlayPreset, assembleVideoOverlayRequest, clearWiredVideoOverlayImageUrls, declaredOutputMediaType, expandVideoOverlayLayer, expandVideoOverlayPresets, isVideoOverlayCorner, isVideoOverlayOutputAspect, isVideoOverlayPresetId, listColumnMediaType, normalizeVideoOverlayNodes, parseVideoOverlayLayerPlan, toCustomVideoOverlayLayer, videoOverlayCompositionKey, videoOverlayHasVideoLayer, videoOverlayPresetBox, videoOverlayRenderOrder, videoOverlaySlotOfHandle, videoOverlaySlotSources, videoOverlayWireMediumBeforeRun, videoOverlayWiredLayerKind, withoutImpliedVideoOverlayAnimate } from '../chunk-222QM7CO.js';
5
+ export { uiAspectRatioFill, uiDurationFill, uiResolutionFill } from '../chunk-D5Y3EYRM.js';
6
+ import '../chunk-H745DQ6V.js';
7
7
  import '../chunk-KL6GAYTT.js';
8
- import '../chunk-W7KHHNZR.js';
9
- export { CONTAINER_OVERHANG_SEC, editPlanSourceDurationSec, extractVideoDurationFromNode } from '../chunk-DZ4IOP3Q.js';
8
+ import '../chunk-PL7AQQV7.js';
9
+ export { CONTAINER_OVERHANG_SEC, editPlanSourceDurationSec, extractVideoDurationFromNode } from '../chunk-CW6MMQNO.js';
10
+ import '../chunk-XSSLNINL.js';
10
11
  import '../chunk-CTANEPMY.js';
11
12
  //# sourceMappingURL=video.js.map
12
13
  //# sourceMappingURL=video.js.map
@@ -1,6 +1,6 @@
1
1
  import { o as GenericNode, G as GenericEdge } from '../types-DzUBR7yr.cjs';
2
2
  import { O as OutputType } from '../presentation-utils-A4i92SYo.cjs';
3
- import { x as SourceImageSize } from '../model-catalog-Cf9fkEUp.cjs';
3
+ import { W as SourceImageSize } from '../model-catalog-BoUKGFNl.cjs';
4
4
  import { z, ZodType } from 'zod';
5
5
  import '../presentation-types-0ENOCjoj.cjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { o as GenericNode, G as GenericEdge } from '../types-DzUBR7yr.js';
2
2
  import { O as OutputType } from '../presentation-utils-DjdPtM9k.js';
3
- import { x as SourceImageSize } from '../model-catalog-Cf9fkEUp.js';
3
+ import { W as SourceImageSize } from '../model-catalog-BoUKGFNl.js';
4
4
  import { z, ZodType } from 'zod';
5
5
  import '../presentation-types-0ENOCjoj.js';
6
6