import { Channels } from '../enums/channels.js'; import { EventStatus } from '../enums/eventStatus.js'; /** * Represents an event callback received for a verification request. */ type EventCallback = { /** * The ID of the verification request associated with the event. */ request_id: string; /** * The date and time when the event was triggered in ISO 8601 format. */ triggered_at: string; /** * The type of response for the event. */ type: string; /** * The communication channel for the verification request. */ channel: Channels; /** * The status of the event. */ status: EventStatus; /** * The date and time when the verification request was completed * in ISO 8601 format. */ finalized_at: string; /** * (Optional) The client reference given in the original Verify request. */ client_ref?: string; }; export type { EventCallback };