mulmocast 2.0.0-alpha.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ 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
4
  export const langSchema = z.string();
5
- const URLStringSchema = z.string().url();
5
+ const URLStringSchema = z.url();
6
6
  export const localizedTextSchema = z
7
7
  .object({
8
8
  text: z.string(),
@@ -387,7 +387,10 @@ export const mulmoReferenceSchema = z.object({
387
387
  url: URLStringSchema,
388
388
  title: z.string().optional(),
389
389
  description: z.string().optional(),
390
- type: z.union([z.enum(["article", "paper", "image", "video", "audio"]), z.string()]).optional().default("article"),
390
+ type: z
391
+ .union([z.enum(["article", "paper", "image", "video", "audio"]), z.string()])
392
+ .optional()
393
+ .default("article"),
391
394
  });
392
395
  export const mulmoScriptSchema = mulmoPresentationStyleSchema
393
396
  .extend({
@@ -490,4 +493,4 @@ export const mulmoStoryboardSchema = z
490
493
  })
491
494
  .describe("A storyboard for a presentation, a story, a video, etc.")
492
495
  .strict();
493
- export const urlsSchema = z.array(z.string().url({ message: "Invalid URL format" }));
496
+ export const urlsSchema = z.array(z.url({ message: "Invalid URL format" }));