Variable AnalyticsEventSchemaConst
AnalyticsEventSchema: ZodObject<{
context: ZodOptional<ZodObject<{
hostId: ZodString;
library: ZodEnum<["agent-play-server", "agent-play-client"]>;
sid: ZodOptional<ZodString>;
snapshotRev: ZodOptional<ZodNumber>;
}, "strip", ZodTypeAny, {
hostId: string;
library: "agent-play-server" | "agent-play-client";
sid?: string;
snapshotRev?: number;
}, {
hostId: string;
library: "agent-play-server" | "agent-play-client";
sid?: string;
snapshotRev?: number;
}>>;
distinctId: ZodString;
event: ZodString;
messageId: ZodString;
properties: ZodRecord<ZodString, ZodUnion<[ZodString, ZodNumber, ZodBoolean, ZodNull]>>;
timestamp: ZodString;
}, "strip", ZodTypeAny, {
context?: {
hostId: string;
library: "agent-play-server" | "agent-play-client";
sid?: string;
snapshotRev?: number;
};
distinctId: string;
event: string;
messageId: string;
properties: Record<string,
| null
| string
| number
| boolean>;
timestamp: string;
}, {
context?: {
hostId: string;
library: "agent-play-server" | "agent-play-client";
sid?: string;
snapshotRev?: number;
};
distinctId: string;
event: string;
messageId: string;
properties: Record<string,
| null
| string
| number
| boolean>;
timestamp: string;
}> = ...
Segment-style track envelope for in-platform analytics.