#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""兼容入口：保留 test1.py 的运行方式，实际实现位于 tyyp_app 包。"""
from __future__ import annotations

from tyyp_app.api import app
from tyyp_app.automation import input_code, submit_code, submit_phone
from tyyp_app.cli import main
from tyyp_app.config import (
    DEFAULT_PHONE,
    DEFAULT_TARGET_URL,
    FLOW_CLEANUP_INTERVAL_SECONDS,
    GET_YAN_ZHEN_MA_URL,
    MOBILE_UA_POOL,
    ORDER_PACKET_URL,
    PROJECT_ROOT,
    PROXY_FETCH_HEADERS,
    PROXY_SOURCE_URL,
    SESSION_IDLE_SECONDS,
)
from tyyp_app.schemas import (
    ApiSubmitCodeRequest,
    ApiSubmitCodeResponse,
    ApiSubmitPhoneRequest,
    ApiSubmitPhoneResponse,
)
from tyyp_app.services import FlowService, FlowSessionStore, ProxyProvider

__all__ = [
    "app",
    "main",
    "submit_phone",
    "submit_code",
    "input_code",
    "ApiSubmitPhoneRequest",
    "ApiSubmitPhoneResponse",
    "ApiSubmitCodeRequest",
    "ApiSubmitCodeResponse",
    "FlowService",
    "FlowSessionStore",
    "ProxyProvider",
    "DEFAULT_PHONE",
    "DEFAULT_TARGET_URL",
    "GET_YAN_ZHEN_MA_URL",
    "ORDER_PACKET_URL",
    "PROXY_SOURCE_URL",
    "SESSION_IDLE_SECONDS",
    "FLOW_CLEANUP_INTERVAL_SECONDS",
    "MOBILE_UA_POOL",
    "PROXY_FETCH_HEADERS",
    "PROJECT_ROOT",
]


if __name__ == "__main__":
    main()
