Variable PreviewCreativeRequestSchemaConst
PreviewCreativeRequestSchema: ZodUnion<
readonly [
ZodObject<
{
request_type: ZodLiteral<"single">;
format_id: ZodObject<
{
agent_url: ZodString;
id: ZodString;
width: ZodOptional<ZodNullable<ZodNumber>>;
height: ZodOptional<ZodNullable<ZodNumber>>;
duration_ms: ZodOptional<ZodNullable<ZodNumber>>;
},
$strip,
>;
creative_manifest: ZodObject<
{
format_id: ZodObject<
{
agent_url: ZodString;
id: ZodString;
width: ZodOptional<ZodNullable<ZodNumber>>;
height: ZodOptional<ZodNullable<ZodNumber>>;
duration_ms: ZodOptional<ZodNullable<ZodNumber>>;
},
$strip,
>;
promoted_offering: ZodOptional<ZodNullable<ZodString>>;
assets: ZodRecord<
ZodString,
ZodUnion<
readonly [
ZodIntersection<
ZodObject<(...), (...)>,
ZodObject<(...), (...)>,
>,
ZodIntersection<ZodObject<(...), (...)>, ZodObject<(...), (...)>>,
ZodObject<
{ url: ...; duration_ms: ...; format: ...; bitrate_kbps: ... },
$strip,
>,
ZodUnion<readonly [(...), (...)]>,
ZodObject<{ content: ...; language: ... }, $strip>,
ZodObject<{ url: ...; url_type: ...; description: ... }, $strip>,
ZodObject<{ content: ...; version: ... }, $strip>,
ZodObject<{ content: ...; module_type: ... }, $strip>,
ZodObject<
{
url: ...;
method: ...;
timeout_ms: ...;
supported_macros: ...;
required_macros: ...;
response_type: ...;
security: ...;
},
$strip,
>,
ZodObject<{ content: ...; media: ... }, $strip>,
ZodUnion<readonly [(...), (...)]>,
ZodObject<
{
brand_manifest: ...;
product_selectors: ...;
offerings: ...;
asset_selectors: ...;
},
$strip,
>,
],
>,
>;
ext: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
},
$strip,
>;
inputs: ZodOptional<
ZodNullable<
ZodArray<
ZodObject<
{
name: ZodString;
macros: ZodOptional<ZodNullable<(...)>>;
context_description: ZodOptional<ZodNullable<(...)>>;
},
$strip,
>,
>,
>,
>;
template_id: ZodOptional<ZodNullable<ZodString>>;
output_format: ZodOptional<
ZodNullable<
ZodUnion<readonly [ZodLiteral<"url">, ZodLiteral<"html">]>,
>,
>;
context: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
ext: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
},
$strip,
>,
ZodObject<
{
request_type: ZodLiteral<"batch">;
requests: ZodTuple<
[
ZodObject<
{
format_id: ZodObject<
{
agent_url: ZodString;
id: ZodString;
width: ZodOptional<(...)>;
height: ZodOptional<(...)>;
duration_ms: ZodOptional<(...)>;
},
$strip,
>;
creative_manifest: ZodObject<
{
format_id: ZodObject<(...), (...)>;
promoted_offering: ZodOptional<(...)>;
assets: ZodRecord<(...), (...)>;
ext: ZodOptional<(...)>;
},
$strip,
>;
inputs: ZodOptional<ZodNullable<ZodArray<(...)>>>;
template_id: ZodOptional<ZodNullable<ZodString>>;
output_format: ZodOptional<ZodNullable<ZodUnion<(...)>>>;
},
$strip,
>,
],
ZodObject<
{
format_id: ZodObject<
{
agent_url: ZodString;
id: ZodString;
width: ZodOptional<ZodNullable<(...)>>;
height: ZodOptional<ZodNullable<(...)>>;
duration_ms: ZodOptional<ZodNullable<(...)>>;
},
$strip,
>;
creative_manifest: ZodObject<
{
format_id: ZodObject<
{
agent_url: ...;
id: ...;
width: ...;
height: ...;
duration_ms: ...;
},
$strip,
>;
promoted_offering: ZodOptional<ZodNullable<(...)>>;
assets: ZodRecord<ZodString, ZodUnion<(...)>>;
ext: ZodOptional<ZodNullable<(...)>>;
},
$strip,
>;
inputs: ZodOptional<ZodNullable<ZodArray<ZodObject<(...), (...)>>>>;
template_id: ZodOptional<ZodNullable<ZodString>>;
output_format: ZodOptional<
ZodNullable<ZodUnion<readonly [(...), (...)]>>,
>;
},
$strip,
>,
>;
output_format: ZodOptional<
ZodNullable<
ZodUnion<readonly [ZodLiteral<"url">, ZodLiteral<"html">]>,
>,
>;
context: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
ext: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
},
$strip,
>,
],
> = ...