@objectifthunes/beddybye-types 0.2.0 → 0.3.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.
- package/dist/index.cjs +2 -2
- package/dist/schemas.cjs +406 -0
- package/dist/schemas.cjs.map +1 -0
- package/dist/schemas.d.cts +483 -0
- package/dist/schemas.d.ts +483 -0
- package/dist/schemas.js +340 -0
- package/dist/schemas.js.map +1 -0
- package/package.json +22 -3
|
@@ -0,0 +1,483 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const ageRangeSchema: z.ZodEnum<{
|
|
4
|
+
"0-1": "0-1";
|
|
5
|
+
"1-2": "1-2";
|
|
6
|
+
"2-3": "2-3";
|
|
7
|
+
"3-4": "3-4";
|
|
8
|
+
"4-6": "4-6";
|
|
9
|
+
"6-8": "6-8";
|
|
10
|
+
}>;
|
|
11
|
+
declare const storyLengthSchema: z.ZodEnum<{
|
|
12
|
+
short: "short";
|
|
13
|
+
medium: "medium";
|
|
14
|
+
long: "long";
|
|
15
|
+
}>;
|
|
16
|
+
declare const bookTypeSchema: z.ZodEnum<{
|
|
17
|
+
story: "story";
|
|
18
|
+
concept: "concept";
|
|
19
|
+
sound: "sound";
|
|
20
|
+
}>;
|
|
21
|
+
declare const storyStatusSchema: z.ZodEnum<{
|
|
22
|
+
draft: "draft";
|
|
23
|
+
generating_text: "generating_text";
|
|
24
|
+
generating_sprites: "generating_sprites";
|
|
25
|
+
ready: "ready";
|
|
26
|
+
published: "published";
|
|
27
|
+
archived: "archived";
|
|
28
|
+
}>;
|
|
29
|
+
declare const interactionTypeSchema: z.ZodEnum<{
|
|
30
|
+
tap_bounce: "tap_bounce";
|
|
31
|
+
tap_spin: "tap_spin";
|
|
32
|
+
tap_grow: "tap_grow";
|
|
33
|
+
tap_hide: "tap_hide";
|
|
34
|
+
tap_sparkle: "tap_sparkle";
|
|
35
|
+
drag_reveal: "drag_reveal";
|
|
36
|
+
shake_wiggle: "shake_wiggle";
|
|
37
|
+
}>;
|
|
38
|
+
declare const elementCategorySchema: z.ZodEnum<{
|
|
39
|
+
object: "object";
|
|
40
|
+
scene: "scene";
|
|
41
|
+
building: "building";
|
|
42
|
+
animal: "animal";
|
|
43
|
+
effect: "effect";
|
|
44
|
+
furniture: "furniture";
|
|
45
|
+
food: "food";
|
|
46
|
+
vehicle: "vehicle";
|
|
47
|
+
vegetation: "vegetation";
|
|
48
|
+
sky: "sky";
|
|
49
|
+
landscape: "landscape";
|
|
50
|
+
}>;
|
|
51
|
+
declare const userRoleSchema: z.ZodEnum<{
|
|
52
|
+
admin: "admin";
|
|
53
|
+
editor: "editor";
|
|
54
|
+
viewer: "viewer";
|
|
55
|
+
}>;
|
|
56
|
+
declare const poseVariantSchema: z.ZodString;
|
|
57
|
+
|
|
58
|
+
declare const storyCharacterVariantSchema: z.ZodObject<{
|
|
59
|
+
variant: z.ZodString;
|
|
60
|
+
sprite_url: z.ZodOptional<z.ZodString>;
|
|
61
|
+
}, z.core.$loose>;
|
|
62
|
+
declare const storyCharacterSchema: z.ZodObject<{
|
|
63
|
+
id: z.ZodString;
|
|
64
|
+
name: z.ZodString;
|
|
65
|
+
description: z.ZodString;
|
|
66
|
+
reference_prompt: z.ZodString;
|
|
67
|
+
reference_url: z.ZodOptional<z.ZodString>;
|
|
68
|
+
shared_character_id: z.ZodOptional<z.ZodString>;
|
|
69
|
+
variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
70
|
+
variant: z.ZodString;
|
|
71
|
+
sprite_url: z.ZodOptional<z.ZodString>;
|
|
72
|
+
}, z.core.$loose>>>;
|
|
73
|
+
}, z.core.$loose>;
|
|
74
|
+
declare const storyElementSchema: z.ZodObject<{
|
|
75
|
+
id: z.ZodString;
|
|
76
|
+
name: z.ZodString;
|
|
77
|
+
element_prompt: z.ZodString;
|
|
78
|
+
element_url: z.ZodOptional<z.ZodString>;
|
|
79
|
+
position: z.ZodObject<{
|
|
80
|
+
x: z.ZodNumber;
|
|
81
|
+
y: z.ZodNumber;
|
|
82
|
+
z: z.ZodNumber;
|
|
83
|
+
}, z.core.$strip>;
|
|
84
|
+
scale: z.ZodNumber;
|
|
85
|
+
is_character: z.ZodBoolean;
|
|
86
|
+
character_id: z.ZodOptional<z.ZodString>;
|
|
87
|
+
variant: z.ZodOptional<z.ZodString>;
|
|
88
|
+
interaction: z.ZodDefault<z.ZodString>;
|
|
89
|
+
sound_effect: z.ZodOptional<z.ZodString>;
|
|
90
|
+
}, z.core.$loose>;
|
|
91
|
+
declare const storyPageSchema: z.ZodObject<{
|
|
92
|
+
number: z.ZodNumber;
|
|
93
|
+
narration_text: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
94
|
+
elements: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
95
|
+
id: z.ZodString;
|
|
96
|
+
name: z.ZodString;
|
|
97
|
+
element_prompt: z.ZodString;
|
|
98
|
+
element_url: z.ZodOptional<z.ZodString>;
|
|
99
|
+
position: z.ZodObject<{
|
|
100
|
+
x: z.ZodNumber;
|
|
101
|
+
y: z.ZodNumber;
|
|
102
|
+
z: z.ZodNumber;
|
|
103
|
+
}, z.core.$strip>;
|
|
104
|
+
scale: z.ZodNumber;
|
|
105
|
+
is_character: z.ZodBoolean;
|
|
106
|
+
character_id: z.ZodOptional<z.ZodString>;
|
|
107
|
+
variant: z.ZodOptional<z.ZodString>;
|
|
108
|
+
interaction: z.ZodDefault<z.ZodString>;
|
|
109
|
+
sound_effect: z.ZodOptional<z.ZodString>;
|
|
110
|
+
}, z.core.$loose>>>;
|
|
111
|
+
educational_facts: z.ZodDefault<z.ZodArray<z.ZodUnknown>>;
|
|
112
|
+
}, z.core.$loose>;
|
|
113
|
+
declare const storySecretSchema: z.ZodObject<{
|
|
114
|
+
id: z.ZodString;
|
|
115
|
+
page_number: z.ZodNumber;
|
|
116
|
+
element_id: z.ZodString;
|
|
117
|
+
text: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
118
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
119
|
+
}, z.core.$loose>;
|
|
120
|
+
declare const normalizeStorySchema: z.ZodObject<{
|
|
121
|
+
characters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
122
|
+
id: z.ZodString;
|
|
123
|
+
name: z.ZodString;
|
|
124
|
+
description: z.ZodString;
|
|
125
|
+
reference_prompt: z.ZodString;
|
|
126
|
+
reference_url: z.ZodOptional<z.ZodString>;
|
|
127
|
+
shared_character_id: z.ZodOptional<z.ZodString>;
|
|
128
|
+
variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
129
|
+
variant: z.ZodString;
|
|
130
|
+
sprite_url: z.ZodOptional<z.ZodString>;
|
|
131
|
+
}, z.core.$loose>>>;
|
|
132
|
+
}, z.core.$loose>>>;
|
|
133
|
+
pages: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
134
|
+
number: z.ZodNumber;
|
|
135
|
+
narration_text: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
136
|
+
elements: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
137
|
+
id: z.ZodString;
|
|
138
|
+
name: z.ZodString;
|
|
139
|
+
element_prompt: z.ZodString;
|
|
140
|
+
element_url: z.ZodOptional<z.ZodString>;
|
|
141
|
+
position: z.ZodObject<{
|
|
142
|
+
x: z.ZodNumber;
|
|
143
|
+
y: z.ZodNumber;
|
|
144
|
+
z: z.ZodNumber;
|
|
145
|
+
}, z.core.$strip>;
|
|
146
|
+
scale: z.ZodNumber;
|
|
147
|
+
is_character: z.ZodBoolean;
|
|
148
|
+
character_id: z.ZodOptional<z.ZodString>;
|
|
149
|
+
variant: z.ZodOptional<z.ZodString>;
|
|
150
|
+
interaction: z.ZodDefault<z.ZodString>;
|
|
151
|
+
sound_effect: z.ZodOptional<z.ZodString>;
|
|
152
|
+
}, z.core.$loose>>>;
|
|
153
|
+
educational_facts: z.ZodDefault<z.ZodArray<z.ZodUnknown>>;
|
|
154
|
+
}, z.core.$loose>>>;
|
|
155
|
+
}, z.core.$loose>;
|
|
156
|
+
declare const createStorySchema: z.ZodObject<{
|
|
157
|
+
title: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
158
|
+
description: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
159
|
+
age_range: z.ZodString;
|
|
160
|
+
topics: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
161
|
+
characters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
162
|
+
id: z.ZodString;
|
|
163
|
+
name: z.ZodString;
|
|
164
|
+
description: z.ZodString;
|
|
165
|
+
reference_prompt: z.ZodString;
|
|
166
|
+
reference_url: z.ZodOptional<z.ZodString>;
|
|
167
|
+
shared_character_id: z.ZodOptional<z.ZodString>;
|
|
168
|
+
variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
169
|
+
variant: z.ZodString;
|
|
170
|
+
sprite_url: z.ZodOptional<z.ZodString>;
|
|
171
|
+
}, z.core.$loose>>>;
|
|
172
|
+
}, z.core.$loose>>>;
|
|
173
|
+
pages: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
174
|
+
number: z.ZodNumber;
|
|
175
|
+
narration_text: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
176
|
+
elements: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
177
|
+
id: z.ZodString;
|
|
178
|
+
name: z.ZodString;
|
|
179
|
+
element_prompt: z.ZodString;
|
|
180
|
+
element_url: z.ZodOptional<z.ZodString>;
|
|
181
|
+
position: z.ZodObject<{
|
|
182
|
+
x: z.ZodNumber;
|
|
183
|
+
y: z.ZodNumber;
|
|
184
|
+
z: z.ZodNumber;
|
|
185
|
+
}, z.core.$strip>;
|
|
186
|
+
scale: z.ZodNumber;
|
|
187
|
+
is_character: z.ZodBoolean;
|
|
188
|
+
character_id: z.ZodOptional<z.ZodString>;
|
|
189
|
+
variant: z.ZodOptional<z.ZodString>;
|
|
190
|
+
interaction: z.ZodDefault<z.ZodString>;
|
|
191
|
+
sound_effect: z.ZodOptional<z.ZodString>;
|
|
192
|
+
}, z.core.$loose>>>;
|
|
193
|
+
educational_facts: z.ZodDefault<z.ZodArray<z.ZodUnknown>>;
|
|
194
|
+
}, z.core.$loose>>>;
|
|
195
|
+
secrets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
196
|
+
id: z.ZodString;
|
|
197
|
+
page_number: z.ZodNumber;
|
|
198
|
+
element_id: z.ZodString;
|
|
199
|
+
text: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
200
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
201
|
+
}, z.core.$loose>>>;
|
|
202
|
+
supported_languages: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
203
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
204
|
+
draft: "draft";
|
|
205
|
+
generating_text: "generating_text";
|
|
206
|
+
generating_sprites: "generating_sprites";
|
|
207
|
+
ready: "ready";
|
|
208
|
+
published: "published";
|
|
209
|
+
archived: "archived";
|
|
210
|
+
}>>;
|
|
211
|
+
}, z.core.$strip>;
|
|
212
|
+
declare const updateStorySchema: z.ZodObject<{
|
|
213
|
+
title: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
214
|
+
description: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
215
|
+
age_range: z.ZodOptional<z.ZodString>;
|
|
216
|
+
topics: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
217
|
+
characters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
218
|
+
id: z.ZodString;
|
|
219
|
+
name: z.ZodString;
|
|
220
|
+
description: z.ZodString;
|
|
221
|
+
reference_prompt: z.ZodString;
|
|
222
|
+
reference_url: z.ZodOptional<z.ZodString>;
|
|
223
|
+
shared_character_id: z.ZodOptional<z.ZodString>;
|
|
224
|
+
variants: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
225
|
+
variant: z.ZodString;
|
|
226
|
+
sprite_url: z.ZodOptional<z.ZodString>;
|
|
227
|
+
}, z.core.$loose>>>;
|
|
228
|
+
}, z.core.$loose>>>;
|
|
229
|
+
pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
230
|
+
number: z.ZodNumber;
|
|
231
|
+
narration_text: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
232
|
+
elements: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
233
|
+
id: z.ZodString;
|
|
234
|
+
name: z.ZodString;
|
|
235
|
+
element_prompt: z.ZodString;
|
|
236
|
+
element_url: z.ZodOptional<z.ZodString>;
|
|
237
|
+
position: z.ZodObject<{
|
|
238
|
+
x: z.ZodNumber;
|
|
239
|
+
y: z.ZodNumber;
|
|
240
|
+
z: z.ZodNumber;
|
|
241
|
+
}, z.core.$strip>;
|
|
242
|
+
scale: z.ZodNumber;
|
|
243
|
+
is_character: z.ZodBoolean;
|
|
244
|
+
character_id: z.ZodOptional<z.ZodString>;
|
|
245
|
+
variant: z.ZodOptional<z.ZodString>;
|
|
246
|
+
interaction: z.ZodDefault<z.ZodString>;
|
|
247
|
+
sound_effect: z.ZodOptional<z.ZodString>;
|
|
248
|
+
}, z.core.$loose>>>;
|
|
249
|
+
educational_facts: z.ZodDefault<z.ZodArray<z.ZodUnknown>>;
|
|
250
|
+
}, z.core.$loose>>>;
|
|
251
|
+
secrets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
252
|
+
id: z.ZodString;
|
|
253
|
+
page_number: z.ZodNumber;
|
|
254
|
+
element_id: z.ZodString;
|
|
255
|
+
text: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
256
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
257
|
+
}, z.core.$loose>>>;
|
|
258
|
+
supported_languages: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
259
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
260
|
+
draft: "draft";
|
|
261
|
+
generating_text: "generating_text";
|
|
262
|
+
generating_sprites: "generating_sprites";
|
|
263
|
+
ready: "ready";
|
|
264
|
+
published: "published";
|
|
265
|
+
archived: "archived";
|
|
266
|
+
}>>;
|
|
267
|
+
text_font: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
268
|
+
thumbnail_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
269
|
+
read_count: z.ZodOptional<z.ZodNumber>;
|
|
270
|
+
style_reference_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
271
|
+
canvas_background_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
272
|
+
canvas_background_prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
273
|
+
shared_canvas_background_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
274
|
+
}, z.core.$strip>;
|
|
275
|
+
declare const createVoiceoverSchema: z.ZodObject<{
|
|
276
|
+
page_number: z.ZodNumber;
|
|
277
|
+
language_code: z.ZodString;
|
|
278
|
+
voice: z.ZodString;
|
|
279
|
+
storage_path: z.ZodString;
|
|
280
|
+
public_url: z.ZodString;
|
|
281
|
+
file_size: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
282
|
+
duration_ms: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
283
|
+
content_type: z.ZodDefault<z.ZodString>;
|
|
284
|
+
text_hash: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
285
|
+
}, z.core.$strip>;
|
|
286
|
+
declare const linkElementSchema: z.ZodObject<{
|
|
287
|
+
element_id: z.ZodString;
|
|
288
|
+
page_number: z.ZodOptional<z.ZodNumber>;
|
|
289
|
+
element_id_in_page: z.ZodOptional<z.ZodString>;
|
|
290
|
+
}, z.core.$strip>;
|
|
291
|
+
|
|
292
|
+
declare const generateStorySchema: z.ZodObject<{
|
|
293
|
+
age_range: z.ZodEnum<{
|
|
294
|
+
"0-1": "0-1";
|
|
295
|
+
"1-2": "1-2";
|
|
296
|
+
"2-3": "2-3";
|
|
297
|
+
"3-4": "3-4";
|
|
298
|
+
"4-6": "4-6";
|
|
299
|
+
"6-8": "6-8";
|
|
300
|
+
}>;
|
|
301
|
+
topic: z.ZodString;
|
|
302
|
+
book_type: z.ZodOptional<z.ZodEnum<{
|
|
303
|
+
story: "story";
|
|
304
|
+
concept: "concept";
|
|
305
|
+
sound: "sound";
|
|
306
|
+
}>>;
|
|
307
|
+
primary_language: z.ZodOptional<z.ZodString>;
|
|
308
|
+
page_count: z.ZodOptional<z.ZodEnum<{
|
|
309
|
+
short: "short";
|
|
310
|
+
medium: "medium";
|
|
311
|
+
long: "long";
|
|
312
|
+
}>>;
|
|
313
|
+
style_reference_url: z.ZodOptional<z.ZodString>;
|
|
314
|
+
}, z.core.$strip>;
|
|
315
|
+
declare const translateStorySchema: z.ZodObject<{
|
|
316
|
+
story_id: z.ZodString;
|
|
317
|
+
target_language: z.ZodString;
|
|
318
|
+
}, z.core.$strip>;
|
|
319
|
+
declare const generateVoiceoverSchema: z.ZodObject<{
|
|
320
|
+
story_id: z.ZodString;
|
|
321
|
+
page_number: z.ZodNumber;
|
|
322
|
+
language_code: z.ZodString;
|
|
323
|
+
}, z.core.$strip>;
|
|
324
|
+
declare const generateSpriteSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
325
|
+
story_id: z.ZodString;
|
|
326
|
+
style_reference_url: z.ZodOptional<z.ZodString>;
|
|
327
|
+
user_id: z.ZodOptional<z.ZodString>;
|
|
328
|
+
type: z.ZodLiteral<"sprite">;
|
|
329
|
+
prompt: z.ZodString;
|
|
330
|
+
page_number: z.ZodOptional<z.ZodNumber>;
|
|
331
|
+
element_id: z.ZodOptional<z.ZodString>;
|
|
332
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
333
|
+
story_id: z.ZodString;
|
|
334
|
+
style_reference_url: z.ZodOptional<z.ZodString>;
|
|
335
|
+
user_id: z.ZodOptional<z.ZodString>;
|
|
336
|
+
type: z.ZodLiteral<"character_reference">;
|
|
337
|
+
prompt: z.ZodString;
|
|
338
|
+
character_name: z.ZodString;
|
|
339
|
+
character_description: z.ZodString;
|
|
340
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
341
|
+
type: z.ZodLiteral<"character_variant">;
|
|
342
|
+
character_name: z.ZodString;
|
|
343
|
+
character_description: z.ZodString;
|
|
344
|
+
variant: z.ZodString;
|
|
345
|
+
shared_character_id: z.ZodString;
|
|
346
|
+
character_reference_url: z.ZodOptional<z.ZodString>;
|
|
347
|
+
story_id: z.ZodOptional<z.ZodString>;
|
|
348
|
+
user_id: z.ZodOptional<z.ZodString>;
|
|
349
|
+
force_regenerate: z.ZodOptional<z.ZodBoolean>;
|
|
350
|
+
}, z.core.$strip>], "type">;
|
|
351
|
+
declare const generateCoverSchema: z.ZodObject<{
|
|
352
|
+
story_id: z.ZodString;
|
|
353
|
+
}, z.core.$strip>;
|
|
354
|
+
declare const generateBackgroundSchema: z.ZodObject<{
|
|
355
|
+
story_id: z.ZodString;
|
|
356
|
+
page_number: z.ZodNumber;
|
|
357
|
+
}, z.core.$strip>;
|
|
358
|
+
declare const generateCanvasBackgroundSchema: z.ZodObject<{
|
|
359
|
+
story_id: z.ZodString;
|
|
360
|
+
}, z.core.$strip>;
|
|
361
|
+
declare const generateDioramaSchema: z.ZodObject<{
|
|
362
|
+
story_id: z.ZodString;
|
|
363
|
+
page_number: z.ZodNumber;
|
|
364
|
+
}, z.core.$strip>;
|
|
365
|
+
declare const generateQuizAudioSchema: z.ZodObject<{
|
|
366
|
+
story_id: z.ZodString;
|
|
367
|
+
page_number: z.ZodNumber;
|
|
368
|
+
language_code: z.ZodString;
|
|
369
|
+
audio_type: z.ZodEnum<{
|
|
370
|
+
success: "success";
|
|
371
|
+
question: "question";
|
|
372
|
+
feedback: "feedback";
|
|
373
|
+
}>;
|
|
374
|
+
element_id: z.ZodOptional<z.ZodString>;
|
|
375
|
+
}, z.core.$strip>;
|
|
376
|
+
declare const enhanceStoryPromptSchema: z.ZodObject<{
|
|
377
|
+
topic: z.ZodString;
|
|
378
|
+
age_range: z.ZodOptional<z.ZodEnum<{
|
|
379
|
+
"0-1": "0-1";
|
|
380
|
+
"1-2": "1-2";
|
|
381
|
+
"2-3": "2-3";
|
|
382
|
+
"3-4": "3-4";
|
|
383
|
+
"4-6": "4-6";
|
|
384
|
+
"6-8": "6-8";
|
|
385
|
+
}>>;
|
|
386
|
+
}, z.core.$strip>;
|
|
387
|
+
|
|
388
|
+
declare const translatedPageSchema: z.ZodObject<{
|
|
389
|
+
number: z.ZodNumber;
|
|
390
|
+
narration: z.ZodString;
|
|
391
|
+
facts: z.ZodArray<z.ZodString>;
|
|
392
|
+
quiz_question: z.ZodOptional<z.ZodString>;
|
|
393
|
+
quiz_success_text: z.ZodOptional<z.ZodString>;
|
|
394
|
+
quiz_feedbacks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
395
|
+
}, z.core.$strip>;
|
|
396
|
+
declare const translatedContentSchema: z.ZodObject<{
|
|
397
|
+
title: z.ZodString;
|
|
398
|
+
description: z.ZodString;
|
|
399
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
400
|
+
number: z.ZodNumber;
|
|
401
|
+
narration: z.ZodString;
|
|
402
|
+
facts: z.ZodArray<z.ZodString>;
|
|
403
|
+
quiz_question: z.ZodOptional<z.ZodString>;
|
|
404
|
+
quiz_success_text: z.ZodOptional<z.ZodString>;
|
|
405
|
+
quiz_feedbacks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
406
|
+
}, z.core.$strip>>;
|
|
407
|
+
secrets: z.ZodArray<z.ZodString>;
|
|
408
|
+
}, z.core.$strip>;
|
|
409
|
+
|
|
410
|
+
declare const createCharacterSchema: z.ZodObject<{
|
|
411
|
+
name: z.ZodString;
|
|
412
|
+
description: z.ZodString;
|
|
413
|
+
style_reference_url: z.ZodOptional<z.ZodString>;
|
|
414
|
+
}, z.core.$strip>;
|
|
415
|
+
declare const updateCharacterSchema: z.ZodObject<{
|
|
416
|
+
name: z.ZodOptional<z.ZodString>;
|
|
417
|
+
description: z.ZodOptional<z.ZodString>;
|
|
418
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
419
|
+
reference_url: z.ZodOptional<z.ZodString>;
|
|
420
|
+
}, z.core.$strip>;
|
|
421
|
+
declare const characterVariantPostSchema: z.ZodObject<{
|
|
422
|
+
variant: z.ZodString;
|
|
423
|
+
force_regenerate: z.ZodOptional<z.ZodBoolean>;
|
|
424
|
+
}, z.core.$strip>;
|
|
425
|
+
declare const characterVariantPutSchema: z.ZodObject<{
|
|
426
|
+
variant: z.ZodString;
|
|
427
|
+
sprite_url: z.ZodString;
|
|
428
|
+
}, z.core.$strip>;
|
|
429
|
+
declare const characterVariantDeleteSchema: z.ZodObject<{
|
|
430
|
+
variant: z.ZodString;
|
|
431
|
+
}, z.core.$strip>;
|
|
432
|
+
|
|
433
|
+
declare const createElementSchema: z.ZodObject<{
|
|
434
|
+
prompt: z.ZodString;
|
|
435
|
+
name: z.ZodString;
|
|
436
|
+
style_reference_url: z.ZodOptional<z.ZodString>;
|
|
437
|
+
}, z.core.$strip>;
|
|
438
|
+
declare const updateElementSchema: z.ZodObject<{
|
|
439
|
+
name: z.ZodOptional<z.ZodString>;
|
|
440
|
+
description: z.ZodOptional<z.ZodString>;
|
|
441
|
+
category: z.ZodOptional<z.ZodEnum<{
|
|
442
|
+
object: "object";
|
|
443
|
+
scene: "scene";
|
|
444
|
+
building: "building";
|
|
445
|
+
animal: "animal";
|
|
446
|
+
effect: "effect";
|
|
447
|
+
furniture: "furniture";
|
|
448
|
+
food: "food";
|
|
449
|
+
vehicle: "vehicle";
|
|
450
|
+
vegetation: "vegetation";
|
|
451
|
+
sky: "sky";
|
|
452
|
+
landscape: "landscape";
|
|
453
|
+
}>>;
|
|
454
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
455
|
+
}, z.core.$strip>;
|
|
456
|
+
|
|
457
|
+
declare const createPageBackgroundSchema: z.ZodObject<{
|
|
458
|
+
user_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
459
|
+
name: z.ZodString;
|
|
460
|
+
prompt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
461
|
+
storage_path: z.ZodString;
|
|
462
|
+
public_url: z.ZodString;
|
|
463
|
+
file_size: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
464
|
+
content_type: z.ZodDefault<z.ZodString>;
|
|
465
|
+
is_system: z.ZodDefault<z.ZodBoolean>;
|
|
466
|
+
}, z.core.$strip>;
|
|
467
|
+
declare const createCanvasBackgroundSchema: z.ZodObject<{
|
|
468
|
+
user_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
469
|
+
name: z.ZodString;
|
|
470
|
+
prompt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
471
|
+
storage_path: z.ZodString;
|
|
472
|
+
public_url: z.ZodString;
|
|
473
|
+
file_size: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
474
|
+
content_type: z.ZodDefault<z.ZodString>;
|
|
475
|
+
is_system: z.ZodDefault<z.ZodBoolean>;
|
|
476
|
+
}, z.core.$strip>;
|
|
477
|
+
|
|
478
|
+
declare const updateSoundAssetSchema: z.ZodObject<{
|
|
479
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
480
|
+
category: z.ZodOptional<z.ZodString>;
|
|
481
|
+
}, z.core.$strip>;
|
|
482
|
+
|
|
483
|
+
export { ageRangeSchema, bookTypeSchema, characterVariantDeleteSchema, characterVariantPostSchema, characterVariantPutSchema, createCanvasBackgroundSchema, createCharacterSchema, createElementSchema, createPageBackgroundSchema, createStorySchema, createVoiceoverSchema, elementCategorySchema, enhanceStoryPromptSchema, generateBackgroundSchema, generateCanvasBackgroundSchema, generateCoverSchema, generateDioramaSchema, generateQuizAudioSchema, generateSpriteSchema, generateStorySchema, generateVoiceoverSchema, interactionTypeSchema, linkElementSchema, normalizeStorySchema, poseVariantSchema, storyCharacterSchema, storyCharacterVariantSchema, storyElementSchema, storyLengthSchema, storyPageSchema, storySecretSchema, storyStatusSchema, translateStorySchema, translatedContentSchema, translatedPageSchema, updateCharacterSchema, updateElementSchema, updateSoundAssetSchema, updateStorySchema, userRoleSchema };
|