mulmocast 0.1.2 → 0.1.3

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 (54) hide show
  1. package/assets/templates/characters.json +16 -0
  2. package/assets/templates/html.json +6 -0
  3. package/lib/actions/audio.js +8 -6
  4. package/lib/actions/image_agents.d.ts +121 -0
  5. package/lib/actions/image_agents.js +56 -0
  6. package/lib/actions/image_references.d.ts +9 -0
  7. package/lib/actions/image_references.js +79 -0
  8. package/lib/actions/images.d.ts +9 -109
  9. package/lib/actions/images.js +68 -184
  10. package/lib/actions/index.d.ts +2 -0
  11. package/lib/actions/index.js +2 -0
  12. package/lib/actions/movie.js +3 -1
  13. package/lib/actions/pdf.js +5 -2
  14. package/lib/agents/image_google_agent.d.ts +2 -15
  15. package/lib/agents/image_google_agent.js +3 -3
  16. package/lib/agents/image_openai_agent.d.ts +2 -17
  17. package/lib/agents/image_openai_agent.js +7 -7
  18. package/lib/agents/movie_google_agent.d.ts +2 -17
  19. package/lib/agents/movie_google_agent.js +7 -7
  20. package/lib/agents/movie_replicate_agent.d.ts +2 -16
  21. package/lib/agents/movie_replicate_agent.js +3 -3
  22. package/lib/agents/tts_google_agent.d.ts +9 -1
  23. package/lib/agents/tts_google_agent.js +2 -2
  24. package/lib/agents/tts_nijivoice_agent.js +1 -1
  25. package/lib/agents/tts_openai_agent.d.ts +13 -1
  26. package/lib/agents/tts_openai_agent.js +2 -2
  27. package/lib/cli/helpers.js +7 -7
  28. package/lib/methods/index.d.ts +1 -0
  29. package/lib/methods/index.js +1 -0
  30. package/lib/methods/mulmo_beat.d.ts +6 -0
  31. package/lib/methods/mulmo_beat.js +21 -0
  32. package/lib/methods/mulmo_presentation_style.d.ts +2 -0
  33. package/lib/methods/mulmo_presentation_style.js +24 -0
  34. package/lib/methods/mulmo_studio_context.js +3 -0
  35. package/lib/tools/story_to_script.js +2 -2
  36. package/lib/types/agent.d.ts +55 -0
  37. package/lib/types/agent.js +3 -0
  38. package/lib/types/schema.d.ts +317 -74
  39. package/lib/types/schema.js +9 -2
  40. package/lib/types/type.d.ts +3 -2
  41. package/lib/utils/context.d.ts +12 -2
  42. package/lib/utils/context.js +1 -0
  43. package/lib/utils/ffmpeg_utils.d.ts +1 -1
  44. package/lib/utils/ffmpeg_utils.js +1 -1
  45. package/lib/utils/file.js +4 -4
  46. package/lib/utils/filters.js +3 -4
  47. package/lib/utils/markdown.js +1 -1
  48. package/lib/utils/preprocess.d.ts +8 -2
  49. package/lib/utils/string.js +5 -5
  50. package/lib/utils/utils.d.ts +8 -1
  51. package/lib/utils/utils.js +51 -36
  52. package/package.json +7 -6
  53. package/scripts/templates/html.json +42 -0
  54. package/scripts/templates/image_refs.json +35 -0
@@ -908,7 +908,17 @@ export declare const mulmoAudioAssetSchema: z.ZodUnion<[z.ZodObject<{
908
908
  type: "midi";
909
909
  source: string;
910
910
  }>]>;
911
- export declare const mulmoImageParamsImagesSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
911
+ export declare const mulmoImagePromptMediaSchema: z.ZodObject<{
912
+ type: z.ZodLiteral<"imagePrompt">;
913
+ prompt: z.ZodString;
914
+ }, "strict", z.ZodTypeAny, {
915
+ type: "imagePrompt";
916
+ prompt: string;
917
+ }, {
918
+ type: "imagePrompt";
919
+ prompt: string;
920
+ }>;
921
+ export declare const mulmoImageParamsImagesSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
912
922
  type: z.ZodLiteral<"image">;
913
923
  source: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
914
924
  kind: z.ZodLiteral<"url">;
@@ -977,7 +987,16 @@ export declare const mulmoImageParamsImagesSchema: z.ZodRecord<z.ZodString, z.Zo
977
987
  path: string;
978
988
  kind: "path";
979
989
  };
980
- }>>;
990
+ }>, z.ZodObject<{
991
+ type: z.ZodLiteral<"imagePrompt">;
992
+ prompt: z.ZodString;
993
+ }, "strict", z.ZodTypeAny, {
994
+ type: "imagePrompt";
995
+ prompt: string;
996
+ }, {
997
+ type: "imagePrompt";
998
+ prompt: string;
999
+ }>]>>;
981
1000
  export declare const mulmoFillOptionSchema: z.ZodObject<{
982
1001
  style: z.ZodDefault<z.ZodEnum<["aspectFit", "aspectFill"]>>;
983
1002
  }, "strip", z.ZodTypeAny, {
@@ -1011,7 +1030,7 @@ export declare const mulmoImageParamsSchema: z.ZodObject<{
1011
1030
  model: z.ZodOptional<z.ZodString>;
1012
1031
  style: z.ZodOptional<z.ZodString>;
1013
1032
  moderation: z.ZodOptional<z.ZodString>;
1014
- images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1033
+ images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
1015
1034
  type: z.ZodLiteral<"image">;
1016
1035
  source: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1017
1036
  kind: z.ZodLiteral<"url">;
@@ -1080,7 +1099,16 @@ export declare const mulmoImageParamsSchema: z.ZodObject<{
1080
1099
  path: string;
1081
1100
  kind: "path";
1082
1101
  };
1083
- }>>>;
1102
+ }>, z.ZodObject<{
1103
+ type: z.ZodLiteral<"imagePrompt">;
1104
+ prompt: z.ZodString;
1105
+ }, "strict", z.ZodTypeAny, {
1106
+ type: "imagePrompt";
1107
+ prompt: string;
1108
+ }, {
1109
+ type: "imagePrompt";
1110
+ prompt: string;
1111
+ }>]>>>;
1084
1112
  }, "strict", z.ZodTypeAny, {
1085
1113
  provider: "openai" | "google";
1086
1114
  style?: string | undefined;
@@ -1101,6 +1129,9 @@ export declare const mulmoImageParamsSchema: z.ZodObject<{
1101
1129
  path: string;
1102
1130
  kind: "path";
1103
1131
  };
1132
+ } | {
1133
+ type: "imagePrompt";
1134
+ prompt: string;
1104
1135
  }> | undefined;
1105
1136
  }, {
1106
1137
  provider?: "openai" | "google" | undefined;
@@ -1122,6 +1153,9 @@ export declare const mulmoImageParamsSchema: z.ZodObject<{
1122
1153
  path: string;
1123
1154
  kind: "path";
1124
1155
  };
1156
+ } | {
1157
+ type: "imagePrompt";
1158
+ prompt: string;
1125
1159
  }> | undefined;
1126
1160
  }>;
1127
1161
  export declare const textSlideParamsSchema: z.ZodObject<{
@@ -1245,9 +1279,9 @@ export declare const htmlPromptParamsSchema: z.ZodObject<{
1245
1279
  systemPrompt?: string | undefined;
1246
1280
  }, {
1247
1281
  data?: any;
1282
+ prompt?: string | undefined;
1248
1283
  images?: Record<string, any> | undefined;
1249
1284
  systemPrompt?: string | undefined;
1250
- prompt?: string | undefined;
1251
1285
  }>;
1252
1286
  export declare const mulmoBeatSchema: z.ZodObject<{
1253
1287
  speaker: z.ZodDefault<z.ZodString>;
@@ -1781,7 +1815,7 @@ export declare const mulmoBeatSchema: z.ZodObject<{
1781
1815
  model: z.ZodOptional<z.ZodString>;
1782
1816
  style: z.ZodOptional<z.ZodString>;
1783
1817
  moderation: z.ZodOptional<z.ZodString>;
1784
- images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1818
+ images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
1785
1819
  type: z.ZodLiteral<"image">;
1786
1820
  source: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1787
1821
  kind: z.ZodLiteral<"url">;
@@ -1850,7 +1884,16 @@ export declare const mulmoBeatSchema: z.ZodObject<{
1850
1884
  path: string;
1851
1885
  kind: "path";
1852
1886
  };
1853
- }>>>;
1887
+ }>, z.ZodObject<{
1888
+ type: z.ZodLiteral<"imagePrompt">;
1889
+ prompt: z.ZodString;
1890
+ }, "strict", z.ZodTypeAny, {
1891
+ type: "imagePrompt";
1892
+ prompt: string;
1893
+ }, {
1894
+ type: "imagePrompt";
1895
+ prompt: string;
1896
+ }>]>>>;
1854
1897
  }, "strict", z.ZodTypeAny, {
1855
1898
  provider: "openai" | "google";
1856
1899
  style?: string | undefined;
@@ -1871,6 +1914,9 @@ export declare const mulmoBeatSchema: z.ZodObject<{
1871
1914
  path: string;
1872
1915
  kind: "path";
1873
1916
  };
1917
+ } | {
1918
+ type: "imagePrompt";
1919
+ prompt: string;
1874
1920
  }> | undefined;
1875
1921
  }, {
1876
1922
  provider?: "openai" | "google" | undefined;
@@ -1892,6 +1938,9 @@ export declare const mulmoBeatSchema: z.ZodObject<{
1892
1938
  path: string;
1893
1939
  kind: "path";
1894
1940
  };
1941
+ } | {
1942
+ type: "imagePrompt";
1943
+ prompt: string;
1895
1944
  }> | undefined;
1896
1945
  }>>;
1897
1946
  audioParams: z.ZodOptional<z.ZodObject<{
@@ -1970,9 +2019,9 @@ export declare const mulmoBeatSchema: z.ZodObject<{
1970
2019
  systemPrompt?: string | undefined;
1971
2020
  }, {
1972
2021
  data?: any;
2022
+ prompt?: string | undefined;
1973
2023
  images?: Record<string, any> | undefined;
1974
2024
  systemPrompt?: string | undefined;
1975
- prompt?: string | undefined;
1976
2025
  }>>;
1977
2026
  }, "strict", z.ZodTypeAny, {
1978
2027
  text: string;
@@ -2107,6 +2156,7 @@ export declare const mulmoBeatSchema: z.ZodObject<{
2107
2156
  type: "midi";
2108
2157
  source: string;
2109
2158
  } | undefined;
2159
+ imagePrompt?: string | undefined;
2110
2160
  description?: string | undefined;
2111
2161
  imageParams?: {
2112
2162
  provider: "openai" | "google";
@@ -2128,6 +2178,9 @@ export declare const mulmoBeatSchema: z.ZodObject<{
2128
2178
  path: string;
2129
2179
  kind: "path";
2130
2180
  };
2181
+ } | {
2182
+ type: "imagePrompt";
2183
+ prompt: string;
2131
2184
  }> | undefined;
2132
2185
  } | undefined;
2133
2186
  audioParams?: {
@@ -2150,7 +2203,6 @@ export declare const mulmoBeatSchema: z.ZodObject<{
2150
2203
  lang?: string | undefined;
2151
2204
  } | undefined;
2152
2205
  imageNames?: string[] | undefined;
2153
- imagePrompt?: string | undefined;
2154
2206
  moviePrompt?: string | undefined;
2155
2207
  htmlPrompt?: {
2156
2208
  prompt: string;
@@ -2290,6 +2342,7 @@ export declare const mulmoBeatSchema: z.ZodObject<{
2290
2342
  type: "midi";
2291
2343
  source: string;
2292
2344
  } | undefined;
2345
+ imagePrompt?: string | undefined;
2293
2346
  speaker?: string | undefined;
2294
2347
  description?: string | undefined;
2295
2348
  imageParams?: {
@@ -2312,6 +2365,9 @@ export declare const mulmoBeatSchema: z.ZodObject<{
2312
2365
  path: string;
2313
2366
  kind: "path";
2314
2367
  };
2368
+ } | {
2369
+ type: "imagePrompt";
2370
+ prompt: string;
2315
2371
  }> | undefined;
2316
2372
  } | undefined;
2317
2373
  audioParams?: {
@@ -2334,13 +2390,12 @@ export declare const mulmoBeatSchema: z.ZodObject<{
2334
2390
  styles?: string[] | undefined;
2335
2391
  } | undefined;
2336
2392
  imageNames?: string[] | undefined;
2337
- imagePrompt?: string | undefined;
2338
2393
  moviePrompt?: string | undefined;
2339
2394
  htmlPrompt?: {
2340
2395
  data?: any;
2396
+ prompt?: string | undefined;
2341
2397
  images?: Record<string, any> | undefined;
2342
2398
  systemPrompt?: string | undefined;
2343
- prompt?: string | undefined;
2344
2399
  } | undefined;
2345
2400
  }>;
2346
2401
  export declare const mulmoCanvasDimensionSchema: z.ZodDefault<z.ZodObject<{
@@ -2574,7 +2629,7 @@ export declare const mulmoPresentationStyleSchema: z.ZodObject<{
2574
2629
  model: z.ZodOptional<z.ZodString>;
2575
2630
  style: z.ZodOptional<z.ZodString>;
2576
2631
  moderation: z.ZodOptional<z.ZodString>;
2577
- images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2632
+ images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
2578
2633
  type: z.ZodLiteral<"image">;
2579
2634
  source: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2580
2635
  kind: z.ZodLiteral<"url">;
@@ -2643,7 +2698,16 @@ export declare const mulmoPresentationStyleSchema: z.ZodObject<{
2643
2698
  path: string;
2644
2699
  kind: "path";
2645
2700
  };
2646
- }>>>;
2701
+ }>, z.ZodObject<{
2702
+ type: z.ZodLiteral<"imagePrompt">;
2703
+ prompt: z.ZodString;
2704
+ }, "strict", z.ZodTypeAny, {
2705
+ type: "imagePrompt";
2706
+ prompt: string;
2707
+ }, {
2708
+ type: "imagePrompt";
2709
+ prompt: string;
2710
+ }>]>>>;
2647
2711
  }, "strict", z.ZodTypeAny, {
2648
2712
  provider: "openai" | "google";
2649
2713
  style?: string | undefined;
@@ -2664,6 +2728,9 @@ export declare const mulmoPresentationStyleSchema: z.ZodObject<{
2664
2728
  path: string;
2665
2729
  kind: "path";
2666
2730
  };
2731
+ } | {
2732
+ type: "imagePrompt";
2733
+ prompt: string;
2667
2734
  }> | undefined;
2668
2735
  }, {
2669
2736
  provider?: "openai" | "google" | undefined;
@@ -2685,6 +2752,9 @@ export declare const mulmoPresentationStyleSchema: z.ZodObject<{
2685
2752
  path: string;
2686
2753
  kind: "path";
2687
2754
  };
2755
+ } | {
2756
+ type: "imagePrompt";
2757
+ prompt: string;
2688
2758
  }> | undefined;
2689
2759
  }>>;
2690
2760
  movieParams: z.ZodOptional<z.ZodObject<{
@@ -2907,6 +2977,9 @@ export declare const mulmoPresentationStyleSchema: z.ZodObject<{
2907
2977
  path: string;
2908
2978
  kind: "path";
2909
2979
  };
2980
+ } | {
2981
+ type: "imagePrompt";
2982
+ prompt: string;
2910
2983
  }> | undefined;
2911
2984
  } | undefined;
2912
2985
  movieParams?: {
@@ -2956,6 +3029,9 @@ export declare const mulmoPresentationStyleSchema: z.ZodObject<{
2956
3029
  path: string;
2957
3030
  kind: "path";
2958
3031
  };
3032
+ } | {
3033
+ type: "imagePrompt";
3034
+ prompt: string;
2959
3035
  }> | undefined;
2960
3036
  } | undefined;
2961
3037
  audioParams?: {
@@ -3023,15 +3099,15 @@ export declare const mulmoReferenceSchema: z.ZodObject<{
3023
3099
  url: z.ZodString;
3024
3100
  title: z.ZodOptional<z.ZodString>;
3025
3101
  description: z.ZodOptional<z.ZodString>;
3026
- type: z.ZodDefault<z.ZodEnum<["article", "paper", "image", "video", "audio"]>>;
3102
+ type: z.ZodDefault<z.ZodUnion<[z.ZodEnum<["article", "paper", "image", "video", "audio"]>, z.ZodString]>>;
3027
3103
  }, "strip", z.ZodTypeAny, {
3028
- type: "image" | "audio" | "article" | "paper" | "video";
3104
+ type: string;
3029
3105
  url: string;
3030
3106
  title?: string | undefined;
3031
3107
  description?: string | undefined;
3032
3108
  }, {
3033
3109
  url: string;
3034
- type?: "image" | "audio" | "article" | "paper" | "video" | undefined;
3110
+ type?: string | undefined;
3035
3111
  title?: string | undefined;
3036
3112
  description?: string | undefined;
3037
3113
  }>;
@@ -3117,7 +3193,7 @@ export declare const mulmoScriptSchema: z.ZodObject<{
3117
3193
  model: z.ZodOptional<z.ZodString>;
3118
3194
  style: z.ZodOptional<z.ZodString>;
3119
3195
  moderation: z.ZodOptional<z.ZodString>;
3120
- images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3196
+ images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
3121
3197
  type: z.ZodLiteral<"image">;
3122
3198
  source: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
3123
3199
  kind: z.ZodLiteral<"url">;
@@ -3186,7 +3262,16 @@ export declare const mulmoScriptSchema: z.ZodObject<{
3186
3262
  path: string;
3187
3263
  kind: "path";
3188
3264
  };
3189
- }>>>;
3265
+ }>, z.ZodObject<{
3266
+ type: z.ZodLiteral<"imagePrompt">;
3267
+ prompt: z.ZodString;
3268
+ }, "strict", z.ZodTypeAny, {
3269
+ type: "imagePrompt";
3270
+ prompt: string;
3271
+ }, {
3272
+ type: "imagePrompt";
3273
+ prompt: string;
3274
+ }>]>>>;
3190
3275
  }, "strict", z.ZodTypeAny, {
3191
3276
  provider: "openai" | "google";
3192
3277
  style?: string | undefined;
@@ -3207,6 +3292,9 @@ export declare const mulmoScriptSchema: z.ZodObject<{
3207
3292
  path: string;
3208
3293
  kind: "path";
3209
3294
  };
3295
+ } | {
3296
+ type: "imagePrompt";
3297
+ prompt: string;
3210
3298
  }> | undefined;
3211
3299
  }, {
3212
3300
  provider?: "openai" | "google" | undefined;
@@ -3228,6 +3316,9 @@ export declare const mulmoScriptSchema: z.ZodObject<{
3228
3316
  path: string;
3229
3317
  kind: "path";
3230
3318
  };
3319
+ } | {
3320
+ type: "imagePrompt";
3321
+ prompt: string;
3231
3322
  }> | undefined;
3232
3323
  }>>;
3233
3324
  movieParams: z.ZodOptional<z.ZodObject<{
@@ -3394,15 +3485,15 @@ export declare const mulmoScriptSchema: z.ZodObject<{
3394
3485
  url: z.ZodString;
3395
3486
  title: z.ZodOptional<z.ZodString>;
3396
3487
  description: z.ZodOptional<z.ZodString>;
3397
- type: z.ZodDefault<z.ZodEnum<["article", "paper", "image", "video", "audio"]>>;
3488
+ type: z.ZodDefault<z.ZodUnion<[z.ZodEnum<["article", "paper", "image", "video", "audio"]>, z.ZodString]>>;
3398
3489
  }, "strip", z.ZodTypeAny, {
3399
- type: "image" | "audio" | "article" | "paper" | "video";
3490
+ type: string;
3400
3491
  url: string;
3401
3492
  title?: string | undefined;
3402
3493
  description?: string | undefined;
3403
3494
  }, {
3404
3495
  url: string;
3405
- type?: "image" | "audio" | "article" | "paper" | "video" | undefined;
3496
+ type?: string | undefined;
3406
3497
  title?: string | undefined;
3407
3498
  description?: string | undefined;
3408
3499
  }>, "many">>;
@@ -3939,7 +4030,7 @@ export declare const mulmoScriptSchema: z.ZodObject<{
3939
4030
  model: z.ZodOptional<z.ZodString>;
3940
4031
  style: z.ZodOptional<z.ZodString>;
3941
4032
  moderation: z.ZodOptional<z.ZodString>;
3942
- images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
4033
+ images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
3943
4034
  type: z.ZodLiteral<"image">;
3944
4035
  source: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
3945
4036
  kind: z.ZodLiteral<"url">;
@@ -4008,7 +4099,16 @@ export declare const mulmoScriptSchema: z.ZodObject<{
4008
4099
  path: string;
4009
4100
  kind: "path";
4010
4101
  };
4011
- }>>>;
4102
+ }>, z.ZodObject<{
4103
+ type: z.ZodLiteral<"imagePrompt">;
4104
+ prompt: z.ZodString;
4105
+ }, "strict", z.ZodTypeAny, {
4106
+ type: "imagePrompt";
4107
+ prompt: string;
4108
+ }, {
4109
+ type: "imagePrompt";
4110
+ prompt: string;
4111
+ }>]>>>;
4012
4112
  }, "strict", z.ZodTypeAny, {
4013
4113
  provider: "openai" | "google";
4014
4114
  style?: string | undefined;
@@ -4029,6 +4129,9 @@ export declare const mulmoScriptSchema: z.ZodObject<{
4029
4129
  path: string;
4030
4130
  kind: "path";
4031
4131
  };
4132
+ } | {
4133
+ type: "imagePrompt";
4134
+ prompt: string;
4032
4135
  }> | undefined;
4033
4136
  }, {
4034
4137
  provider?: "openai" | "google" | undefined;
@@ -4050,6 +4153,9 @@ export declare const mulmoScriptSchema: z.ZodObject<{
4050
4153
  path: string;
4051
4154
  kind: "path";
4052
4155
  };
4156
+ } | {
4157
+ type: "imagePrompt";
4158
+ prompt: string;
4053
4159
  }> | undefined;
4054
4160
  }>>;
4055
4161
  audioParams: z.ZodOptional<z.ZodObject<{
@@ -4128,9 +4234,9 @@ export declare const mulmoScriptSchema: z.ZodObject<{
4128
4234
  systemPrompt?: string | undefined;
4129
4235
  }, {
4130
4236
  data?: any;
4237
+ prompt?: string | undefined;
4131
4238
  images?: Record<string, any> | undefined;
4132
4239
  systemPrompt?: string | undefined;
4133
- prompt?: string | undefined;
4134
4240
  }>>;
4135
4241
  }, "strict", z.ZodTypeAny, {
4136
4242
  text: string;
@@ -4265,6 +4371,7 @@ export declare const mulmoScriptSchema: z.ZodObject<{
4265
4371
  type: "midi";
4266
4372
  source: string;
4267
4373
  } | undefined;
4374
+ imagePrompt?: string | undefined;
4268
4375
  description?: string | undefined;
4269
4376
  imageParams?: {
4270
4377
  provider: "openai" | "google";
@@ -4286,6 +4393,9 @@ export declare const mulmoScriptSchema: z.ZodObject<{
4286
4393
  path: string;
4287
4394
  kind: "path";
4288
4395
  };
4396
+ } | {
4397
+ type: "imagePrompt";
4398
+ prompt: string;
4289
4399
  }> | undefined;
4290
4400
  } | undefined;
4291
4401
  audioParams?: {
@@ -4308,7 +4418,6 @@ export declare const mulmoScriptSchema: z.ZodObject<{
4308
4418
  lang?: string | undefined;
4309
4419
  } | undefined;
4310
4420
  imageNames?: string[] | undefined;
4311
- imagePrompt?: string | undefined;
4312
4421
  moviePrompt?: string | undefined;
4313
4422
  htmlPrompt?: {
4314
4423
  prompt: string;
@@ -4448,6 +4557,7 @@ export declare const mulmoScriptSchema: z.ZodObject<{
4448
4557
  type: "midi";
4449
4558
  source: string;
4450
4559
  } | undefined;
4560
+ imagePrompt?: string | undefined;
4451
4561
  speaker?: string | undefined;
4452
4562
  description?: string | undefined;
4453
4563
  imageParams?: {
@@ -4470,6 +4580,9 @@ export declare const mulmoScriptSchema: z.ZodObject<{
4470
4580
  path: string;
4471
4581
  kind: "path";
4472
4582
  };
4583
+ } | {
4584
+ type: "imagePrompt";
4585
+ prompt: string;
4473
4586
  }> | undefined;
4474
4587
  } | undefined;
4475
4588
  audioParams?: {
@@ -4492,13 +4605,12 @@ export declare const mulmoScriptSchema: z.ZodObject<{
4492
4605
  styles?: string[] | undefined;
4493
4606
  } | undefined;
4494
4607
  imageNames?: string[] | undefined;
4495
- imagePrompt?: string | undefined;
4496
4608
  moviePrompt?: string | undefined;
4497
4609
  htmlPrompt?: {
4498
4610
  data?: any;
4611
+ prompt?: string | undefined;
4499
4612
  images?: Record<string, any> | undefined;
4500
4613
  systemPrompt?: string | undefined;
4501
- prompt?: string | undefined;
4502
4614
  } | undefined;
4503
4615
  }>, "many">;
4504
4616
  imagePath: z.ZodOptional<z.ZodString>;
@@ -4679,6 +4791,7 @@ export declare const mulmoScriptSchema: z.ZodObject<{
4679
4791
  type: "midi";
4680
4792
  source: string;
4681
4793
  } | undefined;
4794
+ imagePrompt?: string | undefined;
4682
4795
  description?: string | undefined;
4683
4796
  imageParams?: {
4684
4797
  provider: "openai" | "google";
@@ -4700,6 +4813,9 @@ export declare const mulmoScriptSchema: z.ZodObject<{
4700
4813
  path: string;
4701
4814
  kind: "path";
4702
4815
  };
4816
+ } | {
4817
+ type: "imagePrompt";
4818
+ prompt: string;
4703
4819
  }> | undefined;
4704
4820
  } | undefined;
4705
4821
  audioParams?: {
@@ -4722,7 +4838,6 @@ export declare const mulmoScriptSchema: z.ZodObject<{
4722
4838
  lang?: string | undefined;
4723
4839
  } | undefined;
4724
4840
  imageNames?: string[] | undefined;
4725
- imagePrompt?: string | undefined;
4726
4841
  moviePrompt?: string | undefined;
4727
4842
  htmlPrompt?: {
4728
4843
  prompt: string;
@@ -4754,6 +4869,9 @@ export declare const mulmoScriptSchema: z.ZodObject<{
4754
4869
  path: string;
4755
4870
  kind: "path";
4756
4871
  };
4872
+ } | {
4873
+ type: "imagePrompt";
4874
+ prompt: string;
4757
4875
  }> | undefined;
4758
4876
  } | undefined;
4759
4877
  movieParams?: {
@@ -4779,7 +4897,7 @@ export declare const mulmoScriptSchema: z.ZodObject<{
4779
4897
  lang?: string | undefined;
4780
4898
  } | undefined;
4781
4899
  references?: {
4782
- type: "image" | "audio" | "article" | "paper" | "video";
4900
+ type: string;
4783
4901
  url: string;
4784
4902
  title?: string | undefined;
4785
4903
  description?: string | undefined;
@@ -4923,6 +5041,7 @@ export declare const mulmoScriptSchema: z.ZodObject<{
4923
5041
  type: "midi";
4924
5042
  source: string;
4925
5043
  } | undefined;
5044
+ imagePrompt?: string | undefined;
4926
5045
  speaker?: string | undefined;
4927
5046
  description?: string | undefined;
4928
5047
  imageParams?: {
@@ -4945,6 +5064,9 @@ export declare const mulmoScriptSchema: z.ZodObject<{
4945
5064
  path: string;
4946
5065
  kind: "path";
4947
5066
  };
5067
+ } | {
5068
+ type: "imagePrompt";
5069
+ prompt: string;
4948
5070
  }> | undefined;
4949
5071
  } | undefined;
4950
5072
  audioParams?: {
@@ -4967,13 +5089,12 @@ export declare const mulmoScriptSchema: z.ZodObject<{
4967
5089
  styles?: string[] | undefined;
4968
5090
  } | undefined;
4969
5091
  imageNames?: string[] | undefined;
4970
- imagePrompt?: string | undefined;
4971
5092
  moviePrompt?: string | undefined;
4972
5093
  htmlPrompt?: {
4973
5094
  data?: any;
5095
+ prompt?: string | undefined;
4974
5096
  images?: Record<string, any> | undefined;
4975
5097
  systemPrompt?: string | undefined;
4976
- prompt?: string | undefined;
4977
5098
  } | undefined;
4978
5099
  }[];
4979
5100
  lang?: string | undefined;
@@ -4999,6 +5120,9 @@ export declare const mulmoScriptSchema: z.ZodObject<{
4999
5120
  path: string;
5000
5121
  kind: "path";
5001
5122
  };
5123
+ } | {
5124
+ type: "imagePrompt";
5125
+ prompt: string;
5002
5126
  }> | undefined;
5003
5127
  } | undefined;
5004
5128
  audioParams?: {
@@ -5063,7 +5187,7 @@ export declare const mulmoScriptSchema: z.ZodObject<{
5063
5187
  } | undefined;
5064
5188
  references?: {
5065
5189
  url: string;
5066
- type?: "image" | "audio" | "article" | "paper" | "video" | undefined;
5190
+ type?: string | undefined;
5067
5191
  title?: string | undefined;
5068
5192
  description?: string | undefined;
5069
5193
  }[] | undefined;
@@ -5208,6 +5332,7 @@ export declare const mulmoSessionStateSchema: z.ZodObject<{
5208
5332
  multiLingual: z.ZodRecord<z.ZodNumber, z.ZodBoolean>;
5209
5333
  caption: z.ZodRecord<z.ZodNumber, z.ZodBoolean>;
5210
5334
  html: z.ZodRecord<z.ZodNumber, z.ZodBoolean>;
5335
+ imageReference: z.ZodRecord<z.ZodNumber, z.ZodBoolean>;
5211
5336
  }, "strip", z.ZodTypeAny, {
5212
5337
  image: Record<number, boolean>;
5213
5338
  movie: Record<number, boolean>;
@@ -5215,6 +5340,7 @@ export declare const mulmoSessionStateSchema: z.ZodObject<{
5215
5340
  audio: Record<number, boolean>;
5216
5341
  multiLingual: Record<number, boolean>;
5217
5342
  caption: Record<number, boolean>;
5343
+ imageReference: Record<number, boolean>;
5218
5344
  }, {
5219
5345
  image: Record<number, boolean>;
5220
5346
  movie: Record<number, boolean>;
@@ -5222,6 +5348,7 @@ export declare const mulmoSessionStateSchema: z.ZodObject<{
5222
5348
  audio: Record<number, boolean>;
5223
5349
  multiLingual: Record<number, boolean>;
5224
5350
  caption: Record<number, boolean>;
5351
+ imageReference: Record<number, boolean>;
5225
5352
  }>;
5226
5353
  }, "strip", z.ZodTypeAny, {
5227
5354
  inSession: {
@@ -5239,6 +5366,7 @@ export declare const mulmoSessionStateSchema: z.ZodObject<{
5239
5366
  audio: Record<number, boolean>;
5240
5367
  multiLingual: Record<number, boolean>;
5241
5368
  caption: Record<number, boolean>;
5369
+ imageReference: Record<number, boolean>;
5242
5370
  };
5243
5371
  }, {
5244
5372
  inSession: {
@@ -5256,6 +5384,7 @@ export declare const mulmoSessionStateSchema: z.ZodObject<{
5256
5384
  audio: Record<number, boolean>;
5257
5385
  multiLingual: Record<number, boolean>;
5258
5386
  caption: Record<number, boolean>;
5387
+ imageReference: Record<number, boolean>;
5259
5388
  };
5260
5389
  }>;
5261
5390
  export declare const mulmoStudioSchema: z.ZodObject<{
@@ -5341,7 +5470,7 @@ export declare const mulmoStudioSchema: z.ZodObject<{
5341
5470
  model: z.ZodOptional<z.ZodString>;
5342
5471
  style: z.ZodOptional<z.ZodString>;
5343
5472
  moderation: z.ZodOptional<z.ZodString>;
5344
- images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
5473
+ images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
5345
5474
  type: z.ZodLiteral<"image">;
5346
5475
  source: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
5347
5476
  kind: z.ZodLiteral<"url">;
@@ -5410,7 +5539,16 @@ export declare const mulmoStudioSchema: z.ZodObject<{
5410
5539
  path: string;
5411
5540
  kind: "path";
5412
5541
  };
5413
- }>>>;
5542
+ }>, z.ZodObject<{
5543
+ type: z.ZodLiteral<"imagePrompt">;
5544
+ prompt: z.ZodString;
5545
+ }, "strict", z.ZodTypeAny, {
5546
+ type: "imagePrompt";
5547
+ prompt: string;
5548
+ }, {
5549
+ type: "imagePrompt";
5550
+ prompt: string;
5551
+ }>]>>>;
5414
5552
  }, "strict", z.ZodTypeAny, {
5415
5553
  provider: "openai" | "google";
5416
5554
  style?: string | undefined;
@@ -5431,6 +5569,9 @@ export declare const mulmoStudioSchema: z.ZodObject<{
5431
5569
  path: string;
5432
5570
  kind: "path";
5433
5571
  };
5572
+ } | {
5573
+ type: "imagePrompt";
5574
+ prompt: string;
5434
5575
  }> | undefined;
5435
5576
  }, {
5436
5577
  provider?: "openai" | "google" | undefined;
@@ -5452,6 +5593,9 @@ export declare const mulmoStudioSchema: z.ZodObject<{
5452
5593
  path: string;
5453
5594
  kind: "path";
5454
5595
  };
5596
+ } | {
5597
+ type: "imagePrompt";
5598
+ prompt: string;
5455
5599
  }> | undefined;
5456
5600
  }>>;
5457
5601
  movieParams: z.ZodOptional<z.ZodObject<{
@@ -5618,15 +5762,15 @@ export declare const mulmoStudioSchema: z.ZodObject<{
5618
5762
  url: z.ZodString;
5619
5763
  title: z.ZodOptional<z.ZodString>;
5620
5764
  description: z.ZodOptional<z.ZodString>;
5621
- type: z.ZodDefault<z.ZodEnum<["article", "paper", "image", "video", "audio"]>>;
5765
+ type: z.ZodDefault<z.ZodUnion<[z.ZodEnum<["article", "paper", "image", "video", "audio"]>, z.ZodString]>>;
5622
5766
  }, "strip", z.ZodTypeAny, {
5623
- type: "image" | "audio" | "article" | "paper" | "video";
5767
+ type: string;
5624
5768
  url: string;
5625
5769
  title?: string | undefined;
5626
5770
  description?: string | undefined;
5627
5771
  }, {
5628
5772
  url: string;
5629
- type?: "image" | "audio" | "article" | "paper" | "video" | undefined;
5773
+ type?: string | undefined;
5630
5774
  title?: string | undefined;
5631
5775
  description?: string | undefined;
5632
5776
  }>, "many">>;
@@ -6163,7 +6307,7 @@ export declare const mulmoStudioSchema: z.ZodObject<{
6163
6307
  model: z.ZodOptional<z.ZodString>;
6164
6308
  style: z.ZodOptional<z.ZodString>;
6165
6309
  moderation: z.ZodOptional<z.ZodString>;
6166
- images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
6310
+ images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
6167
6311
  type: z.ZodLiteral<"image">;
6168
6312
  source: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
6169
6313
  kind: z.ZodLiteral<"url">;
@@ -6232,7 +6376,16 @@ export declare const mulmoStudioSchema: z.ZodObject<{
6232
6376
  path: string;
6233
6377
  kind: "path";
6234
6378
  };
6235
- }>>>;
6379
+ }>, z.ZodObject<{
6380
+ type: z.ZodLiteral<"imagePrompt">;
6381
+ prompt: z.ZodString;
6382
+ }, "strict", z.ZodTypeAny, {
6383
+ type: "imagePrompt";
6384
+ prompt: string;
6385
+ }, {
6386
+ type: "imagePrompt";
6387
+ prompt: string;
6388
+ }>]>>>;
6236
6389
  }, "strict", z.ZodTypeAny, {
6237
6390
  provider: "openai" | "google";
6238
6391
  style?: string | undefined;
@@ -6253,6 +6406,9 @@ export declare const mulmoStudioSchema: z.ZodObject<{
6253
6406
  path: string;
6254
6407
  kind: "path";
6255
6408
  };
6409
+ } | {
6410
+ type: "imagePrompt";
6411
+ prompt: string;
6256
6412
  }> | undefined;
6257
6413
  }, {
6258
6414
  provider?: "openai" | "google" | undefined;
@@ -6274,6 +6430,9 @@ export declare const mulmoStudioSchema: z.ZodObject<{
6274
6430
  path: string;
6275
6431
  kind: "path";
6276
6432
  };
6433
+ } | {
6434
+ type: "imagePrompt";
6435
+ prompt: string;
6277
6436
  }> | undefined;
6278
6437
  }>>;
6279
6438
  audioParams: z.ZodOptional<z.ZodObject<{
@@ -6352,9 +6511,9 @@ export declare const mulmoStudioSchema: z.ZodObject<{
6352
6511
  systemPrompt?: string | undefined;
6353
6512
  }, {
6354
6513
  data?: any;
6514
+ prompt?: string | undefined;
6355
6515
  images?: Record<string, any> | undefined;
6356
6516
  systemPrompt?: string | undefined;
6357
- prompt?: string | undefined;
6358
6517
  }>>;
6359
6518
  }, "strict", z.ZodTypeAny, {
6360
6519
  text: string;
@@ -6489,6 +6648,7 @@ export declare const mulmoStudioSchema: z.ZodObject<{
6489
6648
  type: "midi";
6490
6649
  source: string;
6491
6650
  } | undefined;
6651
+ imagePrompt?: string | undefined;
6492
6652
  description?: string | undefined;
6493
6653
  imageParams?: {
6494
6654
  provider: "openai" | "google";
@@ -6510,6 +6670,9 @@ export declare const mulmoStudioSchema: z.ZodObject<{
6510
6670
  path: string;
6511
6671
  kind: "path";
6512
6672
  };
6673
+ } | {
6674
+ type: "imagePrompt";
6675
+ prompt: string;
6513
6676
  }> | undefined;
6514
6677
  } | undefined;
6515
6678
  audioParams?: {
@@ -6532,7 +6695,6 @@ export declare const mulmoStudioSchema: z.ZodObject<{
6532
6695
  lang?: string | undefined;
6533
6696
  } | undefined;
6534
6697
  imageNames?: string[] | undefined;
6535
- imagePrompt?: string | undefined;
6536
6698
  moviePrompt?: string | undefined;
6537
6699
  htmlPrompt?: {
6538
6700
  prompt: string;
@@ -6672,6 +6834,7 @@ export declare const mulmoStudioSchema: z.ZodObject<{
6672
6834
  type: "midi";
6673
6835
  source: string;
6674
6836
  } | undefined;
6837
+ imagePrompt?: string | undefined;
6675
6838
  speaker?: string | undefined;
6676
6839
  description?: string | undefined;
6677
6840
  imageParams?: {
@@ -6694,6 +6857,9 @@ export declare const mulmoStudioSchema: z.ZodObject<{
6694
6857
  path: string;
6695
6858
  kind: "path";
6696
6859
  };
6860
+ } | {
6861
+ type: "imagePrompt";
6862
+ prompt: string;
6697
6863
  }> | undefined;
6698
6864
  } | undefined;
6699
6865
  audioParams?: {
@@ -6716,13 +6882,12 @@ export declare const mulmoStudioSchema: z.ZodObject<{
6716
6882
  styles?: string[] | undefined;
6717
6883
  } | undefined;
6718
6884
  imageNames?: string[] | undefined;
6719
- imagePrompt?: string | undefined;
6720
6885
  moviePrompt?: string | undefined;
6721
6886
  htmlPrompt?: {
6722
6887
  data?: any;
6888
+ prompt?: string | undefined;
6723
6889
  images?: Record<string, any> | undefined;
6724
6890
  systemPrompt?: string | undefined;
6725
- prompt?: string | undefined;
6726
6891
  } | undefined;
6727
6892
  }>, "many">;
6728
6893
  imagePath: z.ZodOptional<z.ZodString>;
@@ -6903,6 +7068,7 @@ export declare const mulmoStudioSchema: z.ZodObject<{
6903
7068
  type: "midi";
6904
7069
  source: string;
6905
7070
  } | undefined;
7071
+ imagePrompt?: string | undefined;
6906
7072
  description?: string | undefined;
6907
7073
  imageParams?: {
6908
7074
  provider: "openai" | "google";
@@ -6924,6 +7090,9 @@ export declare const mulmoStudioSchema: z.ZodObject<{
6924
7090
  path: string;
6925
7091
  kind: "path";
6926
7092
  };
7093
+ } | {
7094
+ type: "imagePrompt";
7095
+ prompt: string;
6927
7096
  }> | undefined;
6928
7097
  } | undefined;
6929
7098
  audioParams?: {
@@ -6946,7 +7115,6 @@ export declare const mulmoStudioSchema: z.ZodObject<{
6946
7115
  lang?: string | undefined;
6947
7116
  } | undefined;
6948
7117
  imageNames?: string[] | undefined;
6949
- imagePrompt?: string | undefined;
6950
7118
  moviePrompt?: string | undefined;
6951
7119
  htmlPrompt?: {
6952
7120
  prompt: string;
@@ -6978,6 +7146,9 @@ export declare const mulmoStudioSchema: z.ZodObject<{
6978
7146
  path: string;
6979
7147
  kind: "path";
6980
7148
  };
7149
+ } | {
7150
+ type: "imagePrompt";
7151
+ prompt: string;
6981
7152
  }> | undefined;
6982
7153
  } | undefined;
6983
7154
  movieParams?: {
@@ -7003,7 +7174,7 @@ export declare const mulmoStudioSchema: z.ZodObject<{
7003
7174
  lang?: string | undefined;
7004
7175
  } | undefined;
7005
7176
  references?: {
7006
- type: "image" | "audio" | "article" | "paper" | "video";
7177
+ type: string;
7007
7178
  url: string;
7008
7179
  title?: string | undefined;
7009
7180
  description?: string | undefined;
@@ -7147,6 +7318,7 @@ export declare const mulmoStudioSchema: z.ZodObject<{
7147
7318
  type: "midi";
7148
7319
  source: string;
7149
7320
  } | undefined;
7321
+ imagePrompt?: string | undefined;
7150
7322
  speaker?: string | undefined;
7151
7323
  description?: string | undefined;
7152
7324
  imageParams?: {
@@ -7169,6 +7341,9 @@ export declare const mulmoStudioSchema: z.ZodObject<{
7169
7341
  path: string;
7170
7342
  kind: "path";
7171
7343
  };
7344
+ } | {
7345
+ type: "imagePrompt";
7346
+ prompt: string;
7172
7347
  }> | undefined;
7173
7348
  } | undefined;
7174
7349
  audioParams?: {
@@ -7191,13 +7366,12 @@ export declare const mulmoStudioSchema: z.ZodObject<{
7191
7366
  styles?: string[] | undefined;
7192
7367
  } | undefined;
7193
7368
  imageNames?: string[] | undefined;
7194
- imagePrompt?: string | undefined;
7195
7369
  moviePrompt?: string | undefined;
7196
7370
  htmlPrompt?: {
7197
7371
  data?: any;
7372
+ prompt?: string | undefined;
7198
7373
  images?: Record<string, any> | undefined;
7199
7374
  systemPrompt?: string | undefined;
7200
- prompt?: string | undefined;
7201
7375
  } | undefined;
7202
7376
  }[];
7203
7377
  lang?: string | undefined;
@@ -7223,6 +7397,9 @@ export declare const mulmoStudioSchema: z.ZodObject<{
7223
7397
  path: string;
7224
7398
  kind: "path";
7225
7399
  };
7400
+ } | {
7401
+ type: "imagePrompt";
7402
+ prompt: string;
7226
7403
  }> | undefined;
7227
7404
  } | undefined;
7228
7405
  audioParams?: {
@@ -7287,7 +7464,7 @@ export declare const mulmoStudioSchema: z.ZodObject<{
7287
7464
  } | undefined;
7288
7465
  references?: {
7289
7466
  url: string;
7290
- type?: "image" | "audio" | "article" | "paper" | "video" | undefined;
7467
+ type?: string | undefined;
7291
7468
  title?: string | undefined;
7292
7469
  description?: string | undefined;
7293
7470
  }[] | undefined;
@@ -7518,6 +7695,7 @@ export declare const mulmoStudioSchema: z.ZodObject<{
7518
7695
  type: "midi";
7519
7696
  source: string;
7520
7697
  } | undefined;
7698
+ imagePrompt?: string | undefined;
7521
7699
  description?: string | undefined;
7522
7700
  imageParams?: {
7523
7701
  provider: "openai" | "google";
@@ -7539,6 +7717,9 @@ export declare const mulmoStudioSchema: z.ZodObject<{
7539
7717
  path: string;
7540
7718
  kind: "path";
7541
7719
  };
7720
+ } | {
7721
+ type: "imagePrompt";
7722
+ prompt: string;
7542
7723
  }> | undefined;
7543
7724
  } | undefined;
7544
7725
  audioParams?: {
@@ -7561,7 +7742,6 @@ export declare const mulmoStudioSchema: z.ZodObject<{
7561
7742
  lang?: string | undefined;
7562
7743
  } | undefined;
7563
7744
  imageNames?: string[] | undefined;
7564
- imagePrompt?: string | undefined;
7565
7745
  moviePrompt?: string | undefined;
7566
7746
  htmlPrompt?: {
7567
7747
  prompt: string;
@@ -7593,6 +7773,9 @@ export declare const mulmoStudioSchema: z.ZodObject<{
7593
7773
  path: string;
7594
7774
  kind: "path";
7595
7775
  };
7776
+ } | {
7777
+ type: "imagePrompt";
7778
+ prompt: string;
7596
7779
  }> | undefined;
7597
7780
  } | undefined;
7598
7781
  movieParams?: {
@@ -7618,7 +7801,7 @@ export declare const mulmoStudioSchema: z.ZodObject<{
7618
7801
  lang?: string | undefined;
7619
7802
  } | undefined;
7620
7803
  references?: {
7621
- type: "image" | "audio" | "article" | "paper" | "video";
7804
+ type: string;
7622
7805
  url: string;
7623
7806
  title?: string | undefined;
7624
7807
  description?: string | undefined;
@@ -7777,6 +7960,7 @@ export declare const mulmoStudioSchema: z.ZodObject<{
7777
7960
  type: "midi";
7778
7961
  source: string;
7779
7962
  } | undefined;
7963
+ imagePrompt?: string | undefined;
7780
7964
  speaker?: string | undefined;
7781
7965
  description?: string | undefined;
7782
7966
  imageParams?: {
@@ -7799,6 +7983,9 @@ export declare const mulmoStudioSchema: z.ZodObject<{
7799
7983
  path: string;
7800
7984
  kind: "path";
7801
7985
  };
7986
+ } | {
7987
+ type: "imagePrompt";
7988
+ prompt: string;
7802
7989
  }> | undefined;
7803
7990
  } | undefined;
7804
7991
  audioParams?: {
@@ -7821,13 +8008,12 @@ export declare const mulmoStudioSchema: z.ZodObject<{
7821
8008
  styles?: string[] | undefined;
7822
8009
  } | undefined;
7823
8010
  imageNames?: string[] | undefined;
7824
- imagePrompt?: string | undefined;
7825
8011
  moviePrompt?: string | undefined;
7826
8012
  htmlPrompt?: {
7827
8013
  data?: any;
8014
+ prompt?: string | undefined;
7828
8015
  images?: Record<string, any> | undefined;
7829
8016
  systemPrompt?: string | undefined;
7830
- prompt?: string | undefined;
7831
8017
  } | undefined;
7832
8018
  }[];
7833
8019
  lang?: string | undefined;
@@ -7853,6 +8039,9 @@ export declare const mulmoStudioSchema: z.ZodObject<{
7853
8039
  path: string;
7854
8040
  kind: "path";
7855
8041
  };
8042
+ } | {
8043
+ type: "imagePrompt";
8044
+ prompt: string;
7856
8045
  }> | undefined;
7857
8046
  } | undefined;
7858
8047
  audioParams?: {
@@ -7917,7 +8106,7 @@ export declare const mulmoStudioSchema: z.ZodObject<{
7917
8106
  } | undefined;
7918
8107
  references?: {
7919
8108
  url: string;
7920
- type?: "image" | "audio" | "article" | "paper" | "video" | undefined;
8109
+ type?: string | undefined;
7921
8110
  title?: string | undefined;
7922
8111
  description?: string | undefined;
7923
8112
  }[] | undefined;
@@ -8013,7 +8202,7 @@ export declare const mulmoScriptTemplateSchema: z.ZodObject<{
8013
8202
  model: z.ZodOptional<z.ZodString>;
8014
8203
  style: z.ZodOptional<z.ZodString>;
8015
8204
  moderation: z.ZodOptional<z.ZodString>;
8016
- images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
8205
+ images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
8017
8206
  type: z.ZodLiteral<"image">;
8018
8207
  source: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
8019
8208
  kind: z.ZodLiteral<"url">;
@@ -8082,7 +8271,16 @@ export declare const mulmoScriptTemplateSchema: z.ZodObject<{
8082
8271
  path: string;
8083
8272
  kind: "path";
8084
8273
  };
8085
- }>>>;
8274
+ }>, z.ZodObject<{
8275
+ type: z.ZodLiteral<"imagePrompt">;
8276
+ prompt: z.ZodString;
8277
+ }, "strict", z.ZodTypeAny, {
8278
+ type: "imagePrompt";
8279
+ prompt: string;
8280
+ }, {
8281
+ type: "imagePrompt";
8282
+ prompt: string;
8283
+ }>]>>>;
8086
8284
  }, "strict", z.ZodTypeAny, {
8087
8285
  provider: "openai" | "google";
8088
8286
  style?: string | undefined;
@@ -8103,6 +8301,9 @@ export declare const mulmoScriptTemplateSchema: z.ZodObject<{
8103
8301
  path: string;
8104
8302
  kind: "path";
8105
8303
  };
8304
+ } | {
8305
+ type: "imagePrompt";
8306
+ prompt: string;
8106
8307
  }> | undefined;
8107
8308
  }, {
8108
8309
  provider?: "openai" | "google" | undefined;
@@ -8124,6 +8325,9 @@ export declare const mulmoScriptTemplateSchema: z.ZodObject<{
8124
8325
  path: string;
8125
8326
  kind: "path";
8126
8327
  };
8328
+ } | {
8329
+ type: "imagePrompt";
8330
+ prompt: string;
8127
8331
  }> | undefined;
8128
8332
  }>>;
8129
8333
  movieParams: z.ZodOptional<z.ZodObject<{
@@ -8346,6 +8550,9 @@ export declare const mulmoScriptTemplateSchema: z.ZodObject<{
8346
8550
  path: string;
8347
8551
  kind: "path";
8348
8552
  };
8553
+ } | {
8554
+ type: "imagePrompt";
8555
+ prompt: string;
8349
8556
  }> | undefined;
8350
8557
  } | undefined;
8351
8558
  movieParams?: {
@@ -8395,6 +8602,9 @@ export declare const mulmoScriptTemplateSchema: z.ZodObject<{
8395
8602
  path: string;
8396
8603
  kind: "path";
8397
8604
  };
8605
+ } | {
8606
+ type: "imagePrompt";
8607
+ prompt: string;
8398
8608
  }> | undefined;
8399
8609
  } | undefined;
8400
8610
  audioParams?: {
@@ -8526,6 +8736,9 @@ export declare const mulmoScriptTemplateSchema: z.ZodObject<{
8526
8736
  path: string;
8527
8737
  kind: "path";
8528
8738
  };
8739
+ } | {
8740
+ type: "imagePrompt";
8741
+ prompt: string;
8529
8742
  }> | undefined;
8530
8743
  } | undefined;
8531
8744
  movieParams?: {
@@ -8581,6 +8794,9 @@ export declare const mulmoScriptTemplateSchema: z.ZodObject<{
8581
8794
  path: string;
8582
8795
  kind: "path";
8583
8796
  };
8797
+ } | {
8798
+ type: "imagePrompt";
8799
+ prompt: string;
8584
8800
  }> | undefined;
8585
8801
  } | undefined;
8586
8802
  audioParams?: {
@@ -8732,7 +8948,7 @@ export declare const mulmoScriptTemplateFileSchema: z.ZodObject<{
8732
8948
  model: z.ZodOptional<z.ZodString>;
8733
8949
  style: z.ZodOptional<z.ZodString>;
8734
8950
  moderation: z.ZodOptional<z.ZodString>;
8735
- images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
8951
+ images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
8736
8952
  type: z.ZodLiteral<"image">;
8737
8953
  source: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
8738
8954
  kind: z.ZodLiteral<"url">;
@@ -8801,7 +9017,16 @@ export declare const mulmoScriptTemplateFileSchema: z.ZodObject<{
8801
9017
  path: string;
8802
9018
  kind: "path";
8803
9019
  };
8804
- }>>>;
9020
+ }>, z.ZodObject<{
9021
+ type: z.ZodLiteral<"imagePrompt">;
9022
+ prompt: z.ZodString;
9023
+ }, "strict", z.ZodTypeAny, {
9024
+ type: "imagePrompt";
9025
+ prompt: string;
9026
+ }, {
9027
+ type: "imagePrompt";
9028
+ prompt: string;
9029
+ }>]>>>;
8805
9030
  }, "strict", z.ZodTypeAny, {
8806
9031
  provider: "openai" | "google";
8807
9032
  style?: string | undefined;
@@ -8822,6 +9047,9 @@ export declare const mulmoScriptTemplateFileSchema: z.ZodObject<{
8822
9047
  path: string;
8823
9048
  kind: "path";
8824
9049
  };
9050
+ } | {
9051
+ type: "imagePrompt";
9052
+ prompt: string;
8825
9053
  }> | undefined;
8826
9054
  }, {
8827
9055
  provider?: "openai" | "google" | undefined;
@@ -8843,6 +9071,9 @@ export declare const mulmoScriptTemplateFileSchema: z.ZodObject<{
8843
9071
  path: string;
8844
9072
  kind: "path";
8845
9073
  };
9074
+ } | {
9075
+ type: "imagePrompt";
9076
+ prompt: string;
8846
9077
  }> | undefined;
8847
9078
  }>>;
8848
9079
  movieParams: z.ZodOptional<z.ZodObject<{
@@ -9065,6 +9296,9 @@ export declare const mulmoScriptTemplateFileSchema: z.ZodObject<{
9065
9296
  path: string;
9066
9297
  kind: "path";
9067
9298
  };
9299
+ } | {
9300
+ type: "imagePrompt";
9301
+ prompt: string;
9068
9302
  }> | undefined;
9069
9303
  } | undefined;
9070
9304
  movieParams?: {
@@ -9114,6 +9348,9 @@ export declare const mulmoScriptTemplateFileSchema: z.ZodObject<{
9114
9348
  path: string;
9115
9349
  kind: "path";
9116
9350
  };
9351
+ } | {
9352
+ type: "imagePrompt";
9353
+ prompt: string;
9117
9354
  }> | undefined;
9118
9355
  } | undefined;
9119
9356
  audioParams?: {
@@ -9248,6 +9485,9 @@ export declare const mulmoScriptTemplateFileSchema: z.ZodObject<{
9248
9485
  path: string;
9249
9486
  kind: "path";
9250
9487
  };
9488
+ } | {
9489
+ type: "imagePrompt";
9490
+ prompt: string;
9251
9491
  }> | undefined;
9252
9492
  } | undefined;
9253
9493
  movieParams?: {
@@ -9304,6 +9544,9 @@ export declare const mulmoScriptTemplateFileSchema: z.ZodObject<{
9304
9544
  path: string;
9305
9545
  kind: "path";
9306
9546
  };
9547
+ } | {
9548
+ type: "imagePrompt";
9549
+ prompt: string;
9307
9550
  }> | undefined;
9308
9551
  } | undefined;
9309
9552
  audioParams?: {
@@ -9374,22 +9617,22 @@ export declare const mulmoStoryboardSceneSchema: z.ZodObject<{
9374
9617
  url: z.ZodString;
9375
9618
  title: z.ZodOptional<z.ZodString>;
9376
9619
  description: z.ZodOptional<z.ZodString>;
9377
- type: z.ZodDefault<z.ZodEnum<["article", "paper", "image", "video", "audio"]>>;
9620
+ type: z.ZodDefault<z.ZodUnion<[z.ZodEnum<["article", "paper", "image", "video", "audio"]>, z.ZodString]>>;
9378
9621
  }, "strip", z.ZodTypeAny, {
9379
- type: "image" | "audio" | "article" | "paper" | "video";
9622
+ type: string;
9380
9623
  url: string;
9381
9624
  title?: string | undefined;
9382
9625
  description?: string | undefined;
9383
9626
  }, {
9384
9627
  url: string;
9385
- type?: "image" | "audio" | "article" | "paper" | "video" | undefined;
9628
+ type?: string | undefined;
9386
9629
  title?: string | undefined;
9387
9630
  description?: string | undefined;
9388
9631
  }>, "many">>;
9389
9632
  }, "strict", z.ZodTypeAny, {
9390
9633
  description: string;
9391
9634
  references?: {
9392
- type: "image" | "audio" | "article" | "paper" | "video";
9635
+ type: string;
9393
9636
  url: string;
9394
9637
  title?: string | undefined;
9395
9638
  description?: string | undefined;
@@ -9398,7 +9641,7 @@ export declare const mulmoStoryboardSceneSchema: z.ZodObject<{
9398
9641
  description: string;
9399
9642
  references?: {
9400
9643
  url: string;
9401
- type?: "image" | "audio" | "article" | "paper" | "video" | undefined;
9644
+ type?: string | undefined;
9402
9645
  title?: string | undefined;
9403
9646
  description?: string | undefined;
9404
9647
  }[] | undefined;
@@ -9409,15 +9652,15 @@ export declare const mulmoStoryboardSchema: z.ZodObject<{
9409
9652
  url: z.ZodString;
9410
9653
  title: z.ZodOptional<z.ZodString>;
9411
9654
  description: z.ZodOptional<z.ZodString>;
9412
- type: z.ZodDefault<z.ZodEnum<["article", "paper", "image", "video", "audio"]>>;
9655
+ type: z.ZodDefault<z.ZodUnion<[z.ZodEnum<["article", "paper", "image", "video", "audio"]>, z.ZodString]>>;
9413
9656
  }, "strip", z.ZodTypeAny, {
9414
- type: "image" | "audio" | "article" | "paper" | "video";
9657
+ type: string;
9415
9658
  url: string;
9416
9659
  title?: string | undefined;
9417
9660
  description?: string | undefined;
9418
9661
  }, {
9419
9662
  url: string;
9420
- type?: "image" | "audio" | "article" | "paper" | "video" | undefined;
9663
+ type?: string | undefined;
9421
9664
  title?: string | undefined;
9422
9665
  description?: string | undefined;
9423
9666
  }>, "many">>;
@@ -9427,22 +9670,22 @@ export declare const mulmoStoryboardSchema: z.ZodObject<{
9427
9670
  url: z.ZodString;
9428
9671
  title: z.ZodOptional<z.ZodString>;
9429
9672
  description: z.ZodOptional<z.ZodString>;
9430
- type: z.ZodDefault<z.ZodEnum<["article", "paper", "image", "video", "audio"]>>;
9673
+ type: z.ZodDefault<z.ZodUnion<[z.ZodEnum<["article", "paper", "image", "video", "audio"]>, z.ZodString]>>;
9431
9674
  }, "strip", z.ZodTypeAny, {
9432
- type: "image" | "audio" | "article" | "paper" | "video";
9675
+ type: string;
9433
9676
  url: string;
9434
9677
  title?: string | undefined;
9435
9678
  description?: string | undefined;
9436
9679
  }, {
9437
9680
  url: string;
9438
- type?: "image" | "audio" | "article" | "paper" | "video" | undefined;
9681
+ type?: string | undefined;
9439
9682
  title?: string | undefined;
9440
9683
  description?: string | undefined;
9441
9684
  }>, "many">>;
9442
9685
  }, "strict", z.ZodTypeAny, {
9443
9686
  description: string;
9444
9687
  references?: {
9445
- type: "image" | "audio" | "article" | "paper" | "video";
9688
+ type: string;
9446
9689
  url: string;
9447
9690
  title?: string | undefined;
9448
9691
  description?: string | undefined;
@@ -9451,7 +9694,7 @@ export declare const mulmoStoryboardSchema: z.ZodObject<{
9451
9694
  description: string;
9452
9695
  references?: {
9453
9696
  url: string;
9454
- type?: "image" | "audio" | "article" | "paper" | "video" | undefined;
9697
+ type?: string | undefined;
9455
9698
  title?: string | undefined;
9456
9699
  description?: string | undefined;
9457
9700
  }[] | undefined;
@@ -9461,14 +9704,14 @@ export declare const mulmoStoryboardSchema: z.ZodObject<{
9461
9704
  scenes: {
9462
9705
  description: string;
9463
9706
  references?: {
9464
- type: "image" | "audio" | "article" | "paper" | "video";
9707
+ type: string;
9465
9708
  url: string;
9466
9709
  title?: string | undefined;
9467
9710
  description?: string | undefined;
9468
9711
  }[] | undefined;
9469
9712
  }[];
9470
9713
  references?: {
9471
- type: "image" | "audio" | "article" | "paper" | "video";
9714
+ type: string;
9472
9715
  url: string;
9473
9716
  title?: string | undefined;
9474
9717
  description?: string | undefined;
@@ -9479,14 +9722,14 @@ export declare const mulmoStoryboardSchema: z.ZodObject<{
9479
9722
  description: string;
9480
9723
  references?: {
9481
9724
  url: string;
9482
- type?: "image" | "audio" | "article" | "paper" | "video" | undefined;
9725
+ type?: string | undefined;
9483
9726
  title?: string | undefined;
9484
9727
  description?: string | undefined;
9485
9728
  }[] | undefined;
9486
9729
  }[];
9487
9730
  references?: {
9488
9731
  url: string;
9489
- type?: "image" | "audio" | "article" | "paper" | "video" | undefined;
9732
+ type?: string | undefined;
9490
9733
  title?: string | undefined;
9491
9734
  description?: string | undefined;
9492
9735
  }[] | undefined;