package com.correx.core.approvals.model

import com.correx.core.approvals.GrantScope
import com.correx.core.approvals.Tier
import com.correx.core.events.types.GrantId
import kotlinx.datetime.Instant
import kotlinx.serialization.Serializable

@Serializable
data class ApprovalGrant(
    val id: GrantId,
    val scope: GrantScope,
    val permittedTiers: Set<Tier>,
    val reason: String,
    val timestamp: Instant,
    val expiresAt: Instant? = null
)
