@nodaro/shared 3.68.0 → 3.70.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-5IZHECUP.js → chunk-2VOXSVIE.js} +3 -3
  2. package/dist/{chunk-5IZHECUP.js.map → chunk-2VOXSVIE.js.map} +1 -1
  3. package/dist/{chunk-OXBU5AGH.js → chunk-42ICEVUN.js} +3 -3
  4. package/dist/{chunk-OXBU5AGH.js.map → chunk-42ICEVUN.js.map} +1 -1
  5. package/dist/{chunk-EFYWV2V5.cjs → chunk-4U7QAUV3.cjs} +73 -73
  6. package/dist/{chunk-EFYWV2V5.cjs.map → chunk-4U7QAUV3.cjs.map} +1 -1
  7. package/dist/{chunk-OFQ6CU6S.js → chunk-52JNQG4K.js} +3 -3
  8. package/dist/{chunk-OFQ6CU6S.js.map → chunk-52JNQG4K.js.map} +1 -1
  9. package/dist/{chunk-PERUFUVH.cjs → chunk-5B337MCI.cjs} +15 -15
  10. package/dist/{chunk-PERUFUVH.cjs.map → chunk-5B337MCI.cjs.map} +1 -1
  11. package/dist/{chunk-66QSUUB4.cjs → chunk-5DRSENY3.cjs} +24 -24
  12. package/dist/{chunk-66QSUUB4.cjs.map → chunk-5DRSENY3.cjs.map} +1 -1
  13. package/dist/{chunk-3YWZ5SOZ.js → chunk-BIQ7COJP.js} +5 -5
  14. package/dist/{chunk-3YWZ5SOZ.js.map → chunk-BIQ7COJP.js.map} +1 -1
  15. package/dist/{chunk-4XR66IWF.cjs → chunk-BLGZW3UF.cjs} +64 -23
  16. package/dist/chunk-BLGZW3UF.cjs.map +1 -0
  17. package/dist/{chunk-KSHAAPQF.cjs → chunk-BOCHNFDU.cjs} +4 -4
  18. package/dist/chunk-BOCHNFDU.cjs.map +1 -0
  19. package/dist/{chunk-Z77M7Q2R.js → chunk-C2UHX7OF.js} +3 -3
  20. package/dist/{chunk-Z77M7Q2R.js.map → chunk-C2UHX7OF.js.map} +1 -1
  21. package/dist/{chunk-Q2LEJXLZ.cjs → chunk-C32IL6RD.cjs} +2 -2
  22. package/dist/{chunk-Q2LEJXLZ.cjs.map → chunk-C32IL6RD.cjs.map} +1 -1
  23. package/dist/{chunk-5NVGKXJV.cjs → chunk-CV2BEK52.cjs} +111 -3
  24. package/dist/chunk-CV2BEK52.cjs.map +1 -0
  25. package/dist/{chunk-G2G7XGFU.cjs → chunk-DOY47F7S.cjs} +7 -7
  26. package/dist/{chunk-G2G7XGFU.cjs.map → chunk-DOY47F7S.cjs.map} +1 -1
  27. package/dist/{chunk-5GG4CG4Y.js → chunk-EWNDK4FV.js} +3 -3
  28. package/dist/{chunk-5GG4CG4Y.js.map → chunk-EWNDK4FV.js.map} +1 -1
  29. package/dist/{chunk-T4GIHHXY.cjs → chunk-FMQ43SJP.cjs} +6 -6
  30. package/dist/{chunk-T4GIHHXY.cjs.map → chunk-FMQ43SJP.cjs.map} +1 -1
  31. package/dist/{chunk-IWUW3YPM.cjs → chunk-FWPGRC4X.cjs} +5 -5
  32. package/dist/{chunk-IWUW3YPM.cjs.map → chunk-FWPGRC4X.cjs.map} +1 -1
  33. package/dist/{chunk-37ZSFS6A.cjs → chunk-GC77W57T.cjs} +18 -18
  34. package/dist/{chunk-37ZSFS6A.cjs.map → chunk-GC77W57T.cjs.map} +1 -1
  35. package/dist/{chunk-BNR5FKL5.js → chunk-H2E4QXEZ.js} +3 -3
  36. package/dist/{chunk-BNR5FKL5.js.map → chunk-H2E4QXEZ.js.map} +1 -1
  37. package/dist/{chunk-GF7ZA26H.js → chunk-HA2PVTER.js} +5 -5
  38. package/dist/{chunk-GF7ZA26H.js.map → chunk-HA2PVTER.js.map} +1 -1
  39. package/dist/{chunk-M5QY464F.cjs → chunk-HBRDKHIW.cjs} +21 -21
  40. package/dist/{chunk-M5QY464F.cjs.map → chunk-HBRDKHIW.cjs.map} +1 -1
  41. package/dist/{chunk-E62W5I6A.cjs → chunk-HWBLZSM3.cjs} +109 -7
  42. package/dist/chunk-HWBLZSM3.cjs.map +1 -0
  43. package/dist/{chunk-5LWYX4GV.js → chunk-IKN54UGB.js} +3 -3
  44. package/dist/{chunk-5LWYX4GV.js.map → chunk-IKN54UGB.js.map} +1 -1
  45. package/dist/{chunk-UVUHVY7F.js → chunk-JCYTTTM2.js} +2 -2
  46. package/dist/{chunk-UVUHVY7F.js.map → chunk-JCYTTTM2.js.map} +1 -1
  47. package/dist/{chunk-PJAJCFLP.cjs → chunk-JEUZNHLL.cjs} +168 -44
  48. package/dist/chunk-JEUZNHLL.cjs.map +1 -0
  49. package/dist/{chunk-TAPBDT47.js → chunk-JVYDKXGY.js} +4 -4
  50. package/dist/{chunk-TAPBDT47.js.map → chunk-JVYDKXGY.js.map} +1 -1
  51. package/dist/{chunk-V6OXSXIX.js → chunk-K3YGI5IW.js} +107 -4
  52. package/dist/chunk-K3YGI5IW.js.map +1 -0
  53. package/dist/{chunk-SCDE676D.js → chunk-KKFFQUMM.js} +65 -23
  54. package/dist/chunk-KKFFQUMM.js.map +1 -0
  55. package/dist/{chunk-BHL7TAQO.js → chunk-LTBM2KMY.js} +43 -10
  56. package/dist/chunk-LTBM2KMY.js.map +1 -0
  57. package/dist/{chunk-BMDOPJBP.cjs → chunk-MZ772ZXA.cjs} +17 -17
  58. package/dist/{chunk-BMDOPJBP.cjs.map → chunk-MZ772ZXA.cjs.map} +1 -1
  59. package/dist/{chunk-SW5ZD7BO.js → chunk-NS34PZ2S.js} +3 -3
  60. package/dist/{chunk-SW5ZD7BO.js.map → chunk-NS34PZ2S.js.map} +1 -1
  61. package/dist/{chunk-6Q4BS6AR.js → chunk-NT3ZFUNJ.js} +31 -3
  62. package/dist/chunk-NT3ZFUNJ.js.map +1 -0
  63. package/dist/{chunk-VBP4DH37.js → chunk-O53P2D4V.js} +130 -15
  64. package/dist/chunk-O53P2D4V.js.map +1 -0
  65. package/dist/{chunk-AT53ZQUC.js → chunk-OW5AXH2Y.js} +51 -7
  66. package/dist/chunk-OW5AXH2Y.js.map +1 -0
  67. package/dist/{chunk-F6XIH3TZ.cjs → chunk-OZHE77T3.cjs} +9 -9
  68. package/dist/{chunk-F6XIH3TZ.cjs.map → chunk-OZHE77T3.cjs.map} +1 -1
  69. package/dist/{chunk-5J2LIQYU.js → chunk-PKWRAMVB.js} +6 -6
  70. package/dist/{chunk-5J2LIQYU.js.map → chunk-PKWRAMVB.js.map} +1 -1
  71. package/dist/{chunk-BCY3A62O.cjs → chunk-POZBRZUM.cjs} +75 -60
  72. package/dist/chunk-POZBRZUM.cjs.map +1 -0
  73. package/dist/{chunk-X2YHKP4D.cjs → chunk-PWIKUOLB.cjs} +8 -8
  74. package/dist/{chunk-X2YHKP4D.cjs.map → chunk-PWIKUOLB.cjs.map} +1 -1
  75. package/dist/{chunk-OXTF4Y3P.cjs → chunk-PYYYBINP.cjs} +6 -6
  76. package/dist/{chunk-OXTF4Y3P.cjs.map → chunk-PYYYBINP.cjs.map} +1 -1
  77. package/dist/{chunk-WZG6GZIL.cjs → chunk-QCGSL4CJ.cjs} +4 -4
  78. package/dist/{chunk-WZG6GZIL.cjs.map → chunk-QCGSL4CJ.cjs.map} +1 -1
  79. package/dist/{chunk-XEPKONJC.js → chunk-QCVQVKCI.js} +3 -3
  80. package/dist/{chunk-XEPKONJC.js.map → chunk-QCVQVKCI.js.map} +1 -1
  81. package/dist/{chunk-3L7GMQ4M.cjs → chunk-QCZYYAPZ.cjs} +54 -49
  82. package/dist/chunk-QCZYYAPZ.cjs.map +1 -0
  83. package/dist/{chunk-GNLA5NTT.cjs → chunk-QV32JI4L.cjs} +4 -4
  84. package/dist/{chunk-GNLA5NTT.cjs.map → chunk-QV32JI4L.cjs.map} +1 -1
  85. package/dist/{chunk-3QJ3UR5Z.js → chunk-QVAUBB2T.js} +11 -11
  86. package/dist/{chunk-3QJ3UR5Z.js.map → chunk-QVAUBB2T.js.map} +1 -1
  87. package/dist/{chunk-MVXZP6VB.js → chunk-R22UHRR6.js} +109 -7
  88. package/dist/chunk-R22UHRR6.js.map +1 -0
  89. package/dist/{chunk-KL6GAYTT.js → chunk-S6DXSQCV.js} +5 -3
  90. package/dist/chunk-S6DXSQCV.js.map +1 -0
  91. package/dist/{chunk-V24EPI5N.cjs → chunk-U4DIGIC3.cjs} +5 -3
  92. package/dist/chunk-U4DIGIC3.cjs.map +1 -0
  93. package/dist/{chunk-H5KHWTAE.js → chunk-UY6QZX7H.js} +4 -4
  94. package/dist/chunk-UY6QZX7H.js.map +1 -0
  95. package/dist/{chunk-XNJDAW3M.js → chunk-V6TC2NDG.js} +31 -17
  96. package/dist/chunk-V6TC2NDG.js.map +1 -0
  97. package/dist/{chunk-DBD4BCGH.cjs → chunk-VDFQKLDG.cjs} +33 -2
  98. package/dist/chunk-VDFQKLDG.cjs.map +1 -0
  99. package/dist/{chunk-PGDR7CO3.cjs → chunk-WHV7MDNC.cjs} +70 -11
  100. package/dist/chunk-WHV7MDNC.cjs.map +1 -0
  101. package/dist/{chunk-HTDKEYMY.cjs → chunk-XBHDXURR.cjs} +139 -91
  102. package/dist/chunk-XBHDXURR.cjs.map +1 -0
  103. package/dist/{chunk-PAUWEWTY.js → chunk-YLDY23N2.js} +12 -7
  104. package/dist/chunk-YLDY23N2.js.map +1 -0
  105. package/dist/entries/apps.cjs +43 -43
  106. package/dist/entries/apps.js +8 -8
  107. package/dist/entries/credits.cjs +282 -226
  108. package/dist/entries/credits.d.cts +167 -66
  109. package/dist/entries/credits.d.ts +167 -66
  110. package/dist/entries/credits.js +11 -11
  111. package/dist/entries/llm-models.cjs +88 -68
  112. package/dist/entries/llm-models.d.cts +73 -6
  113. package/dist/entries/llm-models.d.ts +73 -6
  114. package/dist/entries/llm-models.js +2 -2
  115. package/dist/entries/media.cjs +87 -87
  116. package/dist/entries/media.js +1 -1
  117. package/dist/entries/model-catalog.cjs +133 -133
  118. package/dist/entries/model-catalog.js +4 -4
  119. package/dist/entries/models.cjs +458 -406
  120. package/dist/entries/models.d.cts +64 -29
  121. package/dist/entries/models.d.ts +64 -29
  122. package/dist/entries/models.js +7 -7
  123. package/dist/entries/nodes.cjs +215 -215
  124. package/dist/entries/nodes.js +11 -11
  125. package/dist/entries/pipeline.cjs +153 -153
  126. package/dist/entries/pipeline.d.cts +1 -1
  127. package/dist/entries/pipeline.d.ts +1 -1
  128. package/dist/entries/pipeline.js +3 -3
  129. package/dist/entries/social.cjs +237 -177
  130. package/dist/entries/social.d.cts +183 -6
  131. package/dist/entries/social.d.ts +183 -6
  132. package/dist/entries/social.js +2 -2
  133. package/dist/entries/ugc.cjs +71 -71
  134. package/dist/entries/ugc.js +4 -4
  135. package/dist/entries/video.cjs +153 -153
  136. package/dist/entries/video.d.cts +2 -1
  137. package/dist/entries/video.d.ts +2 -1
  138. package/dist/entries/video.js +7 -7
  139. package/dist/entries/workflow.cjs +152 -152
  140. package/dist/entries/workflow.js +4 -4
  141. package/dist/index.cjs +2034 -1846
  142. package/dist/index.d.cts +5 -5
  143. package/dist/index.d.ts +5 -5
  144. package/dist/index.js +26 -26
  145. package/dist/{model-constants-DZ3tPGFO.d.ts → model-constants-B5DNHIP8.d.ts} +156 -12
  146. package/dist/{model-constants-BstsUup6.d.cts → model-constants-CQr_d3Kw.d.cts} +156 -12
  147. package/package.json +1 -1
  148. package/src/__tests__/cast-swap-limits.test.ts +54 -20
  149. package/src/__tests__/competitors.test.ts +64 -0
  150. package/src/__tests__/extend-providers.test.ts +43 -6
  151. package/src/__tests__/fixtures/measured-input-quote-parity.json +537 -1
  152. package/src/__tests__/fixtures/planned-length-quote-parity.json +46 -1
  153. package/src/__tests__/fixtures/probed-node-quote-parity.json +132 -0
  154. package/src/__tests__/fixtures/video-utility-quote-parity.json +112 -1
  155. package/src/__tests__/gemini-omni-extend.test.ts +110 -0
  156. package/src/__tests__/gvp-supported-providers.test.ts +3 -0
  157. package/src/__tests__/lip-sync-pricing.test.ts +29 -2
  158. package/src/__tests__/llm-models.test.ts +163 -6
  159. package/src/__tests__/llm-price-key.test.ts +2 -0
  160. package/src/__tests__/seedance-2-5-flash-catalog.test.ts +194 -0
  161. package/src/__tests__/suno-separate.test.ts +32 -0
  162. package/src/__tests__/video-character-refs.test.ts +48 -0
  163. package/src/cast-swap-limits.ts +43 -25
  164. package/src/competitors.ts +80 -8
  165. package/src/credit-identifiers.ts +51 -32
  166. package/src/entries/credits.ts +19 -0
  167. package/src/entries/llm-models.ts +6 -0
  168. package/src/entries/models.ts +15 -0
  169. package/src/entries/social.ts +33 -0
  170. package/src/gemini-omni-extend-quote.ts +76 -0
  171. package/src/generated/unit-contracts.ts +1 -0
  172. package/src/lip-sync-pricing.ts +26 -1
  173. package/src/llm-models.ts +176 -5
  174. package/src/model-catalog.ts +107 -5
  175. package/src/model-constants.ts +274 -11
  176. package/src/node-default-mappings.ts +2 -0
  177. package/src/node-runtime-keys.ts +2 -2
  178. package/src/seedance-extend-rate.ts +83 -20
  179. package/src/seedance-lip-sync.ts +68 -0
  180. package/src/suno-separate.ts +51 -0
  181. package/src/topics.ts +162 -0
  182. package/src/video-character-refs.ts +26 -6
  183. package/src/video-face-mesh.ts +1 -1
  184. package/dist/chunk-3L7GMQ4M.cjs.map +0 -1
  185. package/dist/chunk-4XR66IWF.cjs.map +0 -1
  186. package/dist/chunk-5NVGKXJV.cjs.map +0 -1
  187. package/dist/chunk-6Q4BS6AR.js.map +0 -1
  188. package/dist/chunk-AT53ZQUC.js.map +0 -1
  189. package/dist/chunk-BCY3A62O.cjs.map +0 -1
  190. package/dist/chunk-BHL7TAQO.js.map +0 -1
  191. package/dist/chunk-DBD4BCGH.cjs.map +0 -1
  192. package/dist/chunk-E62W5I6A.cjs.map +0 -1
  193. package/dist/chunk-H5KHWTAE.js.map +0 -1
  194. package/dist/chunk-HTDKEYMY.cjs.map +0 -1
  195. package/dist/chunk-KL6GAYTT.js.map +0 -1
  196. package/dist/chunk-KSHAAPQF.cjs.map +0 -1
  197. package/dist/chunk-MVXZP6VB.js.map +0 -1
  198. package/dist/chunk-PAUWEWTY.js.map +0 -1
  199. package/dist/chunk-PGDR7CO3.cjs.map +0 -1
  200. package/dist/chunk-PJAJCFLP.cjs.map +0 -1
  201. package/dist/chunk-SCDE676D.js.map +0 -1
  202. package/dist/chunk-V24EPI5N.cjs.map +0 -1
  203. package/dist/chunk-V6OXSXIX.js.map +0 -1
  204. package/dist/chunk-VBP4DH37.js.map +0 -1
  205. package/dist/chunk-XNJDAW3M.js.map +0 -1
@@ -58,7 +58,7 @@ export const CAST_SWAP_FACE_MASK_TARGETS = ["face", "head", "body"] as const
58
58
  export type CastSwapFaceMaskTarget = (typeof CAST_SWAP_FACE_MASK_TARGETS)[number]
59
59
 
60
60
  /**
61
- * How a direct Nodaro Motion run follows its clip (`style`, a public run
61
+ * How a direct Video Remake run follows its clip (`style`, a public run
62
62
  * field): `"precise"` (the default) follows the clip exactly; `"motion"`
63
63
  * follows only the clip's movement and takes every look from the photos. A
64
64
  * trend run ignores it (its trend decides).
@@ -100,10 +100,9 @@ export type CastSwapEngine = (typeof CAST_SWAP_ENGINES)[number]
100
100
  export const CAST_SWAP_ENGINE_WHEN_OMITTED: CastSwapEngine = "seedance-2-5"
101
101
 
102
102
  /**
103
- * Nodaro Motion — what people see of Cast Swap. Its two engines' PUBLIC ids,
103
+ * Video Remake — what people see of Cast Swap. Its two engines' PUBLIC ids,
104
104
  * the only ones documented and returned (a trend's `engine`, a run record, a
105
- * quote): `"motion-prism"` (Nodaro Motion Prism) and `"motion-pulse"` (Nodaro
106
- * Motion Pulse).
105
+ * quote): `"nodaro-prism"` (Nodaro Prism) and `"nodaro-pulse"` (Nodaro Pulse).
107
106
  *
108
107
  * `CAST_SWAP_ENGINES` stays the INTERNAL vocabulary: what a stored trend
109
108
  * version names, and what the platform sends the Cast Swap engine (which takes
@@ -112,29 +111,42 @@ export const CAST_SWAP_ENGINE_WHEN_OMITTED: CastSwapEngine = "seedance-2-5"
112
111
  * (`nodaroMotionEngineOf`). The engines' earlier public ids
113
112
  * (`NODARO_MOTION_LEGACY_ENGINES`) are read the same way and never returned.
114
113
  */
115
- export const NODARO_MOTION_ENGINES = ["motion-prism", "motion-pulse"] as const
114
+ export const NODARO_MOTION_ENGINES = ["nodaro-prism", "nodaro-pulse"] as const
116
115
 
117
116
  export type NodaroMotionEngine = (typeof NODARO_MOTION_ENGINES)[number]
118
117
 
119
118
  /**
120
- * The public ids the engines had before (renamed 2026-10-26), each with the
121
- * id it became. Still read wherever an engine is read — a request, a stored
122
- * run, an engine's declared engines, an admin setting's keys — and never
123
- * returned or documented.
119
+ * The public ids the engines had before, each with the id it became:
120
+ * `"motion-prism"` / `"motion-pulse"` (until 2026-11-17) and, before them,
121
+ * `"motion-pro"` / `"motion-lite"` (until 2026-10-26). Still read wherever an
122
+ * engine is read — a request, a stored run, an engine's declared engines, an
123
+ * admin setting's keys — and never returned or documented.
124
124
  */
125
125
  export const NODARO_MOTION_LEGACY_ENGINES = {
126
- "motion-pro": "motion-prism",
127
- "motion-lite": "motion-pulse",
126
+ "motion-prism": "nodaro-prism",
127
+ "motion-pulse": "nodaro-pulse",
128
+ "motion-pro": "nodaro-prism",
129
+ "motion-lite": "nodaro-pulse",
128
130
  } as const satisfies Record<string, NodaroMotionEngine>
129
131
 
130
132
  export type NodaroMotionLegacyEngine = keyof typeof NODARO_MOTION_LEGACY_ENGINES
131
133
 
132
- /** Each public id's earlier id (the inverse of `NODARO_MOTION_LEGACY_ENGINES`). */
134
+ /**
135
+ * Each public id's previous id (`"nodaro-prism"` → `"motion-prism"`): the key
136
+ * a Cast Swap engine from before the latest rename reads an admin setting by.
137
+ * Every earlier id, newest first, is in `NODARO_MOTION_EARLIER_ENGINES_OF`.
138
+ */
133
139
  export const NODARO_MOTION_LEGACY_ENGINE_OF = {
134
- "motion-prism": "motion-pro",
135
- "motion-pulse": "motion-lite",
140
+ "nodaro-prism": "motion-prism",
141
+ "nodaro-pulse": "motion-pulse",
136
142
  } as const satisfies Record<NodaroMotionEngine, NodaroMotionLegacyEngine>
137
143
 
144
+ /** Each public id's earlier ids, newest first (the inverse of `NODARO_MOTION_LEGACY_ENGINES`). */
145
+ export const NODARO_MOTION_EARLIER_ENGINES_OF = {
146
+ "nodaro-prism": ["motion-prism", "motion-pro"],
147
+ "nodaro-pulse": ["motion-pulse", "motion-lite"],
148
+ } as const satisfies Record<NodaroMotionEngine, readonly NodaroMotionLegacyEngine[]>
149
+
138
150
  /**
139
151
  * Each public engine's name, as people read it. The earlier ids are keys too,
140
152
  * each answering the name of the engine it became, so code written against
@@ -142,10 +154,12 @@ export const NODARO_MOTION_LEGACY_ENGINE_OF = {
142
154
  * not these keys.
143
155
  */
144
156
  export const NODARO_MOTION_ENGINE_NAMES = {
145
- "motion-prism": "Nodaro Motion Prism",
146
- "motion-pulse": "Nodaro Motion Pulse",
147
- "motion-pro": "Nodaro Motion Prism",
148
- "motion-lite": "Nodaro Motion Pulse",
157
+ "nodaro-prism": "Nodaro Prism",
158
+ "nodaro-pulse": "Nodaro Pulse",
159
+ "motion-prism": "Nodaro Prism",
160
+ "motion-pulse": "Nodaro Pulse",
161
+ "motion-pro": "Nodaro Prism",
162
+ "motion-lite": "Nodaro Pulse",
149
163
  } as const satisfies Record<NodaroMotionEngine | NodaroMotionLegacyEngine, string>
150
164
 
151
165
  /**
@@ -153,6 +167,8 @@ export const NODARO_MOTION_ENGINE_NAMES = {
153
167
  * earlier ids are keys too, as in `NODARO_MOTION_ENGINE_NAMES`.
154
168
  */
155
169
  export const CAST_SWAP_ENGINE_OF_NODARO_MOTION = {
170
+ "nodaro-prism": "seedance-2-5",
171
+ "nodaro-pulse": "kling-4",
156
172
  "motion-prism": "seedance-2-5",
157
173
  "motion-pulse": "kling-4",
158
174
  "motion-pro": "seedance-2-5",
@@ -161,8 +177,8 @@ export const CAST_SWAP_ENGINE_OF_NODARO_MOTION = {
161
177
 
162
178
  /** The public id of each internal engine. */
163
179
  export const NODARO_MOTION_ENGINE_OF_CAST_SWAP = {
164
- "seedance-2-5": "motion-prism",
165
- "kling-4": "motion-pulse",
180
+ "seedance-2-5": "nodaro-prism",
181
+ "kling-4": "nodaro-pulse",
166
182
  } as const satisfies Record<CastSwapEngine, NodaroMotionEngine>
167
183
 
168
184
  /** The public id of an internal engine. */
@@ -170,17 +186,17 @@ export function nodaroMotionEngineOf(engine: CastSwapEngine): NodaroMotionEngine
170
186
  return NODARO_MOTION_ENGINE_OF_CAST_SWAP[engine]
171
187
  }
172
188
 
173
- /** The name people read for an internal engine ("Nodaro Motion Prism" / "Nodaro Motion Pulse"). */
189
+ /** The name people read for an internal engine ("Nodaro Prism" / "Nodaro Pulse"). */
174
190
  export function nodaroMotionEngineName(engine: CastSwapEngine): string {
175
191
  return NODARO_MOTION_ENGINE_NAMES[nodaroMotionEngineOf(engine)]
176
192
  }
177
193
 
178
194
  /**
179
195
  * The internal engine a value names, in any vocabulary: a public id
180
- * (`"motion-prism"`, `"motion-pulse"`), an earlier public id (`"motion-pro"`,
181
- * `"motion-lite"`) or an internal one (`"seedance-2-5"`, `"kling-4"`), the
182
- * last two still accepted from older clients, older engines and stored data.
183
- * Undefined for anything else.
196
+ * (`"nodaro-prism"`, `"nodaro-pulse"`), an earlier public id
197
+ * (`NODARO_MOTION_LEGACY_ENGINES`) or an internal one (`"seedance-2-5"`,
198
+ * `"kling-4"`), the last ones still accepted from older clients, older
199
+ * engines and stored data. Undefined for anything else.
184
200
  */
185
201
  export function castSwapEngineFrom(value: unknown): CastSwapEngine | undefined {
186
202
  if (typeof value !== "string") return undefined
@@ -203,6 +219,8 @@ export function nodaroMotionEngineFrom(value: unknown): NodaroMotionEngine | und
203
219
  */
204
220
  export const CAST_SWAP_ENGINE_IDS_ACCEPTED = [
205
221
  ...NODARO_MOTION_ENGINES,
222
+ "motion-prism",
223
+ "motion-pulse",
206
224
  "motion-pro",
207
225
  "motion-lite",
208
226
  ...CAST_SWAP_ENGINES,
@@ -41,6 +41,39 @@ export type CompetitorSearchKind = "own" | "about"
41
41
  export interface CompetitorSearch {
42
42
  readonly kind: CompetitorSearchKind
43
43
  readonly platform: SocialPlatform
44
+ /** The term an about-search searches (a search term, or the name when the brand has none). Absent from an older server. */
45
+ readonly term?: string
46
+ }
47
+
48
+ /** The most search terms any brand can have (the platform's own ceiling; a plan allows fewer). */
49
+ export const COMPETITOR_SEARCH_TERMS_MAX = 15
50
+ /** The longest a search term can be. */
51
+ export const COMPETITOR_SEARCH_TERM_MAX_LENGTH = 100
52
+ /** A brand scan is charged this id per Social Search page it runs, summed (a topic scan has its own, `TOPIC_SCAN_PAGE_CREDIT_ID`). */
53
+ export const COMPETITOR_SCAN_PAGE_CREDIT_ID = "competitor-scan:per-page"
54
+
55
+ /**
56
+ * Search terms as the server keeps them: trimmed, inner whitespace collapsed,
57
+ * a one-word `#tag` or `@handle` without its trailing punctuation (`#tag!` →
58
+ * `#tag`), empty ones dropped, deduplicated without regard to case (the first
59
+ * spelling wins). Lengths, the count and a term with no letter or digit are
60
+ * the server's to refuse, not this function's to cut.
61
+ */
62
+ export function normalizeSearchTerms(terms: readonly string[]): string[] {
63
+ const seen = new Set<string>()
64
+ const out: string[] = []
65
+ for (const raw of terms) {
66
+ const spaced = raw.trim().replace(/\s+/g, " ")
67
+ // Combining marks (\p{M}) are part of a word: Hindi and Thai vowel signs are not punctuation.
68
+ const stripped = /^[#@]\S+$/.test(spaced) ? spaced.replace(/[^\p{L}\p{M}\p{N}_]+$/u, "") : spaced
69
+ // A tag with no word left ("#!") stays as sent, for the server to refuse with its reason.
70
+ const term = /[\p{L}\p{N}]/u.test(stripped) ? stripped : spaced
71
+ const key = term.toLowerCase()
72
+ if (term === "" || seen.has(key)) continue
73
+ seen.add(key)
74
+ out.push(term)
75
+ }
76
+ return out
44
77
  }
45
78
 
46
79
  export interface TrackedCompetitor {
@@ -59,10 +92,18 @@ export interface TrackedCompetitor {
59
92
  readonly lastScanError: string | null
60
93
  /** A scan is running now. */
61
94
  readonly scanning: boolean
62
- /** Searches one scan runs; a scan costs this many Social Search pages. */
95
+ /** Searches one scan runs. */
63
96
  readonly searches: number
64
97
  /** What the next scan searches. Absent from a server older than this field. */
65
98
  readonly searchPlan?: readonly CompetitorSearch[]
99
+ /**
100
+ * Phrases or #hashtags the searches for posts about the brand use instead
101
+ * of its name, and that a post must name to count as about it. Empty: the
102
+ * name. Absent from an older server.
103
+ */
104
+ readonly searchTerms?: readonly string[]
105
+ /** Social Search pages one scan runs: the scan costs this many pages. Absent from an older server (one page per search). */
106
+ readonly pages?: number
66
107
  readonly createdAt: string
67
108
  readonly updatedAt: string
68
109
  }
@@ -169,6 +210,14 @@ export interface CompetitorListResult {
169
210
  readonly data: readonly TrackedCompetitor[]
170
211
  /** How many months of scans your plan keeps (older scans are deleted at a brand's next scan). Absent from an older server. */
171
212
  readonly historyMonths?: number
213
+ /** Your plan's caps; null = no cap. Absent from an older server. */
214
+ readonly limits?: CompetitorLimits
215
+ }
216
+
217
+ /** What a plan allows a person on the Competitors page. */
218
+ export interface CompetitorLimits {
219
+ /** Search terms per brand; 0 = the name only; null = no cap. */
220
+ readonly searchTerms: number | null
172
221
  }
173
222
 
174
223
  /** One platform as one scan found and read it. Numbers a scan stored before they were kept answer null. */
@@ -514,18 +563,41 @@ export type CreateCompetitorInput = {
514
563
  readonly isOwn?: boolean
515
564
  /** Default weekly. */
516
565
  readonly schedule?: CompetitorSchedule
566
+ /** Phrases or #hashtags to search instead of the name (see `TrackedCompetitor.searchTerms`); the plan caps how many. */
567
+ readonly searchTerms?: readonly string[]
517
568
  }
518
569
 
519
570
  export type UpdateCompetitorInput = Partial<CreateCompetitorInput>
520
571
 
521
- /** Searches a scan of this configuration runs. */
522
- export function competitorScanSearches(c: { readonly accounts?: CompetitorAccounts; readonly aboutPlatforms?: readonly string[] }): number {
572
+ /**
573
+ * Searches a scan of this configuration runs: one per account, and one per
574
+ * about-platform per term (the name counts as the one term when there are
575
+ * none). `termCap` is the plan's cap (null = none): a scan searches only the
576
+ * first terms the plan allows.
577
+ */
578
+ export function competitorScanSearches(c: {
579
+ readonly accounts?: CompetitorAccounts
580
+ readonly aboutPlatforms?: readonly string[]
581
+ readonly searchTerms?: readonly string[]
582
+ readonly termCap?: number | null
583
+ }): number {
523
584
  const accounts = COMPETITOR_ACCOUNT_KEYS.filter((k) => (c.accounts?.[k] ?? "").trim() !== "").length
524
585
  const about = (c.aboutPlatforms ?? []).filter((p) => (COMPETITOR_ABOUT_PLATFORMS as readonly string[]).includes(p)).length
525
- return accounts + about
586
+ const terms = normalizeSearchTerms(c.searchTerms ?? [])
587
+ const cap = c.termCap === undefined || c.termCap === null ? COMPETITOR_SEARCH_TERMS_MAX : c.termCap
588
+ const used = Math.min(terms.length, cap)
589
+ return accounts + about * Math.max(1, used)
526
590
  }
527
591
 
528
- /** The credit id of a scan of `n` searches. */
592
+ /** Social Search pages a brand scan runs: every brand search reads one page. */
593
+ export function competitorScanPages(c: Parameters<typeof competitorScanSearches>[0]): number {
594
+ return competitorScanSearches(c)
595
+ }
596
+
597
+ /**
598
+ * The credit id of a scan of `n` searches.
599
+ * @deprecated A scan is charged per page at `COMPETITOR_SCAN_PAGE_CREDIT_ID`; this id caps at twelve searches. Kept for a plugin that still reserves it.
600
+ */
529
601
  export function competitorScanCreditId(n: number): string {
530
602
  const clamped = Math.min(Math.max(Math.round(n), 1), COMPETITOR_SCAN_MAX_SEARCHES)
531
603
  return `${COMPETITOR_SCAN_NODE_TYPE}:${clamped}`
@@ -536,9 +608,9 @@ export const COMPETITOR_SCAN_CREDIT_COSTS: Readonly<Record<string, number>> = Ob
536
608
  Array.from({ length: COMPETITOR_SCAN_MAX_SEARCHES }, (_, i) => [competitorScanCreditId(i + 1), (i + 1) * SOCIAL_SEARCH_CREDITS_PER_PAGE] as const),
537
609
  )
538
610
 
539
- /** The credits a scan of this many searches costs. */
540
- export function competitorScanCredits(searches: number): number {
541
- return searches <= 0 ? 0 : COMPETITOR_SCAN_CREDIT_COSTS[competitorScanCreditId(searches)] ?? 0
611
+ /** The credits a scan of this many pages costs, before the live price table loads (the base price of a page × pages). */
612
+ export function competitorScanCredits(pages: number): number {
613
+ return !Number.isFinite(pages) || pages <= 0 ? 0 : Math.round(pages) * SOCIAL_SEARCH_CREDITS_PER_PAGE
542
614
  }
543
615
 
544
616
  /** Whether a platform is one the about-search covers (used by pickers). */
@@ -46,6 +46,7 @@ import {
46
46
  PIXVERSE_V6_EXTEND_PROVIDER,
47
47
  isGrokExtendProvider,
48
48
  isGrokExtendSourceModel,
49
+ GROK_EXTEND_SOURCE_NODE_TYPES,
49
50
  GROK_EXTEND_PROVIDER,
50
51
  type CatalogExtendProvider,
51
52
  type SeedanceExtendProvider,
@@ -53,14 +54,16 @@ import {
53
54
  } from "./model-constants.js"
54
55
  import {
55
56
  SEEDANCE_EXTEND_CONTEXT_MAX_SEC,
56
- SEEDANCE_EXTEND_RATE_CREDIT_IDS,
57
+ SEEDANCE_EXTEND_RATE_CREDIT_IDS_BY_PROVIDER,
57
58
  SEEDANCE_EXTEND_SENT_PRICED_PROVIDER,
58
59
  isSeedanceExtendPricedBySecondsSent,
60
+ type SentPricedSeedanceExtendProvider,
59
61
  seedanceExtendAddedSec,
60
- seedanceExtendRefusesSource,
62
+ seedanceExtendSourceRefused,
61
63
  seedanceExtendSentSec,
62
64
  seedanceExtendUnits,
63
65
  } from "./seedance-extend-rate.js"
66
+ import { geminiOmniExtendQuoteCreditId } from "./gemini-omni-extend-quote.js"
64
67
  import { unitQuoteCreditId } from "./credit-estimators/unit-quote.js"
65
68
  import { isFlux2Model, FLUX2_RES_MP, type Flux2Model } from "./flux2-pricing.js"
66
69
  import {
@@ -817,20 +820,25 @@ export function tailExtendResolution(provider: TailExtendProvider, resolution?:
817
820
  }
818
821
 
819
822
  /**
820
- * The rate row a Seedance 2.5 Extend run at `resolution` is charged a multiple
821
- * of: the row of the resolution the run is priced and rendered at
822
- * ({@link tailExtendResolution}: one the model offers, else 720p).
823
+ * The rate row a sent-priced Extend Video run at `resolution` is charged a
824
+ * multiple of: `provider`'s row (Seedance 2.5 Extend when none is named) of the
825
+ * resolution the run is priced and rendered at ({@link tailExtendResolution}:
826
+ * one the model offers, else 720p).
823
827
  */
824
- export function seedanceExtendRateCreditId(resolution: unknown): string {
825
- const res = tailExtendResolution(SEEDANCE_EXTEND_SENT_PRICED_PROVIDER, resolution) as keyof typeof SEEDANCE_EXTEND_RATE_CREDIT_IDS
826
- return SEEDANCE_EXTEND_RATE_CREDIT_IDS[res] ?? SEEDANCE_EXTEND_RATE_CREDIT_IDS["720p"]
828
+ export function seedanceExtendRateCreditId(
829
+ resolution: unknown,
830
+ provider: SentPricedSeedanceExtendProvider = SEEDANCE_EXTEND_SENT_PRICED_PROVIDER,
831
+ ): string {
832
+ const rows = SEEDANCE_EXTEND_RATE_CREDIT_IDS_BY_PROVIDER[provider]
833
+ return rows[tailExtendResolution(provider, resolution)] ?? rows[TAIL_EXTEND_DEFAULT_RESOLUTION]!
827
834
  }
828
835
 
829
836
  /**
830
- * The ONE id a Seedance 2.5 Extend run on a known source is charged: the
831
- * whole-run quote (`<rate row>:<units>u`, {@link unitQuoteCreditId}) of that
832
- * run, which the price lookups (`GET /v1/credits/model-cost`,
833
- * `POST /v1/credits/model-costs`) answer with exactly what the run is charged.
837
+ * The ONE id a sent-priced Extend Video run (Seedance 2.5 Extend, Seedance 2.5
838
+ * Flash Extend) on a known source is charged: the whole-run quote
839
+ * (`<rate row>:<units>u`, {@link unitQuoteCreditId}) of that run, which the
840
+ * price lookups (`GET /v1/credits/model-cost`, `POST /v1/credits/model-costs`)
841
+ * answer with exactly what the run is charged.
834
842
  *
835
843
  * The units are (seconds sent + seconds added) ÷ 2, by the rule the server
836
844
  * charges a run by (seedance-extend-rate.ts): the seconds sent are the
@@ -845,9 +853,10 @@ export function seedanceExtendRateCreditId(resolution: unknown): string {
845
853
  * the most a run of that length costs.
846
854
  * @param duration the seconds added (the request's `duration`).
847
855
  * @param resolution the request's resolution (one the model does not offer is 720p).
856
+ * @param provider the extend provider (Seedance 2.5 Extend when none is named).
848
857
  * @returns the id, or `undefined` for a source the extend refuses: a measured
849
858
  * picture shorter than the shortest source it takes
850
- * (`SEEDANCE_2_R2V_MIN_REF_VIDEO_SEC`, 1.8 s, compared as measured, as the
859
+ * (`SEEDANCE_EXTEND_MIN_SOURCE_SEC`: 1.8 s, 2 s on Flash; compared as measured, as the
851
860
  * route and the worker compare it), whatever the seconds added. No run on
852
861
  * such a source is made or charged, so there is no price to name.
853
862
  */
@@ -855,19 +864,25 @@ export function seedanceExtendSourceCreditId(
855
864
  sourcePictureSec: number | null | undefined,
856
865
  duration?: number | string,
857
866
  resolution?: unknown,
867
+ provider: SentPricedSeedanceExtendProvider = SEEDANCE_EXTEND_SENT_PRICED_PROVIDER,
858
868
  ): string | undefined {
859
- if (seedanceExtendRefusesSource(sourcePictureSec)) return undefined
860
- return seedanceExtendWholeRunCreditId(seedanceExtendSentSec(sourcePictureSec), duration, resolution)
869
+ if (seedanceExtendSourceRefused(provider, sourcePictureSec)) return undefined
870
+ return seedanceExtendWholeRunCreditId(provider, seedanceExtendSentSec(sourcePictureSec), duration, resolution)
861
871
  }
862
872
 
863
- /** The whole-run quote of a Seedance 2.5 Extend run that sends `sentSec` and adds `duration` at `resolution`. */
864
- function seedanceExtendWholeRunCreditId(sentSec: number, duration: number | string | undefined, resolution: unknown): string {
865
- const units = seedanceExtendUnits(sentSec, seedanceExtendAddedSec(SEEDANCE_EXTEND_SENT_PRICED_PROVIDER, duration))
866
- return unitQuoteCreditId(seedanceExtendRateCreditId(resolution), units)
873
+ /** The whole-run quote of a sent-priced extend run that sends `sentSec` and adds `duration` at `resolution`. */
874
+ function seedanceExtendWholeRunCreditId(
875
+ provider: SentPricedSeedanceExtendProvider,
876
+ sentSec: number,
877
+ duration: number | string | undefined,
878
+ resolution: unknown,
879
+ ): string {
880
+ const units = seedanceExtendUnits(sentSec, seedanceExtendAddedSec(provider, duration))
881
+ return unitQuoteCreditId(seedanceExtendRateCreditId(resolution, provider), units)
867
882
  }
868
883
 
869
884
  /**
870
- * The most a Seedance 2.5 Extend run that adds `duration` seconds at
885
+ * The most a sent-priced Extend Video run that adds `duration` seconds at
871
886
  * `resolution` can cost, as ONE id: the whole-run quote
872
887
  * (`<rate row>:<units>u`, {@link unitQuoteCreditId}) of a run that sends the
873
888
  * whole {@link SEEDANCE_EXTEND_CONTEXT_MAX_SEC}-second window — the units are
@@ -875,13 +890,17 @@ function seedanceExtendWholeRunCreditId(sentSec: number, duration: number | stri
875
890
  * never below what a run of that length is charged; the price lookups answer
876
891
  * it at the rate row's current price. A client that knows the source names
877
892
  * its run exactly with {@link seedanceExtendSourceCreditId}; this is that id
878
- * for a source not known.
893
+ * for a source not known. `provider`: Seedance 2.5 Extend when none is named.
879
894
  *
880
895
  * The seconds added snap into the catalog window exactly as
881
896
  * {@link tailExtendCreditId} reads them for every tail-recipe provider.
882
897
  */
883
- export function seedanceExtendFullWindowCreditId(duration?: number | string, resolution?: unknown): string {
884
- return seedanceExtendWholeRunCreditId(seedanceExtendSentSec(undefined), duration, resolution)
898
+ export function seedanceExtendFullWindowCreditId(
899
+ duration?: number | string,
900
+ resolution?: unknown,
901
+ provider: SentPricedSeedanceExtendProvider = SEEDANCE_EXTEND_SENT_PRICED_PROVIDER,
902
+ ): string {
903
+ return seedanceExtendWholeRunCreditId(provider, seedanceExtendSentSec(undefined), duration, resolution)
885
904
  }
886
905
 
887
906
  /**
@@ -896,11 +915,11 @@ export function seedanceExtendFullWindowCreditId(duration?: number | string, res
896
915
  * - Seedance 2.0 Extend (4–15 s) and Kling 4 Extend (3–30 s): their own rows,
897
916
  * one per second of the window and resolution, `<provider>:<N>s:<res>`
898
917
  * (480p / 720p / 1080p; Kling 4 720p / 1080p) — the price a run is charged.
899
- * - Seedance 2.5 Extend (4–30 s) is charged per second it sends and adds, and
900
- * how much it sends depends on the source: this names the most a run of
901
- * that length costs, the whole 10-second window sent
902
- * ({@link seedanceExtendFullWindowCreditId},
903
- * `seedance-2-5-extend:<res>:per-2s:<units>u`). A client that knows the
918
+ * - Seedance 2.5 Extend and Seedance 2.5 Flash Extend (4–30 s) are charged
919
+ * per second they send and add, and how much is sent depends on the
920
+ * source: this names the most a run of that length costs, the whole
921
+ * 10-second window sent ({@link seedanceExtendFullWindowCreditId},
922
+ * `<provider>:<res>:per-2s:<units>u`). A client that knows the
904
923
  * source names the run's own id with {@link seedanceExtendSourceCreditId}.
905
924
  *
906
925
  * A retired id (`seedance-2-extend`) is not a {@link TailExtendProvider}:
@@ -912,7 +931,10 @@ export function tailExtendCreditId(
912
931
  duration?: number | string,
913
932
  resolution?: string,
914
933
  ): string {
915
- if (isSeedanceExtendPricedBySecondsSent(provider)) return seedanceExtendFullWindowCreditId(duration, resolution)
934
+ if (isSeedanceExtendPricedBySecondsSent(provider)) return seedanceExtendFullWindowCreditId(duration, resolution, provider)
935
+ // Gemini Omni Flash 1.2 Extend: the whole-run quote of a run that sends the
936
+ // whole 10 s window (`geminiOmniExtendQuoteCreditId`, no source known).
937
+ if (provider === "gemini-omni-flash-1-2-extend") return geminiOmniExtendQuoteCreditId({ duration, resolution })
916
938
  return `${provider}:${pricedOutputDurationSec(provider, duration)}s:${tailExtendResolution(provider, resolution)}`
917
939
  }
918
940
 
@@ -1006,9 +1028,6 @@ export function grokExtendCreditId(duration?: unknown, sourceResolution?: unknow
1006
1028
  return `${GROK_EXTEND_PROVIDER}:${grokExtendSeconds(duration)}s:${resolution}`
1007
1029
  }
1008
1030
 
1009
- /** The video node types whose run Grok Extend can extend, set to a Grok Imagine model. */
1010
- const GROK_EXTEND_SOURCE_NODE_TYPES: ReadonlySet<string> = new Set(["generate-video", "text-to-video", "image-to-video"])
1011
-
1012
1031
  /**
1013
1032
  * The resolution a Grok Extend is quoted at from the clip a Grok Imagine node
1014
1033
  * already made — the clip the run extends: the take its task (`kieTaskId`, the
@@ -58,6 +58,9 @@ export {
58
58
  export type { NormalizedImageGen, PricedVideoSelection, GrokExtendSourceResolution } from "../credit-identifiers.js"
59
59
  export {
60
60
  SEEDANCE_EXTEND_SENT_PRICED_PROVIDER,
61
+ SEEDANCE_EXTEND_SENT_PRICED_PROVIDERS,
62
+ SEEDANCE_EXTEND_RATE_CREDIT_IDS_BY_PROVIDER,
63
+ SEEDANCE_EXTEND_MIN_SOURCE_SEC,
61
64
  SEEDANCE_EXTEND_CONTEXT_MAX_SEC,
62
65
  SEEDANCE_EXTEND_RATE_SECONDS,
63
66
  SEEDANCE_EXTEND_RATE_CREDIT_IDS,
@@ -65,11 +68,17 @@ export {
65
68
  isSeedanceExtendRateCreditId,
66
69
  seedanceExtendAddedSec,
67
70
  seedanceExtendRefusesSource,
71
+ seedanceExtendSourceRefused,
68
72
  seedanceExtendSourceSec,
69
73
  seedanceExtendSentSec,
70
74
  seedanceExtendUnits,
71
75
  type SentPricedSeedanceExtendProvider,
72
76
  } from "../seedance-extend-rate.js"
77
+ export {
78
+ geminiOmniExtendQuoteCreditId,
79
+ parseGeminiOmniExtendQuoteCreditId,
80
+ type GeminiOmniExtendQuoteCreditIdParts,
81
+ } from "../gemini-omni-extend-quote.js"
73
82
  export * from "../credit-estimators/index.js"
74
83
  export {
75
84
  resolveTopazUpscale,
@@ -98,6 +107,8 @@ export {
98
107
  pickLipSyncBucket,
99
108
  getLipSyncMaxAudioSeconds,
100
109
  isPerSecondLipSyncProvider,
110
+ LIP_SYNC_CHARGED_AT_RUN_COST,
111
+ isLipSyncChargedAtRunCost,
101
112
  buildLipSyncCreditId,
102
113
  LIP_SYNC_AUDIO_RATES,
103
114
  OMNIHUMAN_2_0_PER_SECOND_CREDIT_ID,
@@ -109,6 +120,14 @@ export {
109
120
  LIP_SYNC_UNMEASURED_ESTIMATE_SECONDS,
110
121
  } from "../lip-sync-pricing.js"
111
122
  export type { LipSyncDurationBucket, LipSyncAudioRate } from "../lip-sync-pricing.js"
123
+ export {
124
+ SEEDANCE_LIP_SYNC_SECONDS,
125
+ isSeedanceLipSyncProvider,
126
+ seedanceLipSyncResolution,
127
+ seedanceLipSyncCreditId,
128
+ MINIMAX_H3_LIP_SYNC_CREDIT_ID,
129
+ referenceAudioLipSyncCreditId,
130
+ } from "../seedance-lip-sync.js"
112
131
  export {
113
132
  AI_AVATAR_MAX_DURATION_SEC,
114
133
  AI_AVATAR_MAX_AUDIO_SEC,
@@ -45,8 +45,14 @@ export {
45
45
  getLlmModel,
46
46
  getLlmTier,
47
47
  getLlmModalityCaps,
48
+ LLM_NODE_ONLY_MEDIA_MODELS,
49
+ readsMediaOnLlmNodesOnly,
50
+ readsVideoOutsideLlmNodes,
51
+ readsAudioOutsideLlmNodes,
48
52
  type LlmModalityCaps,
49
53
  llmAcceptsFiles,
54
+ llmFileWire,
55
+ type LlmFileWire,
50
56
  LLM_FILE_MODELS,
51
57
  LLM_REFERENCE_FILES_MAX,
52
58
  LLM_REFERENCE_FILES_MAX_TOTAL_BYTES,
@@ -101,6 +101,7 @@ export {
101
101
  isGrokExtendProvider,
102
102
  GROK_EXTEND_SOURCE_MODELS,
103
103
  isGrokExtendSourceModel,
104
+ GROK_EXTEND_SOURCE_NODE_TYPES,
104
105
  LIP_SYNC_PROVIDERS,
105
106
  RETIRED_LIP_SYNC_PROVIDERS,
106
107
  retiredLipSyncProviderName,
@@ -160,6 +161,9 @@ export {
160
161
  SEEDANCE_2_PROVIDERS,
161
162
  SEEDANCE_2_REF_LIMITS,
162
163
  SEEDANCE_2_5_REF_LIMITS,
164
+ SEEDANCE_2_5_FLASH_REF_LIMITS,
165
+ videoReferencesOverLimitProblem,
166
+ trimVideoReferencesToLimits,
163
167
  SEEDANCE_2_EXTEND_STITCH,
164
168
  SEEDANCE_2_R2V_MIN_REF_VIDEO_SEC,
165
169
  SEEDANCE_2_CONTINUATION_REF_SEC,
@@ -167,6 +171,8 @@ export {
167
171
  FRAME_MODE_ADAPTIVE_ONLY_ASPECT,
168
172
  VIDEO_REF_LIMITS_BY_PROVIDER,
169
173
  VIDEO_REF_VIDEO_DURATION_LIMITS,
174
+ VIDEO_REF_VIDEO_PICTURE_LIMITS,
175
+ refVideoAspectProblem,
170
176
  checkRefVideoDurations,
171
177
  VIDEO_CHARACTER_CLIP_DURATION_LIMITS,
172
178
  checkCharacterClipDurations,
@@ -191,6 +197,9 @@ export {
191
197
  videoProviderRefModeFrameSeats,
192
198
  VIDEO_PROVIDERS_WITH_SEPARATE_FRAME_CHANNEL,
193
199
  isSeedance2Provider,
200
+ isEditVideoProProvider,
201
+ editVideoProProviderRefusal,
202
+ EDIT_VIDEO_PRO_HELD_BACK_PROVIDERS,
194
203
  MINIMAX_H3_PROVIDERS,
195
204
  isMinimaxH3Provider,
196
205
  MINIMAX_H3_DEFAULT_RESOLUTION,
@@ -280,6 +289,7 @@ export {
280
289
  } from "../model-constants.js"
281
290
  export type { VideoStartFrameOnlyProblem } from "../model-constants.js"
282
291
  export type { ImageRunKind } from "../model-constants.js"
292
+ export type { VideoReferenceCounts } from "../model-constants.js"
283
293
  export {
284
294
  CAST_SWAP_POST_PROMPT_MAX,
285
295
  TREND_PROMPT_LIMITS,
@@ -298,6 +308,7 @@ export {
298
308
  CAST_SWAP_ENGINE_IDS_ACCEPTED,
299
309
  NODARO_MOTION_LEGACY_ENGINES,
300
310
  NODARO_MOTION_LEGACY_ENGINE_OF,
311
+ NODARO_MOTION_EARLIER_ENGINES_OF,
301
312
  nodaroMotionEngineFrom,
302
313
  nodaroMotionEngineOf,
303
314
  nodaroMotionEngineName,
@@ -367,6 +378,7 @@ export type {
367
378
  GvpAnchorChoice,
368
379
  GvpAnchorWireMode,
369
380
  RefVideoDurationLimit,
381
+ RefVideoPictureLimit,
370
382
  RefAudioRule,
371
383
  RefAudioProbe,
372
384
  RefAudioCheck,
@@ -456,8 +468,11 @@ export {
456
468
  SUNO_SEPARATE_TAKE_FIELDS,
457
469
  SUNO_SEPARATE_RESULT_FIELDS,
458
470
  SUNO_SEPARATE_META_FIELDS,
471
+ SUNO_SEPARATE_ID_FIELDS,
459
472
  sunoSeparateHandleUrl,
460
473
  sunoSeparatePrimaryUrl,
474
+ sunoSeparateHandleField,
475
+ sunoSeparateHandleIds,
461
476
  } from "../suno-separate.js"
462
477
  export type {
463
478
  SunoSeparateType,
@@ -229,7 +229,12 @@ export {
229
229
  ACTION_CARD_KINDS,
230
230
  BRAND_LESSON_KINDS,
231
231
  COMPETITOR_SCAN_CREDIT_COSTS,
232
+ COMPETITOR_SEARCH_TERMS_MAX,
233
+ COMPETITOR_SEARCH_TERM_MAX_LENGTH,
234
+ COMPETITOR_SCAN_PAGE_CREDIT_ID,
235
+ normalizeSearchTerms,
232
236
  competitorScanSearches,
237
+ competitorScanPages,
233
238
  competitorScanCreditId,
234
239
  competitorScanCredits,
235
240
  isCompetitorAboutPlatform,
@@ -266,6 +271,7 @@ export {
266
271
  type CompetitorScan,
267
272
  type CompetitorDetail,
268
273
  type CompetitorListResult,
274
+ type CompetitorLimits,
269
275
  type CompetitorHistory,
270
276
  type CompetitorHistoryPoint,
271
277
  type CompetitorHistoryPlatform,
@@ -284,6 +290,33 @@ export {
284
290
  type CreateCompetitorInput,
285
291
  type UpdateCompetitorInput,
286
292
  } from "../competitors.js"
293
+ export {
294
+ TOPIC_PLATFORMS,
295
+ TOPIC_DEFAULT_PLATFORMS,
296
+ TOPIC_POST_COUNTS,
297
+ TOPIC_SCAN_NODE_TYPE,
298
+ TOPIC_SCAN_PAGE_CREDIT_ID,
299
+ TOPICS_MAX,
300
+ SCAN_PAGE_CREDIT_COSTS,
301
+ topicScanPages,
302
+ topicScanCredits,
303
+ isTopicPlatform,
304
+ type TopicPlatform,
305
+ type TopicPostCount,
306
+ type TrackedTopic,
307
+ type TopicLimits,
308
+ type TopicListResult,
309
+ type CreateTopicInput,
310
+ type UpdateTopicInput,
311
+ type TopicScanCounts,
312
+ type TopicScan,
313
+ type TopicScanSummary,
314
+ type TopicDetail,
315
+ type TopicHistoryPlatform,
316
+ type TopicHistoryPoint,
317
+ type TopicHistory,
318
+ type TopicCardsResult,
319
+ } from "../topics.js"
287
320
  export {
288
321
  PLATFORM_SPECS,
289
322
  PLATFORM_LABELS,