@tangle-network/agent-app 0.7.1 → 0.8.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/assets/index.d.ts +463 -0
- package/dist/assets/index.js +23 -0
- package/dist/assets/index.js.map +1 -0
- package/dist/chunk-5PTGEJZL.js +236 -0
- package/dist/chunk-5PTGEJZL.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +20 -0
- package/dist/web-react/index.d.ts +16 -1
- package/dist/web-react/index.js +133 -92
- package/dist/web-react/index.js.map +1 -1
- package/package.json +21 -15
|
@@ -0,0 +1,463 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
interface BrandTokens {
|
|
4
|
+
primaryColor: string;
|
|
5
|
+
accentColor: string;
|
|
6
|
+
textColor: string;
|
|
7
|
+
fontFamily: string;
|
|
8
|
+
logoUrl?: string;
|
|
9
|
+
businessName: string;
|
|
10
|
+
voice: string;
|
|
11
|
+
}
|
|
12
|
+
type AssetFormat = 'email' | 'image:feed' | 'image:story' | 'image:carousel' | 'video:reel' | 'video:feed' | 'copy:caption' | 'copy:headline' | 'copy:sms';
|
|
13
|
+
type AssetStatus = 'draft' | 'pending_review' | 'approved' | 'rejected' | 'scheduled' | 'published';
|
|
14
|
+
interface EmailHeroSection {
|
|
15
|
+
type: 'hero';
|
|
16
|
+
headline: string;
|
|
17
|
+
subheadline?: string;
|
|
18
|
+
imageUrl?: string;
|
|
19
|
+
ctaLabel?: string;
|
|
20
|
+
ctaUrl?: string;
|
|
21
|
+
}
|
|
22
|
+
interface EmailBodySection {
|
|
23
|
+
type: 'body';
|
|
24
|
+
text: string;
|
|
25
|
+
}
|
|
26
|
+
interface EmailFeatureSection {
|
|
27
|
+
type: 'feature';
|
|
28
|
+
headline: string;
|
|
29
|
+
description: string;
|
|
30
|
+
imageUrl?: string;
|
|
31
|
+
}
|
|
32
|
+
interface EmailTestimonialSection {
|
|
33
|
+
type: 'testimonial';
|
|
34
|
+
quote: string;
|
|
35
|
+
author: string;
|
|
36
|
+
role?: string;
|
|
37
|
+
avatarUrl?: string;
|
|
38
|
+
}
|
|
39
|
+
interface EmailCtaSection {
|
|
40
|
+
type: 'cta';
|
|
41
|
+
label: string;
|
|
42
|
+
url: string;
|
|
43
|
+
subtext?: string;
|
|
44
|
+
}
|
|
45
|
+
interface EmailDividerSection {
|
|
46
|
+
type: 'divider';
|
|
47
|
+
}
|
|
48
|
+
type EmailSection = EmailHeroSection | EmailBodySection | EmailFeatureSection | EmailTestimonialSection | EmailCtaSection | EmailDividerSection;
|
|
49
|
+
interface EmailContent {
|
|
50
|
+
subject: string;
|
|
51
|
+
preheader?: string;
|
|
52
|
+
sections: EmailSection[];
|
|
53
|
+
}
|
|
54
|
+
type ImageLayerType = 'text' | 'image' | 'shape' | 'logo';
|
|
55
|
+
interface ImageTextLayer {
|
|
56
|
+
type: 'text';
|
|
57
|
+
text: string;
|
|
58
|
+
fontSize?: number;
|
|
59
|
+
fontWeight?: 'normal' | 'bold';
|
|
60
|
+
color?: string;
|
|
61
|
+
x: number;
|
|
62
|
+
y: number;
|
|
63
|
+
width?: number;
|
|
64
|
+
align?: 'left' | 'center' | 'right';
|
|
65
|
+
}
|
|
66
|
+
interface ImageImageLayer {
|
|
67
|
+
type: 'image';
|
|
68
|
+
url: string;
|
|
69
|
+
x: number;
|
|
70
|
+
y: number;
|
|
71
|
+
width: number;
|
|
72
|
+
height: number;
|
|
73
|
+
opacity?: number;
|
|
74
|
+
}
|
|
75
|
+
interface ImageShapeLayer {
|
|
76
|
+
type: 'shape';
|
|
77
|
+
shape: 'rect' | 'circle' | 'rounded-rect';
|
|
78
|
+
x: number;
|
|
79
|
+
y: number;
|
|
80
|
+
width: number;
|
|
81
|
+
height: number;
|
|
82
|
+
fill?: string;
|
|
83
|
+
opacity?: number;
|
|
84
|
+
}
|
|
85
|
+
interface ImageLogoLayer {
|
|
86
|
+
type: 'logo';
|
|
87
|
+
x: number;
|
|
88
|
+
y: number;
|
|
89
|
+
width?: number;
|
|
90
|
+
}
|
|
91
|
+
type ImageLayer = ImageTextLayer | ImageImageLayer | ImageShapeLayer | ImageLogoLayer;
|
|
92
|
+
type ImageBackground = {
|
|
93
|
+
type: 'color';
|
|
94
|
+
value: string;
|
|
95
|
+
} | {
|
|
96
|
+
type: 'gradient';
|
|
97
|
+
from: string;
|
|
98
|
+
to: string;
|
|
99
|
+
direction?: string;
|
|
100
|
+
} | {
|
|
101
|
+
type: 'image';
|
|
102
|
+
url: string;
|
|
103
|
+
overlay?: string;
|
|
104
|
+
overlayOpacity?: number;
|
|
105
|
+
};
|
|
106
|
+
interface ImageSlide {
|
|
107
|
+
background: ImageBackground;
|
|
108
|
+
layers: ImageLayer[];
|
|
109
|
+
}
|
|
110
|
+
interface ImageContent {
|
|
111
|
+
slides: ImageSlide[];
|
|
112
|
+
}
|
|
113
|
+
interface VideoTextAnimationScene {
|
|
114
|
+
type: 'text-animation';
|
|
115
|
+
durationSeconds: number;
|
|
116
|
+
headline: string;
|
|
117
|
+
subtext?: string;
|
|
118
|
+
animation?: 'fade' | 'slide-up' | 'typewriter';
|
|
119
|
+
background?: ImageBackground;
|
|
120
|
+
}
|
|
121
|
+
interface VideoImageRevealScene {
|
|
122
|
+
type: 'image-reveal';
|
|
123
|
+
durationSeconds: number;
|
|
124
|
+
imageUrl: string;
|
|
125
|
+
caption?: string;
|
|
126
|
+
}
|
|
127
|
+
interface VideoSlideScene {
|
|
128
|
+
type: 'slide';
|
|
129
|
+
durationSeconds: number;
|
|
130
|
+
slide: ImageSlide;
|
|
131
|
+
}
|
|
132
|
+
interface VideoCountdownScene {
|
|
133
|
+
type: 'countdown';
|
|
134
|
+
durationSeconds: number;
|
|
135
|
+
from: number;
|
|
136
|
+
label?: string;
|
|
137
|
+
}
|
|
138
|
+
type VideoScene = VideoTextAnimationScene | VideoImageRevealScene | VideoSlideScene | VideoCountdownScene;
|
|
139
|
+
interface VideoCaption {
|
|
140
|
+
startSeconds: number;
|
|
141
|
+
endSeconds: number;
|
|
142
|
+
text: string;
|
|
143
|
+
}
|
|
144
|
+
interface VideoContent {
|
|
145
|
+
durationSeconds: number;
|
|
146
|
+
scenes: VideoScene[];
|
|
147
|
+
audioUrl?: string;
|
|
148
|
+
captions?: VideoCaption[];
|
|
149
|
+
renderedUrl?: string;
|
|
150
|
+
}
|
|
151
|
+
type CopyPlatform = 'instagram' | 'tiktok' | 'x' | 'linkedin' | 'sms' | 'email-subject';
|
|
152
|
+
interface CopyContent {
|
|
153
|
+
headline: string;
|
|
154
|
+
body: string;
|
|
155
|
+
hashtags?: string[];
|
|
156
|
+
platform: CopyPlatform;
|
|
157
|
+
characterCount?: number;
|
|
158
|
+
}
|
|
159
|
+
type AssetContentMap = {
|
|
160
|
+
email: EmailContent;
|
|
161
|
+
'image:feed': ImageContent;
|
|
162
|
+
'image:story': ImageContent;
|
|
163
|
+
'image:carousel': ImageContent;
|
|
164
|
+
'video:reel': VideoContent;
|
|
165
|
+
'video:feed': VideoContent;
|
|
166
|
+
'copy:caption': CopyContent;
|
|
167
|
+
'copy:headline': CopyContent;
|
|
168
|
+
'copy:sms': CopyContent;
|
|
169
|
+
};
|
|
170
|
+
interface AssetSpec<F extends AssetFormat = AssetFormat> {
|
|
171
|
+
id: string;
|
|
172
|
+
workspaceId: string;
|
|
173
|
+
campaignId?: string;
|
|
174
|
+
format: F;
|
|
175
|
+
brand: BrandTokens;
|
|
176
|
+
content: AssetContentMap[F];
|
|
177
|
+
status: AssetStatus;
|
|
178
|
+
scheduledAt?: string;
|
|
179
|
+
createdAt: string;
|
|
180
|
+
updatedAt: string;
|
|
181
|
+
}
|
|
182
|
+
interface AssetVariant {
|
|
183
|
+
id: string;
|
|
184
|
+
parentId: string;
|
|
185
|
+
label: string;
|
|
186
|
+
spec: AssetSpec;
|
|
187
|
+
approvedAt?: string;
|
|
188
|
+
rejectedAt?: string;
|
|
189
|
+
editLog: ApprovalEvent[];
|
|
190
|
+
}
|
|
191
|
+
interface ApprovalEvent {
|
|
192
|
+
assetId: string;
|
|
193
|
+
variantId?: string;
|
|
194
|
+
action: 'approved' | 'rejected' | 'edited' | 'scheduled';
|
|
195
|
+
editedFields?: string[];
|
|
196
|
+
userId: string;
|
|
197
|
+
timestamp: string;
|
|
198
|
+
}
|
|
199
|
+
interface ConversionMetrics {
|
|
200
|
+
impressions: number;
|
|
201
|
+
clicks: number;
|
|
202
|
+
conversions: number;
|
|
203
|
+
ctr: number;
|
|
204
|
+
cvr: number;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
declare const BrandTokensSchema: z.ZodObject<{
|
|
208
|
+
primaryColor: z.ZodString;
|
|
209
|
+
accentColor: z.ZodString;
|
|
210
|
+
textColor: z.ZodString;
|
|
211
|
+
fontFamily: z.ZodString;
|
|
212
|
+
logoUrl: z.ZodOptional<z.ZodString>;
|
|
213
|
+
businessName: z.ZodString;
|
|
214
|
+
voice: z.ZodString;
|
|
215
|
+
}, z.core.$strip>;
|
|
216
|
+
declare const EmailContentSchema: z.ZodObject<{
|
|
217
|
+
subject: z.ZodString;
|
|
218
|
+
preheader: z.ZodOptional<z.ZodString>;
|
|
219
|
+
sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
220
|
+
type: z.ZodLiteral<"hero">;
|
|
221
|
+
headline: z.ZodString;
|
|
222
|
+
subheadline: z.ZodOptional<z.ZodString>;
|
|
223
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
224
|
+
ctaLabel: z.ZodOptional<z.ZodString>;
|
|
225
|
+
ctaUrl: z.ZodOptional<z.ZodString>;
|
|
226
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
227
|
+
type: z.ZodLiteral<"body">;
|
|
228
|
+
text: z.ZodString;
|
|
229
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
230
|
+
type: z.ZodLiteral<"feature">;
|
|
231
|
+
headline: z.ZodString;
|
|
232
|
+
description: z.ZodString;
|
|
233
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
234
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
235
|
+
type: z.ZodLiteral<"testimonial">;
|
|
236
|
+
quote: z.ZodString;
|
|
237
|
+
author: z.ZodString;
|
|
238
|
+
role: z.ZodOptional<z.ZodString>;
|
|
239
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
240
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
241
|
+
type: z.ZodLiteral<"cta">;
|
|
242
|
+
label: z.ZodString;
|
|
243
|
+
url: z.ZodString;
|
|
244
|
+
subtext: z.ZodOptional<z.ZodString>;
|
|
245
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
246
|
+
type: z.ZodLiteral<"divider">;
|
|
247
|
+
}, z.core.$strip>], "type">>;
|
|
248
|
+
}, z.core.$strip>;
|
|
249
|
+
declare const ImageContentSchema: z.ZodObject<{
|
|
250
|
+
slides: z.ZodArray<z.ZodObject<{
|
|
251
|
+
background: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
252
|
+
type: z.ZodLiteral<"color">;
|
|
253
|
+
value: z.ZodString;
|
|
254
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
255
|
+
type: z.ZodLiteral<"gradient">;
|
|
256
|
+
from: z.ZodString;
|
|
257
|
+
to: z.ZodString;
|
|
258
|
+
direction: z.ZodOptional<z.ZodString>;
|
|
259
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
260
|
+
type: z.ZodLiteral<"image">;
|
|
261
|
+
url: z.ZodString;
|
|
262
|
+
overlay: z.ZodOptional<z.ZodString>;
|
|
263
|
+
overlayOpacity: z.ZodOptional<z.ZodNumber>;
|
|
264
|
+
}, z.core.$strip>], "type">;
|
|
265
|
+
layers: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
266
|
+
type: z.ZodLiteral<"text">;
|
|
267
|
+
text: z.ZodString;
|
|
268
|
+
fontSize: z.ZodOptional<z.ZodNumber>;
|
|
269
|
+
fontWeight: z.ZodOptional<z.ZodEnum<{
|
|
270
|
+
bold: "bold";
|
|
271
|
+
normal: "normal";
|
|
272
|
+
}>>;
|
|
273
|
+
color: z.ZodOptional<z.ZodString>;
|
|
274
|
+
x: z.ZodNumber;
|
|
275
|
+
y: z.ZodNumber;
|
|
276
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
277
|
+
align: z.ZodOptional<z.ZodEnum<{
|
|
278
|
+
left: "left";
|
|
279
|
+
center: "center";
|
|
280
|
+
right: "right";
|
|
281
|
+
}>>;
|
|
282
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
283
|
+
type: z.ZodLiteral<"image">;
|
|
284
|
+
url: z.ZodString;
|
|
285
|
+
x: z.ZodNumber;
|
|
286
|
+
y: z.ZodNumber;
|
|
287
|
+
width: z.ZodNumber;
|
|
288
|
+
height: z.ZodNumber;
|
|
289
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
290
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
291
|
+
type: z.ZodLiteral<"shape">;
|
|
292
|
+
shape: z.ZodEnum<{
|
|
293
|
+
rect: "rect";
|
|
294
|
+
circle: "circle";
|
|
295
|
+
"rounded-rect": "rounded-rect";
|
|
296
|
+
}>;
|
|
297
|
+
x: z.ZodNumber;
|
|
298
|
+
y: z.ZodNumber;
|
|
299
|
+
width: z.ZodNumber;
|
|
300
|
+
height: z.ZodNumber;
|
|
301
|
+
fill: z.ZodOptional<z.ZodString>;
|
|
302
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
303
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
304
|
+
type: z.ZodLiteral<"logo">;
|
|
305
|
+
x: z.ZodNumber;
|
|
306
|
+
y: z.ZodNumber;
|
|
307
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
308
|
+
}, z.core.$strip>], "type">>;
|
|
309
|
+
}, z.core.$strip>>;
|
|
310
|
+
}, z.core.$strip>;
|
|
311
|
+
declare const VideoContentSchema: z.ZodObject<{
|
|
312
|
+
durationSeconds: z.ZodNumber;
|
|
313
|
+
scenes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
314
|
+
type: z.ZodLiteral<"text-animation">;
|
|
315
|
+
durationSeconds: z.ZodNumber;
|
|
316
|
+
headline: z.ZodString;
|
|
317
|
+
subtext: z.ZodOptional<z.ZodString>;
|
|
318
|
+
animation: z.ZodOptional<z.ZodEnum<{
|
|
319
|
+
fade: "fade";
|
|
320
|
+
"slide-up": "slide-up";
|
|
321
|
+
typewriter: "typewriter";
|
|
322
|
+
}>>;
|
|
323
|
+
background: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
324
|
+
type: z.ZodLiteral<"color">;
|
|
325
|
+
value: z.ZodString;
|
|
326
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
327
|
+
type: z.ZodLiteral<"gradient">;
|
|
328
|
+
from: z.ZodString;
|
|
329
|
+
to: z.ZodString;
|
|
330
|
+
direction: z.ZodOptional<z.ZodString>;
|
|
331
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
332
|
+
type: z.ZodLiteral<"image">;
|
|
333
|
+
url: z.ZodString;
|
|
334
|
+
overlay: z.ZodOptional<z.ZodString>;
|
|
335
|
+
overlayOpacity: z.ZodOptional<z.ZodNumber>;
|
|
336
|
+
}, z.core.$strip>], "type">>;
|
|
337
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
338
|
+
type: z.ZodLiteral<"image-reveal">;
|
|
339
|
+
durationSeconds: z.ZodNumber;
|
|
340
|
+
imageUrl: z.ZodString;
|
|
341
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
342
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
343
|
+
type: z.ZodLiteral<"slide">;
|
|
344
|
+
durationSeconds: z.ZodNumber;
|
|
345
|
+
slide: z.ZodObject<{
|
|
346
|
+
background: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
347
|
+
type: z.ZodLiteral<"color">;
|
|
348
|
+
value: z.ZodString;
|
|
349
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
350
|
+
type: z.ZodLiteral<"gradient">;
|
|
351
|
+
from: z.ZodString;
|
|
352
|
+
to: z.ZodString;
|
|
353
|
+
direction: z.ZodOptional<z.ZodString>;
|
|
354
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
355
|
+
type: z.ZodLiteral<"image">;
|
|
356
|
+
url: z.ZodString;
|
|
357
|
+
overlay: z.ZodOptional<z.ZodString>;
|
|
358
|
+
overlayOpacity: z.ZodOptional<z.ZodNumber>;
|
|
359
|
+
}, z.core.$strip>], "type">;
|
|
360
|
+
layers: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
361
|
+
type: z.ZodLiteral<"text">;
|
|
362
|
+
text: z.ZodString;
|
|
363
|
+
fontSize: z.ZodOptional<z.ZodNumber>;
|
|
364
|
+
fontWeight: z.ZodOptional<z.ZodEnum<{
|
|
365
|
+
bold: "bold";
|
|
366
|
+
normal: "normal";
|
|
367
|
+
}>>;
|
|
368
|
+
color: z.ZodOptional<z.ZodString>;
|
|
369
|
+
x: z.ZodNumber;
|
|
370
|
+
y: z.ZodNumber;
|
|
371
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
372
|
+
align: z.ZodOptional<z.ZodEnum<{
|
|
373
|
+
left: "left";
|
|
374
|
+
center: "center";
|
|
375
|
+
right: "right";
|
|
376
|
+
}>>;
|
|
377
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
378
|
+
type: z.ZodLiteral<"image">;
|
|
379
|
+
url: z.ZodString;
|
|
380
|
+
x: z.ZodNumber;
|
|
381
|
+
y: z.ZodNumber;
|
|
382
|
+
width: z.ZodNumber;
|
|
383
|
+
height: z.ZodNumber;
|
|
384
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
385
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
386
|
+
type: z.ZodLiteral<"shape">;
|
|
387
|
+
shape: z.ZodEnum<{
|
|
388
|
+
rect: "rect";
|
|
389
|
+
circle: "circle";
|
|
390
|
+
"rounded-rect": "rounded-rect";
|
|
391
|
+
}>;
|
|
392
|
+
x: z.ZodNumber;
|
|
393
|
+
y: z.ZodNumber;
|
|
394
|
+
width: z.ZodNumber;
|
|
395
|
+
height: z.ZodNumber;
|
|
396
|
+
fill: z.ZodOptional<z.ZodString>;
|
|
397
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
398
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
399
|
+
type: z.ZodLiteral<"logo">;
|
|
400
|
+
x: z.ZodNumber;
|
|
401
|
+
y: z.ZodNumber;
|
|
402
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
403
|
+
}, z.core.$strip>], "type">>;
|
|
404
|
+
}, z.core.$strip>;
|
|
405
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
406
|
+
type: z.ZodLiteral<"countdown">;
|
|
407
|
+
durationSeconds: z.ZodNumber;
|
|
408
|
+
from: z.ZodNumber;
|
|
409
|
+
label: z.ZodOptional<z.ZodString>;
|
|
410
|
+
}, z.core.$strip>], "type">>;
|
|
411
|
+
audioUrl: z.ZodOptional<z.ZodString>;
|
|
412
|
+
captions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
413
|
+
startSeconds: z.ZodNumber;
|
|
414
|
+
endSeconds: z.ZodNumber;
|
|
415
|
+
text: z.ZodString;
|
|
416
|
+
}, z.core.$strip>>>;
|
|
417
|
+
renderedUrl: z.ZodOptional<z.ZodString>;
|
|
418
|
+
}, z.core.$strip>;
|
|
419
|
+
declare const CopyContentSchema: z.ZodObject<{
|
|
420
|
+
headline: z.ZodString;
|
|
421
|
+
body: z.ZodString;
|
|
422
|
+
hashtags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
423
|
+
platform: z.ZodEnum<{
|
|
424
|
+
instagram: "instagram";
|
|
425
|
+
tiktok: "tiktok";
|
|
426
|
+
x: "x";
|
|
427
|
+
linkedin: "linkedin";
|
|
428
|
+
sms: "sms";
|
|
429
|
+
"email-subject": "email-subject";
|
|
430
|
+
}>;
|
|
431
|
+
characterCount: z.ZodOptional<z.ZodNumber>;
|
|
432
|
+
}, z.core.$strip>;
|
|
433
|
+
declare const ApprovalEventSchema: z.ZodObject<{
|
|
434
|
+
assetId: z.ZodString;
|
|
435
|
+
variantId: z.ZodOptional<z.ZodString>;
|
|
436
|
+
action: z.ZodEnum<{
|
|
437
|
+
approved: "approved";
|
|
438
|
+
rejected: "rejected";
|
|
439
|
+
scheduled: "scheduled";
|
|
440
|
+
edited: "edited";
|
|
441
|
+
}>;
|
|
442
|
+
editedFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
443
|
+
userId: z.ZodString;
|
|
444
|
+
timestamp: z.ZodString;
|
|
445
|
+
}, z.core.$strip>;
|
|
446
|
+
declare const ConversionMetricsSchema: z.ZodObject<{
|
|
447
|
+
impressions: z.ZodNumber;
|
|
448
|
+
clicks: z.ZodNumber;
|
|
449
|
+
conversions: z.ZodNumber;
|
|
450
|
+
ctr: z.ZodNumber;
|
|
451
|
+
cvr: z.ZodNumber;
|
|
452
|
+
}, z.core.$strip>;
|
|
453
|
+
/**
|
|
454
|
+
* Validates an unknown value as an AssetSpec, including format-specific
|
|
455
|
+
* content validation. Throws ZodError on invalid input.
|
|
456
|
+
*/
|
|
457
|
+
declare function parseAssetSpec(raw: unknown): AssetSpec;
|
|
458
|
+
/**
|
|
459
|
+
* Safe parse — returns null instead of throwing.
|
|
460
|
+
*/
|
|
461
|
+
declare function safeParseAssetSpec(raw: unknown): AssetSpec | null;
|
|
462
|
+
|
|
463
|
+
export { type ApprovalEvent, ApprovalEventSchema, type AssetContentMap, type AssetFormat, type AssetSpec, type AssetStatus, type AssetVariant, type BrandTokens, BrandTokensSchema, type ConversionMetrics, ConversionMetricsSchema, type CopyContent, CopyContentSchema, type CopyPlatform, type EmailBodySection, type EmailContent, EmailContentSchema, type EmailCtaSection, type EmailDividerSection, type EmailFeatureSection, type EmailHeroSection, type EmailSection, type EmailTestimonialSection, type ImageBackground, type ImageContent, ImageContentSchema, type ImageImageLayer, type ImageLayer, type ImageLayerType, type ImageLogoLayer, type ImageShapeLayer, type ImageSlide, type ImageTextLayer, type VideoCaption, type VideoContent, VideoContentSchema, type VideoCountdownScene, type VideoImageRevealScene, type VideoScene, type VideoSlideScene, type VideoTextAnimationScene, parseAssetSpec, safeParseAssetSpec };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ApprovalEventSchema,
|
|
3
|
+
BrandTokensSchema,
|
|
4
|
+
ConversionMetricsSchema,
|
|
5
|
+
CopyContentSchema,
|
|
6
|
+
EmailContentSchema,
|
|
7
|
+
ImageContentSchema,
|
|
8
|
+
VideoContentSchema,
|
|
9
|
+
parseAssetSpec,
|
|
10
|
+
safeParseAssetSpec
|
|
11
|
+
} from "../chunk-5PTGEJZL.js";
|
|
12
|
+
export {
|
|
13
|
+
ApprovalEventSchema,
|
|
14
|
+
BrandTokensSchema,
|
|
15
|
+
ConversionMetricsSchema,
|
|
16
|
+
CopyContentSchema,
|
|
17
|
+
EmailContentSchema,
|
|
18
|
+
ImageContentSchema,
|
|
19
|
+
VideoContentSchema,
|
|
20
|
+
parseAssetSpec,
|
|
21
|
+
safeParseAssetSpec
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|