Variable ExperienceRequestDataConst
ExperienceRequestData: ZodMiniObject<
{
events: ZodMiniArray<
ZodMiniDiscriminatedUnion<
[
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>;
viewDurationMs: ZodMiniOptional<ZodMiniNumber<number>>;
viewId: ZodMiniOptional<ZodMiniString<string>>;
},
$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,
>;
entityId: ZodMiniString<string>;
entityKind: ZodMiniEnum<
{
Experience: "Experience";
Fragment: "Fragment";
InlineComponent: "InlineComponent";
InlineFragment: "InlineFragment";
},
>;
entityKindId: ZodMiniOptional<ZodMiniString<string>>;
entryIds: ZodMiniOptional<ZodMiniArray<ZodMiniString<string>>>;
messageId: ZodMiniString<string>;
optimizationId: ZodMiniOptional<ZodMiniString<string>>;
originalTimestamp: ZodMiniISODateTime;
parameters: ZodMiniOptional<
ZodMiniRecord<ZodMiniString<string>, ZodMiniJSONSchema>,
>;
parentExperienceId: ZodMiniOptional<ZodMiniString<string>>;
sentAt: ZodMiniISODateTime;
timestamp: ZodMiniISODateTime;
type: ZodMiniLiteral<"exo_node_view">;
userId: ZodMiniOptional<ZodMiniString<string>>;
variantId: ZodMiniOptional<ZodMiniString<string>>;
variantIndex: ZodMiniOptional<ZodMiniNumber<number>>;
viewDurationMs: ZodMiniNumberFormat;
viewId: ZodMiniString<string>;
},
$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;
traits: ZodMiniRecord<ZodMiniString<string>, ZodMiniJSONSchema>;
type: ZodMiniLiteral<"identify">;
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.