Variable BatchInsightsEventConst
BatchInsightsEvent: ZodMiniObject<
{
events: ZodMiniArray<
ZodMiniDiscriminatedUnion<
[
ZodMiniObject<
{
anonymousId: ZodMiniOptional<ZodMiniString<string>>;
channel: ZodMiniUnion<
readonly [
ZodMiniLiteral<"mobile">,
ZodMiniLiteral<"server">,
ZodMiniLiteral<"web">,
],
>;
componentId: ZodMiniString<string>;
componentType: ZodMiniOptional<
ZodMiniUnion<
readonly [ZodMiniLiteral<(...)>, ZodMiniLiteral<(...)>],
>,
>;
context: ZodMiniObject<
{
app: ZodMiniOptional<ZodMiniObject<(...), (...)>>;
campaign: ZodMiniObject<
{
content: ...;
medium: ...;
name: ...;
source: ...;
term: ...;
},
$strip,
>;
gdpr: ZodMiniOptional<ZodMiniObject<(...), (...)>>;
library: ZodMiniObject<{ name: ...; version: ... }, $strip>;
locale: ZodMiniOptional<ZodMiniPrefault<(...)>>;
location: ZodMiniOptional<ZodMiniObject<(...), (...)>>;
page: ZodMiniOptional<ZodMiniObject<(...), (...)>>;
screen: ZodMiniOptional<ZodMiniObject<(...), (...)>>;
userAgent: ZodMiniOptional<ZodMiniString<(...)>>;
},
$strip,
>;
experienceId: ZodMiniOptional<ZodMiniString<string>>;
messageId: ZodMiniString<string>;
originalTimestamp: ZodMiniString<string>;
sentAt: ZodMiniString<string>;
timestamp: ZodMiniString<string>;
type: ZodMiniLiteral<"component">;
userId: ZodMiniOptional<ZodMiniString<string>>;
variantIndex: ZodMiniOptional<ZodMiniNumber<number>>;
viewDurationMs: ZodMiniOptional<ZodMiniNumber<number>>;
viewId: ZodMiniOptional<ZodMiniString<string>>;
},
$strip,
>,
ZodMiniObject<
{
anonymousId: ZodMiniOptional<ZodMiniString<string>>;
channel: ZodMiniUnion<
readonly [
ZodMiniLiteral<"mobile">,
ZodMiniLiteral<"server">,
ZodMiniLiteral<"web">,
],
>;
componentId: ZodMiniString<string>;
componentType: ZodMiniOptional<
ZodMiniUnion<
readonly [ZodMiniLiteral<(...)>, ZodMiniLiteral<(...)>],
>,
>;
context: ZodMiniObject<
{
app: ZodMiniOptional<ZodMiniObject<(...), (...)>>;
campaign: ZodMiniObject<
{
content: ...;
medium: ...;
name: ...;
source: ...;
term: ...;
},
$strip,
>;
gdpr: ZodMiniOptional<ZodMiniObject<(...), (...)>>;
library: ZodMiniObject<{ name: ...; version: ... }, $strip>;
locale: ZodMiniOptional<ZodMiniPrefault<(...)>>;
location: ZodMiniOptional<ZodMiniObject<(...), (...)>>;
page: ZodMiniOptional<ZodMiniObject<(...), (...)>>;
screen: ZodMiniOptional<ZodMiniObject<(...), (...)>>;
userAgent: ZodMiniOptional<ZodMiniString<(...)>>;
},
$strip,
>;
experienceId: ZodMiniOptional<ZodMiniString<string>>;
messageId: ZodMiniString<string>;
originalTimestamp: ZodMiniString<string>;
sentAt: ZodMiniString<string>;
timestamp: ZodMiniString<string>;
type: ZodMiniLiteral<"component_click">;
userId: ZodMiniOptional<ZodMiniString<string>>;
variantIndex: ZodMiniOptional<ZodMiniNumber<number>>;
},
$strip,
>,
ZodMiniObject<
{
anonymousId: ZodMiniOptional<ZodMiniString<string>>;
channel: ZodMiniUnion<
readonly [
ZodMiniLiteral<"mobile">,
ZodMiniLiteral<"server">,
ZodMiniLiteral<"web">,
],
>;
componentId: ZodMiniString<string>;
componentType: ZodMiniOptional<
ZodMiniUnion<
readonly [ZodMiniLiteral<(...)>, ZodMiniLiteral<(...)>],
>,
>;
context: ZodMiniObject<
{
app: ZodMiniOptional<ZodMiniObject<(...), (...)>>;
campaign: ZodMiniObject<
{
content: ...;
medium: ...;
name: ...;
source: ...;
term: ...;
},
$strip,
>;
gdpr: ZodMiniOptional<ZodMiniObject<(...), (...)>>;
library: ZodMiniObject<{ name: ...; version: ... }, $strip>;
locale: ZodMiniOptional<ZodMiniPrefault<(...)>>;
location: ZodMiniOptional<ZodMiniObject<(...), (...)>>;
page: ZodMiniOptional<ZodMiniObject<(...), (...)>>;
screen: ZodMiniOptional<ZodMiniObject<(...), (...)>>;
userAgent: ZodMiniOptional<ZodMiniString<(...)>>;
},
$strip,
>;
experienceId: ZodMiniOptional<ZodMiniString<string>>;
hoverDurationMs: ZodMiniNumber<number>;
hoverId: ZodMiniString<string>;
messageId: ZodMiniString<string>;
originalTimestamp: ZodMiniString<string>;
sentAt: ZodMiniString<string>;
timestamp: ZodMiniString<string>;
type: ZodMiniLiteral<"component_hover">;
userId: ZodMiniOptional<ZodMiniString<string>>;
variantIndex: ZodMiniOptional<ZodMiniNumber<number>>;
},
$strip,
>,
],
"type",
>,
>;
profile: ZodMiniObject<
{
audiences: ZodMiniArray<ZodMiniString<string>>;
id: ZodMiniString<string>;
jurisdiction: ZodMiniOptional<ZodMiniEnum<{ EU: "EU"; US: "US" }>>;
location: ZodMiniObject<
{
city: ZodMiniOptional<ZodMiniString<string>>;
continent: ZodMiniOptional<ZodMiniString<string>>;
coordinates: ZodMiniOptional<
ZodMiniObject<
{
latitude: ZodMiniNumber<number>;
longitude: ZodMiniNumber<number>;
},
$strip,
>,
>;
country: ZodMiniOptional<ZodMiniString<string>>;
countryCode: ZodMiniOptional<ZodMiniString<string>>;
postalCode: ZodMiniOptional<ZodMiniString<string>>;
region: ZodMiniOptional<ZodMiniString<string>>;
regionCode: ZodMiniOptional<ZodMiniString<string>>;
timezone: ZodMiniOptional<ZodMiniString<string>>;
},
$strip,
>;
random: ZodMiniNumber<number>;
session: ZodMiniObject<
{
activeSessionLength: ZodMiniNumber<number>;
averageSessionLength: ZodMiniNumber<number>;
count: ZodMiniNumber<number>;
id: ZodMiniOptional<ZodMiniString<string>>;
isReturningVisitor: ZodMiniBoolean<boolean>;
landingPage: ZodMiniObject<
{
path: ZodMiniString<string>;
query: ZodMiniRecord<
ZodMiniString<string>,
ZodMiniUnion<readonly [(...), (...)]>,
>;
referrer: ZodMiniString<string>;
search: ZodMiniString<string>;
title: ZodMiniOptional<ZodMiniString<string>>;
url: ZodMiniString<string>;
},
$catchall<ZodMiniJSONSchema>,
>;
},
$strip,
>;
stableId: ZodMiniString<string>;
traits: ZodMiniRecord<ZodMiniString<string>, ZodMiniJSONSchema>;
},
$strip,
>;
},
$strip,
> = ...
Zod schema describing a batched Insights event payload.