@blitzreels/contracts 0.2.17 → 0.2.19
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/carousel-board-api.d.ts +3588 -0
- package/dist/carousel-board-api.d.ts.map +1 -0
- package/dist/carousel-board-api.js +464 -0
- package/dist/carousel-board-api.js.map +1 -0
- package/dist/carousel-board-deck.d.ts +188 -0
- package/dist/carousel-board-deck.d.ts.map +1 -0
- package/dist/carousel-board-deck.js +627 -0
- package/dist/carousel-board-deck.js.map +1 -0
- package/dist/carousel-board-generate.d.ts +507 -0
- package/dist/carousel-board-generate.d.ts.map +1 -0
- package/dist/carousel-board-generate.js +426 -0
- package/dist/carousel-board-generate.js.map +1 -0
- package/dist/carousel-board-images.d.ts +38 -0
- package/dist/carousel-board-images.d.ts.map +1 -0
- package/dist/carousel-board-images.js +322 -0
- package/dist/carousel-board-images.js.map +1 -0
- package/dist/carousel-board-layout.d.ts +57 -0
- package/dist/carousel-board-layout.d.ts.map +1 -0
- package/dist/carousel-board-layout.js +226 -0
- package/dist/carousel-board-layout.js.map +1 -0
- package/dist/carousel-board-revert.d.ts +15 -0
- package/dist/carousel-board-revert.d.ts.map +1 -0
- package/dist/carousel-board-revert.js +232 -0
- package/dist/carousel-board-revert.js.map +1 -0
- package/dist/carousel-board-templates.d.ts +42 -0
- package/dist/carousel-board-templates.d.ts.map +1 -0
- package/dist/carousel-board-templates.js +6955 -0
- package/dist/carousel-board-templates.js.map +1 -0
- package/dist/carousel-board.d.ts +5893 -0
- package/dist/carousel-board.d.ts.map +1 -0
- package/dist/carousel-board.js +741 -0
- package/dist/carousel-board.js.map +1 -0
- package/dist/carousels-contract.d.ts +2 -0
- package/dist/carousels-contract.d.ts.map +1 -1
- package/dist/carousels-contract.js +1 -1
- package/dist/carousels-contract.js.map +1 -1
- package/dist/clip-batch-quote.d.ts +46 -0
- package/dist/clip-batch-quote.d.ts.map +1 -0
- package/dist/clip-batch-quote.js +63 -0
- package/dist/clip-batch-quote.js.map +1 -0
- package/dist/clip-batch-status.d.ts +77 -0
- package/dist/clip-batch-status.d.ts.map +1 -0
- package/dist/clip-batch-status.js +62 -0
- package/dist/clip-batch-status.js.map +1 -0
- package/dist/content-intelligence-contract.d.ts +2040 -0
- package/dist/content-intelligence-contract.d.ts.map +1 -0
- package/dist/content-intelligence-contract.js +396 -0
- package/dist/content-intelligence-contract.js.map +1 -0
- package/dist/creative-composition-edit.d.ts +31 -0
- package/dist/creative-composition-edit.d.ts.map +1 -1
- package/dist/creative-composition-edit.js +49 -2
- package/dist/creative-composition-edit.js.map +1 -1
- package/dist/creative-composition-structure.d.ts.map +1 -1
- package/dist/creative-composition-structure.js +6 -0
- package/dist/creative-composition-structure.js.map +1 -1
- package/dist/creative-composition-types.d.ts +4 -0
- package/dist/creative-composition-types.d.ts.map +1 -1
- package/dist/creative-element-contract.d.ts.map +1 -1
- package/dist/creative-element-contract.js +8 -0
- package/dist/creative-element-contract.js.map +1 -1
- package/dist/creative-style-contract.d.ts +1 -0
- package/dist/creative-style-contract.d.ts.map +1 -1
- package/dist/creative-style-contract.js +4 -0
- package/dist/creative-style-contract.js.map +1 -1
- package/dist/creative-text-runs.d.ts +116 -0
- package/dist/creative-text-runs.d.ts.map +1 -0
- package/dist/creative-text-runs.js +239 -0
- package/dist/creative-text-runs.js.map +1 -0
- package/dist/credits-balance.d.ts +34 -0
- package/dist/credits-balance.d.ts.map +1 -0
- package/dist/credits-balance.js +35 -0
- package/dist/credits-balance.js.map +1 -0
- package/dist/editor-command-contract.d.ts +30 -0
- package/dist/editor-command-contract.d.ts.map +1 -1
- package/dist/generation-resolution.d.ts.map +1 -1
- package/dist/generation-resolution.js +15 -14
- package/dist/generation-resolution.js.map +1 -1
- package/dist/hook-suggestions.d.ts +116 -0
- package/dist/hook-suggestions.d.ts.map +1 -0
- package/dist/hook-suggestions.js +64 -0
- package/dist/hook-suggestions.js.map +1 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -1
- package/dist/metered-operations.d.ts +69 -0
- package/dist/metered-operations.d.ts.map +1 -1
- package/dist/metered-operations.js +50 -0
- package/dist/metered-operations.js.map +1 -1
- package/dist/model-prices.d.ts +2 -0
- package/dist/model-prices.d.ts.map +1 -1
- package/dist/model-prices.js +16 -2
- package/dist/model-prices.js.map +1 -1
- package/dist/narrated-video-source.d.ts +2 -0
- package/dist/narrated-video-source.d.ts.map +1 -1
- package/dist/narration-sequence.d.ts +4 -0
- package/dist/narration-sequence.d.ts.map +1 -1
- package/dist/narration-take-contract.d.ts +8 -0
- package/dist/narration-take-contract.d.ts.map +1 -1
- package/dist/narration-take-contract.js +2 -0
- package/dist/narration-take-contract.js.map +1 -1
- package/dist/ugc-format-catalog.d.ts +253 -0
- package/dist/ugc-format-catalog.d.ts.map +1 -0
- package/dist/ugc-format-catalog.js +172 -0
- package/dist/ugc-format-catalog.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,507 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { CarouselBoardTheme } from "./carousel-board.js";
|
|
3
|
+
export declare const CAROUSEL_BOARD_GOALS: readonly ["grow", "convert", "both"];
|
|
4
|
+
export type CarouselBoardGoal = (typeof CAROUSEL_BOARD_GOALS)[number];
|
|
5
|
+
export declare const CAROUSEL_BOARD_STYLES: readonly ["brand", "midnight", "paper", "cobalt", "forest", "editorial", "night_city", "neon_86", "west_coast", "rust_belt", "golden_hour", "postcard"];
|
|
6
|
+
export type CarouselBoardStyle = (typeof CAROUSEL_BOARD_STYLES)[number];
|
|
7
|
+
/** Ready-made looks; "brand" uses the workspace brand kit instead. */
|
|
8
|
+
export declare const CAROUSEL_BOARD_STYLE_THEMES: Record<Exclude<CarouselBoardStyle, "brand">, Omit<CarouselBoardTheme, "name" | "logo">>;
|
|
9
|
+
export declare function carouselBoardStyleTheme({ style, brand, }: {
|
|
10
|
+
style: CarouselBoardStyle;
|
|
11
|
+
brand: CarouselBoardTheme;
|
|
12
|
+
}): CarouselBoardTheme;
|
|
13
|
+
/**
|
|
14
|
+
* Image models a carousel can generate photos with. Each accepts reference images, so
|
|
15
|
+
* the cast's character sheets and the places' photos keep every slide consistent.
|
|
16
|
+
*/
|
|
17
|
+
export declare const CAROUSEL_BOARD_IMAGE_MODEL_IDS: readonly ["fal-ai/nano-banana-2", "fal-ai/nano-banana-pro", "fal-ai/bytedance/seedream/v5/lite/text-to-image", "bytedance/seedream/v5/pro/text-to-image"];
|
|
18
|
+
export type CarouselBoardImageModelId = (typeof CAROUSEL_BOARD_IMAGE_MODEL_IDS)[number];
|
|
19
|
+
export declare const DEFAULT_CAROUSEL_BOARD_IMAGE_MODEL_ID: CarouselBoardImageModelId;
|
|
20
|
+
/** Saved characters one generation can cast. */
|
|
21
|
+
export declare const CAROUSEL_BOARD_MAX_CHARACTERS = 3;
|
|
22
|
+
/** Saved places one generation can set its photos in. */
|
|
23
|
+
export declare const CAROUSEL_BOARD_MAX_PLACES = 3;
|
|
24
|
+
/** A saved place: one location of a Story Kit. */
|
|
25
|
+
export declare const carouselBoardPlaceRefSchema: z.ZodObject<{
|
|
26
|
+
storyKitId: z.ZodString;
|
|
27
|
+
locationId: z.ZodString;
|
|
28
|
+
}, z.core.$strict>;
|
|
29
|
+
export type CarouselBoardPlaceRef = z.infer<typeof carouselBoardPlaceRefSchema>;
|
|
30
|
+
export declare const carouselBoardGenerateInputSchema: z.ZodObject<{
|
|
31
|
+
projectId: z.ZodString;
|
|
32
|
+
expectedRevision: z.ZodNullable<z.ZodNumber>;
|
|
33
|
+
prompt: z.ZodString;
|
|
34
|
+
goal: z.ZodEnum<{
|
|
35
|
+
both: "both";
|
|
36
|
+
convert: "convert";
|
|
37
|
+
grow: "grow";
|
|
38
|
+
}>;
|
|
39
|
+
slideCount: z.ZodNullable<z.ZodNumber>;
|
|
40
|
+
style: z.ZodNullable<z.ZodEnum<{
|
|
41
|
+
brand: "brand";
|
|
42
|
+
cobalt: "cobalt";
|
|
43
|
+
editorial: "editorial";
|
|
44
|
+
forest: "forest";
|
|
45
|
+
golden_hour: "golden_hour";
|
|
46
|
+
midnight: "midnight";
|
|
47
|
+
neon_86: "neon_86";
|
|
48
|
+
night_city: "night_city";
|
|
49
|
+
paper: "paper";
|
|
50
|
+
postcard: "postcard";
|
|
51
|
+
rust_belt: "rust_belt";
|
|
52
|
+
west_coast: "west_coast";
|
|
53
|
+
}>>;
|
|
54
|
+
withImages: z.ZodBoolean;
|
|
55
|
+
imageModelId: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
56
|
+
"bytedance/seedream/v5/pro/text-to-image": "bytedance/seedream/v5/pro/text-to-image";
|
|
57
|
+
"fal-ai/bytedance/seedream/v5/lite/text-to-image": "fal-ai/bytedance/seedream/v5/lite/text-to-image";
|
|
58
|
+
"fal-ai/nano-banana-2": "fal-ai/nano-banana-2";
|
|
59
|
+
"fal-ai/nano-banana-pro": "fal-ai/nano-banana-pro";
|
|
60
|
+
}>>>;
|
|
61
|
+
characterIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
62
|
+
places: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
63
|
+
storyKitId: z.ZodString;
|
|
64
|
+
locationId: z.ZodString;
|
|
65
|
+
}, z.core.$strict>>>;
|
|
66
|
+
sourceUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
67
|
+
}, z.core.$strict>;
|
|
68
|
+
export type CarouselBoardGenerateInput = z.infer<typeof carouselBoardGenerateInputSchema>;
|
|
69
|
+
/** The editor's generation input: the same fields plus the text model the person picked. */
|
|
70
|
+
export declare const carouselBoardGenerateWithModelInputSchema: z.ZodObject<{
|
|
71
|
+
projectId: z.ZodString;
|
|
72
|
+
expectedRevision: z.ZodNullable<z.ZodNumber>;
|
|
73
|
+
prompt: z.ZodString;
|
|
74
|
+
goal: z.ZodEnum<{
|
|
75
|
+
both: "both";
|
|
76
|
+
convert: "convert";
|
|
77
|
+
grow: "grow";
|
|
78
|
+
}>;
|
|
79
|
+
slideCount: z.ZodNullable<z.ZodNumber>;
|
|
80
|
+
style: z.ZodNullable<z.ZodEnum<{
|
|
81
|
+
brand: "brand";
|
|
82
|
+
cobalt: "cobalt";
|
|
83
|
+
editorial: "editorial";
|
|
84
|
+
forest: "forest";
|
|
85
|
+
golden_hour: "golden_hour";
|
|
86
|
+
midnight: "midnight";
|
|
87
|
+
neon_86: "neon_86";
|
|
88
|
+
night_city: "night_city";
|
|
89
|
+
paper: "paper";
|
|
90
|
+
postcard: "postcard";
|
|
91
|
+
rust_belt: "rust_belt";
|
|
92
|
+
west_coast: "west_coast";
|
|
93
|
+
}>>;
|
|
94
|
+
withImages: z.ZodBoolean;
|
|
95
|
+
imageModelId: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
96
|
+
"bytedance/seedream/v5/pro/text-to-image": "bytedance/seedream/v5/pro/text-to-image";
|
|
97
|
+
"fal-ai/bytedance/seedream/v5/lite/text-to-image": "fal-ai/bytedance/seedream/v5/lite/text-to-image";
|
|
98
|
+
"fal-ai/nano-banana-2": "fal-ai/nano-banana-2";
|
|
99
|
+
"fal-ai/nano-banana-pro": "fal-ai/nano-banana-pro";
|
|
100
|
+
}>>>;
|
|
101
|
+
characterIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
102
|
+
places: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
103
|
+
storyKitId: z.ZodString;
|
|
104
|
+
locationId: z.ZodString;
|
|
105
|
+
}, z.core.$strict>>>;
|
|
106
|
+
sourceUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
107
|
+
modelId: z.ZodString;
|
|
108
|
+
}, z.core.$strict>;
|
|
109
|
+
export type CarouselBoardGenerateWithModelInput = z.infer<typeof carouselBoardGenerateWithModelInputSchema>;
|
|
110
|
+
export declare const CAROUSEL_BOARD_IMAGE_SHAPES: readonly ["slide", "square"];
|
|
111
|
+
/**
|
|
112
|
+
* What a generated carousel keeps for its later photos: the people with their character
|
|
113
|
+
* sheets or saved characters, the places with their photos, the model, the style and the
|
|
114
|
+
* prompt behind each photo. A new or regenerated photo reuses it, so the same people come back.
|
|
115
|
+
*/
|
|
116
|
+
export declare const carouselBoardPhotoKitSchema: z.ZodObject<{
|
|
117
|
+
imageModelId: z.ZodEnum<{
|
|
118
|
+
"bytedance/seedream/v5/pro/text-to-image": "bytedance/seedream/v5/pro/text-to-image";
|
|
119
|
+
"fal-ai/bytedance/seedream/v5/lite/text-to-image": "fal-ai/bytedance/seedream/v5/lite/text-to-image";
|
|
120
|
+
"fal-ai/nano-banana-2": "fal-ai/nano-banana-2";
|
|
121
|
+
"fal-ai/nano-banana-pro": "fal-ai/nano-banana-pro";
|
|
122
|
+
}>;
|
|
123
|
+
style: z.ZodString;
|
|
124
|
+
request: z.ZodString;
|
|
125
|
+
cast: z.ZodArray<z.ZodObject<{
|
|
126
|
+
name: z.ZodString;
|
|
127
|
+
look: z.ZodString;
|
|
128
|
+
outfit: z.ZodNullable<z.ZodString>;
|
|
129
|
+
sheetAssetId: z.ZodNullable<z.ZodString>;
|
|
130
|
+
characterId: z.ZodNullable<z.ZodString>;
|
|
131
|
+
}, z.core.$strict>>;
|
|
132
|
+
locations: z.ZodArray<z.ZodObject<{
|
|
133
|
+
name: z.ZodString;
|
|
134
|
+
look: z.ZodString;
|
|
135
|
+
plateAssetId: z.ZodNullable<z.ZodString>;
|
|
136
|
+
place: z.ZodNullable<z.ZodObject<{
|
|
137
|
+
storyKitId: z.ZodString;
|
|
138
|
+
locationId: z.ZodString;
|
|
139
|
+
}, z.core.$strict>>;
|
|
140
|
+
}, z.core.$strict>>;
|
|
141
|
+
storyKitId: z.ZodNullable<z.ZodString>;
|
|
142
|
+
photos: z.ZodArray<z.ZodObject<{
|
|
143
|
+
assetId: z.ZodString;
|
|
144
|
+
prompt: z.ZodString;
|
|
145
|
+
}, z.core.$strict>>;
|
|
146
|
+
}, z.core.$strict>;
|
|
147
|
+
export type CarouselBoardPhotoKit = z.infer<typeof carouselBoardPhotoKitSchema>;
|
|
148
|
+
export declare const carouselBoardRegeneratePhotoInputSchema: z.ZodObject<{
|
|
149
|
+
projectId: z.ZodString;
|
|
150
|
+
assetId: z.ZodString;
|
|
151
|
+
}, z.core.$strict>;
|
|
152
|
+
export declare const carouselBoardSaveCastInputSchema: z.ZodObject<{
|
|
153
|
+
projectId: z.ZodString;
|
|
154
|
+
name: z.ZodString;
|
|
155
|
+
}, z.core.$strict>;
|
|
156
|
+
export declare const carouselBoardSavePlaceInputSchema: z.ZodObject<{
|
|
157
|
+
projectId: z.ZodString;
|
|
158
|
+
name: z.ZodString;
|
|
159
|
+
}, z.core.$strict>;
|
|
160
|
+
/**
|
|
161
|
+
* Who and where a generated carousel's photos show: each person with the image that keeps
|
|
162
|
+
* their face, each place with its photo, and every photo with the prompt it can be drawn
|
|
163
|
+
* again from. Image URLs are signed and expire within an hour.
|
|
164
|
+
*/
|
|
165
|
+
export declare const carouselBoardPhotoKitViewSchema: z.ZodObject<{
|
|
166
|
+
imageModelId: z.ZodEnum<{
|
|
167
|
+
"bytedance/seedream/v5/pro/text-to-image": "bytedance/seedream/v5/pro/text-to-image";
|
|
168
|
+
"fal-ai/bytedance/seedream/v5/lite/text-to-image": "fal-ai/bytedance/seedream/v5/lite/text-to-image";
|
|
169
|
+
"fal-ai/nano-banana-2": "fal-ai/nano-banana-2";
|
|
170
|
+
"fal-ai/nano-banana-pro": "fal-ai/nano-banana-pro";
|
|
171
|
+
}>;
|
|
172
|
+
request: z.ZodString;
|
|
173
|
+
storyKitId: z.ZodNullable<z.ZodString>;
|
|
174
|
+
cast: z.ZodArray<z.ZodObject<{
|
|
175
|
+
name: z.ZodString;
|
|
176
|
+
look: z.ZodString;
|
|
177
|
+
outfit: z.ZodNullable<z.ZodString>;
|
|
178
|
+
characterId: z.ZodNullable<z.ZodString>;
|
|
179
|
+
canSave: z.ZodBoolean;
|
|
180
|
+
imageAssetId: z.ZodNullable<z.ZodString>;
|
|
181
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
182
|
+
imageIsSheet: z.ZodBoolean;
|
|
183
|
+
}, z.core.$strict>>;
|
|
184
|
+
places: z.ZodArray<z.ZodObject<{
|
|
185
|
+
name: z.ZodString;
|
|
186
|
+
look: z.ZodString;
|
|
187
|
+
place: z.ZodNullable<z.ZodObject<{
|
|
188
|
+
storyKitId: z.ZodString;
|
|
189
|
+
locationId: z.ZodString;
|
|
190
|
+
}, z.core.$strict>>;
|
|
191
|
+
canSave: z.ZodBoolean;
|
|
192
|
+
imageAssetId: z.ZodNullable<z.ZodString>;
|
|
193
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
194
|
+
}, z.core.$strict>>;
|
|
195
|
+
photos: z.ZodArray<z.ZodObject<{
|
|
196
|
+
assetId: z.ZodString;
|
|
197
|
+
prompt: z.ZodString;
|
|
198
|
+
}, z.core.$strict>>;
|
|
199
|
+
}, z.core.$strict>;
|
|
200
|
+
export type CarouselBoardPhotoKitView = z.infer<typeof carouselBoardPhotoKitViewSchema>;
|
|
201
|
+
/** A saved place a carousel can be set in, as pickers list it. */
|
|
202
|
+
export declare const carouselBoardSavedPlaceSchema: z.ZodObject<{
|
|
203
|
+
storyKitId: z.ZodString;
|
|
204
|
+
storyKitName: z.ZodString;
|
|
205
|
+
locationId: z.ZodString;
|
|
206
|
+
name: z.ZodString;
|
|
207
|
+
description: z.ZodString;
|
|
208
|
+
imageAssetId: z.ZodNullable<z.ZodString>;
|
|
209
|
+
}, z.core.$strict>;
|
|
210
|
+
export type CarouselBoardSavedPlace = z.infer<typeof carouselBoardSavedPlaceSchema>;
|
|
211
|
+
export declare const carouselBoardPhotoResultSchema: z.ZodObject<{
|
|
212
|
+
assetId: z.ZodString;
|
|
213
|
+
src: z.ZodString;
|
|
214
|
+
aspectRatio: z.ZodNumber;
|
|
215
|
+
}, z.core.$strict>;
|
|
216
|
+
export declare const carouselBoardImageInputSchema: z.ZodObject<{
|
|
217
|
+
projectId: z.ZodString;
|
|
218
|
+
prompt: z.ZodString;
|
|
219
|
+
shape: z.ZodEnum<{
|
|
220
|
+
slide: "slide";
|
|
221
|
+
square: "square";
|
|
222
|
+
}>;
|
|
223
|
+
}, z.core.$strict>;
|
|
224
|
+
export type CarouselBoardImageInput = z.infer<typeof carouselBoardImageInputSchema>;
|
|
225
|
+
/** Google font families a generated look may use for headings; bodies stay Inter. */
|
|
226
|
+
export declare const CAROUSEL_LOOK_HEADING_FONTS: readonly ["Space Grotesk", "Sora", "Outfit", "Poppins", "Montserrat", "Nunito", "Fraunces", "Playfair Display", "DM Serif Display", "Cormorant Garamond", "Lora", "Anton", "Archivo Black", "Bebas Neue"];
|
|
227
|
+
/** A look the request describes (colors, mood, aesthetic), applied when no ready-made style was picked. */
|
|
228
|
+
export declare const carouselBoardDraftLookSchema: z.ZodObject<{
|
|
229
|
+
background: z.ZodString;
|
|
230
|
+
text: z.ZodString;
|
|
231
|
+
accent: z.ZodString;
|
|
232
|
+
headingFont: z.ZodEnum<{
|
|
233
|
+
Anton: "Anton";
|
|
234
|
+
"Archivo Black": "Archivo Black";
|
|
235
|
+
"Bebas Neue": "Bebas Neue";
|
|
236
|
+
"Cormorant Garamond": "Cormorant Garamond";
|
|
237
|
+
"DM Serif Display": "DM Serif Display";
|
|
238
|
+
Fraunces: "Fraunces";
|
|
239
|
+
Lora: "Lora";
|
|
240
|
+
Montserrat: "Montserrat";
|
|
241
|
+
Nunito: "Nunito";
|
|
242
|
+
Outfit: "Outfit";
|
|
243
|
+
"Playfair Display": "Playfair Display";
|
|
244
|
+
Poppins: "Poppins";
|
|
245
|
+
Sora: "Sora";
|
|
246
|
+
"Space Grotesk": "Space Grotesk";
|
|
247
|
+
}>;
|
|
248
|
+
}, z.core.$strict>;
|
|
249
|
+
export type CarouselBoardDraftLook = z.infer<typeof carouselBoardDraftLookSchema>;
|
|
250
|
+
/** What the model writes: the deck plus image prompts and the post caption. */
|
|
251
|
+
export declare const carouselBoardDraftSchema: z.ZodObject<{
|
|
252
|
+
title: z.ZodString;
|
|
253
|
+
archetype: z.ZodString;
|
|
254
|
+
hook: z.ZodObject<{
|
|
255
|
+
kicker: z.ZodNullable<z.ZodString>;
|
|
256
|
+
headline: z.ZodString;
|
|
257
|
+
imagePrompt: z.ZodNullable<z.ZodString>;
|
|
258
|
+
}, z.core.$strict>;
|
|
259
|
+
slides: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
260
|
+
kind: z.ZodLiteral<"photo">;
|
|
261
|
+
imagePrompt: z.ZodString;
|
|
262
|
+
lines: z.ZodArray<z.ZodString>;
|
|
263
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
264
|
+
kind: z.ZodLiteral<"tips">;
|
|
265
|
+
title: z.ZodString;
|
|
266
|
+
items: z.ZodArray<z.ZodString>;
|
|
267
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
268
|
+
kind: z.ZodLiteral<"checklist">;
|
|
269
|
+
title: z.ZodString;
|
|
270
|
+
items: z.ZodArray<z.ZodString>;
|
|
271
|
+
}, z.core.$strict>, ...(z.ZodObject<{
|
|
272
|
+
kind: z.ZodLiteral<"tips">;
|
|
273
|
+
title: z.ZodString;
|
|
274
|
+
items: z.ZodArray<z.ZodString>;
|
|
275
|
+
}, z.core.$strict> | z.ZodObject<{
|
|
276
|
+
kind: z.ZodLiteral<"checklist">;
|
|
277
|
+
title: z.ZodString;
|
|
278
|
+
items: z.ZodArray<z.ZodString>;
|
|
279
|
+
}, z.core.$strict> | z.ZodObject<{
|
|
280
|
+
kind: z.ZodLiteral<"step">;
|
|
281
|
+
label: z.ZodString;
|
|
282
|
+
title: z.ZodString;
|
|
283
|
+
body: z.ZodString;
|
|
284
|
+
}, z.core.$strict> | z.ZodObject<{
|
|
285
|
+
kind: z.ZodLiteral<"tools">;
|
|
286
|
+
title: z.ZodString;
|
|
287
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
288
|
+
name: z.ZodString;
|
|
289
|
+
note: z.ZodString;
|
|
290
|
+
}, z.core.$strict>>;
|
|
291
|
+
}, z.core.$strict> | z.ZodObject<{
|
|
292
|
+
kind: z.ZodLiteral<"quote">;
|
|
293
|
+
quote: z.ZodString;
|
|
294
|
+
author: z.ZodString;
|
|
295
|
+
}, z.core.$strict> | z.ZodObject<{
|
|
296
|
+
kind: z.ZodLiteral<"stat">;
|
|
297
|
+
number: z.ZodString;
|
|
298
|
+
label: z.ZodString;
|
|
299
|
+
source: z.ZodNullable<z.ZodString>;
|
|
300
|
+
}, z.core.$strict> | z.ZodObject<{
|
|
301
|
+
kind: z.ZodLiteral<"post">;
|
|
302
|
+
name: z.ZodString;
|
|
303
|
+
handle: z.ZodString;
|
|
304
|
+
text: z.ZodString;
|
|
305
|
+
meta: z.ZodNullable<z.ZodString>;
|
|
306
|
+
}, z.core.$strict> | z.ZodObject<{
|
|
307
|
+
kind: z.ZodLiteral<"compare">;
|
|
308
|
+
title: z.ZodString;
|
|
309
|
+
leftLabel: z.ZodString;
|
|
310
|
+
left: z.ZodArray<z.ZodString>;
|
|
311
|
+
rightLabel: z.ZodString;
|
|
312
|
+
right: z.ZodArray<z.ZodString>;
|
|
313
|
+
}, z.core.$strict> | z.ZodObject<{
|
|
314
|
+
kind: z.ZodLiteral<"myth_fact">;
|
|
315
|
+
myth: z.ZodString;
|
|
316
|
+
fact: z.ZodString;
|
|
317
|
+
}, z.core.$strict> | z.ZodObject<{
|
|
318
|
+
kind: z.ZodLiteral<"swap">;
|
|
319
|
+
title: z.ZodString;
|
|
320
|
+
pairs: z.ZodArray<z.ZodObject<{
|
|
321
|
+
from: z.ZodString;
|
|
322
|
+
to: z.ZodString;
|
|
323
|
+
}, z.core.$strict>>;
|
|
324
|
+
}, z.core.$strict> | z.ZodObject<{
|
|
325
|
+
kind: z.ZodLiteral<"timeline">;
|
|
326
|
+
title: z.ZodString;
|
|
327
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
328
|
+
when: z.ZodString;
|
|
329
|
+
step: z.ZodString;
|
|
330
|
+
}, z.core.$strict>>;
|
|
331
|
+
}, z.core.$strict> | z.ZodObject<{
|
|
332
|
+
kind: z.ZodLiteral<"faq">;
|
|
333
|
+
title: z.ZodString;
|
|
334
|
+
items: z.ZodArray<z.ZodObject<{
|
|
335
|
+
q: z.ZodString;
|
|
336
|
+
a: z.ZodString;
|
|
337
|
+
}, z.core.$strict>>;
|
|
338
|
+
}, z.core.$strict> | z.ZodObject<{
|
|
339
|
+
kind: z.ZodLiteral<"cheat_sheet">;
|
|
340
|
+
title: z.ZodString;
|
|
341
|
+
items: z.ZodArray<z.ZodObject<{
|
|
342
|
+
term: z.ZodString;
|
|
343
|
+
note: z.ZodString;
|
|
344
|
+
}, z.core.$strict>>;
|
|
345
|
+
}, z.core.$strict> | z.ZodObject<{
|
|
346
|
+
kind: z.ZodLiteral<"bar_chart">;
|
|
347
|
+
title: z.ZodString;
|
|
348
|
+
note: z.ZodNullable<z.ZodString>;
|
|
349
|
+
bars: z.ZodArray<z.ZodObject<{
|
|
350
|
+
label: z.ZodString;
|
|
351
|
+
value: z.ZodString;
|
|
352
|
+
}, z.core.$strict>>;
|
|
353
|
+
}, z.core.$strict> | z.ZodObject<{
|
|
354
|
+
kind: z.ZodLiteral<"stat_grid">;
|
|
355
|
+
kicker: z.ZodNullable<z.ZodString>;
|
|
356
|
+
title: z.ZodString;
|
|
357
|
+
kpis: z.ZodArray<z.ZodObject<{
|
|
358
|
+
value: z.ZodString;
|
|
359
|
+
label: z.ZodString;
|
|
360
|
+
}, z.core.$strict>>;
|
|
361
|
+
}, z.core.$strict> | z.ZodObject<{
|
|
362
|
+
kind: z.ZodLiteral<"testimonial">;
|
|
363
|
+
quote: z.ZodString;
|
|
364
|
+
name: z.ZodString;
|
|
365
|
+
role: z.ZodString;
|
|
366
|
+
}, z.core.$strict> | z.ZodObject<{
|
|
367
|
+
kind: z.ZodLiteral<"case_study">;
|
|
368
|
+
title: z.ZodString;
|
|
369
|
+
problem: z.ZodString;
|
|
370
|
+
fix: z.ZodString;
|
|
371
|
+
metrics: z.ZodArray<z.ZodObject<{
|
|
372
|
+
value: z.ZodString;
|
|
373
|
+
label: z.ZodString;
|
|
374
|
+
}, z.core.$strict>>;
|
|
375
|
+
}, z.core.$strict> | z.ZodObject<{
|
|
376
|
+
kind: z.ZodLiteral<"chat">;
|
|
377
|
+
contact: z.ZodString;
|
|
378
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
379
|
+
from: z.ZodEnum<{
|
|
380
|
+
me: "me";
|
|
381
|
+
them: "them";
|
|
382
|
+
}>;
|
|
383
|
+
text: z.ZodString;
|
|
384
|
+
}, z.core.$strict>>;
|
|
385
|
+
}, z.core.$strict> | z.ZodObject<{
|
|
386
|
+
kind: z.ZodLiteral<"receipt">;
|
|
387
|
+
headline: z.ZodString;
|
|
388
|
+
items: z.ZodArray<z.ZodObject<{
|
|
389
|
+
item: z.ZodString;
|
|
390
|
+
cost: z.ZodString;
|
|
391
|
+
}, z.core.$strict>>;
|
|
392
|
+
total: z.ZodString;
|
|
393
|
+
}, z.core.$strict> | z.ZodObject<{
|
|
394
|
+
kind: z.ZodLiteral<"framework">;
|
|
395
|
+
title: z.ZodString;
|
|
396
|
+
xLabel: z.ZodString;
|
|
397
|
+
yLabel: z.ZodString;
|
|
398
|
+
quadrants: z.ZodArray<z.ZodObject<{
|
|
399
|
+
title: z.ZodString;
|
|
400
|
+
note: z.ZodString;
|
|
401
|
+
}, z.core.$strict>>;
|
|
402
|
+
}, z.core.$strict> | z.ZodObject<{
|
|
403
|
+
kind: z.ZodLiteral<"chapter">;
|
|
404
|
+
number: z.ZodString;
|
|
405
|
+
chapter: z.ZodString;
|
|
406
|
+
title: z.ZodString;
|
|
407
|
+
}, z.core.$strict> | z.ZodObject<{
|
|
408
|
+
kind: z.ZodLiteral<"poll">;
|
|
409
|
+
question: z.ZodString;
|
|
410
|
+
options: z.ZodArray<z.ZodObject<{
|
|
411
|
+
option: z.ZodString;
|
|
412
|
+
pct: z.ZodString;
|
|
413
|
+
}, z.core.$strict>>;
|
|
414
|
+
cta: z.ZodString;
|
|
415
|
+
}, z.core.$strict> | z.ZodObject<{
|
|
416
|
+
kind: z.ZodLiteral<"photo">;
|
|
417
|
+
photo: z.ZodNullable<z.ZodString>;
|
|
418
|
+
lines: z.ZodArray<z.ZodString>;
|
|
419
|
+
}, z.core.$strict>)[]]>>;
|
|
420
|
+
cta: z.ZodObject<{
|
|
421
|
+
headline: z.ZodString;
|
|
422
|
+
button: z.ZodString;
|
|
423
|
+
note: z.ZodNullable<z.ZodString>;
|
|
424
|
+
product: z.ZodNullable<z.ZodString>;
|
|
425
|
+
imagePrompt: z.ZodNullable<z.ZodString>;
|
|
426
|
+
}, z.core.$strict>;
|
|
427
|
+
look: z.ZodNullable<z.ZodObject<{
|
|
428
|
+
background: z.ZodString;
|
|
429
|
+
text: z.ZodString;
|
|
430
|
+
accent: z.ZodString;
|
|
431
|
+
headingFont: z.ZodEnum<{
|
|
432
|
+
Anton: "Anton";
|
|
433
|
+
"Archivo Black": "Archivo Black";
|
|
434
|
+
"Bebas Neue": "Bebas Neue";
|
|
435
|
+
"Cormorant Garamond": "Cormorant Garamond";
|
|
436
|
+
"DM Serif Display": "DM Serif Display";
|
|
437
|
+
Fraunces: "Fraunces";
|
|
438
|
+
Lora: "Lora";
|
|
439
|
+
Montserrat: "Montserrat";
|
|
440
|
+
Nunito: "Nunito";
|
|
441
|
+
Outfit: "Outfit";
|
|
442
|
+
"Playfair Display": "Playfair Display";
|
|
443
|
+
Poppins: "Poppins";
|
|
444
|
+
Sora: "Sora";
|
|
445
|
+
"Space Grotesk": "Space Grotesk";
|
|
446
|
+
}>;
|
|
447
|
+
}, z.core.$strict>>;
|
|
448
|
+
photoStyle: z.ZodNullable<z.ZodString>;
|
|
449
|
+
cast: z.ZodArray<z.ZodObject<{
|
|
450
|
+
name: z.ZodString;
|
|
451
|
+
look: z.ZodString;
|
|
452
|
+
outfit: z.ZodNullable<z.ZodString>;
|
|
453
|
+
}, z.core.$strict>>;
|
|
454
|
+
locations: z.ZodArray<z.ZodObject<{
|
|
455
|
+
name: z.ZodString;
|
|
456
|
+
look: z.ZodString;
|
|
457
|
+
}, z.core.$strict>>;
|
|
458
|
+
caption: z.ZodString;
|
|
459
|
+
}, z.core.$strict>;
|
|
460
|
+
export type CarouselBoardDraft = z.infer<typeof carouselBoardDraftSchema>;
|
|
461
|
+
export declare const carouselBoardIdeaSchema: z.ZodObject<{
|
|
462
|
+
title: z.ZodString;
|
|
463
|
+
hook: z.ZodString;
|
|
464
|
+
angle: z.ZodString;
|
|
465
|
+
goal: z.ZodEnum<{
|
|
466
|
+
both: "both";
|
|
467
|
+
convert: "convert";
|
|
468
|
+
grow: "grow";
|
|
469
|
+
}>;
|
|
470
|
+
archetype: z.ZodString;
|
|
471
|
+
why: z.ZodString;
|
|
472
|
+
}, z.core.$strict>;
|
|
473
|
+
export declare const carouselBoardIdeasSchema: z.ZodObject<{
|
|
474
|
+
ideas: z.ZodArray<z.ZodObject<{
|
|
475
|
+
title: z.ZodString;
|
|
476
|
+
hook: z.ZodString;
|
|
477
|
+
angle: z.ZodString;
|
|
478
|
+
goal: z.ZodEnum<{
|
|
479
|
+
both: "both";
|
|
480
|
+
convert: "convert";
|
|
481
|
+
grow: "grow";
|
|
482
|
+
}>;
|
|
483
|
+
archetype: z.ZodString;
|
|
484
|
+
why: z.ZodString;
|
|
485
|
+
}, z.core.$strict>>;
|
|
486
|
+
}, z.core.$strict>;
|
|
487
|
+
/** What a carousel says so far while it is being written: one line per slide. */
|
|
488
|
+
export type CarouselBoardOutline = {
|
|
489
|
+
cover: string | null;
|
|
490
|
+
slides: string[];
|
|
491
|
+
cta: string | null;
|
|
492
|
+
};
|
|
493
|
+
/**
|
|
494
|
+
* Progress of one generation: planning until the first slide line, writing streams the
|
|
495
|
+
* outline, editing picks the cover, the look and repairs failed checks, designing builds
|
|
496
|
+
* the board and generates the photos.
|
|
497
|
+
*/
|
|
498
|
+
export type CarouselBoardGenerationProgress = {
|
|
499
|
+
stage: "planning" | "writing" | "editing" | "designing";
|
|
500
|
+
outline: CarouselBoardOutline;
|
|
501
|
+
};
|
|
502
|
+
/** New ideas for a carousel's workspace, or the active workspace when no carousel exists yet. */
|
|
503
|
+
export declare const carouselBoardIdeasRefreshInputSchema: z.ZodObject<{
|
|
504
|
+
projectId: z.ZodNullable<z.ZodString>;
|
|
505
|
+
}, z.core.$strict>;
|
|
506
|
+
export type CarouselBoardIdea = z.infer<typeof carouselBoardIdeaSchema>;
|
|
507
|
+
//# sourceMappingURL=carousel-board-generate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"carousel-board-generate.d.ts","sourceRoot":"","sources":["../src/carousel-board-generate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAG9D,eAAO,MAAM,oBAAoB,YAAI,MAAM,EAAE,SAAS,EAAE,MAAM,CAAU,CAAC;AACzE,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtE,eAAO,MAAM,qBAAqB,YAChC,OAAO,EACP,UAAU,EACV,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,SAAS,EACT,YAAY,EACZ,WAAW,EACX,aAAa,EACb,UAAU,CACF,CAAC;AACX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AAExE,sEAAsE;AACtE,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAC9C,OAAO,CAAC,kBAAkB,EAAE,OAAO,CAAC,EACpC,IAAI,CAAC,kBAAkB,EAAE,MAAM,GAAG,MAAM,CAAC,CA+E1C,CAAC;AAEF,wBAAgB,uBAAuB,CAAC,EACtC,KAAK,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