using MediatR;

namespace ChatService.API.Application.Commands.Keys;

/// <summary>
/// EN: Command to rotate the signed pre-key.
/// VI: Command để xoay vòng signed pre-key.
/// </summary>
public record RotatePreKeyCommand(
    Guid ChatUserId,
    string NewSignedPreKey,
    string NewSignedPreKeySignature
) : IRequest<RotatePreKeyResult>;

public record RotatePreKeyResult(
    DateTime RotatedAt
);
