<?php
declare(strict_types=1);
namespace GNexus\GAuth\DTO;
final readonly class WebhookEvent
{
/**
* @param array<string, mixed> $targetIdentifiers
* @param array<string, mixed> $actorIdentifiers
* @param array<string, mixed> $metadata
* @param array<string, mixed> $rawPayload
*/
public function __construct(
public ?string $eventId,
public string $eventType,
public ?\DateTimeImmutable $occurredAt = null,
public array $targetIdentifiers = [],
public array $actorIdentifiers = [],
public array $metadata = [],
public array $rawPayload = [],
) {
}
}