@tangle-network/agent-app 0.46.35 → 0.46.37
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/README.md +6 -6
- package/dist/assets/index.js +18 -0
- package/dist/assets/index.js.map +1 -1
- package/dist/assets/schema.d.ts +657 -0
- package/dist/assistant/index.js +6 -6
- package/dist/chat-react/index.js +3 -3
- package/dist/chat-routes/index.js +1 -1
- package/dist/chat-store/index.js +1 -1
- package/dist/{chunk-MWEX2M6M.js → chunk-7ZPEJWDI.js} +27 -12
- package/dist/{chunk-MWEX2M6M.js.map → chunk-7ZPEJWDI.js.map} +1 -1
- package/dist/{chunk-YDOQE47G.js → chunk-PYDMEYWA.js} +20 -6
- package/dist/chunk-PYDMEYWA.js.map +1 -0
- package/dist/{chunk-EDTWGSQT.js → chunk-SJWIZT7B.js} +6 -2
- package/dist/{chunk-EDTWGSQT.js.map → chunk-SJWIZT7B.js.map} +1 -1
- package/dist/{chunk-JAYKCWW4.js → chunk-U2UAQTFY.js} +3 -3
- package/dist/chunk-U2UAQTFY.js.map +1 -0
- package/dist/{chunk-KKBTPZIE.js → chunk-Z4TPWP6A.js} +14 -4
- package/dist/chunk-Z4TPWP6A.js.map +1 -0
- package/dist/{chunk-4SGGSXI7.js → chunk-ZMMIQOFI.js} +6 -5
- package/dist/chunk-ZMMIQOFI.js.map +1 -0
- package/dist/{mention-editor-NDJAEMRP.js → mention-editor-CBLT6LE3.js} +2 -2
- package/dist/session-shell/index.js +1 -1
- package/dist/stream/index.js +1 -1
- package/dist/studio-react/index.js +3 -3
- package/dist/web-react/agent-session-controls.d.ts +11 -1
- package/dist/web-react/controls.d.ts +36 -2
- package/dist/web-react/index.d.ts +1 -1
- package/dist/web-react/index.js +6 -6
- package/dist/workspace-react/index.js +1 -1
- package/package.json +13 -13
- package/dist/chunk-4SGGSXI7.js.map +0 -1
- package/dist/chunk-JAYKCWW4.js.map +0 -1
- package/dist/chunk-KKBTPZIE.js.map +0 -1
- package/dist/chunk-YDOQE47G.js.map +0 -1
- /package/dist/{mention-editor-NDJAEMRP.js.map → mention-editor-CBLT6LE3.js.map} +0 -0
package/dist/assets/schema.d.ts
CHANGED
|
@@ -253,6 +253,663 @@ export declare const ConversionMetricsSchema: z.ZodObject<{
|
|
|
253
253
|
ctr: z.ZodNumber;
|
|
254
254
|
cvr: z.ZodNumber;
|
|
255
255
|
}, z.core.$strip>;
|
|
256
|
+
/**
|
|
257
|
+
* JSON Schema for the model-facing asset-create payload.
|
|
258
|
+
*
|
|
259
|
+
* `format`, `brand`, and `content` are required. `campaignId` is optional.
|
|
260
|
+
* The host assigns `id`, `workspaceId`, `status`, and timestamps before it
|
|
261
|
+
* calls {@link parseAssetSpec}; every content branch comes from its parser
|
|
262
|
+
* schema, so this is the one reference products should mount in prompts.
|
|
263
|
+
*/
|
|
264
|
+
export declare const assetCreateJsonSchema: {
|
|
265
|
+
readonly $schema?: "https://json-schema.org/draft/2020-12/schema" | "http://json-schema.org/draft-07/schema#" | "http://json-schema.org/draft-04/schema#";
|
|
266
|
+
readonly $anchor?: string;
|
|
267
|
+
readonly $ref?: string;
|
|
268
|
+
readonly $dynamicRef?: string;
|
|
269
|
+
readonly $dynamicAnchor?: string;
|
|
270
|
+
readonly $vocabulary?: Record<string, boolean>;
|
|
271
|
+
readonly $comment?: string;
|
|
272
|
+
readonly $defs?: Record<string, z.core.JSONSchema.JSONSchema>;
|
|
273
|
+
readonly type?: "object" | "array" | "string" | "number" | "boolean" | "null" | "integer";
|
|
274
|
+
readonly additionalItems?: z.core.JSONSchema._JSONSchema;
|
|
275
|
+
readonly unevaluatedItems?: z.core.JSONSchema._JSONSchema;
|
|
276
|
+
readonly prefixItems?: z.core.JSONSchema._JSONSchema[];
|
|
277
|
+
readonly items?: z.core.JSONSchema._JSONSchema | z.core.JSONSchema._JSONSchema[];
|
|
278
|
+
readonly contains?: z.core.JSONSchema._JSONSchema;
|
|
279
|
+
readonly additionalProperties?: z.core.JSONSchema._JSONSchema;
|
|
280
|
+
readonly unevaluatedProperties?: z.core.JSONSchema._JSONSchema;
|
|
281
|
+
readonly properties?: Record<string, z.core.JSONSchema._JSONSchema>;
|
|
282
|
+
readonly patternProperties?: Record<string, z.core.JSONSchema._JSONSchema>;
|
|
283
|
+
readonly dependentSchemas?: Record<string, z.core.JSONSchema._JSONSchema>;
|
|
284
|
+
readonly propertyNames?: z.core.JSONSchema._JSONSchema;
|
|
285
|
+
readonly if?: z.core.JSONSchema._JSONSchema;
|
|
286
|
+
readonly then?: z.core.JSONSchema._JSONSchema;
|
|
287
|
+
readonly else?: z.core.JSONSchema._JSONSchema;
|
|
288
|
+
readonly allOf?: z.core.JSONSchema.JSONSchema[];
|
|
289
|
+
readonly anyOf?: z.core.JSONSchema.JSONSchema[];
|
|
290
|
+
readonly oneOf?: z.core.JSONSchema.JSONSchema[];
|
|
291
|
+
readonly not?: z.core.JSONSchema._JSONSchema;
|
|
292
|
+
readonly multipleOf?: number;
|
|
293
|
+
readonly maximum?: number;
|
|
294
|
+
readonly exclusiveMaximum?: number | boolean;
|
|
295
|
+
readonly minimum?: number;
|
|
296
|
+
readonly exclusiveMinimum?: number | boolean;
|
|
297
|
+
readonly maxLength?: number;
|
|
298
|
+
readonly minLength?: number;
|
|
299
|
+
readonly pattern?: string;
|
|
300
|
+
readonly maxItems?: number;
|
|
301
|
+
readonly minItems?: number;
|
|
302
|
+
readonly uniqueItems?: boolean;
|
|
303
|
+
readonly maxContains?: number;
|
|
304
|
+
readonly minContains?: number;
|
|
305
|
+
readonly maxProperties?: number;
|
|
306
|
+
readonly minProperties?: number;
|
|
307
|
+
readonly required?: string[];
|
|
308
|
+
readonly dependentRequired?: Record<string, string[]>;
|
|
309
|
+
readonly enum?: Array<string | number | boolean | null>;
|
|
310
|
+
readonly const?: string | number | boolean | null;
|
|
311
|
+
readonly id?: string;
|
|
312
|
+
readonly default?: unknown;
|
|
313
|
+
readonly deprecated?: boolean;
|
|
314
|
+
readonly readOnly?: boolean;
|
|
315
|
+
readonly writeOnly?: boolean;
|
|
316
|
+
readonly nullable?: boolean;
|
|
317
|
+
readonly examples?: unknown[];
|
|
318
|
+
readonly format?: string;
|
|
319
|
+
readonly contentMediaType?: string;
|
|
320
|
+
readonly contentEncoding?: string;
|
|
321
|
+
readonly contentSchema?: z.core.JSONSchema.JSONSchema;
|
|
322
|
+
readonly _prefault?: unknown;
|
|
323
|
+
readonly "~standard": z.core.ZodStandardSchemaWithJSON<z.ZodUnion<readonly [z.ZodObject<{
|
|
324
|
+
format: z.ZodLiteral<"email">;
|
|
325
|
+
campaignId: z.ZodOptional<z.ZodString>;
|
|
326
|
+
brand: z.ZodObject<{
|
|
327
|
+
primaryColor: z.ZodString;
|
|
328
|
+
accentColor: z.ZodString;
|
|
329
|
+
textColor: z.ZodString;
|
|
330
|
+
fontFamily: z.ZodString;
|
|
331
|
+
logoUrl: z.ZodOptional<z.ZodString>;
|
|
332
|
+
businessName: z.ZodString;
|
|
333
|
+
voice: z.ZodString;
|
|
334
|
+
}, z.core.$strip>;
|
|
335
|
+
content: z.ZodObject<{
|
|
336
|
+
subject: z.ZodString;
|
|
337
|
+
preheader: z.ZodOptional<z.ZodString>;
|
|
338
|
+
sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
339
|
+
type: z.ZodLiteral<"hero">;
|
|
340
|
+
headline: z.ZodString;
|
|
341
|
+
subheadline: z.ZodOptional<z.ZodString>;
|
|
342
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
343
|
+
ctaLabel: z.ZodOptional<z.ZodString>;
|
|
344
|
+
ctaUrl: z.ZodOptional<z.ZodString>;
|
|
345
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
346
|
+
type: z.ZodLiteral<"body">;
|
|
347
|
+
text: z.ZodString;
|
|
348
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
349
|
+
type: z.ZodLiteral<"feature">;
|
|
350
|
+
headline: z.ZodString;
|
|
351
|
+
description: z.ZodString;
|
|
352
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
353
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
354
|
+
type: z.ZodLiteral<"testimonial">;
|
|
355
|
+
quote: z.ZodString;
|
|
356
|
+
author: z.ZodString;
|
|
357
|
+
role: z.ZodOptional<z.ZodString>;
|
|
358
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
359
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
360
|
+
type: z.ZodLiteral<"cta">;
|
|
361
|
+
label: z.ZodString;
|
|
362
|
+
url: z.ZodString;
|
|
363
|
+
subtext: z.ZodOptional<z.ZodString>;
|
|
364
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
365
|
+
type: z.ZodLiteral<"divider">;
|
|
366
|
+
}, z.core.$strip>], "type">>;
|
|
367
|
+
}, z.core.$strip>;
|
|
368
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
369
|
+
format: z.ZodLiteral<"image:feed">;
|
|
370
|
+
campaignId: z.ZodOptional<z.ZodString>;
|
|
371
|
+
brand: z.ZodObject<{
|
|
372
|
+
primaryColor: z.ZodString;
|
|
373
|
+
accentColor: z.ZodString;
|
|
374
|
+
textColor: z.ZodString;
|
|
375
|
+
fontFamily: z.ZodString;
|
|
376
|
+
logoUrl: z.ZodOptional<z.ZodString>;
|
|
377
|
+
businessName: z.ZodString;
|
|
378
|
+
voice: z.ZodString;
|
|
379
|
+
}, z.core.$strip>;
|
|
380
|
+
content: z.ZodObject<{
|
|
381
|
+
slides: z.ZodArray<z.ZodObject<{
|
|
382
|
+
background: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
383
|
+
type: z.ZodLiteral<"color">;
|
|
384
|
+
value: z.ZodString;
|
|
385
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
386
|
+
type: z.ZodLiteral<"gradient">;
|
|
387
|
+
from: z.ZodString;
|
|
388
|
+
to: z.ZodString;
|
|
389
|
+
direction: z.ZodOptional<z.ZodString>;
|
|
390
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
391
|
+
type: z.ZodLiteral<"image">;
|
|
392
|
+
url: z.ZodString;
|
|
393
|
+
overlay: z.ZodOptional<z.ZodString>;
|
|
394
|
+
overlayOpacity: z.ZodOptional<z.ZodNumber>;
|
|
395
|
+
}, z.core.$strip>], "type">;
|
|
396
|
+
layers: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
397
|
+
type: z.ZodLiteral<"text">;
|
|
398
|
+
text: z.ZodString;
|
|
399
|
+
fontSize: z.ZodOptional<z.ZodNumber>;
|
|
400
|
+
fontWeight: z.ZodOptional<z.ZodEnum<{
|
|
401
|
+
bold: "bold";
|
|
402
|
+
normal: "normal";
|
|
403
|
+
}>>;
|
|
404
|
+
color: z.ZodOptional<z.ZodString>;
|
|
405
|
+
x: z.ZodNumber;
|
|
406
|
+
y: z.ZodNumber;
|
|
407
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
408
|
+
align: z.ZodOptional<z.ZodEnum<{
|
|
409
|
+
center: "center";
|
|
410
|
+
left: "left";
|
|
411
|
+
right: "right";
|
|
412
|
+
}>>;
|
|
413
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
414
|
+
type: z.ZodLiteral<"image">;
|
|
415
|
+
url: z.ZodString;
|
|
416
|
+
x: z.ZodNumber;
|
|
417
|
+
y: z.ZodNumber;
|
|
418
|
+
width: z.ZodNumber;
|
|
419
|
+
height: z.ZodNumber;
|
|
420
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
421
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
422
|
+
type: z.ZodLiteral<"shape">;
|
|
423
|
+
shape: z.ZodEnum<{
|
|
424
|
+
circle: "circle";
|
|
425
|
+
rect: "rect";
|
|
426
|
+
"rounded-rect": "rounded-rect";
|
|
427
|
+
}>;
|
|
428
|
+
x: z.ZodNumber;
|
|
429
|
+
y: z.ZodNumber;
|
|
430
|
+
width: z.ZodNumber;
|
|
431
|
+
height: z.ZodNumber;
|
|
432
|
+
fill: z.ZodOptional<z.ZodString>;
|
|
433
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
434
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
435
|
+
type: z.ZodLiteral<"logo">;
|
|
436
|
+
x: z.ZodNumber;
|
|
437
|
+
y: z.ZodNumber;
|
|
438
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
439
|
+
}, z.core.$strip>], "type">>;
|
|
440
|
+
}, z.core.$strip>>;
|
|
441
|
+
}, z.core.$strip>;
|
|
442
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
443
|
+
format: z.ZodLiteral<"image:story">;
|
|
444
|
+
campaignId: z.ZodOptional<z.ZodString>;
|
|
445
|
+
brand: z.ZodObject<{
|
|
446
|
+
primaryColor: z.ZodString;
|
|
447
|
+
accentColor: z.ZodString;
|
|
448
|
+
textColor: z.ZodString;
|
|
449
|
+
fontFamily: z.ZodString;
|
|
450
|
+
logoUrl: z.ZodOptional<z.ZodString>;
|
|
451
|
+
businessName: z.ZodString;
|
|
452
|
+
voice: z.ZodString;
|
|
453
|
+
}, z.core.$strip>;
|
|
454
|
+
content: z.ZodObject<{
|
|
455
|
+
slides: z.ZodArray<z.ZodObject<{
|
|
456
|
+
background: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
457
|
+
type: z.ZodLiteral<"color">;
|
|
458
|
+
value: z.ZodString;
|
|
459
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
460
|
+
type: z.ZodLiteral<"gradient">;
|
|
461
|
+
from: z.ZodString;
|
|
462
|
+
to: z.ZodString;
|
|
463
|
+
direction: z.ZodOptional<z.ZodString>;
|
|
464
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
465
|
+
type: z.ZodLiteral<"image">;
|
|
466
|
+
url: z.ZodString;
|
|
467
|
+
overlay: z.ZodOptional<z.ZodString>;
|
|
468
|
+
overlayOpacity: z.ZodOptional<z.ZodNumber>;
|
|
469
|
+
}, z.core.$strip>], "type">;
|
|
470
|
+
layers: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
471
|
+
type: z.ZodLiteral<"text">;
|
|
472
|
+
text: z.ZodString;
|
|
473
|
+
fontSize: z.ZodOptional<z.ZodNumber>;
|
|
474
|
+
fontWeight: z.ZodOptional<z.ZodEnum<{
|
|
475
|
+
bold: "bold";
|
|
476
|
+
normal: "normal";
|
|
477
|
+
}>>;
|
|
478
|
+
color: z.ZodOptional<z.ZodString>;
|
|
479
|
+
x: z.ZodNumber;
|
|
480
|
+
y: z.ZodNumber;
|
|
481
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
482
|
+
align: z.ZodOptional<z.ZodEnum<{
|
|
483
|
+
center: "center";
|
|
484
|
+
left: "left";
|
|
485
|
+
right: "right";
|
|
486
|
+
}>>;
|
|
487
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
488
|
+
type: z.ZodLiteral<"image">;
|
|
489
|
+
url: z.ZodString;
|
|
490
|
+
x: z.ZodNumber;
|
|
491
|
+
y: z.ZodNumber;
|
|
492
|
+
width: z.ZodNumber;
|
|
493
|
+
height: z.ZodNumber;
|
|
494
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
495
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
496
|
+
type: z.ZodLiteral<"shape">;
|
|
497
|
+
shape: z.ZodEnum<{
|
|
498
|
+
circle: "circle";
|
|
499
|
+
rect: "rect";
|
|
500
|
+
"rounded-rect": "rounded-rect";
|
|
501
|
+
}>;
|
|
502
|
+
x: z.ZodNumber;
|
|
503
|
+
y: z.ZodNumber;
|
|
504
|
+
width: z.ZodNumber;
|
|
505
|
+
height: z.ZodNumber;
|
|
506
|
+
fill: z.ZodOptional<z.ZodString>;
|
|
507
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
508
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
509
|
+
type: z.ZodLiteral<"logo">;
|
|
510
|
+
x: z.ZodNumber;
|
|
511
|
+
y: z.ZodNumber;
|
|
512
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
513
|
+
}, z.core.$strip>], "type">>;
|
|
514
|
+
}, z.core.$strip>>;
|
|
515
|
+
}, z.core.$strip>;
|
|
516
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
517
|
+
format: z.ZodLiteral<"image:carousel">;
|
|
518
|
+
campaignId: z.ZodOptional<z.ZodString>;
|
|
519
|
+
brand: z.ZodObject<{
|
|
520
|
+
primaryColor: z.ZodString;
|
|
521
|
+
accentColor: z.ZodString;
|
|
522
|
+
textColor: z.ZodString;
|
|
523
|
+
fontFamily: z.ZodString;
|
|
524
|
+
logoUrl: z.ZodOptional<z.ZodString>;
|
|
525
|
+
businessName: z.ZodString;
|
|
526
|
+
voice: z.ZodString;
|
|
527
|
+
}, z.core.$strip>;
|
|
528
|
+
content: z.ZodObject<{
|
|
529
|
+
slides: z.ZodArray<z.ZodObject<{
|
|
530
|
+
background: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
531
|
+
type: z.ZodLiteral<"color">;
|
|
532
|
+
value: z.ZodString;
|
|
533
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
534
|
+
type: z.ZodLiteral<"gradient">;
|
|
535
|
+
from: z.ZodString;
|
|
536
|
+
to: z.ZodString;
|
|
537
|
+
direction: z.ZodOptional<z.ZodString>;
|
|
538
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
539
|
+
type: z.ZodLiteral<"image">;
|
|
540
|
+
url: z.ZodString;
|
|
541
|
+
overlay: z.ZodOptional<z.ZodString>;
|
|
542
|
+
overlayOpacity: z.ZodOptional<z.ZodNumber>;
|
|
543
|
+
}, z.core.$strip>], "type">;
|
|
544
|
+
layers: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
545
|
+
type: z.ZodLiteral<"text">;
|
|
546
|
+
text: z.ZodString;
|
|
547
|
+
fontSize: z.ZodOptional<z.ZodNumber>;
|
|
548
|
+
fontWeight: z.ZodOptional<z.ZodEnum<{
|
|
549
|
+
bold: "bold";
|
|
550
|
+
normal: "normal";
|
|
551
|
+
}>>;
|
|
552
|
+
color: z.ZodOptional<z.ZodString>;
|
|
553
|
+
x: z.ZodNumber;
|
|
554
|
+
y: z.ZodNumber;
|
|
555
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
556
|
+
align: z.ZodOptional<z.ZodEnum<{
|
|
557
|
+
center: "center";
|
|
558
|
+
left: "left";
|
|
559
|
+
right: "right";
|
|
560
|
+
}>>;
|
|
561
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
562
|
+
type: z.ZodLiteral<"image">;
|
|
563
|
+
url: z.ZodString;
|
|
564
|
+
x: z.ZodNumber;
|
|
565
|
+
y: z.ZodNumber;
|
|
566
|
+
width: z.ZodNumber;
|
|
567
|
+
height: z.ZodNumber;
|
|
568
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
569
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
570
|
+
type: z.ZodLiteral<"shape">;
|
|
571
|
+
shape: z.ZodEnum<{
|
|
572
|
+
circle: "circle";
|
|
573
|
+
rect: "rect";
|
|
574
|
+
"rounded-rect": "rounded-rect";
|
|
575
|
+
}>;
|
|
576
|
+
x: z.ZodNumber;
|
|
577
|
+
y: z.ZodNumber;
|
|
578
|
+
width: z.ZodNumber;
|
|
579
|
+
height: z.ZodNumber;
|
|
580
|
+
fill: z.ZodOptional<z.ZodString>;
|
|
581
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
582
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
583
|
+
type: z.ZodLiteral<"logo">;
|
|
584
|
+
x: z.ZodNumber;
|
|
585
|
+
y: z.ZodNumber;
|
|
586
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
587
|
+
}, z.core.$strip>], "type">>;
|
|
588
|
+
}, z.core.$strip>>;
|
|
589
|
+
}, z.core.$strip>;
|
|
590
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
591
|
+
format: z.ZodLiteral<"video:reel">;
|
|
592
|
+
campaignId: z.ZodOptional<z.ZodString>;
|
|
593
|
+
brand: z.ZodObject<{
|
|
594
|
+
primaryColor: z.ZodString;
|
|
595
|
+
accentColor: z.ZodString;
|
|
596
|
+
textColor: z.ZodString;
|
|
597
|
+
fontFamily: z.ZodString;
|
|
598
|
+
logoUrl: z.ZodOptional<z.ZodString>;
|
|
599
|
+
businessName: z.ZodString;
|
|
600
|
+
voice: z.ZodString;
|
|
601
|
+
}, z.core.$strip>;
|
|
602
|
+
content: z.ZodObject<{
|
|
603
|
+
durationSeconds: z.ZodNumber;
|
|
604
|
+
scenes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
605
|
+
type: z.ZodLiteral<"text-animation">;
|
|
606
|
+
durationSeconds: z.ZodNumber;
|
|
607
|
+
headline: z.ZodString;
|
|
608
|
+
subtext: z.ZodOptional<z.ZodString>;
|
|
609
|
+
animation: z.ZodOptional<z.ZodEnum<{
|
|
610
|
+
fade: "fade";
|
|
611
|
+
"slide-up": "slide-up";
|
|
612
|
+
typewriter: "typewriter";
|
|
613
|
+
}>>;
|
|
614
|
+
background: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
615
|
+
type: z.ZodLiteral<"color">;
|
|
616
|
+
value: z.ZodString;
|
|
617
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
618
|
+
type: z.ZodLiteral<"gradient">;
|
|
619
|
+
from: z.ZodString;
|
|
620
|
+
to: z.ZodString;
|
|
621
|
+
direction: z.ZodOptional<z.ZodString>;
|
|
622
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
623
|
+
type: z.ZodLiteral<"image">;
|
|
624
|
+
url: z.ZodString;
|
|
625
|
+
overlay: z.ZodOptional<z.ZodString>;
|
|
626
|
+
overlayOpacity: z.ZodOptional<z.ZodNumber>;
|
|
627
|
+
}, z.core.$strip>], "type">>;
|
|
628
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
629
|
+
type: z.ZodLiteral<"image-reveal">;
|
|
630
|
+
durationSeconds: z.ZodNumber;
|
|
631
|
+
imageUrl: z.ZodString;
|
|
632
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
633
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
634
|
+
type: z.ZodLiteral<"slide">;
|
|
635
|
+
durationSeconds: z.ZodNumber;
|
|
636
|
+
slide: z.ZodObject<{
|
|
637
|
+
background: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
638
|
+
type: z.ZodLiteral<"color">;
|
|
639
|
+
value: z.ZodString;
|
|
640
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
641
|
+
type: z.ZodLiteral<"gradient">;
|
|
642
|
+
from: z.ZodString;
|
|
643
|
+
to: z.ZodString;
|
|
644
|
+
direction: z.ZodOptional<z.ZodString>;
|
|
645
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
646
|
+
type: z.ZodLiteral<"image">;
|
|
647
|
+
url: z.ZodString;
|
|
648
|
+
overlay: z.ZodOptional<z.ZodString>;
|
|
649
|
+
overlayOpacity: z.ZodOptional<z.ZodNumber>;
|
|
650
|
+
}, z.core.$strip>], "type">;
|
|
651
|
+
layers: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
652
|
+
type: z.ZodLiteral<"text">;
|
|
653
|
+
text: z.ZodString;
|
|
654
|
+
fontSize: z.ZodOptional<z.ZodNumber>;
|
|
655
|
+
fontWeight: z.ZodOptional<z.ZodEnum<{
|
|
656
|
+
bold: "bold";
|
|
657
|
+
normal: "normal";
|
|
658
|
+
}>>;
|
|
659
|
+
color: z.ZodOptional<z.ZodString>;
|
|
660
|
+
x: z.ZodNumber;
|
|
661
|
+
y: z.ZodNumber;
|
|
662
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
663
|
+
align: z.ZodOptional<z.ZodEnum<{
|
|
664
|
+
center: "center";
|
|
665
|
+
left: "left";
|
|
666
|
+
right: "right";
|
|
667
|
+
}>>;
|
|
668
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
669
|
+
type: z.ZodLiteral<"image">;
|
|
670
|
+
url: z.ZodString;
|
|
671
|
+
x: z.ZodNumber;
|
|
672
|
+
y: z.ZodNumber;
|
|
673
|
+
width: z.ZodNumber;
|
|
674
|
+
height: z.ZodNumber;
|
|
675
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
676
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
677
|
+
type: z.ZodLiteral<"shape">;
|
|
678
|
+
shape: z.ZodEnum<{
|
|
679
|
+
circle: "circle";
|
|
680
|
+
rect: "rect";
|
|
681
|
+
"rounded-rect": "rounded-rect";
|
|
682
|
+
}>;
|
|
683
|
+
x: z.ZodNumber;
|
|
684
|
+
y: z.ZodNumber;
|
|
685
|
+
width: z.ZodNumber;
|
|
686
|
+
height: z.ZodNumber;
|
|
687
|
+
fill: z.ZodOptional<z.ZodString>;
|
|
688
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
689
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
690
|
+
type: z.ZodLiteral<"logo">;
|
|
691
|
+
x: z.ZodNumber;
|
|
692
|
+
y: z.ZodNumber;
|
|
693
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
694
|
+
}, z.core.$strip>], "type">>;
|
|
695
|
+
}, z.core.$strip>;
|
|
696
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
697
|
+
type: z.ZodLiteral<"countdown">;
|
|
698
|
+
durationSeconds: z.ZodNumber;
|
|
699
|
+
from: z.ZodNumber;
|
|
700
|
+
label: z.ZodOptional<z.ZodString>;
|
|
701
|
+
}, z.core.$strip>], "type">>;
|
|
702
|
+
audioUrl: z.ZodOptional<z.ZodString>;
|
|
703
|
+
captions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
704
|
+
startSeconds: z.ZodNumber;
|
|
705
|
+
endSeconds: z.ZodNumber;
|
|
706
|
+
text: z.ZodString;
|
|
707
|
+
}, z.core.$strip>>>;
|
|
708
|
+
renderedUrl: z.ZodOptional<z.ZodString>;
|
|
709
|
+
}, z.core.$strip>;
|
|
710
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
711
|
+
format: z.ZodLiteral<"video:feed">;
|
|
712
|
+
campaignId: z.ZodOptional<z.ZodString>;
|
|
713
|
+
brand: z.ZodObject<{
|
|
714
|
+
primaryColor: z.ZodString;
|
|
715
|
+
accentColor: z.ZodString;
|
|
716
|
+
textColor: z.ZodString;
|
|
717
|
+
fontFamily: z.ZodString;
|
|
718
|
+
logoUrl: z.ZodOptional<z.ZodString>;
|
|
719
|
+
businessName: z.ZodString;
|
|
720
|
+
voice: z.ZodString;
|
|
721
|
+
}, z.core.$strip>;
|
|
722
|
+
content: z.ZodObject<{
|
|
723
|
+
durationSeconds: z.ZodNumber;
|
|
724
|
+
scenes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
725
|
+
type: z.ZodLiteral<"text-animation">;
|
|
726
|
+
durationSeconds: z.ZodNumber;
|
|
727
|
+
headline: z.ZodString;
|
|
728
|
+
subtext: z.ZodOptional<z.ZodString>;
|
|
729
|
+
animation: z.ZodOptional<z.ZodEnum<{
|
|
730
|
+
fade: "fade";
|
|
731
|
+
"slide-up": "slide-up";
|
|
732
|
+
typewriter: "typewriter";
|
|
733
|
+
}>>;
|
|
734
|
+
background: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
735
|
+
type: z.ZodLiteral<"color">;
|
|
736
|
+
value: z.ZodString;
|
|
737
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
738
|
+
type: z.ZodLiteral<"gradient">;
|
|
739
|
+
from: z.ZodString;
|
|
740
|
+
to: z.ZodString;
|
|
741
|
+
direction: z.ZodOptional<z.ZodString>;
|
|
742
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
743
|
+
type: z.ZodLiteral<"image">;
|
|
744
|
+
url: z.ZodString;
|
|
745
|
+
overlay: z.ZodOptional<z.ZodString>;
|
|
746
|
+
overlayOpacity: z.ZodOptional<z.ZodNumber>;
|
|
747
|
+
}, z.core.$strip>], "type">>;
|
|
748
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
749
|
+
type: z.ZodLiteral<"image-reveal">;
|
|
750
|
+
durationSeconds: z.ZodNumber;
|
|
751
|
+
imageUrl: z.ZodString;
|
|
752
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
753
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
754
|
+
type: z.ZodLiteral<"slide">;
|
|
755
|
+
durationSeconds: z.ZodNumber;
|
|
756
|
+
slide: z.ZodObject<{
|
|
757
|
+
background: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
758
|
+
type: z.ZodLiteral<"color">;
|
|
759
|
+
value: z.ZodString;
|
|
760
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
761
|
+
type: z.ZodLiteral<"gradient">;
|
|
762
|
+
from: z.ZodString;
|
|
763
|
+
to: z.ZodString;
|
|
764
|
+
direction: z.ZodOptional<z.ZodString>;
|
|
765
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
766
|
+
type: z.ZodLiteral<"image">;
|
|
767
|
+
url: z.ZodString;
|
|
768
|
+
overlay: z.ZodOptional<z.ZodString>;
|
|
769
|
+
overlayOpacity: z.ZodOptional<z.ZodNumber>;
|
|
770
|
+
}, z.core.$strip>], "type">;
|
|
771
|
+
layers: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
772
|
+
type: z.ZodLiteral<"text">;
|
|
773
|
+
text: z.ZodString;
|
|
774
|
+
fontSize: z.ZodOptional<z.ZodNumber>;
|
|
775
|
+
fontWeight: z.ZodOptional<z.ZodEnum<{
|
|
776
|
+
bold: "bold";
|
|
777
|
+
normal: "normal";
|
|
778
|
+
}>>;
|
|
779
|
+
color: z.ZodOptional<z.ZodString>;
|
|
780
|
+
x: z.ZodNumber;
|
|
781
|
+
y: z.ZodNumber;
|
|
782
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
783
|
+
align: z.ZodOptional<z.ZodEnum<{
|
|
784
|
+
center: "center";
|
|
785
|
+
left: "left";
|
|
786
|
+
right: "right";
|
|
787
|
+
}>>;
|
|
788
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
789
|
+
type: z.ZodLiteral<"image">;
|
|
790
|
+
url: z.ZodString;
|
|
791
|
+
x: z.ZodNumber;
|
|
792
|
+
y: z.ZodNumber;
|
|
793
|
+
width: z.ZodNumber;
|
|
794
|
+
height: z.ZodNumber;
|
|
795
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
796
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
797
|
+
type: z.ZodLiteral<"shape">;
|
|
798
|
+
shape: z.ZodEnum<{
|
|
799
|
+
circle: "circle";
|
|
800
|
+
rect: "rect";
|
|
801
|
+
"rounded-rect": "rounded-rect";
|
|
802
|
+
}>;
|
|
803
|
+
x: z.ZodNumber;
|
|
804
|
+
y: z.ZodNumber;
|
|
805
|
+
width: z.ZodNumber;
|
|
806
|
+
height: z.ZodNumber;
|
|
807
|
+
fill: z.ZodOptional<z.ZodString>;
|
|
808
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
809
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
810
|
+
type: z.ZodLiteral<"logo">;
|
|
811
|
+
x: z.ZodNumber;
|
|
812
|
+
y: z.ZodNumber;
|
|
813
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
814
|
+
}, z.core.$strip>], "type">>;
|
|
815
|
+
}, z.core.$strip>;
|
|
816
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
817
|
+
type: z.ZodLiteral<"countdown">;
|
|
818
|
+
durationSeconds: z.ZodNumber;
|
|
819
|
+
from: z.ZodNumber;
|
|
820
|
+
label: z.ZodOptional<z.ZodString>;
|
|
821
|
+
}, z.core.$strip>], "type">>;
|
|
822
|
+
audioUrl: z.ZodOptional<z.ZodString>;
|
|
823
|
+
captions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
824
|
+
startSeconds: z.ZodNumber;
|
|
825
|
+
endSeconds: z.ZodNumber;
|
|
826
|
+
text: z.ZodString;
|
|
827
|
+
}, z.core.$strip>>>;
|
|
828
|
+
renderedUrl: z.ZodOptional<z.ZodString>;
|
|
829
|
+
}, z.core.$strip>;
|
|
830
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
831
|
+
format: z.ZodLiteral<"copy:caption">;
|
|
832
|
+
campaignId: z.ZodOptional<z.ZodString>;
|
|
833
|
+
brand: z.ZodObject<{
|
|
834
|
+
primaryColor: z.ZodString;
|
|
835
|
+
accentColor: z.ZodString;
|
|
836
|
+
textColor: z.ZodString;
|
|
837
|
+
fontFamily: z.ZodString;
|
|
838
|
+
logoUrl: z.ZodOptional<z.ZodString>;
|
|
839
|
+
businessName: z.ZodString;
|
|
840
|
+
voice: z.ZodString;
|
|
841
|
+
}, z.core.$strip>;
|
|
842
|
+
content: z.ZodObject<{
|
|
843
|
+
headline: z.ZodString;
|
|
844
|
+
body: z.ZodString;
|
|
845
|
+
hashtags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
846
|
+
platform: z.ZodEnum<{
|
|
847
|
+
"email-subject": "email-subject";
|
|
848
|
+
instagram: "instagram";
|
|
849
|
+
linkedin: "linkedin";
|
|
850
|
+
sms: "sms";
|
|
851
|
+
tiktok: "tiktok";
|
|
852
|
+
x: "x";
|
|
853
|
+
}>;
|
|
854
|
+
characterCount: z.ZodOptional<z.ZodNumber>;
|
|
855
|
+
}, z.core.$strip>;
|
|
856
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
857
|
+
format: z.ZodLiteral<"copy:headline">;
|
|
858
|
+
campaignId: z.ZodOptional<z.ZodString>;
|
|
859
|
+
brand: z.ZodObject<{
|
|
860
|
+
primaryColor: z.ZodString;
|
|
861
|
+
accentColor: z.ZodString;
|
|
862
|
+
textColor: z.ZodString;
|
|
863
|
+
fontFamily: z.ZodString;
|
|
864
|
+
logoUrl: z.ZodOptional<z.ZodString>;
|
|
865
|
+
businessName: z.ZodString;
|
|
866
|
+
voice: z.ZodString;
|
|
867
|
+
}, z.core.$strip>;
|
|
868
|
+
content: z.ZodObject<{
|
|
869
|
+
headline: z.ZodString;
|
|
870
|
+
body: z.ZodString;
|
|
871
|
+
hashtags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
872
|
+
platform: z.ZodEnum<{
|
|
873
|
+
"email-subject": "email-subject";
|
|
874
|
+
instagram: "instagram";
|
|
875
|
+
linkedin: "linkedin";
|
|
876
|
+
sms: "sms";
|
|
877
|
+
tiktok: "tiktok";
|
|
878
|
+
x: "x";
|
|
879
|
+
}>;
|
|
880
|
+
characterCount: z.ZodOptional<z.ZodNumber>;
|
|
881
|
+
}, z.core.$strip>;
|
|
882
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
883
|
+
format: z.ZodLiteral<"copy:sms">;
|
|
884
|
+
campaignId: z.ZodOptional<z.ZodString>;
|
|
885
|
+
brand: z.ZodObject<{
|
|
886
|
+
primaryColor: z.ZodString;
|
|
887
|
+
accentColor: z.ZodString;
|
|
888
|
+
textColor: z.ZodString;
|
|
889
|
+
fontFamily: z.ZodString;
|
|
890
|
+
logoUrl: z.ZodOptional<z.ZodString>;
|
|
891
|
+
businessName: z.ZodString;
|
|
892
|
+
voice: z.ZodString;
|
|
893
|
+
}, z.core.$strip>;
|
|
894
|
+
content: z.ZodObject<{
|
|
895
|
+
headline: z.ZodString;
|
|
896
|
+
body: z.ZodString;
|
|
897
|
+
hashtags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
898
|
+
platform: z.ZodEnum<{
|
|
899
|
+
"email-subject": "email-subject";
|
|
900
|
+
instagram: "instagram";
|
|
901
|
+
linkedin: "linkedin";
|
|
902
|
+
sms: "sms";
|
|
903
|
+
tiktok: "tiktok";
|
|
904
|
+
x: "x";
|
|
905
|
+
}>;
|
|
906
|
+
characterCount: z.ZodOptional<z.ZodNumber>;
|
|
907
|
+
}, z.core.$strip>;
|
|
908
|
+
}, z.core.$strip>]>>;
|
|
909
|
+
readonly $id: 'https://tangle.tools/schemas/asset-create.json';
|
|
910
|
+
readonly title: 'AssetCreate';
|
|
911
|
+
readonly description: 'A model-produced marketing asset payload before host metadata is assigned.';
|
|
912
|
+
};
|
|
256
913
|
/**
|
|
257
914
|
* Validates an unknown value as an AssetSpec, including format-specific
|
|
258
915
|
* content validation. Throws ZodError on invalid input.
|