@mulmocast/extended-types 0.3.0 → 0.3.1

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/index.js CHANGED
@@ -1,80 +1,2 @@
1
- import { z } from "zod";
2
- import { mulmoBeatSchema, mulmoScriptSchema, mulmoImageAssetSchema } from "@mulmocast/types";
3
- /**
4
- * Beat Variant - profile-specific content overrides
5
- */
6
- export const beatVariantSchema = z.object({
7
- text: z.string().optional(),
8
- skip: z.boolean().optional(),
9
- image: mulmoImageAssetSchema.optional(),
10
- imagePrompt: z.string().optional(),
11
- });
12
- /**
13
- * Beat Meta - metadata for filtering and context
14
- */
15
- export const beatMetaSchema = z.object({
16
- tags: z.array(z.string()).optional(),
17
- section: z.string().optional(),
18
- context: z.string().optional(),
19
- notes: z.string().optional(),
20
- keywords: z.array(z.string()).optional(),
21
- expectedQuestions: z.array(z.string()).optional(),
22
- });
23
- /**
24
- * Extended Beat - beat with variants and meta fields
25
- */
26
- export const extendedMulmoBeatSchema = mulmoBeatSchema.extend({
27
- variants: z.record(z.string(), beatVariantSchema).optional(),
28
- meta: beatMetaSchema.optional(),
29
- });
30
- /**
31
- * Output Profile - profile display information
32
- */
33
- export const outputProfileSchema = z.object({
34
- name: z.string(),
35
- description: z.string().optional(),
36
- });
37
- /**
38
- * Reference - external resource reference
39
- */
40
- export const referenceSchema = z.object({
41
- type: z.enum(["web", "code", "document", "video"]).optional(),
42
- url: z.string(),
43
- title: z.string().optional(),
44
- description: z.string().optional(),
45
- });
46
- /**
47
- * FAQ - frequently asked question
48
- */
49
- export const faqSchema = z.object({
50
- question: z.string(),
51
- answer: z.string(),
52
- relatedBeats: z.array(z.string()).optional(),
53
- });
54
- /**
55
- * Script Meta - script-level metadata for AI features
56
- */
57
- export const scriptMetaSchema = z.object({
58
- // Target audience and prerequisites
59
- audience: z.string().optional(),
60
- prerequisites: z.array(z.string()).optional(),
61
- // Learning goals and background
62
- goals: z.array(z.string()).optional(),
63
- background: z.string().optional(),
64
- // FAQ for quick Q&A matching
65
- faq: z.array(faqSchema).optional(),
66
- // Search and discovery
67
- keywords: z.array(z.string()).optional(),
68
- references: z.array(referenceSchema).optional(),
69
- // Authoring info
70
- author: z.string().optional(),
71
- version: z.string().optional(),
72
- });
73
- /**
74
- * Extended Script - script with variants, meta, and outputProfiles
75
- */
76
- export const extendedMulmoScriptSchema = mulmoScriptSchema.extend({
77
- beats: z.array(extendedMulmoBeatSchema),
78
- outputProfiles: z.record(z.string(), outputProfileSchema).optional(),
79
- scriptMeta: scriptMetaSchema.optional(),
80
- });
1
+ export * from "./mulmoBeat.js";
2
+ export * from "./mulmoViewerData.js";