mulmocast 0.1.1 → 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 -105
  9. package/lib/actions/images.js +83 -182
  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 +322 -74
  39. package/lib/types/schema.js +10 -2
  40. package/lib/types/type.d.ts +3 -2
  41. package/lib/utils/context.d.ts +13 -2
  42. package/lib/utils/context.js +2 -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 +11 -7
  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 +10 -9
  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;
@@ -5207,18 +5331,24 @@ export declare const mulmoSessionStateSchema: z.ZodObject<{
5207
5331
  movie: z.ZodRecord<z.ZodNumber, z.ZodBoolean>;
5208
5332
  multiLingual: z.ZodRecord<z.ZodNumber, z.ZodBoolean>;
5209
5333
  caption: z.ZodRecord<z.ZodNumber, z.ZodBoolean>;
5334
+ html: z.ZodRecord<z.ZodNumber, z.ZodBoolean>;
5335
+ imageReference: z.ZodRecord<z.ZodNumber, z.ZodBoolean>;
5210
5336
  }, "strip", z.ZodTypeAny, {
5211
5337
  image: Record<number, boolean>;
5212
5338
  movie: Record<number, boolean>;
5339
+ html: Record<number, boolean>;
5213
5340
  audio: Record<number, boolean>;
5214
5341
  multiLingual: Record<number, boolean>;
5215
5342
  caption: Record<number, boolean>;
5343
+ imageReference: Record<number, boolean>;
5216
5344
  }, {
5217
5345
  image: Record<number, boolean>;
5218
5346
  movie: Record<number, boolean>;
5347
+ html: Record<number, boolean>;
5219
5348
  audio: Record<number, boolean>;
5220
5349
  multiLingual: Record<number, boolean>;
5221
5350
  caption: Record<number, boolean>;
5351
+ imageReference: Record<number, boolean>;
5222
5352
  }>;
5223
5353
  }, "strip", z.ZodTypeAny, {
5224
5354
  inSession: {
@@ -5232,9 +5362,11 @@ export declare const mulmoSessionStateSchema: z.ZodObject<{
5232
5362
  inBeatSession: {
5233
5363
  image: Record<number, boolean>;
5234
5364
  movie: Record<number, boolean>;
5365
+ html: Record<number, boolean>;
5235
5366
  audio: Record<number, boolean>;
5236
5367
  multiLingual: Record<number, boolean>;
5237
5368
  caption: Record<number, boolean>;
5369
+ imageReference: Record<number, boolean>;
5238
5370
  };
5239
5371
  }, {
5240
5372
  inSession: {
@@ -5248,9 +5380,11 @@ export declare const mulmoSessionStateSchema: z.ZodObject<{
5248
5380
  inBeatSession: {
5249
5381
  image: Record<number, boolean>;
5250
5382
  movie: Record<number, boolean>;
5383
+ html: Record<number, boolean>;
5251
5384
  audio: Record<number, boolean>;
5252
5385
  multiLingual: Record<number, boolean>;
5253
5386
  caption: Record<number, boolean>;
5387
+ imageReference: Record<number, boolean>;
5254
5388
  };
5255
5389
  }>;
5256
5390
  export declare const mulmoStudioSchema: z.ZodObject<{
@@ -5336,7 +5470,7 @@ export declare const mulmoStudioSchema: z.ZodObject<{
5336
5470
  model: z.ZodOptional<z.ZodString>;
5337
5471
  style: z.ZodOptional<z.ZodString>;
5338
5472
  moderation: z.ZodOptional<z.ZodString>;
5339
- images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
5473
+ images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
5340
5474
  type: z.ZodLiteral<"image">;
5341
5475
  source: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
5342
5476
  kind: z.ZodLiteral<"url">;
@@ -5405,7 +5539,16 @@ export declare const mulmoStudioSchema: z.ZodObject<{
5405
5539
  path: string;
5406
5540
  kind: "path";
5407
5541
  };
5408
- }>>>;
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
+ }>]>>>;
5409
5552
  }, "strict", z.ZodTypeAny, {
5410
5553
  provider: "openai" | "google";
5411
5554
  style?: string | undefined;
@@ -5426,6 +5569,9 @@ export declare const mulmoStudioSchema: z.ZodObject<{
5426
5569
  path: string;
5427
5570
  kind: "path";
5428
5571
  };
5572
+ } | {
5573
+ type: "imagePrompt";
5574
+ prompt: string;
5429
5575
  }> | undefined;
5430
5576
  }, {
5431
5577
  provider?: "openai" | "google" | undefined;
@@ -5447,6 +5593,9 @@ export declare const mulmoStudioSchema: z.ZodObject<{
5447
5593
  path: string;
5448
5594
  kind: "path";
5449
5595
  };
5596
+ } | {
5597
+ type: "imagePrompt";
5598
+ prompt: string;
5450
5599
  }> | undefined;
5451
5600
  }>>;
5452
5601
  movieParams: z.ZodOptional<z.ZodObject<{
@@ -5613,15 +5762,15 @@ export declare const mulmoStudioSchema: z.ZodObject<{
5613
5762
  url: z.ZodString;
5614
5763
  title: z.ZodOptional<z.ZodString>;
5615
5764
  description: z.ZodOptional<z.ZodString>;
5616
- 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]>>;
5617
5766
  }, "strip", z.ZodTypeAny, {
5618
- type: "image" | "audio" | "article" | "paper" | "video";
5767
+ type: string;
5619
5768
  url: string;
5620
5769
  title?: string | undefined;
5621
5770
  description?: string | undefined;
5622
5771
  }, {
5623
5772
  url: string;
5624
- type?: "image" | "audio" | "article" | "paper" | "video" | undefined;
5773
+ type?: string | undefined;
5625
5774
  title?: string | undefined;
5626
5775
  description?: string | undefined;
5627
5776
  }>, "many">>;
@@ -6158,7 +6307,7 @@ export declare const mulmoStudioSchema: z.ZodObject<{
6158
6307
  model: z.ZodOptional<z.ZodString>;
6159
6308
  style: z.ZodOptional<z.ZodString>;
6160
6309
  moderation: z.ZodOptional<z.ZodString>;
6161
- images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
6310
+ images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
6162
6311
  type: z.ZodLiteral<"image">;
6163
6312
  source: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
6164
6313
  kind: z.ZodLiteral<"url">;
@@ -6227,7 +6376,16 @@ export declare const mulmoStudioSchema: z.ZodObject<{
6227
6376
  path: string;
6228
6377
  kind: "path";
6229
6378
  };
6230
- }>>>;
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
+ }>]>>>;
6231
6389
  }, "strict", z.ZodTypeAny, {
6232
6390
  provider: "openai" | "google";
6233
6391
  style?: string | undefined;
@@ -6248,6 +6406,9 @@ export declare const mulmoStudioSchema: z.ZodObject<{
6248
6406
  path: string;
6249
6407
  kind: "path";
6250
6408
  };
6409
+ } | {
6410
+ type: "imagePrompt";
6411
+ prompt: string;
6251
6412
  }> | undefined;
6252
6413
  }, {
6253
6414
  provider?: "openai" | "google" | undefined;
@@ -6269,6 +6430,9 @@ export declare const mulmoStudioSchema: z.ZodObject<{
6269
6430
  path: string;
6270
6431
  kind: "path";
6271
6432
  };
6433
+ } | {
6434
+ type: "imagePrompt";
6435
+ prompt: string;
6272
6436
  }> | undefined;
6273
6437
  }>>;
6274
6438
  audioParams: z.ZodOptional<z.ZodObject<{
@@ -6347,9 +6511,9 @@ export declare const mulmoStudioSchema: z.ZodObject<{
6347
6511
  systemPrompt?: string | undefined;
6348
6512
  }, {
6349
6513
  data?: any;
6514
+ prompt?: string | undefined;
6350
6515
  images?: Record<string, any> | undefined;
6351
6516
  systemPrompt?: string | undefined;
6352
- prompt?: string | undefined;
6353
6517
  }>>;
6354
6518
  }, "strict", z.ZodTypeAny, {
6355
6519
  text: string;
@@ -6484,6 +6648,7 @@ export declare const mulmoStudioSchema: z.ZodObject<{
6484
6648
  type: "midi";
6485
6649
  source: string;
6486
6650
  } | undefined;
6651
+ imagePrompt?: string | undefined;
6487
6652
  description?: string | undefined;
6488
6653
  imageParams?: {
6489
6654
  provider: "openai" | "google";
@@ -6505,6 +6670,9 @@ export declare const mulmoStudioSchema: z.ZodObject<{
6505
6670
  path: string;
6506
6671
  kind: "path";
6507
6672
  };
6673
+ } | {
6674
+ type: "imagePrompt";
6675
+ prompt: string;
6508
6676
  }> | undefined;
6509
6677
  } | undefined;
6510
6678
  audioParams?: {
@@ -6527,7 +6695,6 @@ export declare const mulmoStudioSchema: z.ZodObject<{
6527
6695
  lang?: string | undefined;
6528
6696
  } | undefined;
6529
6697
  imageNames?: string[] | undefined;
6530
- imagePrompt?: string | undefined;
6531
6698
  moviePrompt?: string | undefined;
6532
6699
  htmlPrompt?: {
6533
6700
  prompt: string;
@@ -6667,6 +6834,7 @@ export declare const mulmoStudioSchema: z.ZodObject<{
6667
6834
  type: "midi";
6668
6835
  source: string;
6669
6836
  } | undefined;
6837
+ imagePrompt?: string | undefined;
6670
6838
  speaker?: string | undefined;
6671
6839
  description?: string | undefined;
6672
6840
  imageParams?: {
@@ -6689,6 +6857,9 @@ export declare const mulmoStudioSchema: z.ZodObject<{
6689
6857
  path: string;
6690
6858
  kind: "path";
6691
6859
  };
6860
+ } | {
6861
+ type: "imagePrompt";
6862
+ prompt: string;
6692
6863
  }> | undefined;
6693
6864
  } | undefined;
6694
6865
  audioParams?: {
@@ -6711,13 +6882,12 @@ export declare const mulmoStudioSchema: z.ZodObject<{
6711
6882
  styles?: string[] | undefined;
6712
6883
  } | undefined;
6713
6884
  imageNames?: string[] | undefined;
6714
- imagePrompt?: string | undefined;
6715
6885
  moviePrompt?: string | undefined;
6716
6886
  htmlPrompt?: {
6717
6887
  data?: any;
6888
+ prompt?: string | undefined;
6718
6889
  images?: Record<string, any> | undefined;
6719
6890
  systemPrompt?: string | undefined;
6720
- prompt?: string | undefined;
6721
6891
  } | undefined;
6722
6892
  }>, "many">;
6723
6893
  imagePath: z.ZodOptional<z.ZodString>;
@@ -6898,6 +7068,7 @@ export declare const mulmoStudioSchema: z.ZodObject<{
6898
7068
  type: "midi";
6899
7069
  source: string;
6900
7070
  } | undefined;
7071
+ imagePrompt?: string | undefined;
6901
7072
  description?: string | undefined;
6902
7073
  imageParams?: {
6903
7074
  provider: "openai" | "google";
@@ -6919,6 +7090,9 @@ export declare const mulmoStudioSchema: z.ZodObject<{
6919
7090
  path: string;
6920
7091
  kind: "path";
6921
7092
  };
7093
+ } | {
7094
+ type: "imagePrompt";
7095
+ prompt: string;
6922
7096
  }> | undefined;
6923
7097
  } | undefined;
6924
7098
  audioParams?: {
@@ -6941,7 +7115,6 @@ export declare const mulmoStudioSchema: z.ZodObject<{
6941
7115
  lang?: string | undefined;
6942
7116
  } | undefined;
6943
7117
  imageNames?: string[] | undefined;
6944
- imagePrompt?: string | undefined;
6945
7118
  moviePrompt?: string | undefined;
6946
7119
  htmlPrompt?: {
6947
7120
  prompt: string;
@@ -6973,6 +7146,9 @@ export declare const mulmoStudioSchema: z.ZodObject<{
6973
7146
  path: string;
6974
7147
  kind: "path";
6975
7148
  };
7149
+ } | {
7150
+ type: "imagePrompt";
7151
+ prompt: string;
6976
7152
  }> | undefined;
6977
7153
  } | undefined;
6978
7154
  movieParams?: {
@@ -6998,7 +7174,7 @@ export declare const mulmoStudioSchema: z.ZodObject<{
6998
7174
  lang?: string | undefined;
6999
7175
  } | undefined;
7000
7176
  references?: {
7001
- type: "image" | "audio" | "article" | "paper" | "video";
7177
+ type: string;
7002
7178
  url: string;
7003
7179
  title?: string | undefined;
7004
7180
  description?: string | undefined;
@@ -7142,6 +7318,7 @@ export declare const mulmoStudioSchema: z.ZodObject<{
7142
7318
  type: "midi";
7143
7319
  source: string;
7144
7320
  } | undefined;
7321
+ imagePrompt?: string | undefined;
7145
7322
  speaker?: string | undefined;
7146
7323
  description?: string | undefined;
7147
7324
  imageParams?: {
@@ -7164,6 +7341,9 @@ export declare const mulmoStudioSchema: z.ZodObject<{
7164
7341
  path: string;
7165
7342
  kind: "path";
7166
7343
  };
7344
+ } | {
7345
+ type: "imagePrompt";
7346
+ prompt: string;
7167
7347
  }> | undefined;
7168
7348
  } | undefined;
7169
7349
  audioParams?: {
@@ -7186,13 +7366,12 @@ export declare const mulmoStudioSchema: z.ZodObject<{
7186
7366
  styles?: string[] | undefined;
7187
7367
  } | undefined;
7188
7368
  imageNames?: string[] | undefined;
7189
- imagePrompt?: string | undefined;
7190
7369
  moviePrompt?: string | undefined;
7191
7370
  htmlPrompt?: {
7192
7371
  data?: any;
7372
+ prompt?: string | undefined;
7193
7373
  images?: Record<string, any> | undefined;
7194
7374
  systemPrompt?: string | undefined;
7195
- prompt?: string | undefined;
7196
7375
  } | undefined;
7197
7376
  }[];
7198
7377
  lang?: string | undefined;
@@ -7218,6 +7397,9 @@ export declare const mulmoStudioSchema: z.ZodObject<{
7218
7397
  path: string;
7219
7398
  kind: "path";
7220
7399
  };
7400
+ } | {
7401
+ type: "imagePrompt";
7402
+ prompt: string;
7221
7403
  }> | undefined;
7222
7404
  } | undefined;
7223
7405
  audioParams?: {
@@ -7282,7 +7464,7 @@ export declare const mulmoStudioSchema: z.ZodObject<{
7282
7464
  } | undefined;
7283
7465
  references?: {
7284
7466
  url: string;
7285
- type?: "image" | "audio" | "article" | "paper" | "video" | undefined;
7467
+ type?: string | undefined;
7286
7468
  title?: string | undefined;
7287
7469
  description?: string | undefined;
7288
7470
  }[] | undefined;
@@ -7513,6 +7695,7 @@ export declare const mulmoStudioSchema: z.ZodObject<{
7513
7695
  type: "midi";
7514
7696
  source: string;
7515
7697
  } | undefined;
7698
+ imagePrompt?: string | undefined;
7516
7699
  description?: string | undefined;
7517
7700
  imageParams?: {
7518
7701
  provider: "openai" | "google";
@@ -7534,6 +7717,9 @@ export declare const mulmoStudioSchema: z.ZodObject<{
7534
7717
  path: string;
7535
7718
  kind: "path";
7536
7719
  };
7720
+ } | {
7721
+ type: "imagePrompt";
7722
+ prompt: string;
7537
7723
  }> | undefined;
7538
7724
  } | undefined;
7539
7725
  audioParams?: {
@@ -7556,7 +7742,6 @@ export declare const mulmoStudioSchema: z.ZodObject<{
7556
7742
  lang?: string | undefined;
7557
7743
  } | undefined;
7558
7744
  imageNames?: string[] | undefined;
7559
- imagePrompt?: string | undefined;
7560
7745
  moviePrompt?: string | undefined;
7561
7746
  htmlPrompt?: {
7562
7747
  prompt: string;
@@ -7588,6 +7773,9 @@ export declare const mulmoStudioSchema: z.ZodObject<{
7588
7773
  path: string;
7589
7774
  kind: "path";
7590
7775
  };
7776
+ } | {
7777
+ type: "imagePrompt";
7778
+ prompt: string;
7591
7779
  }> | undefined;
7592
7780
  } | undefined;
7593
7781
  movieParams?: {
@@ -7613,7 +7801,7 @@ export declare const mulmoStudioSchema: z.ZodObject<{
7613
7801
  lang?: string | undefined;
7614
7802
  } | undefined;
7615
7803
  references?: {
7616
- type: "image" | "audio" | "article" | "paper" | "video";
7804
+ type: string;
7617
7805
  url: string;
7618
7806
  title?: string | undefined;
7619
7807
  description?: string | undefined;
@@ -7772,6 +7960,7 @@ export declare const mulmoStudioSchema: z.ZodObject<{
7772
7960
  type: "midi";
7773
7961
  source: string;
7774
7962
  } | undefined;
7963
+ imagePrompt?: string | undefined;
7775
7964
  speaker?: string | undefined;
7776
7965
  description?: string | undefined;
7777
7966
  imageParams?: {
@@ -7794,6 +7983,9 @@ export declare const mulmoStudioSchema: z.ZodObject<{
7794
7983
  path: string;
7795
7984
  kind: "path";
7796
7985
  };
7986
+ } | {
7987
+ type: "imagePrompt";
7988
+ prompt: string;
7797
7989
  }> | undefined;
7798
7990
  } | undefined;
7799
7991
  audioParams?: {
@@ -7816,13 +8008,12 @@ export declare const mulmoStudioSchema: z.ZodObject<{
7816
8008
  styles?: string[] | undefined;
7817
8009
  } | undefined;
7818
8010
  imageNames?: string[] | undefined;
7819
- imagePrompt?: string | undefined;
7820
8011
  moviePrompt?: string | undefined;
7821
8012
  htmlPrompt?: {
7822
8013
  data?: any;
8014
+ prompt?: string | undefined;
7823
8015
  images?: Record<string, any> | undefined;
7824
8016
  systemPrompt?: string | undefined;
7825
- prompt?: string | undefined;
7826
8017
  } | undefined;
7827
8018
  }[];
7828
8019
  lang?: string | undefined;
@@ -7848,6 +8039,9 @@ export declare const mulmoStudioSchema: z.ZodObject<{
7848
8039
  path: string;
7849
8040
  kind: "path";
7850
8041
  };
8042
+ } | {
8043
+ type: "imagePrompt";
8044
+ prompt: string;
7851
8045
  }> | undefined;
7852
8046
  } | undefined;
7853
8047
  audioParams?: {
@@ -7912,7 +8106,7 @@ export declare const mulmoStudioSchema: z.ZodObject<{
7912
8106
  } | undefined;
7913
8107
  references?: {
7914
8108
  url: string;
7915
- type?: "image" | "audio" | "article" | "paper" | "video" | undefined;
8109
+ type?: string | undefined;
7916
8110
  title?: string | undefined;
7917
8111
  description?: string | undefined;
7918
8112
  }[] | undefined;
@@ -8008,7 +8202,7 @@ export declare const mulmoScriptTemplateSchema: z.ZodObject<{
8008
8202
  model: z.ZodOptional<z.ZodString>;
8009
8203
  style: z.ZodOptional<z.ZodString>;
8010
8204
  moderation: z.ZodOptional<z.ZodString>;
8011
- images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
8205
+ images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
8012
8206
  type: z.ZodLiteral<"image">;
8013
8207
  source: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
8014
8208
  kind: z.ZodLiteral<"url">;
@@ -8077,7 +8271,16 @@ export declare const mulmoScriptTemplateSchema: z.ZodObject<{
8077
8271
  path: string;
8078
8272
  kind: "path";
8079
8273
  };
8080
- }>>>;
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
+ }>]>>>;
8081
8284
  }, "strict", z.ZodTypeAny, {
8082
8285
  provider: "openai" | "google";
8083
8286
  style?: string | undefined;
@@ -8098,6 +8301,9 @@ export declare const mulmoScriptTemplateSchema: z.ZodObject<{
8098
8301
  path: string;
8099
8302
  kind: "path";
8100
8303
  };
8304
+ } | {
8305
+ type: "imagePrompt";
8306
+ prompt: string;
8101
8307
  }> | undefined;
8102
8308
  }, {
8103
8309
  provider?: "openai" | "google" | undefined;
@@ -8119,6 +8325,9 @@ export declare const mulmoScriptTemplateSchema: z.ZodObject<{
8119
8325
  path: string;
8120
8326
  kind: "path";
8121
8327
  };
8328
+ } | {
8329
+ type: "imagePrompt";
8330
+ prompt: string;
8122
8331
  }> | undefined;
8123
8332
  }>>;
8124
8333
  movieParams: z.ZodOptional<z.ZodObject<{
@@ -8341,6 +8550,9 @@ export declare const mulmoScriptTemplateSchema: z.ZodObject<{
8341
8550
  path: string;
8342
8551
  kind: "path";
8343
8552
  };
8553
+ } | {
8554
+ type: "imagePrompt";
8555
+ prompt: string;
8344
8556
  }> | undefined;
8345
8557
  } | undefined;
8346
8558
  movieParams?: {
@@ -8390,6 +8602,9 @@ export declare const mulmoScriptTemplateSchema: z.ZodObject<{
8390
8602
  path: string;
8391
8603
  kind: "path";
8392
8604
  };
8605
+ } | {
8606
+ type: "imagePrompt";
8607
+ prompt: string;
8393
8608
  }> | undefined;
8394
8609
  } | undefined;
8395
8610
  audioParams?: {
@@ -8521,6 +8736,9 @@ export declare const mulmoScriptTemplateSchema: z.ZodObject<{
8521
8736
  path: string;
8522
8737
  kind: "path";
8523
8738
  };
8739
+ } | {
8740
+ type: "imagePrompt";
8741
+ prompt: string;
8524
8742
  }> | undefined;
8525
8743
  } | undefined;
8526
8744
  movieParams?: {
@@ -8576,6 +8794,9 @@ export declare const mulmoScriptTemplateSchema: z.ZodObject<{
8576
8794
  path: string;
8577
8795
  kind: "path";
8578
8796
  };
8797
+ } | {
8798
+ type: "imagePrompt";
8799
+ prompt: string;
8579
8800
  }> | undefined;
8580
8801
  } | undefined;
8581
8802
  audioParams?: {
@@ -8727,7 +8948,7 @@ export declare const mulmoScriptTemplateFileSchema: z.ZodObject<{
8727
8948
  model: z.ZodOptional<z.ZodString>;
8728
8949
  style: z.ZodOptional<z.ZodString>;
8729
8950
  moderation: z.ZodOptional<z.ZodString>;
8730
- images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
8951
+ images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
8731
8952
  type: z.ZodLiteral<"image">;
8732
8953
  source: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
8733
8954
  kind: z.ZodLiteral<"url">;
@@ -8796,7 +9017,16 @@ export declare const mulmoScriptTemplateFileSchema: z.ZodObject<{
8796
9017
  path: string;
8797
9018
  kind: "path";
8798
9019
  };
8799
- }>>>;
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
+ }>]>>>;
8800
9030
  }, "strict", z.ZodTypeAny, {
8801
9031
  provider: "openai" | "google";
8802
9032
  style?: string | undefined;
@@ -8817,6 +9047,9 @@ export declare const mulmoScriptTemplateFileSchema: z.ZodObject<{
8817
9047
  path: string;
8818
9048
  kind: "path";
8819
9049
  };
9050
+ } | {
9051
+ type: "imagePrompt";
9052
+ prompt: string;
8820
9053
  }> | undefined;
8821
9054
  }, {
8822
9055
  provider?: "openai" | "google" | undefined;
@@ -8838,6 +9071,9 @@ export declare const mulmoScriptTemplateFileSchema: z.ZodObject<{
8838
9071
  path: string;
8839
9072
  kind: "path";
8840
9073
  };
9074
+ } | {
9075
+ type: "imagePrompt";
9076
+ prompt: string;
8841
9077
  }> | undefined;
8842
9078
  }>>;
8843
9079
  movieParams: z.ZodOptional<z.ZodObject<{
@@ -9060,6 +9296,9 @@ export declare const mulmoScriptTemplateFileSchema: z.ZodObject<{
9060
9296
  path: string;
9061
9297
  kind: "path";
9062
9298
  };
9299
+ } | {
9300
+ type: "imagePrompt";
9301
+ prompt: string;
9063
9302
  }> | undefined;
9064
9303
  } | undefined;
9065
9304
  movieParams?: {
@@ -9109,6 +9348,9 @@ export declare const mulmoScriptTemplateFileSchema: z.ZodObject<{
9109
9348
  path: string;
9110
9349
  kind: "path";
9111
9350
  };
9351
+ } | {
9352
+ type: "imagePrompt";
9353
+ prompt: string;
9112
9354
  }> | undefined;
9113
9355
  } | undefined;
9114
9356
  audioParams?: {
@@ -9243,6 +9485,9 @@ export declare const mulmoScriptTemplateFileSchema: z.ZodObject<{
9243
9485
  path: string;
9244
9486
  kind: "path";
9245
9487
  };
9488
+ } | {
9489
+ type: "imagePrompt";
9490
+ prompt: string;
9246
9491
  }> | undefined;
9247
9492
  } | undefined;
9248
9493
  movieParams?: {
@@ -9299,6 +9544,9 @@ export declare const mulmoScriptTemplateFileSchema: z.ZodObject<{
9299
9544
  path: string;
9300
9545
  kind: "path";
9301
9546
  };
9547
+ } | {
9548
+ type: "imagePrompt";
9549
+ prompt: string;
9302
9550
  }> | undefined;
9303
9551
  } | undefined;
9304
9552
  audioParams?: {
@@ -9369,22 +9617,22 @@ export declare const mulmoStoryboardSceneSchema: z.ZodObject<{
9369
9617
  url: z.ZodString;
9370
9618
  title: z.ZodOptional<z.ZodString>;
9371
9619
  description: z.ZodOptional<z.ZodString>;
9372
- 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]>>;
9373
9621
  }, "strip", z.ZodTypeAny, {
9374
- type: "image" | "audio" | "article" | "paper" | "video";
9622
+ type: string;
9375
9623
  url: string;
9376
9624
  title?: string | undefined;
9377
9625
  description?: string | undefined;
9378
9626
  }, {
9379
9627
  url: string;
9380
- type?: "image" | "audio" | "article" | "paper" | "video" | undefined;
9628
+ type?: string | undefined;
9381
9629
  title?: string | undefined;
9382
9630
  description?: string | undefined;
9383
9631
  }>, "many">>;
9384
9632
  }, "strict", z.ZodTypeAny, {
9385
9633
  description: string;
9386
9634
  references?: {
9387
- type: "image" | "audio" | "article" | "paper" | "video";
9635
+ type: string;
9388
9636
  url: string;
9389
9637
  title?: string | undefined;
9390
9638
  description?: string | undefined;
@@ -9393,7 +9641,7 @@ export declare const mulmoStoryboardSceneSchema: z.ZodObject<{
9393
9641
  description: string;
9394
9642
  references?: {
9395
9643
  url: string;
9396
- type?: "image" | "audio" | "article" | "paper" | "video" | undefined;
9644
+ type?: string | undefined;
9397
9645
  title?: string | undefined;
9398
9646
  description?: string | undefined;
9399
9647
  }[] | undefined;
@@ -9404,15 +9652,15 @@ export declare const mulmoStoryboardSchema: z.ZodObject<{
9404
9652
  url: z.ZodString;
9405
9653
  title: z.ZodOptional<z.ZodString>;
9406
9654
  description: z.ZodOptional<z.ZodString>;
9407
- 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]>>;
9408
9656
  }, "strip", z.ZodTypeAny, {
9409
- type: "image" | "audio" | "article" | "paper" | "video";
9657
+ type: string;
9410
9658
  url: string;
9411
9659
  title?: string | undefined;
9412
9660
  description?: string | undefined;
9413
9661
  }, {
9414
9662
  url: string;
9415
- type?: "image" | "audio" | "article" | "paper" | "video" | undefined;
9663
+ type?: string | undefined;
9416
9664
  title?: string | undefined;
9417
9665
  description?: string | undefined;
9418
9666
  }>, "many">>;
@@ -9422,22 +9670,22 @@ export declare const mulmoStoryboardSchema: z.ZodObject<{
9422
9670
  url: z.ZodString;
9423
9671
  title: z.ZodOptional<z.ZodString>;
9424
9672
  description: z.ZodOptional<z.ZodString>;
9425
- 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]>>;
9426
9674
  }, "strip", z.ZodTypeAny, {
9427
- type: "image" | "audio" | "article" | "paper" | "video";
9675
+ type: string;
9428
9676
  url: string;
9429
9677
  title?: string | undefined;
9430
9678
  description?: string | undefined;
9431
9679
  }, {
9432
9680
  url: string;
9433
- type?: "image" | "audio" | "article" | "paper" | "video" | undefined;
9681
+ type?: string | undefined;
9434
9682
  title?: string | undefined;
9435
9683
  description?: string | undefined;
9436
9684
  }>, "many">>;
9437
9685
  }, "strict", z.ZodTypeAny, {
9438
9686
  description: string;
9439
9687
  references?: {
9440
- type: "image" | "audio" | "article" | "paper" | "video";
9688
+ type: string;
9441
9689
  url: string;
9442
9690
  title?: string | undefined;
9443
9691
  description?: string | undefined;
@@ -9446,7 +9694,7 @@ export declare const mulmoStoryboardSchema: z.ZodObject<{
9446
9694
  description: string;
9447
9695
  references?: {
9448
9696
  url: string;
9449
- type?: "image" | "audio" | "article" | "paper" | "video" | undefined;
9697
+ type?: string | undefined;
9450
9698
  title?: string | undefined;
9451
9699
  description?: string | undefined;
9452
9700
  }[] | undefined;
@@ -9456,14 +9704,14 @@ export declare const mulmoStoryboardSchema: z.ZodObject<{
9456
9704
  scenes: {
9457
9705
  description: string;
9458
9706
  references?: {
9459
- type: "image" | "audio" | "article" | "paper" | "video";
9707
+ type: string;
9460
9708
  url: string;
9461
9709
  title?: string | undefined;
9462
9710
  description?: string | undefined;
9463
9711
  }[] | undefined;
9464
9712
  }[];
9465
9713
  references?: {
9466
- type: "image" | "audio" | "article" | "paper" | "video";
9714
+ type: string;
9467
9715
  url: string;
9468
9716
  title?: string | undefined;
9469
9717
  description?: string | undefined;
@@ -9474,14 +9722,14 @@ export declare const mulmoStoryboardSchema: z.ZodObject<{
9474
9722
  description: string;
9475
9723
  references?: {
9476
9724
  url: string;
9477
- type?: "image" | "audio" | "article" | "paper" | "video" | undefined;
9725
+ type?: string | undefined;
9478
9726
  title?: string | undefined;
9479
9727
  description?: string | undefined;
9480
9728
  }[] | undefined;
9481
9729
  }[];
9482
9730
  references?: {
9483
9731
  url: string;
9484
- type?: "image" | "audio" | "article" | "paper" | "video" | undefined;
9732
+ type?: string | undefined;
9485
9733
  title?: string | undefined;
9486
9734
  description?: string | undefined;
9487
9735
  }[] | undefined;