mulmocast 2.1.0 → 2.1.2
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.
- package/lib/actions/movie.d.ts +2 -2
- package/lib/actions/movie.js +18 -7
- package/lib/methods/mulmo_presentation_style.d.ts +146 -0
- package/lib/types/schema.d.ts +1748 -1
- package/lib/types/schema.js +4 -0
- package/lib/types/type.d.ts +2 -1
- package/lib/utils/context.d.ts +730 -0
- package/package.json +5 -5
- package/scripts/test/test_video_filters.json +510 -0
package/lib/types/schema.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { htmlLLMProvider, provider2TTSAgent, provider2ImageAgent, provider2MovieAgent, defaultProviders, provider2SoundEffectAgent, } from "../utils/provider2agent.js";
|
|
3
3
|
import { currentMulmoScriptVersion } from "../utils/const.js";
|
|
4
|
+
import { mulmoVideoFilterSchema } from "./schema_video_filter.js";
|
|
5
|
+
// Re-export video filter schema
|
|
6
|
+
export { mulmoVideoFilterSchema } from "./schema_video_filter.js";
|
|
4
7
|
export const langSchema = z.string();
|
|
5
8
|
const URLStringSchema = z.url();
|
|
6
9
|
export const localizedTextSchema = z
|
|
@@ -306,6 +309,7 @@ export const mulmoMovieParamsSchema = z.object({
|
|
|
306
309
|
model: z.string().optional(),
|
|
307
310
|
fillOption: mulmoFillOptionSchema.optional(), // for movie.ts
|
|
308
311
|
transition: mulmoTransitionSchema.optional(), // for movie.ts
|
|
312
|
+
filters: z.array(mulmoVideoFilterSchema).optional(), // for movie.ts
|
|
309
313
|
});
|
|
310
314
|
export const mulmoBeatSchema = z
|
|
311
315
|
.object({
|
package/lib/types/type.d.ts
CHANGED
|
@@ -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, speakerSchema, mulmoSpeechParamsSchema, mulmoImageParamsSchema, mulmoImageParamsImagesValueSchema, mulmoImageParamsImagesSchema, mulmoFillOptionSchema, mulmoTransitionSchema, mulmoMovieParamsSchema, mulmoSoundEffectParamsSchema, mulmoLipSyncParamsSchema, 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, speakerSchema, mulmoSpeechParamsSchema, mulmoImageParamsSchema, mulmoImageParamsImagesValueSchema, mulmoImageParamsImagesSchema, mulmoFillOptionSchema, mulmoTransitionSchema, mulmoVideoFilterSchema, mulmoMovieParamsSchema, mulmoSoundEffectParamsSchema, mulmoLipSyncParamsSchema, 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";
|
|
@@ -15,6 +15,7 @@ export type MulmoImageParamsImagesValue = z.infer<typeof mulmoImageParamsImagesV
|
|
|
15
15
|
export type MulmoImageParamsImages = z.infer<typeof mulmoImageParamsImagesSchema>;
|
|
16
16
|
export type MulmoFillOption = z.infer<typeof mulmoFillOptionSchema>;
|
|
17
17
|
export type MulmoTransition = z.infer<typeof mulmoTransitionSchema>;
|
|
18
|
+
export type MulmoVideoFilter = z.infer<typeof mulmoVideoFilterSchema>;
|
|
18
19
|
export type TextSlideParams = z.infer<typeof textSlideParamsSchema>;
|
|
19
20
|
export type Text2ImageProvider = z.infer<typeof text2ImageProviderSchema>;
|
|
20
21
|
export type Text2HtmlImageProvider = z.infer<typeof text2HtmlImageProviderSchema>;
|