package heartbeat

import "time"

type Config struct {
	BotID       string
	OwnerUserID string
	Interval    int
}

type Log struct {
	ID           string     `json:"id"`
	BotID        string     `json:"bot_id"`
	Status       string     `json:"status"`
	ResultText   string     `json:"result_text"`
	ErrorMessage string     `json:"error_message"`
	Usage        any        `json:"usage,omitempty"`
	StartedAt    time.Time  `json:"started_at"`
	CompletedAt  *time.Time `json:"completed_at,omitempty"`
}

type ListLogsResponse struct {
	Items []Log `json:"items"`
}
