export enum EventLogType { LOG = 'LOG', EVENT = 'EVENT', } export enum Level { ERROR = 'ERROR', DEBUG = 'DEBUG', INFO = 'INFO', } type BaseEventLog = { type: EventLogType customer_session?: string checkout_session?: string original_created_at: string } export type Log = BaseEventLog & { sdk_version: string os?: string url: string method: string headers?: object request?: object response?: object status_code?: number trace_id?: string metadata?: unknown country: string organization_name?: string level: Level stack_trace?: string } export type Event = BaseEventLog & { source: string event: string entity_code?: string user_email?: string description: string headers?: object } export type Batch = Log | Event