/**
 * Delivery domain state — outbound delivery attempts and their outcomes.
 */
export function createInitialDeliveryState() {
    return {
        revision: 0,
        lastUpdatedAt: 0,
        source: 'init',
        deliveryAttempts: new Map(),
        attemptIds: [],
        pendingAttemptIds: [],
        failedAttemptIds: [],
        deadLetterIds: [],
        totalQueued: 0,
        totalStarted: 0,
        totalSucceeded: 0,
        totalFailed: 0,
        totalDeadLettered: 0,
    };
}
