Skip to content

Variable: Event ​

ts
const Event: z.ZodObject<{
  amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
  attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
  cardFingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
  currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
  deviceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
  email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
  id: z.ZodString;
  idempotencyKey: z.ZodString;
  ingestedAt: z.ZodCoercedDate<unknown>;
  ip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
  occurredAt: z.ZodCoercedDate<unknown>;
  subjectId: z.ZodGUID;
  tenantId: z.ZodGUID;
  type: z.ZodString;
}, z.core.$strip>;

An append-only fact about a subject (a transaction, a login, a signup). Promoted keys are indexed for velocity rules; everything else lives in attributes.

Released under the Apache-2.0 License.