# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# Copyright (c) 2025-2026 Dmitrii Gagarin aka madgagarin


"""
Centralized constants for the Avtomatika protocol.
(Legacy wrapper, pointing to rxon.constants)
"""

from rxon.constants import (
    AUTH_HEADER_CLIENT,
    AUTH_HEADER_WORKER,
    COMMAND_CANCEL_TASK,
    ENDPOINT_TASK_NEXT,
    ENDPOINT_TASK_RESULT,
    ENDPOINT_WORKER_HEARTBEAT,
    ENDPOINT_WORKER_REGISTER,
    ERROR_CODE_CONTRACT_VIOLATION,
    ERROR_CODE_DEPENDENCY,
    ERROR_CODE_INTEGRITY_MISMATCH,
    ERROR_CODE_INTERNAL,
    ERROR_CODE_INVALID_INPUT,
    ERROR_CODE_LATE_RESULT,
    ERROR_CODE_PERMANENT,
    ERROR_CODE_RESOURCE_EXHAUSTED,
    ERROR_CODE_SECURITY,
    ERROR_CODE_TIMEOUT,
    ERROR_CODE_TRANSIENT,
    EVENT_TYPE_PROGRESS,
    IGNORED_REASON_CANCELLED,
    IGNORED_REASON_LATE,
    IGNORED_REASON_MISMATCH,
    IGNORED_REASON_NOT_FOUND,
    IGNORED_REASON_STALE,
    JOB_STATUS_CANCELLED,
    JOB_STATUS_ERROR,
    JOB_STATUS_FAILED,
    JOB_STATUS_FINISHED,
    JOB_STATUS_PENDING,
    JOB_STATUS_QUARANTINED,
    JOB_STATUS_RUNNING,
    JOB_STATUS_WAITING_FOR_HUMAN,
    JOB_STATUS_WAITING_FOR_PARALLEL,
    JOB_STATUS_WAITING_FOR_WORKER,
    PROTOCOL_VERSION,
    PROTOCOL_VERSION_HEADER,
    STS_TOKEN_ENDPOINT,
    TASK_STATUS_CANCELLED,
    TASK_STATUS_FAILURE,
    TASK_STATUS_SUCCESS,
    WORKER_API_PREFIX,
    WS_ENDPOINT,
)

__all__ = [
    "AUTH_HEADER_CLIENT",
    "AUTH_HEADER_WORKER",
    "COMMAND_CANCEL_TASK",
    "ENDPOINT_TASK_NEXT",
    "ENDPOINT_TASK_RESULT",
    "ENDPOINT_WORKER_HEARTBEAT",
    "ENDPOINT_WORKER_REGISTER",
    "ERROR_CODE_DEPENDENCY",
    "ERROR_CODE_INTEGRITY_MISMATCH",
    "ERROR_CODE_INTERNAL",
    "ERROR_CODE_INVALID_INPUT",
    "ERROR_CODE_LATE_RESULT",
    "ERROR_CODE_PERMANENT",
    "ERROR_CODE_RESOURCE_EXHAUSTED",
    "ERROR_CODE_CONTRACT_VIOLATION",
    "ERROR_CODE_SECURITY",
    "ERROR_CODE_TIMEOUT",
    "ERROR_CODE_TRANSIENT",
    "IGNORED_REASON_CANCELLED",
    "IGNORED_REASON_LATE",
    "IGNORED_REASON_MISMATCH",
    "IGNORED_REASON_NOT_FOUND",
    "IGNORED_REASON_STALE",
    "JOB_STATUS_CANCELLED",
    "JOB_STATUS_ERROR",
    "JOB_STATUS_FAILED",
    "JOB_STATUS_FINISHED",
    "JOB_STATUS_PENDING",
    "JOB_STATUS_QUARANTINED",
    "JOB_STATUS_RUNNING",
    "JOB_STATUS_WAITING_FOR_HUMAN",
    "JOB_STATUS_WAITING_FOR_PARALLEL",
    "JOB_STATUS_WAITING_FOR_WORKER",
    "EVENT_TYPE_PROGRESS",
    "PROTOCOL_VERSION",
    "PROTOCOL_VERSION_HEADER",
    "STS_TOKEN_ENDPOINT",
    "TASK_STATUS_CANCELLED",
    "TASK_STATUS_FAILURE",
    "TASK_STATUS_SUCCESS",
    "WORKER_API_PREFIX",
    "WS_ENDPOINT",
]
