MCPcopy Create free account

hub / github.com/TheSmallHanCat/flow2api / functions

Functions1,214 in github.com/TheSmallHanCat/flow2api

↓ 1 callersMethodget_resident_project_ids
获取所有当前共享常驻标签页的 slot_id 列表。
src/services/browser_captcha_personal.py:12037
↓ 1 callersFunctionget_runtime_status
(runtime_kind: str)
src/core/browser_runtime_status.py:99
↓ 1 callersMethodget_system_info_stats
Get lightweight system counters used by admin dashboard
src/core/database.py:1063
↓ 1 callersMethodget_token
( self, project_id: str, action: str = "IMAGE_GENERATION", timeout: int = 20,
src/services/browser_captcha_extension.py:156
↓ 1 callersMethodget_token_bundle
( self, project_id: str, action: str = "IMAGE_GENERATION", token_id: Optional[
src/services/browser_captcha_personal.py:11324
↓ 1 callersMethodget_token_by_email
Get token by email
src/core/database.py:982
↓ 1 callersMethodget_token_by_st
Get token by ST
src/core/database.py:972
↓ 1 callersMethodget_token_stats
Get token statistics
src/core/database.py:1211
↓ 1 callersMethodget_token_with_metadata
( self, project_id: str, action: str = "IMAGE_GENERATION", token_id: Optional[
src/services/browser_captcha_personal.py:13668
↓ 1 callersMethodget_unavailable_reason
给出更明确的“无可用账号”原因,优先用于分辨率/tier 档位提示。
src/services/load_balancer.py:317
↓ 1 callersMethodget_video_remaining
Get remaining video concurrency for token Args: token_id: Token ID Returns: Remaining count or None
src/services/concurrency_manager.py:242
↓ 1 callersFunctionhandleGetToken
(data)
extension/background.js:141
↓ 1 callersMethodhandle_message
(self, websocket: WebSocket, data: str)
src/services/browser_captcha_extension.py:121
↓ 1 callersMethodhas_connection_for_token
(self, token_id: Optional[int])
src/services/browser_captcha_extension.py:117
↓ 1 callersMethodhas_shared_browser
(self)
src/services/browser_captcha.py:2074
↓ 1 callersMethodidle_seconds
(self)
src/services/browser_captcha.py:2069
↓ 1 callersMethodincrement_error_count
Increment error count with daily reset Updates two counters: - error_count: Historical total errors (never reset) - consecuti
src/core/database.py:1281
↓ 1 callersMethodincrement_image_count
Increment image generation count with daily reset
src/core/database.py:1221
↓ 1 callersMethodinitialize
Initialize concurrency counters from token list Args: tokens: List of Token objects with image_concurrency and video_con
src/services/concurrency_manager.py:21
↓ 1 callersMethodinvalidate_token
当检测到 token 无效时调用,重建当前项目最近映射的共享标签页。 Args: project_id: 项目 ID
src/services/browser_captcha_personal.py:11547
↓ 1 callersFunctionisValidWsUrl
(value)
extension/options.js:25
↓ 1 callersMethodis_resident_mode_active
检查是否有任何常驻标签页激活
src/services/browser_captcha_personal.py:12029
↓ 1 callersFunctionloadSettings
()
extension/options.js:34
↓ 1 callersMethodlogin
( self, google_cookies_raw: str, proxy: Optional[str] = None, email: Optional[
src/services/protocol_login.py:192
↓ 1 callersFunctionmerge_browser_cookie_payloads
( base_cookie: Any, new_cookie_items: Any, default_url: str = DEFAULT_COOKIE_URL, )
src/services/browser_cookie_utils.py:245
↓ 1 callersMethodobserve
(self, *args: Any, **kwargs: Any)
src/core/monitoring.py:38
↓ 1 callersMethodpoll_concatenation_status
轮询拼接任务状态,直到完成或超时 Args: at: 认证 token operation_name: 拼接任务的 operation name timeout: 超时秒数
src/services/flow_client.py:3624
↓ 1 callersMethodprefill_remote_browser_for_tokens
(self, tokens: List[Any], action: str = "IMAGE_GENERATION")
src/services/flow_client.py:4485
↓ 1 callersMethodrecord_success
Record successful request (reset consecutive error count) This method resets error_count to 0, which is used for auto-disable threshold check
src/services/token_manager.py:977
↓ 1 callersMethodrecord_usage
Record token usage
src/services/token_manager.py:953
↓ 1 callersMethodrefresh_credits
刷新Token余额 Returns: credits
src/services/token_manager.py:1060
↓ 1 callersMethodrelease_pending
(self, token_id: int, for_image_generation: bool = False, for_video_generation: bool = False)
src/services/load_balancer.py:44
↓ 1 callersMethodreload_browser_count
???????????????????????
src/services/browser_captcha.py:2644
↓ 1 callersMethodreload_config
Reload configuration from file
src/core/config.py:59
↓ 1 callersMethodremove_token
Remove all concurrency state for a deleted token.
src/services/concurrency_manager.py:295
↓ 1 callersFunctionrender_main_metrics
(db: Any, concurrency_manager: Optional[Any] = None)
src/core/monitoring.py:514
↓ 1 callersMethodreport_error
Handle upstream errors; recycle the browser only for explicit reCAPTCHA evaluation failures.
src/services/browser_captcha.py:2988
↓ 1 callersMethodreport_request_finished
上层通知本次请求已完成;browser 模式仅保留常驻浏览器,不在成功后主动关闭。
src/services/browser_captcha.py:3017
↓ 1 callersFunctionrun
()
extension/background.js:168
↓ 1 callersMethodrun_concatenation
调用 Google runVideoFxConcatenation API 拼接视频 Args: at: 认证 token original_media_id: 原始视频的 mediaGenerati
src/services/flow_client.py:3576
↓ 1 callersMethodrun_protocol_refresh_once
Refresh protocol-mode tokens whose ST refresh interval is due.
src/services/token_manager.py:860
↓ 1 callersMethodset_admin_password_from_db
Set admin password from database
src/core/config.py:296
↓ 1 callersMethodset_admin_username_from_db
Set admin username from database
src/core/config.py:79
↓ 1 callersMethodset_browser_count
设置浏览器打码实例数量。
src/core/config.py:433
↓ 1 callersMethodset_browser_personal_fresh_restart_every_n_solves
设置内置浏览器 fresh profile 轮换阈值。
src/core/config.py:536
↓ 1 callersMethodset_cache_base_url
Set cache base URL
src/core/config.py:395
↓ 1 callersMethodset_cache_enabled
Set cache enabled status
src/core/config.py:373
↓ 1 callersMethodset_cache_timeout
Set cache timeout in seconds
src/core/config.py:384
↓ 1 callersMethodset_capmonster_api_key
Set CapMonster API key
src/core/config.py:585
↓ 1 callersMethodset_capmonster_base_url
Set CapMonster base URL
src/core/config.py:596
↓ 1 callersMethodset_capsolver_api_key
Set CapSolver API key
src/core/config.py:629
↓ 1 callersMethodset_capsolver_base_url
Set CapSolver base URL
src/core/config.py:640
↓ 1 callersMethodset_captcha_method
Set captcha method
src/core/config.py:407
↓ 1 callersMethodset_ezcaptcha_api_key
Set EzCaptcha API key
src/core/config.py:607
↓ 1 callersMethodset_ezcaptcha_base_url
Set EzCaptcha base URL
src/core/config.py:618
↓ 1 callersMethodset_personal_idle_tab_ttl_seconds
设置内置浏览器打码标签页空闲超时(秒)
src/core/config.py:521
↓ 1 callersMethodset_personal_max_resident_tabs
设置内置浏览器打码单实例共享标签页上限
src/core/config.py:509
↓ 1 callersMethodset_personal_project_pool_size
设置单个 Token 默认维护的项目池数量,仅影响项目轮换
src/core/config.py:515
↓ 1 callersMethodset_remote_browser_api_key
Set remote browser captcha service API key
src/core/config.py:662
↓ 1 callersMethodset_remote_browser_base_url
Set remote browser captcha service base URL
src/core/config.py:651
↓ 1 callersMethodset_remote_browser_timeout
Set remote browser captcha request timeout (seconds)
src/core/config.py:677
↓ 1 callersMethodset_yescaptcha_api_key
Set YesCaptcha API key
src/core/config.py:547
↓ 1 callersMethodset_yescaptcha_base_url
Set YesCaptcha base URL
src/core/config.py:558
↓ 1 callersMethodset_yescaptcha_task_type
Set YesCaptcha reCAPTCHA V3 task type
src/core/config.py:574
↓ 1 callersMethodshutdown_idle_runtime_if_needed
( self, *, idle_ttl_seconds: Optional[int] = None, reason: str = "idle_runtime
src/services/browser_captcha_personal.py:2439
↓ 1 callersFunctionsleep
(ms)
extension/background.js:40
↓ 1 callersMethodstart_cleanup_task
Start background cleanup task
src/services/file_cache.py:180
↓ 1 callersMethodstart_protocol_refresher
(self)
src/services/token_manager.py:902
↓ 1 callersMethodstart_resident_mode
启动常驻模式(初始化浏览器,get_token 会自动创建标签页)
src/services/browser_captcha_personal.py:9499
↓ 1 callersMethodstop_protocol_refresher
(self)
src/services/token_manager.py:907
↓ 1 callersMethodupdate_call_logic_config
Update token call logic configuration.
src/core/database.py:1486
↓ 1 callersMethodupdate_captcha_config
Update captcha configuration
src/core/database.py:1851
↓ 1 callersFunctionupdate_main_runtime_metrics
(db: Any, concurrency_manager: Optional[Any] = None)
src/core/monitoring.py:380
↓ 1 callersMethodupdate_plugin_config
Update plugin configuration
src/core/database.py:1999
↓ 1 callersMethodupsample_image
放大图片到 2K/4K Args: at: Access Token project_id: 项目ID media_id: 图片的 mediaId (从 batchGenerateImages 返回的 medi
src/services/flow_client.py:1744
↓ 1 callersMethodupsample_video
视频放大到 4K/1080P,返回 task_id Args: at: Access Token project_id: 项目ID video_media_id: 视频的 mediaId
src/services/flow_client.py:3722
↓ 1 callersFunctionwaitForTabReady
(tabId, timeoutMs = 12000)
extension/background.js:44
Method__aenter__
(self)
tests/test_api_captcha_fingerprint.py:26
Method__aexit__
(self, *args)
tests/test_api_captcha_fingerprint.py:29
Method__await__
(self)
src/services/browser_captcha_personal.py:893
Method__call__
(self, **response)
src/services/browser_captcha_personal.py:880
Method__init__
(self)
src/core/config.py:30
Method__init__
(self, db_path: str = None)
src/core/database.py:16
Method__init__
(self, *args: Any, **kwargs: Any)
src/core/monitoring.py:26
Method__init__
(self, *args: Any, **kwargs: Any)
src/core/monitoring.py:45
Method__init__
(self)
src/core/logger.py:12
Method__init__
(self, flow_client, token_manager, load_balancer, db, concurrency_manager, proxy_manager)
src/services/generation_handler.py:1073
Method__init__
(self, cdp_generator, tx_id: int)
src/services/browser_captcha_personal.py:872
Method__init__
( self, tab, slot_id: str, project_id: Optional[str] = None, *,
src/services/browser_captcha_personal.py:1382
Method__init__
初始化服务
src/services/browser_captcha_personal.py:1455
Method__init__
(self, db=None)
src/services/browser_captcha_personal.py:12292
Method__init__
(self, token_manager, concurrency_manager: Optional[ConcurrencyManager] = None)
src/services/load_balancer.py:20
Method__init__
(self, db: Database)
src/services/proxy_manager.py:10
Method__init__
Initialize file cache Args: cache_dir: Cache directory path default_timeout: Default cache timeout in second
src/services/file_cache.py:19
Method__init__
(self, proxy_manager, db=None)
src/services/flow_client.py:42
Method__init__
(self, token_id: int, user_data_dir: str, db=None)
src/services/browser_captcha.py:401
Method__init__
(self, db=None)
src/services/browser_captcha.py:2549
Method__init__
(self, db=None)
src/services/browser_captcha_extension.py:25
Method__init__
(self, db: Database, flow_client: FlowClient)
src/services/token_manager.py:18
Method__init__
Initialize concurrency manager
src/services/concurrency_manager.py:11
← previousnext →801–900 of 1,214, ranked by callers