package verificationimp

import (
	"github.com/tech/sendico/pkg/model"
)

type verificationCodeRequest struct {
	Purpose        string `json:"purpose"`
	Target         string `json:"target,omitempty"`
	IdempotencyKey string `json:"idempotencyKey"`
}

type codeVerificationRequest struct {
	verificationCodeRequest `json:",inline"`
	Code                    string                  `json:"code"`
	SessionIdentifier       model.SessionIdentifier `json:"sessionIdentifier"`
}

type verificationResponse struct {
	IdempotencyKey  string `json:"idempotencyKey"`
	TTLSeconds      int    `json:"ttl_seconds"`
	CooldownSeconds int    `json:"cooldown_seconds"`
	Target          string `json:"target"`
}
