@appeeky/open-slideshow 0.0.0-stage → 0.1.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.
Files changed (57) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +227 -2
  3. package/dist/bin.d.ts +2 -0
  4. package/dist/bin.js +9 -0
  5. package/dist/brand.d.ts +55 -0
  6. package/dist/brand.js +246 -0
  7. package/dist/cli.d.ts +1 -0
  8. package/dist/cli.js +261 -0
  9. package/dist/decks.d.ts +44 -0
  10. package/dist/decks.js +90 -0
  11. package/dist/fonts.d.ts +45 -0
  12. package/dist/fonts.js +243 -0
  13. package/dist/gallery.d.ts +35 -0
  14. package/dist/gallery.js +109 -0
  15. package/dist/images.d.ts +49 -0
  16. package/dist/images.js +223 -0
  17. package/dist/index.d.ts +12 -0
  18. package/dist/index.js +13 -0
  19. package/dist/lint.d.ts +33 -0
  20. package/dist/lint.js +181 -0
  21. package/dist/mcp.d.ts +3 -0
  22. package/dist/mcp.js +233 -0
  23. package/dist/publish.d.ts +100 -0
  24. package/dist/publish.js +401 -0
  25. package/dist/render.d.ts +73 -0
  26. package/dist/render.js +515 -0
  27. package/dist/schedule.d.ts +19 -0
  28. package/dist/schedule.js +114 -0
  29. package/dist/schema.d.ts +1004 -0
  30. package/dist/schema.js +174 -0
  31. package/dist/shape.d.ts +31 -0
  32. package/dist/shape.js +169 -0
  33. package/dist/skill.d.ts +7 -0
  34. package/dist/skill.js +17 -0
  35. package/dist/templates.d.ts +44 -0
  36. package/dist/templates.js +185 -0
  37. package/dist/text.d.ts +40 -0
  38. package/dist/text.js +230 -0
  39. package/dist/themes.d.ts +43 -0
  40. package/dist/themes.js +202 -0
  41. package/dist/version.d.ts +1 -0
  42. package/dist/version.js +1 -0
  43. package/dist/viral.d.ts +12 -0
  44. package/dist/viral.js +35 -0
  45. package/dist/workspace.d.ts +80 -0
  46. package/dist/workspace.js +306 -0
  47. package/package.json +65 -4
  48. package/skills/open-slideshow/SKILL.md +52 -0
  49. package/skills/open-slideshow/references/brand.md +54 -0
  50. package/skills/open-slideshow/references/channels.md +63 -0
  51. package/skills/open-slideshow/references/images.md +53 -0
  52. package/skills/open-slideshow/references/languages.md +41 -0
  53. package/skills/open-slideshow/references/publishing.md +70 -0
  54. package/skills/open-slideshow/references/review.md +74 -0
  55. package/skills/open-slideshow/references/templates.md +59 -0
  56. package/skills/open-slideshow/references/troubleshooting.md +82 -0
  57. package/skills/open-slideshow/references/writing.md +76 -0
@@ -0,0 +1,1004 @@
1
+ import { z } from "zod";
2
+ /** Deck, channel and slide ids: lowercase slugs, so they are safe as folder names on every OS. */
3
+ export declare const ID_PATTERN: RegExp;
4
+ export declare const idSchema: z.ZodEffects<z.ZodString, string, string>;
5
+ export declare const SIZES: {
6
+ readonly "4:5": {
7
+ readonly width: 1080;
8
+ readonly height: 1350;
9
+ };
10
+ readonly "1:1": {
11
+ readonly width: 1080;
12
+ readonly height: 1080;
13
+ };
14
+ readonly "9:16": {
15
+ readonly width: 1080;
16
+ readonly height: 1920;
17
+ };
18
+ };
19
+ export declare const sizeSchema: z.ZodEnum<["4:5", "1:1", "9:16"]>;
20
+ export type SizeId = z.infer<typeof sizeSchema>;
21
+ export declare const textStyleSchema: z.ZodEnum<["outline", "shadow", "plain", "box"]>;
22
+ export type TextStyle = z.infer<typeof textStyleSchema>;
23
+ export declare const hexColor: z.ZodString;
24
+ export declare const colorsSchema: z.ZodObject<{
25
+ bg: z.ZodString;
26
+ fg: z.ZodString;
27
+ accent: z.ZodString;
28
+ muted: z.ZodOptional<z.ZodString>;
29
+ card: z.ZodOptional<z.ZodString>;
30
+ }, "strict", z.ZodTypeAny, {
31
+ bg: string;
32
+ fg: string;
33
+ accent: string;
34
+ muted?: string | undefined;
35
+ card?: string | undefined;
36
+ }, {
37
+ bg: string;
38
+ fg: string;
39
+ accent: string;
40
+ muted?: string | undefined;
41
+ card?: string | undefined;
42
+ }>;
43
+ export type Colors = z.infer<typeof colorsSchema>;
44
+ export declare const slideKindSchema: z.ZodEnum<["cover", "tip", "list", "quote", "bridge", "app", "text"]>;
45
+ export type SlideKind = z.infer<typeof slideKindSchema>;
46
+ export declare const slideSchema: z.ZodObject<{
47
+ kind: z.ZodEnum<["cover", "tip", "list", "quote", "bridge", "app", "text"]>;
48
+ title: z.ZodOptional<z.ZodString>;
49
+ body: z.ZodOptional<z.ZodString>;
50
+ items: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
51
+ list_style: z.ZodOptional<z.ZodEnum<["bullet", "check", "number"]>>;
52
+ number: z.ZodOptional<z.ZodNumber>;
53
+ image: z.ZodOptional<z.ZodString>;
54
+ focus: z.ZodOptional<z.ZodObject<{
55
+ x: z.ZodNumber;
56
+ y: z.ZodNumber;
57
+ }, "strict", z.ZodTypeAny, {
58
+ x: number;
59
+ y: number;
60
+ }, {
61
+ x: number;
62
+ y: number;
63
+ }>>;
64
+ author: z.ZodOptional<z.ZodString>;
65
+ text_style: z.ZodOptional<z.ZodEnum<["outline", "shadow", "plain", "box"]>>;
66
+ text_position: z.ZodOptional<z.ZodNumber>;
67
+ }, "strict", z.ZodTypeAny, {
68
+ kind: "cover" | "tip" | "list" | "quote" | "bridge" | "app" | "text";
69
+ number?: number | undefined;
70
+ title?: string | undefined;
71
+ body?: string | undefined;
72
+ items?: string[] | undefined;
73
+ list_style?: "number" | "bullet" | "check" | undefined;
74
+ image?: string | undefined;
75
+ focus?: {
76
+ x: number;
77
+ y: number;
78
+ } | undefined;
79
+ author?: string | undefined;
80
+ text_style?: "outline" | "shadow" | "plain" | "box" | undefined;
81
+ text_position?: number | undefined;
82
+ }, {
83
+ kind: "cover" | "tip" | "list" | "quote" | "bridge" | "app" | "text";
84
+ number?: number | undefined;
85
+ title?: string | undefined;
86
+ body?: string | undefined;
87
+ items?: string[] | undefined;
88
+ list_style?: "number" | "bullet" | "check" | undefined;
89
+ image?: string | undefined;
90
+ focus?: {
91
+ x: number;
92
+ y: number;
93
+ } | undefined;
94
+ author?: string | undefined;
95
+ text_style?: "outline" | "shadow" | "plain" | "box" | undefined;
96
+ text_position?: number | undefined;
97
+ }>;
98
+ export type Slide = z.infer<typeof slideSchema>;
99
+ export declare const hashtagSchema: z.ZodEffects<z.ZodString, string, string>;
100
+ export declare const tiktokOptionsSchema: z.ZodObject<{
101
+ privacy: z.ZodOptional<z.ZodEnum<["public", "friends", "followers", "only_me"]>>;
102
+ disclosure: z.ZodOptional<z.ZodEnum<["none", "own_brand", "paid_partnership"]>>;
103
+ inbox_draft: z.ZodOptional<z.ZodBoolean>;
104
+ auto_music: z.ZodOptional<z.ZodBoolean>;
105
+ comments: z.ZodOptional<z.ZodBoolean>;
106
+ cover_index: z.ZodOptional<z.ZodNumber>;
107
+ }, "strict", z.ZodTypeAny, {
108
+ privacy?: "public" | "friends" | "followers" | "only_me" | undefined;
109
+ disclosure?: "none" | "own_brand" | "paid_partnership" | undefined;
110
+ inbox_draft?: boolean | undefined;
111
+ auto_music?: boolean | undefined;
112
+ comments?: boolean | undefined;
113
+ cover_index?: number | undefined;
114
+ }, {
115
+ privacy?: "public" | "friends" | "followers" | "only_me" | undefined;
116
+ disclosure?: "none" | "own_brand" | "paid_partnership" | undefined;
117
+ inbox_draft?: boolean | undefined;
118
+ auto_music?: boolean | undefined;
119
+ comments?: boolean | undefined;
120
+ cover_index?: number | undefined;
121
+ }>;
122
+ export type TikTokOptions = z.infer<typeof tiktokOptionsSchema>;
123
+ export declare const publishRecordSchema: z.ZodObject<{
124
+ provider: z.ZodEnum<["export", "appeeky", "postiz", "spec-draft"]>;
125
+ at: z.ZodString;
126
+ render_hash: z.ZodString;
127
+ post_id: z.ZodOptional<z.ZodString>;
128
+ draft_file: z.ZodOptional<z.ZodString>;
129
+ scheduled_for: z.ZodOptional<z.ZodString>;
130
+ /** Uploads done so far, by render file name, so a retry after a failure goes on where it stopped. */
131
+ media: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
132
+ }, "strict", z.ZodTypeAny, {
133
+ at: string;
134
+ provider: "export" | "appeeky" | "postiz" | "spec-draft";
135
+ render_hash: string;
136
+ post_id?: string | undefined;
137
+ draft_file?: string | undefined;
138
+ scheduled_for?: string | undefined;
139
+ media?: Record<string, string> | undefined;
140
+ }, {
141
+ at: string;
142
+ provider: "export" | "appeeky" | "postiz" | "spec-draft";
143
+ render_hash: string;
144
+ post_id?: string | undefined;
145
+ draft_file?: string | undefined;
146
+ scheduled_for?: string | undefined;
147
+ media?: Record<string, string> | undefined;
148
+ }>;
149
+ export declare const deckSchema: z.ZodObject<{
150
+ version: z.ZodDefault<z.ZodLiteral<1>>;
151
+ id: z.ZodEffects<z.ZodString, string, string>;
152
+ channel: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
153
+ language: z.ZodDefault<z.ZodString>;
154
+ size: z.ZodDefault<z.ZodEnum<["4:5", "1:1", "9:16"]>>;
155
+ theme: z.ZodDefault<z.ZodString>;
156
+ /** Brand colours instead of the theme's own. */
157
+ colors: z.ZodOptional<z.ZodObject<{
158
+ bg: z.ZodString;
159
+ fg: z.ZodString;
160
+ accent: z.ZodString;
161
+ muted: z.ZodOptional<z.ZodString>;
162
+ card: z.ZodOptional<z.ZodString>;
163
+ }, "strict", z.ZodTypeAny, {
164
+ bg: string;
165
+ fg: string;
166
+ accent: string;
167
+ muted?: string | undefined;
168
+ card?: string | undefined;
169
+ }, {
170
+ bg: string;
171
+ fg: string;
172
+ accent: string;
173
+ muted?: string | undefined;
174
+ card?: string | undefined;
175
+ }>>;
176
+ full_cover: z.ZodDefault<z.ZodBoolean>;
177
+ text_style: z.ZodOptional<z.ZodEnum<["outline", "shadow", "plain", "box"]>>;
178
+ show_handle: z.ZodDefault<z.ZodBoolean>;
179
+ slides: z.ZodArray<z.ZodObject<{
180
+ kind: z.ZodEnum<["cover", "tip", "list", "quote", "bridge", "app", "text"]>;
181
+ title: z.ZodOptional<z.ZodString>;
182
+ body: z.ZodOptional<z.ZodString>;
183
+ items: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
184
+ list_style: z.ZodOptional<z.ZodEnum<["bullet", "check", "number"]>>;
185
+ number: z.ZodOptional<z.ZodNumber>;
186
+ image: z.ZodOptional<z.ZodString>;
187
+ focus: z.ZodOptional<z.ZodObject<{
188
+ x: z.ZodNumber;
189
+ y: z.ZodNumber;
190
+ }, "strict", z.ZodTypeAny, {
191
+ x: number;
192
+ y: number;
193
+ }, {
194
+ x: number;
195
+ y: number;
196
+ }>>;
197
+ author: z.ZodOptional<z.ZodString>;
198
+ text_style: z.ZodOptional<z.ZodEnum<["outline", "shadow", "plain", "box"]>>;
199
+ text_position: z.ZodOptional<z.ZodNumber>;
200
+ }, "strict", z.ZodTypeAny, {
201
+ kind: "cover" | "tip" | "list" | "quote" | "bridge" | "app" | "text";
202
+ number?: number | undefined;
203
+ title?: string | undefined;
204
+ body?: string | undefined;
205
+ items?: string[] | undefined;
206
+ list_style?: "number" | "bullet" | "check" | undefined;
207
+ image?: string | undefined;
208
+ focus?: {
209
+ x: number;
210
+ y: number;
211
+ } | undefined;
212
+ author?: string | undefined;
213
+ text_style?: "outline" | "shadow" | "plain" | "box" | undefined;
214
+ text_position?: number | undefined;
215
+ }, {
216
+ kind: "cover" | "tip" | "list" | "quote" | "bridge" | "app" | "text";
217
+ number?: number | undefined;
218
+ title?: string | undefined;
219
+ body?: string | undefined;
220
+ items?: string[] | undefined;
221
+ list_style?: "number" | "bullet" | "check" | undefined;
222
+ image?: string | undefined;
223
+ focus?: {
224
+ x: number;
225
+ y: number;
226
+ } | undefined;
227
+ author?: string | undefined;
228
+ text_style?: "outline" | "shadow" | "plain" | "box" | undefined;
229
+ text_position?: number | undefined;
230
+ }>, "many">;
231
+ caption: z.ZodDefault<z.ZodString>;
232
+ hashtags: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
233
+ accounts: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
234
+ when: z.ZodOptional<z.ZodString>;
235
+ tiktok: z.ZodOptional<z.ZodObject<{
236
+ privacy: z.ZodOptional<z.ZodEnum<["public", "friends", "followers", "only_me"]>>;
237
+ disclosure: z.ZodOptional<z.ZodEnum<["none", "own_brand", "paid_partnership"]>>;
238
+ inbox_draft: z.ZodOptional<z.ZodBoolean>;
239
+ auto_music: z.ZodOptional<z.ZodBoolean>;
240
+ comments: z.ZodOptional<z.ZodBoolean>;
241
+ cover_index: z.ZodOptional<z.ZodNumber>;
242
+ }, "strict", z.ZodTypeAny, {
243
+ privacy?: "public" | "friends" | "followers" | "only_me" | undefined;
244
+ disclosure?: "none" | "own_brand" | "paid_partnership" | undefined;
245
+ inbox_draft?: boolean | undefined;
246
+ auto_music?: boolean | undefined;
247
+ comments?: boolean | undefined;
248
+ cover_index?: number | undefined;
249
+ }, {
250
+ privacy?: "public" | "friends" | "followers" | "only_me" | undefined;
251
+ disclosure?: "none" | "own_brand" | "paid_partnership" | undefined;
252
+ inbox_draft?: boolean | undefined;
253
+ auto_music?: boolean | undefined;
254
+ comments?: boolean | undefined;
255
+ cover_index?: number | undefined;
256
+ }>>;
257
+ topic: z.ZodOptional<z.ZodString>;
258
+ /** The shape the deck follows (templates_list), checked by lint. */
259
+ template: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
260
+ status: z.ZodDefault<z.ZodEnum<["draft", "rendered", "published"]>>;
261
+ published: z.ZodDefault<z.ZodArray<z.ZodObject<{
262
+ provider: z.ZodEnum<["export", "appeeky", "postiz", "spec-draft"]>;
263
+ at: z.ZodString;
264
+ render_hash: z.ZodString;
265
+ post_id: z.ZodOptional<z.ZodString>;
266
+ draft_file: z.ZodOptional<z.ZodString>;
267
+ scheduled_for: z.ZodOptional<z.ZodString>;
268
+ /** Uploads done so far, by render file name, so a retry after a failure goes on where it stopped. */
269
+ media: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
270
+ }, "strict", z.ZodTypeAny, {
271
+ at: string;
272
+ provider: "export" | "appeeky" | "postiz" | "spec-draft";
273
+ render_hash: string;
274
+ post_id?: string | undefined;
275
+ draft_file?: string | undefined;
276
+ scheduled_for?: string | undefined;
277
+ media?: Record<string, string> | undefined;
278
+ }, {
279
+ at: string;
280
+ provider: "export" | "appeeky" | "postiz" | "spec-draft";
281
+ render_hash: string;
282
+ post_id?: string | undefined;
283
+ draft_file?: string | undefined;
284
+ scheduled_for?: string | undefined;
285
+ media?: Record<string, string> | undefined;
286
+ }>, "many">>;
287
+ }, "strict", z.ZodTypeAny, {
288
+ status: "draft" | "rendered" | "published";
289
+ version: 1;
290
+ id: string;
291
+ language: string;
292
+ size: "4:5" | "1:1" | "9:16";
293
+ theme: string;
294
+ full_cover: boolean;
295
+ show_handle: boolean;
296
+ slides: {
297
+ kind: "cover" | "tip" | "list" | "quote" | "bridge" | "app" | "text";
298
+ number?: number | undefined;
299
+ title?: string | undefined;
300
+ body?: string | undefined;
301
+ items?: string[] | undefined;
302
+ list_style?: "number" | "bullet" | "check" | undefined;
303
+ image?: string | undefined;
304
+ focus?: {
305
+ x: number;
306
+ y: number;
307
+ } | undefined;
308
+ author?: string | undefined;
309
+ text_style?: "outline" | "shadow" | "plain" | "box" | undefined;
310
+ text_position?: number | undefined;
311
+ }[];
312
+ caption: string;
313
+ hashtags: string[];
314
+ accounts: string[];
315
+ published: {
316
+ at: string;
317
+ provider: "export" | "appeeky" | "postiz" | "spec-draft";
318
+ render_hash: string;
319
+ post_id?: string | undefined;
320
+ draft_file?: string | undefined;
321
+ scheduled_for?: string | undefined;
322
+ media?: Record<string, string> | undefined;
323
+ }[];
324
+ text_style?: "outline" | "shadow" | "plain" | "box" | undefined;
325
+ channel?: string | undefined;
326
+ colors?: {
327
+ bg: string;
328
+ fg: string;
329
+ accent: string;
330
+ muted?: string | undefined;
331
+ card?: string | undefined;
332
+ } | undefined;
333
+ when?: string | undefined;
334
+ tiktok?: {
335
+ privacy?: "public" | "friends" | "followers" | "only_me" | undefined;
336
+ disclosure?: "none" | "own_brand" | "paid_partnership" | undefined;
337
+ inbox_draft?: boolean | undefined;
338
+ auto_music?: boolean | undefined;
339
+ comments?: boolean | undefined;
340
+ cover_index?: number | undefined;
341
+ } | undefined;
342
+ topic?: string | undefined;
343
+ template?: string | undefined;
344
+ }, {
345
+ id: string;
346
+ slides: {
347
+ kind: "cover" | "tip" | "list" | "quote" | "bridge" | "app" | "text";
348
+ number?: number | undefined;
349
+ title?: string | undefined;
350
+ body?: string | undefined;
351
+ items?: string[] | undefined;
352
+ list_style?: "number" | "bullet" | "check" | undefined;
353
+ image?: string | undefined;
354
+ focus?: {
355
+ x: number;
356
+ y: number;
357
+ } | undefined;
358
+ author?: string | undefined;
359
+ text_style?: "outline" | "shadow" | "plain" | "box" | undefined;
360
+ text_position?: number | undefined;
361
+ }[];
362
+ status?: "draft" | "rendered" | "published" | undefined;
363
+ text_style?: "outline" | "shadow" | "plain" | "box" | undefined;
364
+ version?: 1 | undefined;
365
+ channel?: string | undefined;
366
+ language?: string | undefined;
367
+ size?: "4:5" | "1:1" | "9:16" | undefined;
368
+ theme?: string | undefined;
369
+ colors?: {
370
+ bg: string;
371
+ fg: string;
372
+ accent: string;
373
+ muted?: string | undefined;
374
+ card?: string | undefined;
375
+ } | undefined;
376
+ full_cover?: boolean | undefined;
377
+ show_handle?: boolean | undefined;
378
+ caption?: string | undefined;
379
+ hashtags?: string[] | undefined;
380
+ accounts?: string[] | undefined;
381
+ when?: string | undefined;
382
+ tiktok?: {
383
+ privacy?: "public" | "friends" | "followers" | "only_me" | undefined;
384
+ disclosure?: "none" | "own_brand" | "paid_partnership" | undefined;
385
+ inbox_draft?: boolean | undefined;
386
+ auto_music?: boolean | undefined;
387
+ comments?: boolean | undefined;
388
+ cover_index?: number | undefined;
389
+ } | undefined;
390
+ topic?: string | undefined;
391
+ template?: string | undefined;
392
+ published?: {
393
+ at: string;
394
+ provider: "export" | "appeeky" | "postiz" | "spec-draft";
395
+ render_hash: string;
396
+ post_id?: string | undefined;
397
+ draft_file?: string | undefined;
398
+ scheduled_for?: string | undefined;
399
+ media?: Record<string, string> | undefined;
400
+ }[] | undefined;
401
+ }>;
402
+ export type Deck = z.infer<typeof deckSchema>;
403
+ export type DeckInput = z.input<typeof deckSchema>;
404
+ export declare const DAYS: readonly ["sun", "mon", "tue", "wed", "thu", "fri", "sat"];
405
+ export declare const scheduleSchema: z.ZodObject<{
406
+ mode: z.ZodDefault<z.ZodEnum<["window", "fixed"]>>;
407
+ days: z.ZodDefault<z.ZodArray<z.ZodEnum<["sun", "mon", "tue", "wed", "thu", "fri", "sat"]>, "many">>;
408
+ per_day: z.ZodDefault<z.ZodNumber>;
409
+ window: z.ZodDefault<z.ZodObject<{
410
+ start: z.ZodString;
411
+ end: z.ZodString;
412
+ }, "strict", z.ZodTypeAny, {
413
+ start: string;
414
+ end: string;
415
+ }, {
416
+ start: string;
417
+ end: string;
418
+ }>>;
419
+ times: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
420
+ timezone: z.ZodDefault<z.ZodString>;
421
+ prepare: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"day_before">, z.ZodLiteral<"at_post_time">, z.ZodObject<{
422
+ hours_before: z.ZodNumber;
423
+ }, "strict", z.ZodTypeAny, {
424
+ hours_before: number;
425
+ }, {
426
+ hours_before: number;
427
+ }>]>>;
428
+ min_gap: z.ZodDefault<z.ZodNumber>;
429
+ }, "strict", z.ZodTypeAny, {
430
+ window: {
431
+ start: string;
432
+ end: string;
433
+ };
434
+ mode: "window" | "fixed";
435
+ days: ("sun" | "mon" | "tue" | "wed" | "thu" | "fri" | "sat")[];
436
+ per_day: number;
437
+ times: string[];
438
+ timezone: string;
439
+ prepare: "day_before" | "at_post_time" | {
440
+ hours_before: number;
441
+ };
442
+ min_gap: number;
443
+ }, {
444
+ window?: {
445
+ start: string;
446
+ end: string;
447
+ } | undefined;
448
+ mode?: "window" | "fixed" | undefined;
449
+ days?: ("sun" | "mon" | "tue" | "wed" | "thu" | "fri" | "sat")[] | undefined;
450
+ per_day?: number | undefined;
451
+ times?: string[] | undefined;
452
+ timezone?: string | undefined;
453
+ prepare?: "day_before" | "at_post_time" | {
454
+ hours_before: number;
455
+ } | undefined;
456
+ min_gap?: number | undefined;
457
+ }>;
458
+ export type Schedule = z.infer<typeof scheduleSchema>;
459
+ export declare const channelSchema: z.ZodObject<{
460
+ version: z.ZodDefault<z.ZodLiteral<1>>;
461
+ id: z.ZodEffects<z.ZodString, string, string>;
462
+ name: z.ZodString;
463
+ enabled: z.ZodDefault<z.ZodBoolean>;
464
+ accounts: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
465
+ schedule: z.ZodDefault<z.ZodObject<{
466
+ mode: z.ZodDefault<z.ZodEnum<["window", "fixed"]>>;
467
+ days: z.ZodDefault<z.ZodArray<z.ZodEnum<["sun", "mon", "tue", "wed", "thu", "fri", "sat"]>, "many">>;
468
+ per_day: z.ZodDefault<z.ZodNumber>;
469
+ window: z.ZodDefault<z.ZodObject<{
470
+ start: z.ZodString;
471
+ end: z.ZodString;
472
+ }, "strict", z.ZodTypeAny, {
473
+ start: string;
474
+ end: string;
475
+ }, {
476
+ start: string;
477
+ end: string;
478
+ }>>;
479
+ times: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
480
+ timezone: z.ZodDefault<z.ZodString>;
481
+ prepare: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"day_before">, z.ZodLiteral<"at_post_time">, z.ZodObject<{
482
+ hours_before: z.ZodNumber;
483
+ }, "strict", z.ZodTypeAny, {
484
+ hours_before: number;
485
+ }, {
486
+ hours_before: number;
487
+ }>]>>;
488
+ min_gap: z.ZodDefault<z.ZodNumber>;
489
+ }, "strict", z.ZodTypeAny, {
490
+ window: {
491
+ start: string;
492
+ end: string;
493
+ };
494
+ mode: "window" | "fixed";
495
+ days: ("sun" | "mon" | "tue" | "wed" | "thu" | "fri" | "sat")[];
496
+ per_day: number;
497
+ times: string[];
498
+ timezone: string;
499
+ prepare: "day_before" | "at_post_time" | {
500
+ hours_before: number;
501
+ };
502
+ min_gap: number;
503
+ }, {
504
+ window?: {
505
+ start: string;
506
+ end: string;
507
+ } | undefined;
508
+ mode?: "window" | "fixed" | undefined;
509
+ days?: ("sun" | "mon" | "tue" | "wed" | "thu" | "fri" | "sat")[] | undefined;
510
+ per_day?: number | undefined;
511
+ times?: string[] | undefined;
512
+ timezone?: string | undefined;
513
+ prepare?: "day_before" | "at_post_time" | {
514
+ hours_before: number;
515
+ } | undefined;
516
+ min_gap?: number | undefined;
517
+ }>>;
518
+ content: z.ZodDefault<z.ZodObject<{
519
+ audience: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
520
+ language: z.ZodDefault<z.ZodString>;
521
+ slide_count: z.ZodDefault<z.ZodNumber>;
522
+ full_cover: z.ZodDefault<z.ZodBoolean>;
523
+ bridge: z.ZodDefault<z.ZodBoolean>;
524
+ brand: z.ZodDefault<z.ZodBoolean>;
525
+ topics: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
526
+ /** Templates to rotate through for this channel's posts; empty means any. */
527
+ templates: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
528
+ never: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
529
+ notes: z.ZodDefault<z.ZodString>;
530
+ }, "strict", z.ZodTypeAny, {
531
+ bridge: boolean;
532
+ never: string[];
533
+ language: string;
534
+ full_cover: boolean;
535
+ audience: string[];
536
+ slide_count: number;
537
+ brand: boolean;
538
+ topics: string[];
539
+ templates: string[];
540
+ notes: string;
541
+ }, {
542
+ bridge?: boolean | undefined;
543
+ never?: string[] | undefined;
544
+ language?: string | undefined;
545
+ full_cover?: boolean | undefined;
546
+ audience?: string[] | undefined;
547
+ slide_count?: number | undefined;
548
+ brand?: boolean | undefined;
549
+ topics?: string[] | undefined;
550
+ templates?: string[] | undefined;
551
+ notes?: string | undefined;
552
+ }>>;
553
+ design: z.ZodDefault<z.ZodObject<{
554
+ size: z.ZodDefault<z.ZodEnum<["4:5", "1:1", "9:16"]>>;
555
+ theme: z.ZodDefault<z.ZodString>;
556
+ colors: z.ZodOptional<z.ZodObject<{
557
+ bg: z.ZodString;
558
+ fg: z.ZodString;
559
+ accent: z.ZodString;
560
+ muted: z.ZodOptional<z.ZodString>;
561
+ card: z.ZodOptional<z.ZodString>;
562
+ }, "strict", z.ZodTypeAny, {
563
+ bg: string;
564
+ fg: string;
565
+ accent: string;
566
+ muted?: string | undefined;
567
+ card?: string | undefined;
568
+ }, {
569
+ bg: string;
570
+ fg: string;
571
+ accent: string;
572
+ muted?: string | undefined;
573
+ card?: string | undefined;
574
+ }>>;
575
+ }, "strict", z.ZodTypeAny, {
576
+ size: "4:5" | "1:1" | "9:16";
577
+ theme: string;
578
+ colors?: {
579
+ bg: string;
580
+ fg: string;
581
+ accent: string;
582
+ muted?: string | undefined;
583
+ card?: string | undefined;
584
+ } | undefined;
585
+ }, {
586
+ size?: "4:5" | "1:1" | "9:16" | undefined;
587
+ theme?: string | undefined;
588
+ colors?: {
589
+ bg: string;
590
+ fg: string;
591
+ accent: string;
592
+ muted?: string | undefined;
593
+ card?: string | undefined;
594
+ } | undefined;
595
+ }>>;
596
+ hashtags: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
597
+ tiktok: z.ZodOptional<z.ZodObject<{
598
+ privacy: z.ZodOptional<z.ZodEnum<["public", "friends", "followers", "only_me"]>>;
599
+ disclosure: z.ZodOptional<z.ZodEnum<["none", "own_brand", "paid_partnership"]>>;
600
+ inbox_draft: z.ZodOptional<z.ZodBoolean>;
601
+ auto_music: z.ZodOptional<z.ZodBoolean>;
602
+ comments: z.ZodOptional<z.ZodBoolean>;
603
+ cover_index: z.ZodOptional<z.ZodNumber>;
604
+ }, "strict", z.ZodTypeAny, {
605
+ privacy?: "public" | "friends" | "followers" | "only_me" | undefined;
606
+ disclosure?: "none" | "own_brand" | "paid_partnership" | undefined;
607
+ inbox_draft?: boolean | undefined;
608
+ auto_music?: boolean | undefined;
609
+ comments?: boolean | undefined;
610
+ cover_index?: number | undefined;
611
+ }, {
612
+ privacy?: "public" | "friends" | "followers" | "only_me" | undefined;
613
+ disclosure?: "none" | "own_brand" | "paid_partnership" | undefined;
614
+ inbox_draft?: boolean | undefined;
615
+ auto_music?: boolean | undefined;
616
+ comments?: boolean | undefined;
617
+ cover_index?: number | undefined;
618
+ }>>;
619
+ }, "strict", z.ZodTypeAny, {
620
+ version: 1;
621
+ id: string;
622
+ hashtags: string[];
623
+ accounts: string[];
624
+ name: string;
625
+ enabled: boolean;
626
+ schedule: {
627
+ window: {
628
+ start: string;
629
+ end: string;
630
+ };
631
+ mode: "window" | "fixed";
632
+ days: ("sun" | "mon" | "tue" | "wed" | "thu" | "fri" | "sat")[];
633
+ per_day: number;
634
+ times: string[];
635
+ timezone: string;
636
+ prepare: "day_before" | "at_post_time" | {
637
+ hours_before: number;
638
+ };
639
+ min_gap: number;
640
+ };
641
+ content: {
642
+ bridge: boolean;
643
+ never: string[];
644
+ language: string;
645
+ full_cover: boolean;
646
+ audience: string[];
647
+ slide_count: number;
648
+ brand: boolean;
649
+ topics: string[];
650
+ templates: string[];
651
+ notes: string;
652
+ };
653
+ design: {
654
+ size: "4:5" | "1:1" | "9:16";
655
+ theme: string;
656
+ colors?: {
657
+ bg: string;
658
+ fg: string;
659
+ accent: string;
660
+ muted?: string | undefined;
661
+ card?: string | undefined;
662
+ } | undefined;
663
+ };
664
+ tiktok?: {
665
+ privacy?: "public" | "friends" | "followers" | "only_me" | undefined;
666
+ disclosure?: "none" | "own_brand" | "paid_partnership" | undefined;
667
+ inbox_draft?: boolean | undefined;
668
+ auto_music?: boolean | undefined;
669
+ comments?: boolean | undefined;
670
+ cover_index?: number | undefined;
671
+ } | undefined;
672
+ }, {
673
+ id: string;
674
+ name: string;
675
+ version?: 1 | undefined;
676
+ hashtags?: string[] | undefined;
677
+ accounts?: string[] | undefined;
678
+ tiktok?: {
679
+ privacy?: "public" | "friends" | "followers" | "only_me" | undefined;
680
+ disclosure?: "none" | "own_brand" | "paid_partnership" | undefined;
681
+ inbox_draft?: boolean | undefined;
682
+ auto_music?: boolean | undefined;
683
+ comments?: boolean | undefined;
684
+ cover_index?: number | undefined;
685
+ } | undefined;
686
+ enabled?: boolean | undefined;
687
+ schedule?: {
688
+ window?: {
689
+ start: string;
690
+ end: string;
691
+ } | undefined;
692
+ mode?: "window" | "fixed" | undefined;
693
+ days?: ("sun" | "mon" | "tue" | "wed" | "thu" | "fri" | "sat")[] | undefined;
694
+ per_day?: number | undefined;
695
+ times?: string[] | undefined;
696
+ timezone?: string | undefined;
697
+ prepare?: "day_before" | "at_post_time" | {
698
+ hours_before: number;
699
+ } | undefined;
700
+ min_gap?: number | undefined;
701
+ } | undefined;
702
+ content?: {
703
+ bridge?: boolean | undefined;
704
+ never?: string[] | undefined;
705
+ language?: string | undefined;
706
+ full_cover?: boolean | undefined;
707
+ audience?: string[] | undefined;
708
+ slide_count?: number | undefined;
709
+ brand?: boolean | undefined;
710
+ topics?: string[] | undefined;
711
+ templates?: string[] | undefined;
712
+ notes?: string | undefined;
713
+ } | undefined;
714
+ design?: {
715
+ size?: "4:5" | "1:1" | "9:16" | undefined;
716
+ theme?: string | undefined;
717
+ colors?: {
718
+ bg: string;
719
+ fg: string;
720
+ accent: string;
721
+ muted?: string | undefined;
722
+ card?: string | undefined;
723
+ } | undefined;
724
+ } | undefined;
725
+ }>;
726
+ export type Channel = z.infer<typeof channelSchema>;
727
+ export declare const brandSchema: z.ZodObject<{
728
+ name: z.ZodOptional<z.ZodString>;
729
+ handle: z.ZodOptional<z.ZodString>;
730
+ one_liner: z.ZodOptional<z.ZodString>;
731
+ audience: z.ZodOptional<z.ZodString>;
732
+ tone: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
733
+ voice_examples: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
734
+ words_to_use: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
735
+ words_to_avoid: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
736
+ claims_allowed: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
737
+ claims_never: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
738
+ cta: z.ZodOptional<z.ZodString>;
739
+ colors: z.ZodOptional<z.ZodObject<{
740
+ bg: z.ZodString;
741
+ fg: z.ZodString;
742
+ accent: z.ZodString;
743
+ muted: z.ZodOptional<z.ZodString>;
744
+ card: z.ZodOptional<z.ZodString>;
745
+ }, "strict", z.ZodTypeAny, {
746
+ bg: string;
747
+ fg: string;
748
+ accent: string;
749
+ muted?: string | undefined;
750
+ card?: string | undefined;
751
+ }, {
752
+ bg: string;
753
+ fg: string;
754
+ accent: string;
755
+ muted?: string | undefined;
756
+ card?: string | undefined;
757
+ }>>;
758
+ icon: z.ZodOptional<z.ZodString>;
759
+ notes: z.ZodOptional<z.ZodString>;
760
+ }, "strict", z.ZodTypeAny, {
761
+ tone: string[];
762
+ voice_examples: string[];
763
+ words_to_use: string[];
764
+ words_to_avoid: string[];
765
+ claims_allowed: string[];
766
+ claims_never: string[];
767
+ colors?: {
768
+ bg: string;
769
+ fg: string;
770
+ accent: string;
771
+ muted?: string | undefined;
772
+ card?: string | undefined;
773
+ } | undefined;
774
+ name?: string | undefined;
775
+ audience?: string | undefined;
776
+ notes?: string | undefined;
777
+ handle?: string | undefined;
778
+ one_liner?: string | undefined;
779
+ cta?: string | undefined;
780
+ icon?: string | undefined;
781
+ }, {
782
+ colors?: {
783
+ bg: string;
784
+ fg: string;
785
+ accent: string;
786
+ muted?: string | undefined;
787
+ card?: string | undefined;
788
+ } | undefined;
789
+ name?: string | undefined;
790
+ audience?: string | undefined;
791
+ notes?: string | undefined;
792
+ handle?: string | undefined;
793
+ one_liner?: string | undefined;
794
+ tone?: string[] | undefined;
795
+ voice_examples?: string[] | undefined;
796
+ words_to_use?: string[] | undefined;
797
+ words_to_avoid?: string[] | undefined;
798
+ claims_allowed?: string[] | undefined;
799
+ claims_never?: string[] | undefined;
800
+ cta?: string | undefined;
801
+ icon?: string | undefined;
802
+ }>;
803
+ export type Brand = z.infer<typeof brandSchema>;
804
+ export declare const settingsSchema: z.ZodObject<{
805
+ version: z.ZodDefault<z.ZodLiteral<1>>;
806
+ app: z.ZodDefault<z.ZodObject<{
807
+ name: z.ZodOptional<z.ZodString>;
808
+ app_store_id: z.ZodOptional<z.ZodString>;
809
+ play_package: z.ZodOptional<z.ZodString>;
810
+ country: z.ZodDefault<z.ZodString>;
811
+ }, "strict", z.ZodTypeAny, {
812
+ country: string;
813
+ name?: string | undefined;
814
+ app_store_id?: string | undefined;
815
+ play_package?: string | undefined;
816
+ }, {
817
+ name?: string | undefined;
818
+ app_store_id?: string | undefined;
819
+ play_package?: string | undefined;
820
+ country?: string | undefined;
821
+ }>>;
822
+ brand: z.ZodDefault<z.ZodObject<{
823
+ name: z.ZodOptional<z.ZodString>;
824
+ handle: z.ZodOptional<z.ZodString>;
825
+ one_liner: z.ZodOptional<z.ZodString>;
826
+ audience: z.ZodOptional<z.ZodString>;
827
+ tone: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
828
+ voice_examples: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
829
+ words_to_use: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
830
+ words_to_avoid: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
831
+ claims_allowed: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
832
+ claims_never: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
833
+ cta: z.ZodOptional<z.ZodString>;
834
+ colors: z.ZodOptional<z.ZodObject<{
835
+ bg: z.ZodString;
836
+ fg: z.ZodString;
837
+ accent: z.ZodString;
838
+ muted: z.ZodOptional<z.ZodString>;
839
+ card: z.ZodOptional<z.ZodString>;
840
+ }, "strict", z.ZodTypeAny, {
841
+ bg: string;
842
+ fg: string;
843
+ accent: string;
844
+ muted?: string | undefined;
845
+ card?: string | undefined;
846
+ }, {
847
+ bg: string;
848
+ fg: string;
849
+ accent: string;
850
+ muted?: string | undefined;
851
+ card?: string | undefined;
852
+ }>>;
853
+ icon: z.ZodOptional<z.ZodString>;
854
+ notes: z.ZodOptional<z.ZodString>;
855
+ }, "strict", z.ZodTypeAny, {
856
+ tone: string[];
857
+ voice_examples: string[];
858
+ words_to_use: string[];
859
+ words_to_avoid: string[];
860
+ claims_allowed: string[];
861
+ claims_never: string[];
862
+ colors?: {
863
+ bg: string;
864
+ fg: string;
865
+ accent: string;
866
+ muted?: string | undefined;
867
+ card?: string | undefined;
868
+ } | undefined;
869
+ name?: string | undefined;
870
+ audience?: string | undefined;
871
+ notes?: string | undefined;
872
+ handle?: string | undefined;
873
+ one_liner?: string | undefined;
874
+ cta?: string | undefined;
875
+ icon?: string | undefined;
876
+ }, {
877
+ colors?: {
878
+ bg: string;
879
+ fg: string;
880
+ accent: string;
881
+ muted?: string | undefined;
882
+ card?: string | undefined;
883
+ } | undefined;
884
+ name?: string | undefined;
885
+ audience?: string | undefined;
886
+ notes?: string | undefined;
887
+ handle?: string | undefined;
888
+ one_liner?: string | undefined;
889
+ tone?: string[] | undefined;
890
+ voice_examples?: string[] | undefined;
891
+ words_to_use?: string[] | undefined;
892
+ words_to_avoid?: string[] | undefined;
893
+ claims_allowed?: string[] | undefined;
894
+ claims_never?: string[] | undefined;
895
+ cta?: string | undefined;
896
+ icon?: string | undefined;
897
+ }>>;
898
+ defaults: z.ZodDefault<z.ZodObject<{
899
+ size: z.ZodDefault<z.ZodEnum<["4:5", "1:1", "9:16"]>>;
900
+ theme: z.ZodDefault<z.ZodString>;
901
+ language: z.ZodDefault<z.ZodString>;
902
+ }, "strict", z.ZodTypeAny, {
903
+ language: string;
904
+ size: "4:5" | "1:1" | "9:16";
905
+ theme: string;
906
+ }, {
907
+ language?: string | undefined;
908
+ size?: "4:5" | "1:1" | "9:16" | undefined;
909
+ theme?: string | undefined;
910
+ }>>;
911
+ banned_phrases: z.ZodDefault<z.ZodObject<{
912
+ add: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
913
+ remove: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
914
+ }, "strict", z.ZodTypeAny, {
915
+ add: string[];
916
+ remove: string[];
917
+ }, {
918
+ add?: string[] | undefined;
919
+ remove?: string[] | undefined;
920
+ }>>;
921
+ /** Turn the built-in banned-phrase warning into an error. */
922
+ strict_phrases: z.ZodDefault<z.ZodBoolean>;
923
+ }, "strict", z.ZodTypeAny, {
924
+ app: {
925
+ country: string;
926
+ name?: string | undefined;
927
+ app_store_id?: string | undefined;
928
+ play_package?: string | undefined;
929
+ };
930
+ version: 1;
931
+ brand: {
932
+ tone: string[];
933
+ voice_examples: string[];
934
+ words_to_use: string[];
935
+ words_to_avoid: string[];
936
+ claims_allowed: string[];
937
+ claims_never: string[];
938
+ colors?: {
939
+ bg: string;
940
+ fg: string;
941
+ accent: string;
942
+ muted?: string | undefined;
943
+ card?: string | undefined;
944
+ } | undefined;
945
+ name?: string | undefined;
946
+ audience?: string | undefined;
947
+ notes?: string | undefined;
948
+ handle?: string | undefined;
949
+ one_liner?: string | undefined;
950
+ cta?: string | undefined;
951
+ icon?: string | undefined;
952
+ };
953
+ defaults: {
954
+ language: string;
955
+ size: "4:5" | "1:1" | "9:16";
956
+ theme: string;
957
+ };
958
+ banned_phrases: {
959
+ add: string[];
960
+ remove: string[];
961
+ };
962
+ strict_phrases: boolean;
963
+ }, {
964
+ app?: {
965
+ name?: string | undefined;
966
+ app_store_id?: string | undefined;
967
+ play_package?: string | undefined;
968
+ country?: string | undefined;
969
+ } | undefined;
970
+ version?: 1 | undefined;
971
+ brand?: {
972
+ colors?: {
973
+ bg: string;
974
+ fg: string;
975
+ accent: string;
976
+ muted?: string | undefined;
977
+ card?: string | undefined;
978
+ } | undefined;
979
+ name?: string | undefined;
980
+ audience?: string | undefined;
981
+ notes?: string | undefined;
982
+ handle?: string | undefined;
983
+ one_liner?: string | undefined;
984
+ tone?: string[] | undefined;
985
+ voice_examples?: string[] | undefined;
986
+ words_to_use?: string[] | undefined;
987
+ words_to_avoid?: string[] | undefined;
988
+ claims_allowed?: string[] | undefined;
989
+ claims_never?: string[] | undefined;
990
+ cta?: string | undefined;
991
+ icon?: string | undefined;
992
+ } | undefined;
993
+ defaults?: {
994
+ language?: string | undefined;
995
+ size?: "4:5" | "1:1" | "9:16" | undefined;
996
+ theme?: string | undefined;
997
+ } | undefined;
998
+ banned_phrases?: {
999
+ add?: string[] | undefined;
1000
+ remove?: string[] | undefined;
1001
+ } | undefined;
1002
+ strict_phrases?: boolean | undefined;
1003
+ }>;
1004
+ export type Settings = z.infer<typeof settingsSchema>;