Variable ExperienceRequestDataConst
ExperienceRequestData: ZodMiniObject<
{
events: ZodMiniArray<
ZodMiniDiscriminatedUnion<
[
ZodMiniObject<
{
channel: ZodMiniUnion<
readonly [
ZodMiniLiteral<"mobile">,
ZodMiniLiteral<"server">,
ZodMiniLiteral<"web">,
],
>;
context: ZodMiniObject<
{
app: ZodMiniOptional<ZodMiniObject<(...), (...)>>;
campaign: ZodMiniObject<
{
content: ...;
medium: ...;
name: ...;
source: ...;
term: ...;
},
$strip,
>;
gdpr: ZodMiniObject<{ isConsentGiven: ... }, $strip>;
library: ZodMiniObject<{ name: ...; version: ... }, $strip>;
locale: ZodMiniString<string>;
location: ZodMiniOptional<ZodMiniObject<(...), (...)>>;
page: ZodMiniOptional<ZodMiniObject<(...), (...)>>;
screen: ZodMiniOptional<ZodMiniObject<(...), (...)>>;
userAgent: ZodMiniOptional<ZodMiniString<(...)>>;
},
$strip,
>;
messageId: ZodMiniString<string>;
originalTimestamp: ZodMiniISODateTime;
sentAt: ZodMiniISODateTime;
timestamp: ZodMiniISODateTime;
type: ZodMiniLiteral<"alias">;
userId: ZodMiniOptional<ZodMiniString<string>>;
},
$strip,
>,
ZodMiniObject<
{
channel: ZodMiniUnion<
readonly [
ZodMiniLiteral<"mobile">,
ZodMiniLiteral<"server">,
ZodMiniLiteral<"web">,
],
>;
componentId: ZodMiniString<string>;
componentType: ZodMiniUnion<
readonly [ZodMiniLiteral<"Entry">, ZodMiniLiteral<"Variable">],
>;
context: ZodMiniObject<
{
app: ZodMiniOptional<ZodMiniObject<(...), (...)>>;
campaign: ZodMiniObject<
{
content: ...;
medium: ...;
name: ...;
source: ...;
term: ...;
},
$strip,
>;
gdpr: ZodMiniObject<{ isConsentGiven: ... }, $strip>;
library: ZodMiniObject<{ name: ...; version: ... }, $strip>;
locale: ZodMiniString<string>;
location: ZodMiniOptional<ZodMiniObject<(...), (...)>>;
page: ZodMiniOptional<ZodMiniObject<(...), (...)>>;
screen: ZodMiniOptional<ZodMiniObject<(...), (...)>>;
userAgent: ZodMiniOptional<ZodMiniString<(...)>>;
},
$strip,
>;
experienceId: ZodMiniOptional<ZodMiniString<string>>;
messageId: ZodMiniString<string>;
originalTimestamp: ZodMiniISODateTime;
sentAt: ZodMiniISODateTime;
timestamp: ZodMiniISODateTime;
type: ZodMiniLiteral<"component">;
userId: ZodMiniOptional<ZodMiniString<string>>;
variantIndex: ZodMiniNumber<number>;
},
$strip,
>,
ZodMiniObject<
{
channel: ZodMiniUnion<
readonly [
ZodMiniLiteral<"mobile">,
ZodMiniLiteral<"server">,
ZodMiniLiteral<"web">,
],
>;
context: ZodMiniObject<
{
app: ZodMiniOptional<ZodMiniObject<(...), (...)>>;
campaign: ZodMiniObject<
{
content: ...;
medium: ...;
name: ...;
source: ...;
term: ...;
},
$strip,
>;
gdpr: ZodMiniObject<{ isConsentGiven: ... }, $strip>;
library: ZodMiniObject<{ name: ...; version: ... }, $strip>;
locale: ZodMiniString<string>;
location: ZodMiniOptional<ZodMiniObject<(...), (...)>>;
page: ZodMiniOptional<ZodMiniObject<(...), (...)>>;
screen: ZodMiniOptional<ZodMiniObject<(...), (...)>>;
userAgent: ZodMiniOptional<ZodMiniString<(...)>>;
},
$strip,
>;
messageId: ZodMiniString<string>;
originalTimestamp: ZodMiniISODateTime;
sentAt: ZodMiniISODateTime;
timestamp: ZodMiniISODateTime;
type: ZodMiniLiteral<"group">;
userId: ZodMiniOptional<ZodMiniString<string>>;
},
$strip,
>,
],
"type",
>,
>;
options: ZodMiniOptional<
ZodMiniObject<
{ features: ZodMiniOptional<ZodMiniArray<ZodMiniString<string>>> },
$strip,
>,
>;
},
$strip,
> = ...
Zod schema describing the data payload for an experience request.