"""Shared types for the arXiv API.

These are kept separate from the client implementation so both the CLI and the
API client can share validated, well-named options.
"""

from __future__ import annotations

from enum import Enum


class SortBy(str, Enum):
    RELEVANCE = "relevance"
    LAST_UPDATED_DATE = "lastUpdatedDate"
    SUBMITTED_DATE = "submittedDate"


class SortOrder(str, Enum):
    ASCENDING = "ascending"
    DESCENDING = "descending"

