mulmocast 1.2.56 → 1.2.58

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.
@@ -955,6 +955,70 @@ export declare const mulmoImagePromptMediaSchema: z.ZodObject<{
955
955
  type: "imagePrompt";
956
956
  prompt: string;
957
957
  }>;
958
+ export declare const mulmoImageParamsImagesValueSchema: z.ZodUnion<[z.ZodObject<{
959
+ type: z.ZodLiteral<"image">;
960
+ source: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
961
+ kind: z.ZodLiteral<"url">;
962
+ url: z.ZodString;
963
+ }, "strict", z.ZodTypeAny, {
964
+ url: string;
965
+ kind: "url";
966
+ }, {
967
+ url: string;
968
+ kind: "url";
969
+ }>, z.ZodObject<{
970
+ kind: z.ZodLiteral<"base64">;
971
+ data: z.ZodString;
972
+ }, "strict", z.ZodTypeAny, {
973
+ kind: "base64";
974
+ data: string;
975
+ }, {
976
+ kind: "base64";
977
+ data: string;
978
+ }>, z.ZodObject<{
979
+ kind: z.ZodLiteral<"path">;
980
+ path: z.ZodString;
981
+ }, "strict", z.ZodTypeAny, {
982
+ path: string;
983
+ kind: "path";
984
+ }, {
985
+ path: string;
986
+ kind: "path";
987
+ }>]>;
988
+ }, "strict", z.ZodTypeAny, {
989
+ type: "image";
990
+ source: {
991
+ url: string;
992
+ kind: "url";
993
+ } | {
994
+ kind: "base64";
995
+ data: string;
996
+ } | {
997
+ path: string;
998
+ kind: "path";
999
+ };
1000
+ }, {
1001
+ type: "image";
1002
+ source: {
1003
+ url: string;
1004
+ kind: "url";
1005
+ } | {
1006
+ kind: "base64";
1007
+ data: string;
1008
+ } | {
1009
+ path: string;
1010
+ kind: "path";
1011
+ };
1012
+ }>, z.ZodObject<{
1013
+ type: z.ZodLiteral<"imagePrompt">;
1014
+ prompt: z.ZodString;
1015
+ }, "strict", z.ZodTypeAny, {
1016
+ type: "imagePrompt";
1017
+ prompt: string;
1018
+ }, {
1019
+ type: "imagePrompt";
1020
+ prompt: string;
1021
+ }>]>;
958
1022
  export declare const mulmoImageParamsImagesSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
959
1023
  type: z.ZodLiteral<"image">;
960
1024
  source: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
@@ -1284,7 +1348,7 @@ export declare const audioParamsSchema: z.ZodObject<{
1284
1348
  }>;
1285
1349
  export declare const htmlPromptParamsSchema: z.ZodObject<{
1286
1350
  systemPrompt: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1287
- prompt: z.ZodDefault<z.ZodString>;
1351
+ prompt: z.ZodString;
1288
1352
  data: z.ZodOptional<z.ZodAny>;
1289
1353
  images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1290
1354
  }, "strict", z.ZodTypeAny, {
@@ -1293,9 +1357,9 @@ export declare const htmlPromptParamsSchema: z.ZodObject<{
1293
1357
  data?: any;
1294
1358
  systemPrompt?: string | undefined;
1295
1359
  }, {
1360
+ prompt: string;
1296
1361
  images?: Record<string, any> | undefined;
1297
1362
  data?: any;
1298
- prompt?: string | undefined;
1299
1363
  systemPrompt?: string | undefined;
1300
1364
  }>;
1301
1365
  export declare const text2MovieProviderSchema: z.ZodDefault<z.ZodEnum<[string, ...string[]]>>;
@@ -1895,7 +1959,7 @@ export declare const mulmoBeatSchema: z.ZodObject<{
1895
1959
  soundEffectPrompt: z.ZodOptional<z.ZodString>;
1896
1960
  htmlPrompt: z.ZodOptional<z.ZodObject<{
1897
1961
  systemPrompt: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1898
- prompt: z.ZodDefault<z.ZodString>;
1962
+ prompt: z.ZodString;
1899
1963
  data: z.ZodOptional<z.ZodAny>;
1900
1964
  images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1901
1965
  }, "strict", z.ZodTypeAny, {
@@ -1904,9 +1968,9 @@ export declare const mulmoBeatSchema: z.ZodObject<{
1904
1968
  data?: any;
1905
1969
  systemPrompt?: string | undefined;
1906
1970
  }, {
1971
+ prompt: string;
1907
1972
  images?: Record<string, any> | undefined;
1908
1973
  data?: any;
1909
- prompt?: string | undefined;
1910
1974
  systemPrompt?: string | undefined;
1911
1975
  }>>;
1912
1976
  enableLipSync: z.ZodOptional<z.ZodBoolean>;
@@ -2246,9 +2310,9 @@ export declare const mulmoBeatSchema: z.ZodObject<{
2246
2310
  moviePrompt?: string | undefined;
2247
2311
  soundEffectPrompt?: string | undefined;
2248
2312
  htmlPrompt?: {
2313
+ prompt: string;
2249
2314
  images?: Record<string, any> | undefined;
2250
2315
  data?: any;
2251
- prompt?: string | undefined;
2252
2316
  systemPrompt?: string | undefined;
2253
2317
  } | undefined;
2254
2318
  enableLipSync?: boolean | undefined;
@@ -4057,7 +4121,7 @@ export declare const mulmoScriptSchema: z.ZodObject<{
4057
4121
  soundEffectPrompt: z.ZodOptional<z.ZodString>;
4058
4122
  htmlPrompt: z.ZodOptional<z.ZodObject<{
4059
4123
  systemPrompt: z.ZodOptional<z.ZodDefault<z.ZodString>>;
4060
- prompt: z.ZodDefault<z.ZodString>;
4124
+ prompt: z.ZodString;
4061
4125
  data: z.ZodOptional<z.ZodAny>;
4062
4126
  images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4063
4127
  }, "strict", z.ZodTypeAny, {
@@ -4066,9 +4130,9 @@ export declare const mulmoScriptSchema: z.ZodObject<{
4066
4130
  data?: any;
4067
4131
  systemPrompt?: string | undefined;
4068
4132
  }, {
4133
+ prompt: string;
4069
4134
  images?: Record<string, any> | undefined;
4070
4135
  data?: any;
4071
- prompt?: string | undefined;
4072
4136
  systemPrompt?: string | undefined;
4073
4137
  }>>;
4074
4138
  enableLipSync: z.ZodOptional<z.ZodBoolean>;
@@ -4408,9 +4472,9 @@ export declare const mulmoScriptSchema: z.ZodObject<{
4408
4472
  moviePrompt?: string | undefined;
4409
4473
  soundEffectPrompt?: string | undefined;
4410
4474
  htmlPrompt?: {
4475
+ prompt: string;
4411
4476
  images?: Record<string, any> | undefined;
4412
4477
  data?: any;
4413
- prompt?: string | undefined;
4414
4478
  systemPrompt?: string | undefined;
4415
4479
  } | undefined;
4416
4480
  enableLipSync?: boolean | undefined;
@@ -4876,9 +4940,9 @@ export declare const mulmoScriptSchema: z.ZodObject<{
4876
4940
  moviePrompt?: string | undefined;
4877
4941
  soundEffectPrompt?: string | undefined;
4878
4942
  htmlPrompt?: {
4943
+ prompt: string;
4879
4944
  images?: Record<string, any> | undefined;
4880
4945
  data?: any;
4881
- prompt?: string | undefined;
4882
4946
  systemPrompt?: string | undefined;
4883
4947
  } | undefined;
4884
4948
  enableLipSync?: boolean | undefined;
@@ -6404,7 +6468,7 @@ export declare const mulmoStudioSchema: z.ZodObject<{
6404
6468
  soundEffectPrompt: z.ZodOptional<z.ZodString>;
6405
6469
  htmlPrompt: z.ZodOptional<z.ZodObject<{
6406
6470
  systemPrompt: z.ZodOptional<z.ZodDefault<z.ZodString>>;
6407
- prompt: z.ZodDefault<z.ZodString>;
6471
+ prompt: z.ZodString;
6408
6472
  data: z.ZodOptional<z.ZodAny>;
6409
6473
  images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
6410
6474
  }, "strict", z.ZodTypeAny, {
@@ -6413,9 +6477,9 @@ export declare const mulmoStudioSchema: z.ZodObject<{
6413
6477
  data?: any;
6414
6478
  systemPrompt?: string | undefined;
6415
6479
  }, {
6480
+ prompt: string;
6416
6481
  images?: Record<string, any> | undefined;
6417
6482
  data?: any;
6418
- prompt?: string | undefined;
6419
6483
  systemPrompt?: string | undefined;
6420
6484
  }>>;
6421
6485
  enableLipSync: z.ZodOptional<z.ZodBoolean>;
@@ -6755,9 +6819,9 @@ export declare const mulmoStudioSchema: z.ZodObject<{
6755
6819
  moviePrompt?: string | undefined;
6756
6820
  soundEffectPrompt?: string | undefined;
6757
6821
  htmlPrompt?: {
6822
+ prompt: string;
6758
6823
  images?: Record<string, any> | undefined;
6759
6824
  data?: any;
6760
- prompt?: string | undefined;
6761
6825
  systemPrompt?: string | undefined;
6762
6826
  } | undefined;
6763
6827
  enableLipSync?: boolean | undefined;
@@ -7223,9 +7287,9 @@ export declare const mulmoStudioSchema: z.ZodObject<{
7223
7287
  moviePrompt?: string | undefined;
7224
7288
  soundEffectPrompt?: string | undefined;
7225
7289
  htmlPrompt?: {
7290
+ prompt: string;
7226
7291
  images?: Record<string, any> | undefined;
7227
7292
  data?: any;
7228
- prompt?: string | undefined;
7229
7293
  systemPrompt?: string | undefined;
7230
7294
  } | undefined;
7231
7295
  enableLipSync?: boolean | undefined;
@@ -7898,9 +7962,9 @@ export declare const mulmoStudioSchema: z.ZodObject<{
7898
7962
  moviePrompt?: string | undefined;
7899
7963
  soundEffectPrompt?: string | undefined;
7900
7964
  htmlPrompt?: {
7965
+ prompt: string;
7901
7966
  images?: Record<string, any> | undefined;
7902
7967
  data?: any;
7903
- prompt?: string | undefined;
7904
7968
  systemPrompt?: string | undefined;
7905
7969
  } | undefined;
7906
7970
  enableLipSync?: boolean | undefined;
@@ -138,7 +138,7 @@ export const mulmoVoiceOverMediaSchema = z
138
138
  export const mulmoVisionMediaSchema = z
139
139
  .object({
140
140
  type: z.literal("vision"),
141
- style: z.string(),
141
+ style: z.string().min(1),
142
142
  data: z.record(z.string(), z.any()),
143
143
  })
144
144
  .strict();
@@ -177,7 +177,8 @@ export const mulmoImagePromptMediaSchema = z
177
177
  prompt: z.string(),
178
178
  })
179
179
  .strict();
180
- export const mulmoImageParamsImagesSchema = z.record(imageIdSchema, z.union([mulmoImageMediaSchema, mulmoImagePromptMediaSchema]));
180
+ export const mulmoImageParamsImagesValueSchema = z.union([mulmoImageMediaSchema, mulmoImagePromptMediaSchema]);
181
+ export const mulmoImageParamsImagesSchema = z.record(imageIdSchema, mulmoImageParamsImagesValueSchema);
181
182
  export const mulmoFillOptionSchema = z
182
183
  .object({
183
184
  style: z.enum(["aspectFit", "aspectFill"]).default("aspectFit"),
@@ -245,7 +246,7 @@ export const audioParamsSchema = z
245
246
  export const htmlPromptParamsSchema = z
246
247
  .object({
247
248
  systemPrompt: z.string().default("").optional(),
248
- prompt: z.string().default(""),
249
+ prompt: z.string().min(1),
249
250
  data: z.any().optional(),
250
251
  images: z.record(z.string(), z.any()).optional(),
251
252
  })
@@ -1,5 +1,5 @@
1
1
  import { type CallbackFunction } from "graphai";
2
- import { langSchema, localizedTextSchema, mulmoBeatSchema, mulmoScriptSchema, mulmoStudioSchema, mulmoStudioBeatSchema, mulmoStoryboardSchema, mulmoStoryboardSceneSchema, mulmoStudioMultiLingualSchema, mulmoStudioMultiLingualArraySchema, mulmoStudioMultiLingualDataSchema, mulmoStudioMultiLingualFileSchema, speakerDictionarySchema, mulmoImageParamsSchema, mulmoImageParamsImagesSchema, mulmoFillOptionSchema, mulmoMovieParamsSchema, textSlideParamsSchema, speechOptionsSchema, speakerDataSchema, mulmoCanvasDimensionSchema, mulmoPromptTemplateSchema, mulmoPromptTemplateFileSchema, text2ImageProviderSchema, text2HtmlImageProviderSchema, text2MovieProviderSchema, text2SpeechProviderSchema, mulmoPresentationStyleSchema, multiLingualTextsSchema, mulmoImageAssetSchema, mulmoMermaidMediaSchema, mulmoTextSlideMediaSchema, mulmoMarkdownMediaSchema, mulmoImageMediaSchema, mulmoChartMediaSchema, mediaSourceSchema, mediaSourceMermaidSchema, mulmoSessionStateSchema, mulmoOpenAIImageModelSchema, mulmoGoogleImageModelSchema, mulmoGoogleMovieModelSchema, mulmoReplicateMovieModelSchema, mulmoImagePromptMediaSchema } from "./schema.js";
2
+ import { langSchema, localizedTextSchema, mulmoBeatSchema, mulmoScriptSchema, mulmoStudioSchema, mulmoStudioBeatSchema, mulmoStoryboardSchema, mulmoStoryboardSceneSchema, mulmoStudioMultiLingualSchema, mulmoStudioMultiLingualArraySchema, mulmoStudioMultiLingualDataSchema, mulmoStudioMultiLingualFileSchema, speakerDictionarySchema, mulmoImageParamsSchema, mulmoImageParamsImagesValueSchema, mulmoImageParamsImagesSchema, mulmoFillOptionSchema, mulmoMovieParamsSchema, textSlideParamsSchema, speechOptionsSchema, speakerDataSchema, mulmoCanvasDimensionSchema, mulmoPromptTemplateSchema, mulmoPromptTemplateFileSchema, text2ImageProviderSchema, text2HtmlImageProviderSchema, text2MovieProviderSchema, text2SpeechProviderSchema, mulmoPresentationStyleSchema, multiLingualTextsSchema, mulmoImageAssetSchema, mulmoMermaidMediaSchema, mulmoTextSlideMediaSchema, mulmoMarkdownMediaSchema, mulmoImageMediaSchema, mulmoChartMediaSchema, mediaSourceSchema, mediaSourceMermaidSchema, mulmoSessionStateSchema, mulmoOpenAIImageModelSchema, mulmoGoogleImageModelSchema, mulmoGoogleMovieModelSchema, mulmoReplicateMovieModelSchema, mulmoImagePromptMediaSchema } from "./schema.js";
3
3
  import { pdf_modes, pdf_sizes, storyToScriptGenerateMode } from "../utils/const.js";
4
4
  import type { LLM } from "../utils/provider2agent.js";
5
5
  import { z } from "zod";
@@ -9,6 +9,7 @@ export type SpeakerDictonary = z.infer<typeof speakerDictionarySchema>;
9
9
  export type SpeechOptions = z.infer<typeof speechOptionsSchema>;
10
10
  export type SpeakerData = z.infer<typeof speakerDataSchema>;
11
11
  export type MulmoImageParams = z.infer<typeof mulmoImageParamsSchema>;
12
+ export type MulmoImageParamsImagesValue = z.infer<typeof mulmoImageParamsImagesValueSchema>;
12
13
  export type MulmoImageParamsImages = z.infer<typeof mulmoImageParamsImagesSchema>;
13
14
  export type MulmoFillOption = z.infer<typeof mulmoFillOptionSchema>;
14
15
  export type TextSlideParams = z.infer<typeof textSlideParamsSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mulmocast",
3
- "version": "1.2.56",
3
+ "version": "1.2.58",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "lib/index.node.js",