Switch default email provider to mail.bblbb.com, queue failed CPA auth pushes for retry, and refresh local auth/account outputs.
51 lines
1.1 KiB
Python
51 lines
1.1 KiB
Python
"""CPA (CLIProxyAPI) xai auth 组装 / 写盘 / 推送远端。"""
|
|
|
|
from .client import CpaPushError, push_auth_file
|
|
from .push_queue import (
|
|
PENDING_NAME,
|
|
flush_push_pending,
|
|
load_pending,
|
|
push_with_queue,
|
|
record_push_failure,
|
|
remove_push_pending,
|
|
)
|
|
from .schema import (
|
|
API_BASE_URL,
|
|
CLI_BASE_URL,
|
|
CLIENT_ID,
|
|
DEFAULT_BASE_URL,
|
|
DEFAULT_HEADERS,
|
|
GROK_TOKEN_UA,
|
|
GROK_VERSION,
|
|
REDIRECT_URI,
|
|
TOKEN_ENDPOINT,
|
|
build_cpa_xai_auth,
|
|
credential_file_name,
|
|
expired_from_access_token,
|
|
)
|
|
from .writer import write_cpa_xai_auth
|
|
|
|
__all__ = [
|
|
"API_BASE_URL",
|
|
"CLI_BASE_URL",
|
|
"CLIENT_ID",
|
|
"DEFAULT_BASE_URL",
|
|
"DEFAULT_HEADERS",
|
|
"GROK_TOKEN_UA",
|
|
"GROK_VERSION",
|
|
"PENDING_NAME",
|
|
"REDIRECT_URI",
|
|
"TOKEN_ENDPOINT",
|
|
"CpaPushError",
|
|
"build_cpa_xai_auth",
|
|
"credential_file_name",
|
|
"expired_from_access_token",
|
|
"flush_push_pending",
|
|
"load_pending",
|
|
"push_auth_file",
|
|
"push_with_queue",
|
|
"record_push_failure",
|
|
"remove_push_pending",
|
|
"write_cpa_xai_auth",
|
|
]
|