{
  "openapi": "3.1.0",
  "info": {
    "title": "哪吒本机自动化 API",
    "version": "0.3.3"
  },
  "servers": [
    {
      "url": "http://127.0.0.1:54121"
    }
  ],
  "paths": {
    "/api/v1/actions/profiles.list": {
      "post": {
        "operationId": "profiles_list",
        "summary": "分页搜索环境",
        "description": "分页搜索环境。只读查询。",
        "x-required-scope": "profiles.read",
        "x-confirmation": false,
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Nezha-Confirmation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "search": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": ""
                  },
                  "folder": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": ""
                  },
                  "tag": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": ""
                  },
                  "offset": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  }
                },
                "required": [],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "language": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": ""
                              },
                              "width": {
                                "type": "integer",
                                "minimum": 400,
                                "maximum": 8000,
                                "description": "浏览器窗口宽度，不是 screen.width",
                                "x-support-status": "supported"
                              },
                              "height": {
                                "type": "integer",
                                "minimum": 300,
                                "maximum": 8000,
                                "description": "浏览器窗口高度，不是 screen.height",
                                "x-support-status": "supported"
                              },
                              "proxy": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": "HTTP/HTTPS/SOCKS5，按显式配置路由，失败不改直连",
                                "x-support-status": "supported"
                              },
                              "proxy_mode": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": ""
                              },
                              "proxy_username": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": ""
                              },
                              "proxy_password": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": ""
                              },
                              "proxy_gateway": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": ""
                              },
                              "proxy_refresh_url": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": "代理刷新地址自动调用尚未实现；历史配置保留",
                                "x-support-status": "stored_only"
                              },
                              "proxy_ip_channel": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": ""
                              },
                              "notes": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": ""
                              },
                              "tags": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "maxLength": 4096,
                                  "description": ""
                                },
                                "maxItems": 100
                              },
                              "folder": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": ""
                              },
                              "favorite": {
                                "type": "boolean"
                              },
                              "platform": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": "平台标签不改变实际操作系统",
                                "x-support-status": "stored_only"
                              },
                              "browser": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": "普通内核或哪吒原生开发预览；原生包启动前严格校验，不自动切换现有环境",
                                "enum": [
                                  "auto",
                                  "bundled",
                                  "nezha-native",
                                  "chrome",
                                  "edge",
                                  "chromium"
                                ],
                                "x-support-status": "supported"
                              },
                              "native_algorithm_version": {
                                "description": "保存的原始配置；缺省 2，未知历史值及类型不丢弃。新选择仅允许整数 2/3，未知值启动拒绝。"
                              },
                              "ua_preset": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": ""
                              },
                              "user_agent": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": "只修改 UA 字符串，不模拟真实设备或完整 Client Hints",
                                "x-support-status": "partial"
                              },
                              "timezone": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": ""
                              },
                              "geolocation": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": ""
                              },
                              "geolocation_permission": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": "地理权限仅作用于受管理浏览器，不绕过网站权限策略",
                                "x-support-status": "partial"
                              },
                              "webrtc": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": "现有 Chromium 策略，尚未完成全部泄漏场景验收",
                                "x-support-status": "partial"
                              },
                              "proxy_type": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": "",
                                "enum": [
                                  "auto",
                                  "http",
                                  "https",
                                  "socks5",
                                  "direct"
                                ]
                              },
                              "account_platform": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": ""
                              },
                              "account_label": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": ""
                              },
                              "timezone_mode": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": "自动按实际出口定位或自定义；受管理页面通过 CDP 应用，Worker 尚未覆盖",
                                "x-support-status": "partial"
                              },
                              "geolocation_mode": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": "自动 IP 近似定位或自定义；保留位置权限选择，非 GPS 实测",
                                "x-support-status": "partial"
                              },
                              "language_mode": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": "按代理出口选择语言或自定义",
                                "enum": [
                                  "auto",
                                  "custom"
                                ],
                                "x-support-status": "supported"
                              },
                              "interface_language_mode": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": "独立界面语言尚未实现；历史配置保留",
                                "x-support-status": "stored_only"
                              },
                              "screen_mode": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": "屏幕参数修改尚未实现；窗口大小可单独设置",
                                "x-support-status": "stored_only"
                              },
                              "font_mode": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": "字体修改尚未实现；历史配置保留",
                                "x-support-status": "stored_only"
                              },
                              "canvas_mode": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": "实验性页面层像素读回扰动；非 Chromium 内核实现",
                                "x-support-status": "experimental"
                              },
                              "webgl_noise_mode": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": "仅 RGBA/UNSIGNED_BYTE 数组 readPixels；不支持 PBO、浮点读回或 WebGPU",
                                "x-support-status": "experimental"
                              },
                              "audio_noise_mode": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": "实验性 AudioBuffer/Analyser 读回扰动，会微调读取的音频数据；音频工作线程未覆盖",
                                "x-support-status": "experimental"
                              },
                              "media_devices_mode": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": "媒体设备修改尚未实现；历史配置保留",
                                "x-support-status": "stored_only"
                              },
                              "client_rects_mode": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": "元素矩形修改尚未实现；历史配置保留",
                                "x-support-status": "stored_only"
                              },
                              "speech_voices_mode": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": "语音列表修改尚未实现；历史配置保留",
                                "x-support-status": "stored_only"
                              },
                              "webgl_mode": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": "WebGL 厂商和渲染器修改尚未实现；历史配置保留",
                                "x-support-status": "stored_only"
                              },
                              "webgl_vendor": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": "WebGL 厂商尚未实现；历史配置保留",
                                "x-support-status": "stored_only"
                              },
                              "webgl_renderer": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": "WebGL 渲染器尚未实现；历史配置保留",
                                "x-support-status": "stored_only"
                              },
                              "webgpu_mode": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": "WebGPU 修改尚未实现；历史配置保留",
                                "x-support-status": "stored_only"
                              },
                              "apps": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "maxLength": 4096,
                                  "description": ""
                                },
                                "maxItems": 100,
                                "description": "应用自动启动尚未实现；历史配置保留",
                                "x-support-status": "stored_only"
                              },
                              "sync_mode": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": "完整浏览数据同步尚未实现；历史配置保留",
                                "x-support-status": "stored_only"
                              },
                              "browser_settings_mode": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": "全局浏览器设置联动尚未实现；历史配置保留",
                                "x-support-status": "stored_only"
                              },
                              "random_fingerprint": {
                                "type": "boolean",
                                "description": "每次启动随机指纹尚未实现；历史配置保留",
                                "x-support-status": "stored_only"
                              },
                              "do_not_track": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": "DNT 修改尚未实现；历史配置保留",
                                "x-support-status": "stored_only"
                              },
                              "port_scan_protection": {
                                "type": "boolean",
                                "description": "端口扫描保护尚未实现；历史配置保留",
                                "x-support-status": "stored_only"
                              },
                              "hardware_acceleration": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": "可请求禁用 GPU；实际加速取决于 Chromium 和驱动",
                                "x-support-status": "partial"
                              },
                              "tls_mode": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": "TLS 指纹修改尚未实现；历史配置保留",
                                "x-support-status": "stored_only"
                              },
                              "cpu_cores": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": "CPU 核数修改尚未实现；历史配置保留",
                                "x-support-status": "stored_only"
                              },
                              "ram_gb": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": "内存修改尚未实现；历史配置保留",
                                "x-support-status": "stored_only"
                              },
                              "device_name": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": "设备名称修改尚未实现；历史配置保留",
                                "x-support-status": "stored_only"
                              },
                              "mac_address": {
                                "type": "string",
                                "maxLength": 4096,
                                "description": "MAC 修改尚未实现；历史配置保留",
                                "x-support-status": "stored_only"
                              },
                              "startup_urls": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "maxLength": 4096,
                                  "description": ""
                                },
                                "maxItems": 100
                              },
                              "extensions": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "maxLength": 4096,
                                  "description": ""
                                },
                                "maxItems": 100,
                                "description": "加载允许目录中的已解压扩展",
                                "x-support-status": "supported"
                              },
                              "disable_images": {
                                "type": "boolean"
                              },
                              "disable_videos": {
                                "type": "boolean",
                                "description": "限制自动播放，不阻止所有视频下载或播放",
                                "x-support-status": "partial"
                              },
                              "id": {
                                "type": "string"
                              },
                              "created_at": {
                                "type": "number"
                              },
                              "last_used_at": {
                                "type": "number"
                              },
                              "proxy_history": {
                                "type": "array",
                                "items": {
                                  "type": "object"
                                }
                              },
                              "revision": {
                                "type": "string"
                              },
                              "running": {
                                "type": "boolean"
                              },
                              "configuration_state": {
                                "type": "object",
                                "properties": {
                                  "status": {
                                    "enum": [
                                      "not_running",
                                      "starting",
                                      "stopping",
                                      "in_sync",
                                      "pending_restart",
                                      "configuration_failed",
                                      "unknown"
                                    ]
                                  },
                                  "pending_restart": {
                                    "anyOf": [
                                      {
                                        "type": "boolean"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "changed_fields": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  },
                                  "snapshot_available": {
                                    "type": "boolean"
                                  },
                                  "message": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "status",
                                  "pending_restart",
                                  "changed_fields",
                                  "snapshot_available",
                                  "message"
                                ],
                                "additionalProperties": true,
                                "description": "比较保存的启动配置与实际启动前的用户配置快照，不比较自动解析后的有效值。仅返回字段名，不返回旧值或密码。in_sync 仅表示配置未变，不保证所有指纹能力均支持；unknown 的 pending_restart 为 null。"
                              },
                              "native_algorithm": {
                                "type": "object",
                                "properties": {
                                  "configured_version": {
                                    "description": "保存的原始值；未知历史值/类型保留，不能据此认定可启动或已生效"
                                  },
                                  "verified_versions": {
                                    "type": "array",
                                    "items": {
                                      "type": "integer",
                                      "enum": [
                                        2,
                                        3
                                      ]
                                    }
                                  },
                                  "effective_version": {
                                    "anyOf": [
                                      {
                                        "type": "integer",
                                        "enum": [
                                          2,
                                          3
                                        ]
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "effective_at": {
                                    "const": "next_start"
                                  },
                                  "canvas_v3_only": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "configured_version",
                                  "verified_versions",
                                  "effective_version",
                                  "effective_at",
                                  "canvas_v3_only"
                                ],
                                "additionalProperties": true,
                                "description": "配置、已校验候选支持版本、当前活跃原生会话实际版本分别报告；未运行或无已校验 Runtime 时 verified_versions=[]、effective_version=null。"
                              }
                            },
                            "required": [
                              "id",
                              "name",
                              "revision",
                              "running"
                            ],
                            "additionalProperties": true
                          }
                        },
                        "total": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "items",
                        "total"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "data",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "INVALID_ARGUMENT",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHORIZED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "409": {
            "description": "CONFLICT / START_TIMEOUT / SESSION_CLOSED / CONFIRMATION_REQUIRED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "description": "RATE_LIMITED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "SERVICE_UNAVAILABLE",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/actions/profiles.get": {
      "post": {
        "operationId": "profiles_get",
        "summary": "读取脱敏环境",
        "description": "读取脱敏环境。只读查询。",
        "x-required-scope": "profiles.read",
        "x-confirmation": false,
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Nezha-Confirmation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "profile_id": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": "环境 ID",
                    "pattern": "^[a-zA-Z0-9_-]{1,128}$"
                  }
                },
                "required": [
                  "profile_id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "language": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "width": {
                          "type": "integer",
                          "minimum": 400,
                          "maximum": 8000,
                          "description": "浏览器窗口宽度，不是 screen.width",
                          "x-support-status": "supported"
                        },
                        "height": {
                          "type": "integer",
                          "minimum": 300,
                          "maximum": 8000,
                          "description": "浏览器窗口高度，不是 screen.height",
                          "x-support-status": "supported"
                        },
                        "proxy": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "HTTP/HTTPS/SOCKS5，按显式配置路由，失败不改直连",
                          "x-support-status": "supported"
                        },
                        "proxy_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "proxy_username": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "proxy_password": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "proxy_gateway": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "proxy_refresh_url": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "代理刷新地址自动调用尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "proxy_ip_channel": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "notes": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "tags": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 4096,
                            "description": ""
                          },
                          "maxItems": 100
                        },
                        "folder": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "favorite": {
                          "type": "boolean"
                        },
                        "platform": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "平台标签不改变实际操作系统",
                          "x-support-status": "stored_only"
                        },
                        "browser": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "普通内核或哪吒原生开发预览；原生包启动前严格校验，不自动切换现有环境",
                          "enum": [
                            "auto",
                            "bundled",
                            "nezha-native",
                            "chrome",
                            "edge",
                            "chromium"
                          ],
                          "x-support-status": "supported"
                        },
                        "native_algorithm_version": {
                          "description": "保存的原始配置；缺省 2，未知历史值及类型不丢弃。新选择仅允许整数 2/3，未知值启动拒绝。"
                        },
                        "ua_preset": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "user_agent": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "只修改 UA 字符串，不模拟真实设备或完整 Client Hints",
                          "x-support-status": "partial"
                        },
                        "timezone": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "geolocation": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "geolocation_permission": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "地理权限仅作用于受管理浏览器，不绕过网站权限策略",
                          "x-support-status": "partial"
                        },
                        "webrtc": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "现有 Chromium 策略，尚未完成全部泄漏场景验收",
                          "x-support-status": "partial"
                        },
                        "proxy_type": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "",
                          "enum": [
                            "auto",
                            "http",
                            "https",
                            "socks5",
                            "direct"
                          ]
                        },
                        "account_platform": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "account_label": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "timezone_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "自动按实际出口定位或自定义；受管理页面通过 CDP 应用，Worker 尚未覆盖",
                          "x-support-status": "partial"
                        },
                        "geolocation_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "自动 IP 近似定位或自定义；保留位置权限选择，非 GPS 实测",
                          "x-support-status": "partial"
                        },
                        "language_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "按代理出口选择语言或自定义",
                          "enum": [
                            "auto",
                            "custom"
                          ],
                          "x-support-status": "supported"
                        },
                        "interface_language_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "独立界面语言尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "screen_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "屏幕参数修改尚未实现；窗口大小可单独设置",
                          "x-support-status": "stored_only"
                        },
                        "font_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "字体修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "canvas_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "实验性页面层像素读回扰动；非 Chromium 内核实现",
                          "x-support-status": "experimental"
                        },
                        "webgl_noise_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "仅 RGBA/UNSIGNED_BYTE 数组 readPixels；不支持 PBO、浮点读回或 WebGPU",
                          "x-support-status": "experimental"
                        },
                        "audio_noise_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "实验性 AudioBuffer/Analyser 读回扰动，会微调读取的音频数据；音频工作线程未覆盖",
                          "x-support-status": "experimental"
                        },
                        "media_devices_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "媒体设备修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "client_rects_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "元素矩形修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "speech_voices_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "语音列表修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "webgl_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "WebGL 厂商和渲染器修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "webgl_vendor": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "WebGL 厂商尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "webgl_renderer": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "WebGL 渲染器尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "webgpu_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "WebGPU 修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "apps": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 4096,
                            "description": ""
                          },
                          "maxItems": 100,
                          "description": "应用自动启动尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "sync_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "完整浏览数据同步尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "browser_settings_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "全局浏览器设置联动尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "random_fingerprint": {
                          "type": "boolean",
                          "description": "每次启动随机指纹尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "do_not_track": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "DNT 修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "port_scan_protection": {
                          "type": "boolean",
                          "description": "端口扫描保护尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "hardware_acceleration": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "可请求禁用 GPU；实际加速取决于 Chromium 和驱动",
                          "x-support-status": "partial"
                        },
                        "tls_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "TLS 指纹修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "cpu_cores": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "CPU 核数修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "ram_gb": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "内存修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "device_name": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "设备名称修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "mac_address": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "MAC 修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "startup_urls": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 4096,
                            "description": ""
                          },
                          "maxItems": 100
                        },
                        "extensions": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 4096,
                            "description": ""
                          },
                          "maxItems": 100,
                          "description": "加载允许目录中的已解压扩展",
                          "x-support-status": "supported"
                        },
                        "disable_images": {
                          "type": "boolean"
                        },
                        "disable_videos": {
                          "type": "boolean",
                          "description": "限制自动播放，不阻止所有视频下载或播放",
                          "x-support-status": "partial"
                        },
                        "id": {
                          "type": "string"
                        },
                        "created_at": {
                          "type": "number"
                        },
                        "last_used_at": {
                          "type": "number"
                        },
                        "proxy_history": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        },
                        "revision": {
                          "type": "string"
                        },
                        "running": {
                          "type": "boolean"
                        },
                        "configuration_state": {
                          "type": "object",
                          "properties": {
                            "status": {
                              "enum": [
                                "not_running",
                                "starting",
                                "stopping",
                                "in_sync",
                                "pending_restart",
                                "configuration_failed",
                                "unknown"
                              ]
                            },
                            "pending_restart": {
                              "anyOf": [
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "changed_fields": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "snapshot_available": {
                              "type": "boolean"
                            },
                            "message": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "status",
                            "pending_restart",
                            "changed_fields",
                            "snapshot_available",
                            "message"
                          ],
                          "additionalProperties": true,
                          "description": "比较保存的启动配置与实际启动前的用户配置快照，不比较自动解析后的有效值。仅返回字段名，不返回旧值或密码。in_sync 仅表示配置未变，不保证所有指纹能力均支持；unknown 的 pending_restart 为 null。"
                        },
                        "native_algorithm": {
                          "type": "object",
                          "properties": {
                            "configured_version": {
                              "description": "保存的原始值；未知历史值/类型保留，不能据此认定可启动或已生效"
                            },
                            "verified_versions": {
                              "type": "array",
                              "items": {
                                "type": "integer",
                                "enum": [
                                  2,
                                  3
                                ]
                              }
                            },
                            "effective_version": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "enum": [
                                    2,
                                    3
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "effective_at": {
                              "const": "next_start"
                            },
                            "canvas_v3_only": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "configured_version",
                            "verified_versions",
                            "effective_version",
                            "effective_at",
                            "canvas_v3_only"
                          ],
                          "additionalProperties": true,
                          "description": "配置、已校验候选支持版本、当前活跃原生会话实际版本分别报告；未运行或无已校验 Runtime 时 verified_versions=[]、effective_version=null。"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "revision",
                        "running"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "data",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "INVALID_ARGUMENT",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHORIZED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "409": {
            "description": "CONFLICT / START_TIMEOUT / SESSION_CLOSED / CONFIRMATION_REQUIRED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "description": "RATE_LIMITED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "SERVICE_UNAVAILABLE",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/actions/profiles.create": {
      "post": {
        "operationId": "profiles_create",
        "summary": "创建环境",
        "description": "创建环境。修改状态；必须提供 Idempotency-Key。 native_algorithm_version 缺省 2；新选择必须为严格整数 2 或 3，版本 3 的最终 browser 必须为 nezha-native。PATCH 未提字段保留原值；回滚需明确提交整数 2。",
        "x-required-scope": "profiles.write",
        "x-confirmation": false,
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Nezha-Confirmation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fields": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "maxLength": 80,
                        "description": "",
                        "minLength": 1
                      },
                      "language": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": ""
                      },
                      "width": {
                        "type": "integer",
                        "minimum": 400,
                        "maximum": 8000,
                        "description": "浏览器窗口宽度，不是 screen.width",
                        "x-support-status": "supported"
                      },
                      "height": {
                        "type": "integer",
                        "minimum": 300,
                        "maximum": 8000,
                        "description": "浏览器窗口高度，不是 screen.height",
                        "x-support-status": "supported"
                      },
                      "proxy": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "HTTP/HTTPS/SOCKS5，按显式配置路由，失败不改直连",
                        "x-support-status": "supported"
                      },
                      "proxy_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": ""
                      },
                      "proxy_username": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": ""
                      },
                      "proxy_password": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": ""
                      },
                      "proxy_gateway": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": ""
                      },
                      "proxy_refresh_url": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "代理刷新地址自动调用尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "proxy_ip_channel": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": ""
                      },
                      "notes": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": ""
                      },
                      "tags": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "maxItems": 100
                      },
                      "folder": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": ""
                      },
                      "favorite": {
                        "type": "boolean"
                      },
                      "platform": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "平台标签不改变实际操作系统",
                        "x-support-status": "stored_only"
                      },
                      "browser": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "普通内核或哪吒原生开发预览；原生包启动前严格校验，不自动切换现有环境",
                        "enum": [
                          "auto",
                          "bundled",
                          "nezha-native",
                          "chrome",
                          "edge",
                          "chromium"
                        ],
                        "x-support-status": "supported"
                      },
                      "native_algorithm_version": {
                        "type": "integer",
                        "enum": [
                          2,
                          3
                        ],
                        "default": 2,
                        "description": "原生算法版本：默认 2；显式选择 3 仅改变已测 Canvas 半透明读回投影，WebGL/音频仍为 2；仅下次启动生效，历史未知值保留但原生启动拒绝，普通浏览器不使用该字段",
                        "x-support-status": "partial"
                      },
                      "ua_preset": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": ""
                      },
                      "user_agent": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "只修改 UA 字符串，不模拟真实设备或完整 Client Hints",
                        "x-support-status": "partial"
                      },
                      "timezone": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": ""
                      },
                      "geolocation": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": ""
                      },
                      "geolocation_permission": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "地理权限仅作用于受管理浏览器，不绕过网站权限策略",
                        "x-support-status": "partial"
                      },
                      "webrtc": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "现有 Chromium 策略，尚未完成全部泄漏场景验收",
                        "x-support-status": "partial"
                      },
                      "proxy_type": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "",
                        "enum": [
                          "auto",
                          "http",
                          "https",
                          "socks5",
                          "direct"
                        ]
                      },
                      "account_platform": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": ""
                      },
                      "account_label": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": ""
                      },
                      "timezone_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "自动按实际出口定位或自定义；受管理页面通过 CDP 应用，Worker 尚未覆盖",
                        "x-support-status": "partial"
                      },
                      "geolocation_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "自动 IP 近似定位或自定义；保留位置权限选择，非 GPS 实测",
                        "x-support-status": "partial"
                      },
                      "language_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "按代理出口选择语言或自定义",
                        "enum": [
                          "auto",
                          "custom"
                        ],
                        "x-support-status": "supported"
                      },
                      "interface_language_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "独立界面语言尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "screen_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "屏幕参数修改尚未实现；窗口大小可单独设置",
                        "x-support-status": "stored_only"
                      },
                      "font_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "字体修改尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "canvas_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "实验性页面层像素读回扰动；非 Chromium 内核实现",
                        "x-support-status": "experimental"
                      },
                      "webgl_noise_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "仅 RGBA/UNSIGNED_BYTE 数组 readPixels；不支持 PBO、浮点读回或 WebGPU",
                        "x-support-status": "experimental"
                      },
                      "audio_noise_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "实验性 AudioBuffer/Analyser 读回扰动，会微调读取的音频数据；音频工作线程未覆盖",
                        "x-support-status": "experimental"
                      },
                      "media_devices_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "媒体设备修改尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "client_rects_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "元素矩形修改尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "speech_voices_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "语音列表修改尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "webgl_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "WebGL 厂商和渲染器修改尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "webgl_vendor": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "WebGL 厂商尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "webgl_renderer": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "WebGL 渲染器尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "webgpu_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "WebGPU 修改尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "apps": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "maxItems": 100,
                        "description": "应用自动启动尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "sync_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "完整浏览数据同步尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "browser_settings_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "全局浏览器设置联动尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "random_fingerprint": {
                        "type": "boolean",
                        "description": "每次启动随机指纹尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "do_not_track": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "DNT 修改尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "port_scan_protection": {
                        "type": "boolean",
                        "description": "端口扫描保护尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "hardware_acceleration": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "可请求禁用 GPU；实际加速取决于 Chromium 和驱动",
                        "x-support-status": "partial"
                      },
                      "tls_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "TLS 指纹修改尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "cpu_cores": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "CPU 核数修改尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "ram_gb": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "内存修改尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "device_name": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "设备名称修改尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "mac_address": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "MAC 修改尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "startup_urls": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "maxItems": 100
                      },
                      "extensions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "maxItems": 100,
                        "description": "加载允许目录中的已解压扩展",
                        "x-support-status": "supported"
                      },
                      "disable_images": {
                        "type": "boolean"
                      },
                      "disable_videos": {
                        "type": "boolean",
                        "description": "限制自动播放，不阻止所有视频下载或播放",
                        "x-support-status": "partial"
                      }
                    },
                    "required": [],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "fields"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "language": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "width": {
                          "type": "integer",
                          "minimum": 400,
                          "maximum": 8000,
                          "description": "浏览器窗口宽度，不是 screen.width",
                          "x-support-status": "supported"
                        },
                        "height": {
                          "type": "integer",
                          "minimum": 300,
                          "maximum": 8000,
                          "description": "浏览器窗口高度，不是 screen.height",
                          "x-support-status": "supported"
                        },
                        "proxy": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "HTTP/HTTPS/SOCKS5，按显式配置路由，失败不改直连",
                          "x-support-status": "supported"
                        },
                        "proxy_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "proxy_username": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "proxy_password": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "proxy_gateway": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "proxy_refresh_url": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "代理刷新地址自动调用尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "proxy_ip_channel": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "notes": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "tags": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 4096,
                            "description": ""
                          },
                          "maxItems": 100
                        },
                        "folder": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "favorite": {
                          "type": "boolean"
                        },
                        "platform": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "平台标签不改变实际操作系统",
                          "x-support-status": "stored_only"
                        },
                        "browser": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "普通内核或哪吒原生开发预览；原生包启动前严格校验，不自动切换现有环境",
                          "enum": [
                            "auto",
                            "bundled",
                            "nezha-native",
                            "chrome",
                            "edge",
                            "chromium"
                          ],
                          "x-support-status": "supported"
                        },
                        "native_algorithm_version": {
                          "description": "保存的原始配置；缺省 2，未知历史值及类型不丢弃。新选择仅允许整数 2/3，未知值启动拒绝。"
                        },
                        "ua_preset": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "user_agent": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "只修改 UA 字符串，不模拟真实设备或完整 Client Hints",
                          "x-support-status": "partial"
                        },
                        "timezone": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "geolocation": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "geolocation_permission": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "地理权限仅作用于受管理浏览器，不绕过网站权限策略",
                          "x-support-status": "partial"
                        },
                        "webrtc": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "现有 Chromium 策略，尚未完成全部泄漏场景验收",
                          "x-support-status": "partial"
                        },
                        "proxy_type": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "",
                          "enum": [
                            "auto",
                            "http",
                            "https",
                            "socks5",
                            "direct"
                          ]
                        },
                        "account_platform": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "account_label": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "timezone_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "自动按实际出口定位或自定义；受管理页面通过 CDP 应用，Worker 尚未覆盖",
                          "x-support-status": "partial"
                        },
                        "geolocation_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "自动 IP 近似定位或自定义；保留位置权限选择，非 GPS 实测",
                          "x-support-status": "partial"
                        },
                        "language_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "按代理出口选择语言或自定义",
                          "enum": [
                            "auto",
                            "custom"
                          ],
                          "x-support-status": "supported"
                        },
                        "interface_language_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "独立界面语言尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "screen_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "屏幕参数修改尚未实现；窗口大小可单独设置",
                          "x-support-status": "stored_only"
                        },
                        "font_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "字体修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "canvas_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "实验性页面层像素读回扰动；非 Chromium 内核实现",
                          "x-support-status": "experimental"
                        },
                        "webgl_noise_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "仅 RGBA/UNSIGNED_BYTE 数组 readPixels；不支持 PBO、浮点读回或 WebGPU",
                          "x-support-status": "experimental"
                        },
                        "audio_noise_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "实验性 AudioBuffer/Analyser 读回扰动，会微调读取的音频数据；音频工作线程未覆盖",
                          "x-support-status": "experimental"
                        },
                        "media_devices_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "媒体设备修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "client_rects_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "元素矩形修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "speech_voices_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "语音列表修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "webgl_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "WebGL 厂商和渲染器修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "webgl_vendor": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "WebGL 厂商尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "webgl_renderer": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "WebGL 渲染器尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "webgpu_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "WebGPU 修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "apps": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 4096,
                            "description": ""
                          },
                          "maxItems": 100,
                          "description": "应用自动启动尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "sync_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "完整浏览数据同步尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "browser_settings_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "全局浏览器设置联动尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "random_fingerprint": {
                          "type": "boolean",
                          "description": "每次启动随机指纹尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "do_not_track": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "DNT 修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "port_scan_protection": {
                          "type": "boolean",
                          "description": "端口扫描保护尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "hardware_acceleration": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "可请求禁用 GPU；实际加速取决于 Chromium 和驱动",
                          "x-support-status": "partial"
                        },
                        "tls_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "TLS 指纹修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "cpu_cores": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "CPU 核数修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "ram_gb": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "内存修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "device_name": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "设备名称修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "mac_address": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "MAC 修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "startup_urls": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 4096,
                            "description": ""
                          },
                          "maxItems": 100
                        },
                        "extensions": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 4096,
                            "description": ""
                          },
                          "maxItems": 100,
                          "description": "加载允许目录中的已解压扩展",
                          "x-support-status": "supported"
                        },
                        "disable_images": {
                          "type": "boolean"
                        },
                        "disable_videos": {
                          "type": "boolean",
                          "description": "限制自动播放，不阻止所有视频下载或播放",
                          "x-support-status": "partial"
                        },
                        "id": {
                          "type": "string"
                        },
                        "created_at": {
                          "type": "number"
                        },
                        "last_used_at": {
                          "type": "number"
                        },
                        "proxy_history": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        },
                        "revision": {
                          "type": "string"
                        },
                        "running": {
                          "type": "boolean"
                        },
                        "configuration_state": {
                          "type": "object",
                          "properties": {
                            "status": {
                              "enum": [
                                "not_running",
                                "starting",
                                "stopping",
                                "in_sync",
                                "pending_restart",
                                "configuration_failed",
                                "unknown"
                              ]
                            },
                            "pending_restart": {
                              "anyOf": [
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "changed_fields": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "snapshot_available": {
                              "type": "boolean"
                            },
                            "message": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "status",
                            "pending_restart",
                            "changed_fields",
                            "snapshot_available",
                            "message"
                          ],
                          "additionalProperties": true,
                          "description": "比较保存的启动配置与实际启动前的用户配置快照，不比较自动解析后的有效值。仅返回字段名，不返回旧值或密码。in_sync 仅表示配置未变，不保证所有指纹能力均支持；unknown 的 pending_restart 为 null。"
                        },
                        "native_algorithm": {
                          "type": "object",
                          "properties": {
                            "configured_version": {
                              "description": "保存的原始值；未知历史值/类型保留，不能据此认定可启动或已生效"
                            },
                            "verified_versions": {
                              "type": "array",
                              "items": {
                                "type": "integer",
                                "enum": [
                                  2,
                                  3
                                ]
                              }
                            },
                            "effective_version": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "enum": [
                                    2,
                                    3
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "effective_at": {
                              "const": "next_start"
                            },
                            "canvas_v3_only": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "configured_version",
                            "verified_versions",
                            "effective_version",
                            "effective_at",
                            "canvas_v3_only"
                          ],
                          "additionalProperties": true,
                          "description": "配置、已校验候选支持版本、当前活跃原生会话实际版本分别报告；未运行或无已校验 Runtime 时 verified_versions=[]、effective_version=null。"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "revision",
                        "running"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "data",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "INVALID_ARGUMENT",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHORIZED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "409": {
            "description": "CONFLICT / START_TIMEOUT / SESSION_CLOSED / CONFIRMATION_REQUIRED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "description": "RATE_LIMITED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "SERVICE_UNAVAILABLE",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/actions/profiles.patch": {
      "post": {
        "operationId": "profiles_patch",
        "summary": "仅更新指定字段，保留其他配置",
        "description": "仅更新指定字段，保留其他配置。修改状态；必须提供 Idempotency-Key。 允许运行中保存，但不重启、不热更新当前 Runtime 或代理；启动相关修改下次启动生效。configuration_state.changed_fields 按启动快照比较，改回原值会取消待重启。名称、备注、标签、文件夹、收藏及账号标识是管理元数据，不要求重启。 native_algorithm_version 缺省 2；新选择必须为严格整数 2 或 3，版本 3 的最终 browser 必须为 nezha-native。PATCH 未提字段保留原值；回滚需明确提交整数 2。",
        "x-required-scope": "profiles.write",
        "x-confirmation": false,
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Nezha-Confirmation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "profile_id": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": "环境 ID",
                    "pattern": "^[a-zA-Z0-9_-]{1,128}$"
                  },
                  "fields": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "maxLength": 80,
                        "description": "",
                        "minLength": 1
                      },
                      "language": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": ""
                      },
                      "width": {
                        "type": "integer",
                        "minimum": 400,
                        "maximum": 8000,
                        "description": "浏览器窗口宽度，不是 screen.width",
                        "x-support-status": "supported"
                      },
                      "height": {
                        "type": "integer",
                        "minimum": 300,
                        "maximum": 8000,
                        "description": "浏览器窗口高度，不是 screen.height",
                        "x-support-status": "supported"
                      },
                      "proxy": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "HTTP/HTTPS/SOCKS5，按显式配置路由，失败不改直连",
                        "x-support-status": "supported"
                      },
                      "proxy_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": ""
                      },
                      "proxy_username": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": ""
                      },
                      "proxy_password": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": ""
                      },
                      "proxy_gateway": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": ""
                      },
                      "proxy_refresh_url": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "代理刷新地址自动调用尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "proxy_ip_channel": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": ""
                      },
                      "notes": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": ""
                      },
                      "tags": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "maxItems": 100
                      },
                      "folder": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": ""
                      },
                      "favorite": {
                        "type": "boolean"
                      },
                      "platform": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "平台标签不改变实际操作系统",
                        "x-support-status": "stored_only"
                      },
                      "browser": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "普通内核或哪吒原生开发预览；原生包启动前严格校验，不自动切换现有环境",
                        "enum": [
                          "auto",
                          "bundled",
                          "nezha-native",
                          "chrome",
                          "edge",
                          "chromium"
                        ],
                        "x-support-status": "supported"
                      },
                      "native_algorithm_version": {
                        "type": "integer",
                        "enum": [
                          2,
                          3
                        ],
                        "default": 2,
                        "description": "原生算法版本：默认 2；显式选择 3 仅改变已测 Canvas 半透明读回投影，WebGL/音频仍为 2；仅下次启动生效，历史未知值保留但原生启动拒绝，普通浏览器不使用该字段",
                        "x-support-status": "partial"
                      },
                      "ua_preset": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": ""
                      },
                      "user_agent": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "只修改 UA 字符串，不模拟真实设备或完整 Client Hints",
                        "x-support-status": "partial"
                      },
                      "timezone": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": ""
                      },
                      "geolocation": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": ""
                      },
                      "geolocation_permission": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "地理权限仅作用于受管理浏览器，不绕过网站权限策略",
                        "x-support-status": "partial"
                      },
                      "webrtc": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "现有 Chromium 策略，尚未完成全部泄漏场景验收",
                        "x-support-status": "partial"
                      },
                      "proxy_type": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "",
                        "enum": [
                          "auto",
                          "http",
                          "https",
                          "socks5",
                          "direct"
                        ]
                      },
                      "account_platform": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": ""
                      },
                      "account_label": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": ""
                      },
                      "timezone_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "自动按实际出口定位或自定义；受管理页面通过 CDP 应用，Worker 尚未覆盖",
                        "x-support-status": "partial"
                      },
                      "geolocation_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "自动 IP 近似定位或自定义；保留位置权限选择，非 GPS 实测",
                        "x-support-status": "partial"
                      },
                      "language_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "按代理出口选择语言或自定义",
                        "enum": [
                          "auto",
                          "custom"
                        ],
                        "x-support-status": "supported"
                      },
                      "interface_language_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "独立界面语言尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "screen_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "屏幕参数修改尚未实现；窗口大小可单独设置",
                        "x-support-status": "stored_only"
                      },
                      "font_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "字体修改尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "canvas_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "实验性页面层像素读回扰动；非 Chromium 内核实现",
                        "x-support-status": "experimental"
                      },
                      "webgl_noise_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "仅 RGBA/UNSIGNED_BYTE 数组 readPixels；不支持 PBO、浮点读回或 WebGPU",
                        "x-support-status": "experimental"
                      },
                      "audio_noise_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "实验性 AudioBuffer/Analyser 读回扰动，会微调读取的音频数据；音频工作线程未覆盖",
                        "x-support-status": "experimental"
                      },
                      "media_devices_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "媒体设备修改尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "client_rects_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "元素矩形修改尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "speech_voices_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "语音列表修改尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "webgl_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "WebGL 厂商和渲染器修改尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "webgl_vendor": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "WebGL 厂商尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "webgl_renderer": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "WebGL 渲染器尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "webgpu_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "WebGPU 修改尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "apps": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "maxItems": 100,
                        "description": "应用自动启动尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "sync_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "完整浏览数据同步尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "browser_settings_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "全局浏览器设置联动尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "random_fingerprint": {
                        "type": "boolean",
                        "description": "每次启动随机指纹尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "do_not_track": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "DNT 修改尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "port_scan_protection": {
                        "type": "boolean",
                        "description": "端口扫描保护尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "hardware_acceleration": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "可请求禁用 GPU；实际加速取决于 Chromium 和驱动",
                        "x-support-status": "partial"
                      },
                      "tls_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "TLS 指纹修改尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "cpu_cores": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "CPU 核数修改尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "ram_gb": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "内存修改尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "device_name": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "设备名称修改尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "mac_address": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "MAC 修改尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "startup_urls": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "maxItems": 100
                      },
                      "extensions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "maxItems": 100,
                        "description": "加载允许目录中的已解压扩展",
                        "x-support-status": "supported"
                      },
                      "disable_images": {
                        "type": "boolean"
                      },
                      "disable_videos": {
                        "type": "boolean",
                        "description": "限制自动播放，不阻止所有视频下载或播放",
                        "x-support-status": "partial"
                      }
                    },
                    "required": [],
                    "additionalProperties": false
                  },
                  "revision": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": ""
                  }
                },
                "required": [
                  "profile_id",
                  "fields",
                  "revision"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "language": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "width": {
                          "type": "integer",
                          "minimum": 400,
                          "maximum": 8000,
                          "description": "浏览器窗口宽度，不是 screen.width",
                          "x-support-status": "supported"
                        },
                        "height": {
                          "type": "integer",
                          "minimum": 300,
                          "maximum": 8000,
                          "description": "浏览器窗口高度，不是 screen.height",
                          "x-support-status": "supported"
                        },
                        "proxy": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "HTTP/HTTPS/SOCKS5，按显式配置路由，失败不改直连",
                          "x-support-status": "supported"
                        },
                        "proxy_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "proxy_username": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "proxy_password": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "proxy_gateway": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "proxy_refresh_url": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "代理刷新地址自动调用尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "proxy_ip_channel": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "notes": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "tags": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 4096,
                            "description": ""
                          },
                          "maxItems": 100
                        },
                        "folder": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "favorite": {
                          "type": "boolean"
                        },
                        "platform": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "平台标签不改变实际操作系统",
                          "x-support-status": "stored_only"
                        },
                        "browser": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "普通内核或哪吒原生开发预览；原生包启动前严格校验，不自动切换现有环境",
                          "enum": [
                            "auto",
                            "bundled",
                            "nezha-native",
                            "chrome",
                            "edge",
                            "chromium"
                          ],
                          "x-support-status": "supported"
                        },
                        "native_algorithm_version": {
                          "description": "保存的原始配置；缺省 2，未知历史值及类型不丢弃。新选择仅允许整数 2/3，未知值启动拒绝。"
                        },
                        "ua_preset": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "user_agent": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "只修改 UA 字符串，不模拟真实设备或完整 Client Hints",
                          "x-support-status": "partial"
                        },
                        "timezone": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "geolocation": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "geolocation_permission": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "地理权限仅作用于受管理浏览器，不绕过网站权限策略",
                          "x-support-status": "partial"
                        },
                        "webrtc": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "现有 Chromium 策略，尚未完成全部泄漏场景验收",
                          "x-support-status": "partial"
                        },
                        "proxy_type": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "",
                          "enum": [
                            "auto",
                            "http",
                            "https",
                            "socks5",
                            "direct"
                          ]
                        },
                        "account_platform": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "account_label": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "timezone_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "自动按实际出口定位或自定义；受管理页面通过 CDP 应用，Worker 尚未覆盖",
                          "x-support-status": "partial"
                        },
                        "geolocation_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "自动 IP 近似定位或自定义；保留位置权限选择，非 GPS 实测",
                          "x-support-status": "partial"
                        },
                        "language_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "按代理出口选择语言或自定义",
                          "enum": [
                            "auto",
                            "custom"
                          ],
                          "x-support-status": "supported"
                        },
                        "interface_language_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "独立界面语言尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "screen_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "屏幕参数修改尚未实现；窗口大小可单独设置",
                          "x-support-status": "stored_only"
                        },
                        "font_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "字体修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "canvas_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "实验性页面层像素读回扰动；非 Chromium 内核实现",
                          "x-support-status": "experimental"
                        },
                        "webgl_noise_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "仅 RGBA/UNSIGNED_BYTE 数组 readPixels；不支持 PBO、浮点读回或 WebGPU",
                          "x-support-status": "experimental"
                        },
                        "audio_noise_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "实验性 AudioBuffer/Analyser 读回扰动，会微调读取的音频数据；音频工作线程未覆盖",
                          "x-support-status": "experimental"
                        },
                        "media_devices_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "媒体设备修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "client_rects_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "元素矩形修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "speech_voices_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "语音列表修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "webgl_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "WebGL 厂商和渲染器修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "webgl_vendor": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "WebGL 厂商尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "webgl_renderer": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "WebGL 渲染器尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "webgpu_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "WebGPU 修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "apps": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 4096,
                            "description": ""
                          },
                          "maxItems": 100,
                          "description": "应用自动启动尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "sync_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "完整浏览数据同步尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "browser_settings_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "全局浏览器设置联动尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "random_fingerprint": {
                          "type": "boolean",
                          "description": "每次启动随机指纹尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "do_not_track": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "DNT 修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "port_scan_protection": {
                          "type": "boolean",
                          "description": "端口扫描保护尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "hardware_acceleration": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "可请求禁用 GPU；实际加速取决于 Chromium 和驱动",
                          "x-support-status": "partial"
                        },
                        "tls_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "TLS 指纹修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "cpu_cores": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "CPU 核数修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "ram_gb": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "内存修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "device_name": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "设备名称修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "mac_address": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "MAC 修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "startup_urls": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 4096,
                            "description": ""
                          },
                          "maxItems": 100
                        },
                        "extensions": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 4096,
                            "description": ""
                          },
                          "maxItems": 100,
                          "description": "加载允许目录中的已解压扩展",
                          "x-support-status": "supported"
                        },
                        "disable_images": {
                          "type": "boolean"
                        },
                        "disable_videos": {
                          "type": "boolean",
                          "description": "限制自动播放，不阻止所有视频下载或播放",
                          "x-support-status": "partial"
                        },
                        "id": {
                          "type": "string"
                        },
                        "created_at": {
                          "type": "number"
                        },
                        "last_used_at": {
                          "type": "number"
                        },
                        "proxy_history": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        },
                        "revision": {
                          "type": "string"
                        },
                        "running": {
                          "type": "boolean"
                        },
                        "configuration_state": {
                          "type": "object",
                          "properties": {
                            "status": {
                              "enum": [
                                "not_running",
                                "starting",
                                "stopping",
                                "in_sync",
                                "pending_restart",
                                "configuration_failed",
                                "unknown"
                              ]
                            },
                            "pending_restart": {
                              "anyOf": [
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "changed_fields": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "snapshot_available": {
                              "type": "boolean"
                            },
                            "message": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "status",
                            "pending_restart",
                            "changed_fields",
                            "snapshot_available",
                            "message"
                          ],
                          "additionalProperties": true,
                          "description": "比较保存的启动配置与实际启动前的用户配置快照，不比较自动解析后的有效值。仅返回字段名，不返回旧值或密码。in_sync 仅表示配置未变，不保证所有指纹能力均支持；unknown 的 pending_restart 为 null。"
                        },
                        "native_algorithm": {
                          "type": "object",
                          "properties": {
                            "configured_version": {
                              "description": "保存的原始值；未知历史值/类型保留，不能据此认定可启动或已生效"
                            },
                            "verified_versions": {
                              "type": "array",
                              "items": {
                                "type": "integer",
                                "enum": [
                                  2,
                                  3
                                ]
                              }
                            },
                            "effective_version": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "enum": [
                                    2,
                                    3
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "effective_at": {
                              "const": "next_start"
                            },
                            "canvas_v3_only": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "configured_version",
                            "verified_versions",
                            "effective_version",
                            "effective_at",
                            "canvas_v3_only"
                          ],
                          "additionalProperties": true,
                          "description": "配置、已校验候选支持版本、当前活跃原生会话实际版本分别报告；未运行或无已校验 Runtime 时 verified_versions=[]、effective_version=null。"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "revision",
                        "running"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "data",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "INVALID_ARGUMENT",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHORIZED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "409": {
            "description": "CONFLICT / START_TIMEOUT / SESSION_CLOSED / CONFIRMATION_REQUIRED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "description": "RATE_LIMITED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "SERVICE_UNAVAILABLE",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/actions/profiles.clone": {
      "post": {
        "operationId": "profiles_clone",
        "summary": "克隆配置，不复制浏览数据",
        "description": "克隆配置，不复制浏览数据。修改状态；必须提供 Idempotency-Key。 保留原生算法版本及未知历史值，不复制浏览数据；新 ID 可改变稳定种子。未知版本仍拒绝启动，不自动降为 2。",
        "x-required-scope": "profiles.write",
        "x-confirmation": false,
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Nezha-Confirmation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "profile_id": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": "环境 ID",
                    "pattern": "^[a-zA-Z0-9_-]{1,128}$"
                  }
                },
                "required": [
                  "profile_id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "language": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "width": {
                          "type": "integer",
                          "minimum": 400,
                          "maximum": 8000,
                          "description": "浏览器窗口宽度，不是 screen.width",
                          "x-support-status": "supported"
                        },
                        "height": {
                          "type": "integer",
                          "minimum": 300,
                          "maximum": 8000,
                          "description": "浏览器窗口高度，不是 screen.height",
                          "x-support-status": "supported"
                        },
                        "proxy": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "HTTP/HTTPS/SOCKS5，按显式配置路由，失败不改直连",
                          "x-support-status": "supported"
                        },
                        "proxy_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "proxy_username": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "proxy_password": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "proxy_gateway": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "proxy_refresh_url": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "代理刷新地址自动调用尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "proxy_ip_channel": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "notes": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "tags": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 4096,
                            "description": ""
                          },
                          "maxItems": 100
                        },
                        "folder": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "favorite": {
                          "type": "boolean"
                        },
                        "platform": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "平台标签不改变实际操作系统",
                          "x-support-status": "stored_only"
                        },
                        "browser": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "普通内核或哪吒原生开发预览；原生包启动前严格校验，不自动切换现有环境",
                          "enum": [
                            "auto",
                            "bundled",
                            "nezha-native",
                            "chrome",
                            "edge",
                            "chromium"
                          ],
                          "x-support-status": "supported"
                        },
                        "native_algorithm_version": {
                          "description": "保存的原始配置；缺省 2，未知历史值及类型不丢弃。新选择仅允许整数 2/3，未知值启动拒绝。"
                        },
                        "ua_preset": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "user_agent": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "只修改 UA 字符串，不模拟真实设备或完整 Client Hints",
                          "x-support-status": "partial"
                        },
                        "timezone": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "geolocation": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "geolocation_permission": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "地理权限仅作用于受管理浏览器，不绕过网站权限策略",
                          "x-support-status": "partial"
                        },
                        "webrtc": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "现有 Chromium 策略，尚未完成全部泄漏场景验收",
                          "x-support-status": "partial"
                        },
                        "proxy_type": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "",
                          "enum": [
                            "auto",
                            "http",
                            "https",
                            "socks5",
                            "direct"
                          ]
                        },
                        "account_platform": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "account_label": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "timezone_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "自动按实际出口定位或自定义；受管理页面通过 CDP 应用，Worker 尚未覆盖",
                          "x-support-status": "partial"
                        },
                        "geolocation_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "自动 IP 近似定位或自定义；保留位置权限选择，非 GPS 实测",
                          "x-support-status": "partial"
                        },
                        "language_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "按代理出口选择语言或自定义",
                          "enum": [
                            "auto",
                            "custom"
                          ],
                          "x-support-status": "supported"
                        },
                        "interface_language_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "独立界面语言尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "screen_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "屏幕参数修改尚未实现；窗口大小可单独设置",
                          "x-support-status": "stored_only"
                        },
                        "font_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "字体修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "canvas_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "实验性页面层像素读回扰动；非 Chromium 内核实现",
                          "x-support-status": "experimental"
                        },
                        "webgl_noise_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "仅 RGBA/UNSIGNED_BYTE 数组 readPixels；不支持 PBO、浮点读回或 WebGPU",
                          "x-support-status": "experimental"
                        },
                        "audio_noise_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "实验性 AudioBuffer/Analyser 读回扰动，会微调读取的音频数据；音频工作线程未覆盖",
                          "x-support-status": "experimental"
                        },
                        "media_devices_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "媒体设备修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "client_rects_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "元素矩形修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "speech_voices_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "语音列表修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "webgl_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "WebGL 厂商和渲染器修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "webgl_vendor": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "WebGL 厂商尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "webgl_renderer": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "WebGL 渲染器尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "webgpu_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "WebGPU 修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "apps": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 4096,
                            "description": ""
                          },
                          "maxItems": 100,
                          "description": "应用自动启动尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "sync_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "完整浏览数据同步尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "browser_settings_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "全局浏览器设置联动尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "random_fingerprint": {
                          "type": "boolean",
                          "description": "每次启动随机指纹尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "do_not_track": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "DNT 修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "port_scan_protection": {
                          "type": "boolean",
                          "description": "端口扫描保护尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "hardware_acceleration": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "可请求禁用 GPU；实际加速取决于 Chromium 和驱动",
                          "x-support-status": "partial"
                        },
                        "tls_mode": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "TLS 指纹修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "cpu_cores": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "CPU 核数修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "ram_gb": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "内存修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "device_name": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "设备名称修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "mac_address": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": "MAC 修改尚未实现；历史配置保留",
                          "x-support-status": "stored_only"
                        },
                        "startup_urls": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 4096,
                            "description": ""
                          },
                          "maxItems": 100
                        },
                        "extensions": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 4096,
                            "description": ""
                          },
                          "maxItems": 100,
                          "description": "加载允许目录中的已解压扩展",
                          "x-support-status": "supported"
                        },
                        "disable_images": {
                          "type": "boolean"
                        },
                        "disable_videos": {
                          "type": "boolean",
                          "description": "限制自动播放，不阻止所有视频下载或播放",
                          "x-support-status": "partial"
                        },
                        "id": {
                          "type": "string"
                        },
                        "created_at": {
                          "type": "number"
                        },
                        "last_used_at": {
                          "type": "number"
                        },
                        "proxy_history": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        },
                        "revision": {
                          "type": "string"
                        },
                        "running": {
                          "type": "boolean"
                        },
                        "configuration_state": {
                          "type": "object",
                          "properties": {
                            "status": {
                              "enum": [
                                "not_running",
                                "starting",
                                "stopping",
                                "in_sync",
                                "pending_restart",
                                "configuration_failed",
                                "unknown"
                              ]
                            },
                            "pending_restart": {
                              "anyOf": [
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "changed_fields": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "snapshot_available": {
                              "type": "boolean"
                            },
                            "message": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "status",
                            "pending_restart",
                            "changed_fields",
                            "snapshot_available",
                            "message"
                          ],
                          "additionalProperties": true,
                          "description": "比较保存的启动配置与实际启动前的用户配置快照，不比较自动解析后的有效值。仅返回字段名，不返回旧值或密码。in_sync 仅表示配置未变，不保证所有指纹能力均支持；unknown 的 pending_restart 为 null。"
                        },
                        "native_algorithm": {
                          "type": "object",
                          "properties": {
                            "configured_version": {
                              "description": "保存的原始值；未知历史值/类型保留，不能据此认定可启动或已生效"
                            },
                            "verified_versions": {
                              "type": "array",
                              "items": {
                                "type": "integer",
                                "enum": [
                                  2,
                                  3
                                ]
                              }
                            },
                            "effective_version": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "enum": [
                                    2,
                                    3
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "effective_at": {
                              "const": "next_start"
                            },
                            "canvas_v3_only": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "configured_version",
                            "verified_versions",
                            "effective_version",
                            "effective_at",
                            "canvas_v3_only"
                          ],
                          "additionalProperties": true,
                          "description": "配置、已校验候选支持版本、当前活跃原生会话实际版本分别报告；未运行或无已校验 Runtime 时 verified_versions=[]、effective_version=null。"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "revision",
                        "running"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "data",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "INVALID_ARGUMENT",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHORIZED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "409": {
            "description": "CONFLICT / START_TIMEOUT / SESSION_CLOSED / CONFIRMATION_REQUIRED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "description": "RATE_LIMITED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "SERVICE_UNAVAILABLE",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/actions/profiles.delete": {
      "post": {
        "operationId": "profiles_delete",
        "summary": "删除环境和本地浏览数据",
        "description": "删除环境和本地浏览数据。修改状态；必须提供 Idempotency-Key。",
        "x-required-scope": "profiles.write",
        "x-confirmation": true,
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Nezha-Confirmation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "profile_id": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": "环境 ID",
                    "pattern": "^[a-zA-Z0-9_-]{1,128}$"
                  },
                  "revision": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": ""
                  }
                },
                "required": [
                  "profile_id",
                  "revision"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "deleted": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "deleted"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "data",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "INVALID_ARGUMENT",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHORIZED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "409": {
            "description": "CONFLICT / START_TIMEOUT / SESSION_CLOSED / CONFIRMATION_REQUIRED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "description": "RATE_LIMITED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "SERVICE_UNAVAILABLE",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/actions/profiles.batch": {
      "post": {
        "operationId": "profiles_batch",
        "summary": "批量创建环境（返回持久化任务）",
        "description": "批量创建环境（返回持久化任务）。修改状态；必须提供 Idempotency-Key。 native_algorithm_version 缺省 2；新选择必须为严格整数 2 或 3，版本 3 的最终 browser 必须为 nezha-native。PATCH 未提字段保留原值；回滚需明确提交整数 2。",
        "x-required-scope": "profiles.write",
        "x-confirmation": true,
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Nezha-Confirmation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fields": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "maxLength": 80,
                        "description": "",
                        "minLength": 1
                      },
                      "language": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": ""
                      },
                      "width": {
                        "type": "integer",
                        "minimum": 400,
                        "maximum": 8000,
                        "description": "浏览器窗口宽度，不是 screen.width",
                        "x-support-status": "supported"
                      },
                      "height": {
                        "type": "integer",
                        "minimum": 300,
                        "maximum": 8000,
                        "description": "浏览器窗口高度，不是 screen.height",
                        "x-support-status": "supported"
                      },
                      "proxy": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "HTTP/HTTPS/SOCKS5，按显式配置路由，失败不改直连",
                        "x-support-status": "supported"
                      },
                      "proxy_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": ""
                      },
                      "proxy_username": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": ""
                      },
                      "proxy_password": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": ""
                      },
                      "proxy_gateway": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": ""
                      },
                      "proxy_refresh_url": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "代理刷新地址自动调用尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "proxy_ip_channel": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": ""
                      },
                      "notes": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": ""
                      },
                      "tags": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "maxItems": 100
                      },
                      "folder": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": ""
                      },
                      "favorite": {
                        "type": "boolean"
                      },
                      "platform": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "平台标签不改变实际操作系统",
                        "x-support-status": "stored_only"
                      },
                      "browser": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "普通内核或哪吒原生开发预览；原生包启动前严格校验，不自动切换现有环境",
                        "enum": [
                          "auto",
                          "bundled",
                          "nezha-native",
                          "chrome",
                          "edge",
                          "chromium"
                        ],
                        "x-support-status": "supported"
                      },
                      "native_algorithm_version": {
                        "type": "integer",
                        "enum": [
                          2,
                          3
                        ],
                        "default": 2,
                        "description": "原生算法版本：默认 2；显式选择 3 仅改变已测 Canvas 半透明读回投影，WebGL/音频仍为 2；仅下次启动生效，历史未知值保留但原生启动拒绝，普通浏览器不使用该字段",
                        "x-support-status": "partial"
                      },
                      "ua_preset": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": ""
                      },
                      "user_agent": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "只修改 UA 字符串，不模拟真实设备或完整 Client Hints",
                        "x-support-status": "partial"
                      },
                      "timezone": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": ""
                      },
                      "geolocation": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": ""
                      },
                      "geolocation_permission": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "地理权限仅作用于受管理浏览器，不绕过网站权限策略",
                        "x-support-status": "partial"
                      },
                      "webrtc": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "现有 Chromium 策略，尚未完成全部泄漏场景验收",
                        "x-support-status": "partial"
                      },
                      "proxy_type": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "",
                        "enum": [
                          "auto",
                          "http",
                          "https",
                          "socks5",
                          "direct"
                        ]
                      },
                      "account_platform": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": ""
                      },
                      "account_label": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": ""
                      },
                      "timezone_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "自动按实际出口定位或自定义；受管理页面通过 CDP 应用，Worker 尚未覆盖",
                        "x-support-status": "partial"
                      },
                      "geolocation_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "自动 IP 近似定位或自定义；保留位置权限选择，非 GPS 实测",
                        "x-support-status": "partial"
                      },
                      "language_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "按代理出口选择语言或自定义",
                        "enum": [
                          "auto",
                          "custom"
                        ],
                        "x-support-status": "supported"
                      },
                      "interface_language_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "独立界面语言尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "screen_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "屏幕参数修改尚未实现；窗口大小可单独设置",
                        "x-support-status": "stored_only"
                      },
                      "font_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "字体修改尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "canvas_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "实验性页面层像素读回扰动；非 Chromium 内核实现",
                        "x-support-status": "experimental"
                      },
                      "webgl_noise_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "仅 RGBA/UNSIGNED_BYTE 数组 readPixels；不支持 PBO、浮点读回或 WebGPU",
                        "x-support-status": "experimental"
                      },
                      "audio_noise_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "实验性 AudioBuffer/Analyser 读回扰动，会微调读取的音频数据；音频工作线程未覆盖",
                        "x-support-status": "experimental"
                      },
                      "media_devices_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "媒体设备修改尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "client_rects_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "元素矩形修改尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "speech_voices_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "语音列表修改尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "webgl_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "WebGL 厂商和渲染器修改尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "webgl_vendor": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "WebGL 厂商尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "webgl_renderer": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "WebGL 渲染器尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "webgpu_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "WebGPU 修改尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "apps": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "maxItems": 100,
                        "description": "应用自动启动尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "sync_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "完整浏览数据同步尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "browser_settings_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "全局浏览器设置联动尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "random_fingerprint": {
                        "type": "boolean",
                        "description": "每次启动随机指纹尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "do_not_track": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "DNT 修改尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "port_scan_protection": {
                        "type": "boolean",
                        "description": "端口扫描保护尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "hardware_acceleration": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "可请求禁用 GPU；实际加速取决于 Chromium 和驱动",
                        "x-support-status": "partial"
                      },
                      "tls_mode": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "TLS 指纹修改尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "cpu_cores": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "CPU 核数修改尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "ram_gb": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "内存修改尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "device_name": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "设备名称修改尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "mac_address": {
                        "type": "string",
                        "maxLength": 4096,
                        "description": "MAC 修改尚未实现；历史配置保留",
                        "x-support-status": "stored_only"
                      },
                      "startup_urls": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "maxItems": 100
                      },
                      "extensions": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 4096,
                          "description": ""
                        },
                        "maxItems": 100,
                        "description": "加载允许目录中的已解压扩展",
                        "x-support-status": "supported"
                      },
                      "disable_images": {
                        "type": "boolean"
                      },
                      "disable_videos": {
                        "type": "boolean",
                        "description": "限制自动播放，不阻止所有视频下载或播放",
                        "x-support-status": "partial"
                      }
                    },
                    "required": [],
                    "additionalProperties": false
                  },
                  "count": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  }
                },
                "required": [
                  "fields",
                  "count"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "task_id": {
                          "type": "string"
                        },
                        "status": {
                          "const": "queued"
                        }
                      },
                      "required": [
                        "task_id",
                        "status"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "data",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "INVALID_ARGUMENT",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHORIZED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "409": {
            "description": "CONFLICT / START_TIMEOUT / SESSION_CLOSED / CONFIRMATION_REQUIRED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "description": "RATE_LIMITED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "SERVICE_UNAVAILABLE",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/actions/proxy.check": {
      "post": {
        "operationId": "proxy_check",
        "summary": "通过环境实际代理链路检测出口和语言",
        "description": "通过环境实际代理链路检测出口和语言。只读查询。",
        "x-required-scope": "profiles.read",
        "x-confirmation": false,
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Nezha-Confirmation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "profile_id": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": "环境 ID",
                    "pattern": "^[a-zA-Z0-9_-]{1,128}$"
                  }
                },
                "required": [
                  "profile_id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "ip": {
                          "type": "string"
                        },
                        "latency_ms": {
                          "type": "number"
                        },
                        "language": {
                          "type": "string"
                        },
                        "route": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "ip",
                        "latency_ms",
                        "language",
                        "route"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "data",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "INVALID_ARGUMENT",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHORIZED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "409": {
            "description": "CONFLICT / START_TIMEOUT / SESSION_CLOSED / CONFIRMATION_REQUIRED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "description": "RATE_LIMITED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "SERVICE_UNAVAILABLE",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/actions/diagnostics.run": {
      "post": {
        "operationId": "diagnostics_run",
        "summary": "在专用后台空白页检测环境，不读取业务页面",
        "description": "在专用后台空白页检测环境，不读取业务页面。修改状态；必须提供 Idempotency-Key。",
        "x-required-scope": "browser.control",
        "x-confirmation": true,
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Nezha-Confirmation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "profile_id": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": "环境 ID",
                    "pattern": "^[a-zA-Z0-9_-]{1,128}$"
                  },
                  "include_network": {
                    "type": "boolean",
                    "default": false
                  }
                },
                "required": [
                  "profile_id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "task_id": {
                          "type": "string"
                        },
                        "status": {
                          "const": "queued"
                        }
                      },
                      "required": [
                        "task_id",
                        "status"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "data",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "INVALID_ARGUMENT",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHORIZED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "409": {
            "description": "CONFLICT / START_TIMEOUT / SESSION_CLOSED / CONFIRMATION_REQUIRED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "description": "RATE_LIMITED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "SERVICE_UNAVAILABLE",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/actions/diagnostics.get": {
      "post": {
        "operationId": "diagnostics_get",
        "summary": "读取最近的脱敏环境检测报告",
        "description": "读取最近的脱敏环境检测报告。只读查询。",
        "x-required-scope": "browser.read",
        "x-confirmation": false,
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Nezha-Confirmation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "profile_id": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": "环境 ID",
                    "pattern": "^[a-zA-Z0-9_-]{1,128}$"
                  }
                },
                "required": [
                  "profile_id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "available": {
                          "type": "boolean"
                        },
                        "stale": {
                          "type": "boolean"
                        },
                        "report": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "profile_id": {
                                  "type": "string"
                                },
                                "checked_at": {
                                  "type": "string",
                                  "format": "date-time"
                                },
                                "source": {
                                  "type": "string"
                                },
                                "checks": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "field": {
                                        "type": "string"
                                      },
                                      "status": {
                                        "enum": [
                                          "pass",
                                          "mismatch",
                                          "not_checked",
                                          "experimental"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "field",
                                      "status"
                                    ],
                                    "additionalProperties": true
                                  }
                                },
                                "observed": {
                                  "type": "object"
                                },
                                "network": {
                                  "type": "object"
                                },
                                "runtime": {
                                  "type": "object"
                                },
                                "warnings": {
                                  "type": "array",
                                  "items": {
                                    "type": "object"
                                  }
                                },
                                "native_fingerprint_kernel": {
                                  "type": "boolean",
                                  "description": "仅当前活跃 Runtime 确认加载已验收原生候选时为真，不代表完整覆盖。"
                                },
                                "limitations": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "capabilities": {
                                  "type": "object"
                                },
                                "configuration_source": {
                                  "type": "string",
                                  "enum": [
                                    "active_runtime_snapshot",
                                    "unknown"
                                  ],
                                  "description": "检测预期值和代理链路使用当前 Runtime 快照，而非已保存的待重启配置。旧版本历史报告可能没有此字段。"
                                },
                                "configuration_state": {
                                  "type": "object",
                                  "properties": {
                                    "status": {
                                      "enum": [
                                        "not_running",
                                        "starting",
                                        "stopping",
                                        "in_sync",
                                        "pending_restart",
                                        "configuration_failed",
                                        "unknown"
                                      ]
                                    },
                                    "pending_restart": {
                                      "anyOf": [
                                        {
                                          "type": "boolean"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "changed_fields": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "snapshot_available": {
                                      "type": "boolean"
                                    },
                                    "message": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "status",
                                    "pending_restart",
                                    "changed_fields",
                                    "snapshot_available",
                                    "message"
                                  ],
                                  "additionalProperties": true,
                                  "description": "比较保存的启动配置与实际启动前的用户配置快照，不比较自动解析后的有效值。仅返回字段名，不返回旧值或密码。in_sync 仅表示配置未变，不保证所有指纹能力均支持；unknown 的 pending_restart 为 null。"
                                }
                              },
                              "required": [
                                "profile_id",
                                "checked_at",
                                "source",
                                "checks",
                                "observed",
                                "network",
                                "runtime",
                                "warnings",
                                "native_fingerprint_kernel",
                                "limitations",
                                "capabilities"
                              ],
                              "additionalProperties": true
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "available",
                        "stale",
                        "report"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "data",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "INVALID_ARGUMENT",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHORIZED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "409": {
            "description": "CONFLICT / START_TIMEOUT / SESSION_CLOSED / CONFIRMATION_REQUIRED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "description": "RATE_LIMITED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "SERVICE_UNAVAILABLE",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/actions/browser.start": {
      "post": {
        "operationId": "browser_start",
        "summary": "启动环境并等待调试连接就绪",
        "description": "启动环境并等待调试连接就绪。修改状态；必须提供 Idempotency-Key。 已运行时不关闭、不重启，返回 already_running=true；starting 继续等待。等待超时不杀进程。无 browser.debug 时省略所有 CDP 地址及端口；open_url 激活同路径标签或新开。 已运行时不会用保存的新配置覆盖启动快照；configuration_state 说明是否有待下次启动的修改。",
        "x-required-scope": "browser.control",
        "x-confirmation": false,
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Nezha-Confirmation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "profile_id": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": "环境 ID",
                    "pattern": "^[a-zA-Z0-9_-]{1,128}$"
                  },
                  "wait_ready_timeout": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 120,
                    "default": 20
                  },
                  "open_url": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": "就绪后打开；已有同路径标签则激活，不重复创建"
                  }
                },
                "required": [
                  "profile_id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "profile_id": {
                          "type": "string"
                        },
                        "session_id": {
                          "type": "string",
                          "description": "0.3.2 起等于 profile_id，同环境生命周期间稳定；每次重启应重新发现 CDP URL，不缓存端口"
                        },
                        "status": {
                          "enum": [
                            "starting",
                            "running",
                            "stopping",
                            "stopped"
                          ]
                        },
                        "pid": {
                          "type": "integer"
                        },
                        "started_at": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "already_running": {
                          "type": "boolean"
                        },
                        "cdp_ws_url": {
                          "type": "string",
                          "pattern": "^ws://127\\.0\\.0\\.1:[0-9]+/devtools/browser/.+",
                          "description": "仅 browser.debug 或本机主令牌返回，直接传给 Playwright connect_over_cdp",
                          "x-required-scope": "browser.debug"
                        },
                        "debug_port": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 65535,
                          "x-required-scope": "browser.debug"
                        },
                        "cdp_ws": {
                          "type": "string",
                          "pattern": "^ws://127\\.0\\.0\\.1:[0-9]+/devtools/browser/.+",
                          "description": "仅 browser.debug 或本机主令牌返回，直接传给 Playwright connect_over_cdp",
                          "x-required-scope": "browser.debug",
                          "deprecated": true
                        },
                        "port": {
                          "type": "integer",
                          "deprecated": true,
                          "x-required-scope": "browser.debug"
                        },
                        "cdp_http": {
                          "type": "string",
                          "deprecated": true,
                          "x-required-scope": "browser.debug"
                        },
                        "language": {
                          "type": "string"
                        },
                        "network": {
                          "type": "object"
                        },
                        "configuration_state": {
                          "type": "object",
                          "properties": {
                            "status": {
                              "enum": [
                                "not_running",
                                "starting",
                                "stopping",
                                "in_sync",
                                "pending_restart",
                                "configuration_failed",
                                "unknown"
                              ]
                            },
                            "pending_restart": {
                              "anyOf": [
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "changed_fields": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "snapshot_available": {
                              "type": "boolean"
                            },
                            "message": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "status",
                            "pending_restart",
                            "changed_fields",
                            "snapshot_available",
                            "message"
                          ],
                          "additionalProperties": true,
                          "description": "比较保存的启动配置与实际启动前的用户配置快照，不比较自动解析后的有效值。仅返回字段名，不返回旧值或密码。in_sync 仅表示配置未变，不保证所有指纹能力均支持；unknown 的 pending_restart 为 null。"
                        },
                        "configuration_runtime": {
                          "type": "object",
                          "properties": {
                            "backend": {
                              "type": "string"
                            },
                            "ready": {
                              "type": "boolean"
                            },
                            "native_kernel": {
                              "type": "boolean"
                            },
                            "errors": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "stage": {
                                    "type": "string"
                                  },
                                  "code": {
                                    "type": "string"
                                  },
                                  "method": {
                                    "type": "string"
                                  },
                                  "target_type": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "target_id": {
                                    "type": "string"
                                  },
                                  "exception_type": {
                                    "type": "string"
                                  },
                                  "protocol_code": {
                                    "anyOf": [
                                      {
                                        "type": "integer"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "stage",
                                  "code"
                                ],
                                "additionalProperties": true
                              }
                            },
                            "managed_targets": {
                              "type": "integer",
                              "minimum": 0
                            },
                            "limitations": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "timezone_runtime": {
                              "type": "object",
                              "properties": {
                                "mechanism": {
                                  "enum": [
                                    "process_default_v1",
                                    "cdp_target_override",
                                    "host",
                                    "unverified"
                                  ]
                                },
                                "launch_timezone_id": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "contract": {
                                  "anyOf": [
                                    {
                                      "const": "process-default-timezone-v1"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "policy_version": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "const": 1
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "tested_first_script_scopes": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "source": {
                                  "const": "launch_snapshot_not_current_probe"
                                },
                                "effective_at": {
                                  "const": "next_start"
                                },
                                "limitations": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                }
                              },
                              "required": [
                                "mechanism",
                                "launch_timezone_id",
                                "contract",
                                "policy_version",
                                "tested_first_script_scopes",
                                "source",
                                "effective_at",
                                "limitations"
                              ],
                              "additionalProperties": true,
                              "description": "来自本次启动快照和独立校验候选的时区计划，不是当前页面或 Worker 实测值。外部 CDP 可覆盖渲染进程；保存新时区不改变运行中的基线。旧候选只报告 CDP 覆盖，无进程默认首脚本声明；真实模式不传时区参数。"
                            },
                            "native_coverage": {
                              "const": "tested_partial"
                            },
                            "javascript_noise": {
                              "const": false
                            },
                            "build_id": {
                              "type": "string"
                            },
                            "algorithm_version": {
                              "type": "integer",
                              "enum": [
                                2,
                                3
                              ],
                              "description": "原生启动计划实际选择的算法版本；运行中编辑保存值不会改变它。"
                            },
                            "domain_algorithm_versions": {
                              "type": "object",
                              "properties": {
                                "canvas": {
                                  "type": "integer",
                                  "enum": [
                                    2,
                                    3
                                  ]
                                },
                                "webgl": {
                                  "type": "integer",
                                  "const": 2
                                },
                                "audio": {
                                  "type": "integer",
                                  "const": 2
                                }
                              },
                              "required": [
                                "canvas",
                                "webgl",
                                "audio"
                              ],
                              "additionalProperties": true,
                              "description": "本候选 Canvas 使用所选 2/3，原始 WebGL 和音频始终使用 2。"
                            },
                            "support": {
                              "type": "object",
                              "properties": {
                                "canvas": {
                                  "type": "object",
                                  "properties": {
                                    "status": {
                                      "enum": [
                                        "tested_partial",
                                        "unverified",
                                        "unsupported"
                                      ]
                                    },
                                    "surfaces": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "limitations": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  "required": [
                                    "status",
                                    "surfaces",
                                    "limitations"
                                  ],
                                  "additionalProperties": true
                                },
                                "webgl": {
                                  "type": "object",
                                  "properties": {
                                    "status": {
                                      "enum": [
                                        "tested_partial",
                                        "unverified",
                                        "unsupported"
                                      ]
                                    },
                                    "surfaces": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "limitations": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  "required": [
                                    "status",
                                    "surfaces",
                                    "limitations"
                                  ],
                                  "additionalProperties": true
                                },
                                "audio": {
                                  "type": "object",
                                  "properties": {
                                    "status": {
                                      "enum": [
                                        "tested_partial",
                                        "unverified",
                                        "unsupported"
                                      ]
                                    },
                                    "surfaces": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "limitations": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  "required": [
                                    "status",
                                    "surfaces",
                                    "limitations"
                                  ],
                                  "additionalProperties": true
                                }
                              },
                              "required": [
                                "canvas",
                                "webgl",
                                "audio"
                              ],
                              "additionalProperties": true
                            }
                          },
                          "required": [
                            "backend",
                            "ready",
                            "native_kernel",
                            "limitations"
                          ],
                          "additionalProperties": true,
                          "description": "当前 Runtime.status 的观测，不是已保存的待启动配置。ready 为 false 表示管理连接或目标配置未就绪；native_kernel 仅标识已验证原生启动计划，不保证连接仍就绪或完整覆盖。原生专有字段在普通内核/无 Runtime owner 时省略。"
                        }
                      },
                      "required": [
                        "profile_id",
                        "session_id",
                        "status",
                        "pid",
                        "started_at"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "data",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "INVALID_ARGUMENT",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHORIZED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "409": {
            "description": "CONFLICT / START_TIMEOUT / SESSION_CLOSED / CONFIRMATION_REQUIRED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "description": "RATE_LIMITED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "SERVICE_UNAVAILABLE",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/actions/browser.stop": {
      "post": {
        "operationId": "browser_stop",
        "summary": "停止环境",
        "description": "停止环境。修改状态；必须提供 Idempotency-Key。",
        "x-required-scope": "browser.control",
        "x-confirmation": false,
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Nezha-Confirmation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "profile_id": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": "环境 ID",
                    "pattern": "^[a-zA-Z0-9_-]{1,128}$"
                  }
                },
                "required": [
                  "profile_id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "stopped": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "stopped"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "data",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "INVALID_ARGUMENT",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHORIZED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "409": {
            "description": "CONFLICT / START_TIMEOUT / SESSION_CLOSED / CONFIRMATION_REQUIRED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "description": "RATE_LIMITED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "SERVICE_UNAVAILABLE",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/actions/browser.sessions": {
      "post": {
        "operationId": "browser_sessions",
        "summary": "查看统一运行状态",
        "description": "查看统一运行状态。只读查询。 返回全部授权的活跃会话，包括桌面手动启动的环境；session_id=profile_id。仅 browser.debug 可见 cdp_ws_url/debug_port 及旧别名。",
        "x-required-scope": "profiles.read",
        "x-confirmation": false,
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Nezha-Confirmation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "required": [],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "sessions": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "profile_id": {
                                "type": "string"
                              },
                              "session_id": {
                                "type": "string",
                                "description": "0.3.2 起等于 profile_id，同环境生命周期间稳定；每次重启应重新发现 CDP URL，不缓存端口"
                              },
                              "status": {
                                "enum": [
                                  "starting",
                                  "running",
                                  "stopping",
                                  "stopped"
                                ]
                              },
                              "pid": {
                                "type": "integer"
                              },
                              "started_at": {
                                "type": "string",
                                "format": "date-time"
                              },
                              "already_running": {
                                "type": "boolean"
                              },
                              "cdp_ws_url": {
                                "type": "string",
                                "pattern": "^ws://127\\.0\\.0\\.1:[0-9]+/devtools/browser/.+",
                                "description": "仅 browser.debug 或本机主令牌返回，直接传给 Playwright connect_over_cdp",
                                "x-required-scope": "browser.debug"
                              },
                              "debug_port": {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 65535,
                                "x-required-scope": "browser.debug"
                              },
                              "cdp_ws": {
                                "type": "string",
                                "pattern": "^ws://127\\.0\\.0\\.1:[0-9]+/devtools/browser/.+",
                                "description": "仅 browser.debug 或本机主令牌返回，直接传给 Playwright connect_over_cdp",
                                "x-required-scope": "browser.debug",
                                "deprecated": true
                              },
                              "port": {
                                "type": "integer",
                                "deprecated": true,
                                "x-required-scope": "browser.debug"
                              },
                              "cdp_http": {
                                "type": "string",
                                "deprecated": true,
                                "x-required-scope": "browser.debug"
                              },
                              "language": {
                                "type": "string"
                              },
                              "network": {
                                "type": "object"
                              },
                              "configuration_state": {
                                "type": "object",
                                "properties": {
                                  "status": {
                                    "enum": [
                                      "not_running",
                                      "starting",
                                      "stopping",
                                      "in_sync",
                                      "pending_restart",
                                      "configuration_failed",
                                      "unknown"
                                    ]
                                  },
                                  "pending_restart": {
                                    "anyOf": [
                                      {
                                        "type": "boolean"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "changed_fields": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  },
                                  "snapshot_available": {
                                    "type": "boolean"
                                  },
                                  "message": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "status",
                                  "pending_restart",
                                  "changed_fields",
                                  "snapshot_available",
                                  "message"
                                ],
                                "additionalProperties": true,
                                "description": "比较保存的启动配置与实际启动前的用户配置快照，不比较自动解析后的有效值。仅返回字段名，不返回旧值或密码。in_sync 仅表示配置未变，不保证所有指纹能力均支持；unknown 的 pending_restart 为 null。"
                              },
                              "configuration_runtime": {
                                "type": "object",
                                "properties": {
                                  "backend": {
                                    "type": "string"
                                  },
                                  "ready": {
                                    "type": "boolean"
                                  },
                                  "native_kernel": {
                                    "type": "boolean"
                                  },
                                  "errors": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "stage": {
                                          "type": "string"
                                        },
                                        "code": {
                                          "type": "string"
                                        },
                                        "method": {
                                          "type": "string"
                                        },
                                        "target_type": {
                                          "anyOf": [
                                            {
                                              "type": "string"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "target_id": {
                                          "type": "string"
                                        },
                                        "exception_type": {
                                          "type": "string"
                                        },
                                        "protocol_code": {
                                          "anyOf": [
                                            {
                                              "type": "integer"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      },
                                      "required": [
                                        "stage",
                                        "code"
                                      ],
                                      "additionalProperties": true
                                    }
                                  },
                                  "managed_targets": {
                                    "type": "integer",
                                    "minimum": 0
                                  },
                                  "limitations": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  },
                                  "timezone_runtime": {
                                    "type": "object",
                                    "properties": {
                                      "mechanism": {
                                        "enum": [
                                          "process_default_v1",
                                          "cdp_target_override",
                                          "host",
                                          "unverified"
                                        ]
                                      },
                                      "launch_timezone_id": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "contract": {
                                        "anyOf": [
                                          {
                                            "const": "process-default-timezone-v1"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "policy_version": {
                                        "anyOf": [
                                          {
                                            "type": "integer",
                                            "const": 1
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "tested_first_script_scopes": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      },
                                      "source": {
                                        "const": "launch_snapshot_not_current_probe"
                                      },
                                      "effective_at": {
                                        "const": "next_start"
                                      },
                                      "limitations": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      }
                                    },
                                    "required": [
                                      "mechanism",
                                      "launch_timezone_id",
                                      "contract",
                                      "policy_version",
                                      "tested_first_script_scopes",
                                      "source",
                                      "effective_at",
                                      "limitations"
                                    ],
                                    "additionalProperties": true,
                                    "description": "来自本次启动快照和独立校验候选的时区计划，不是当前页面或 Worker 实测值。外部 CDP 可覆盖渲染进程；保存新时区不改变运行中的基线。旧候选只报告 CDP 覆盖，无进程默认首脚本声明；真实模式不传时区参数。"
                                  },
                                  "native_coverage": {
                                    "const": "tested_partial"
                                  },
                                  "javascript_noise": {
                                    "const": false
                                  },
                                  "build_id": {
                                    "type": "string"
                                  },
                                  "algorithm_version": {
                                    "type": "integer",
                                    "enum": [
                                      2,
                                      3
                                    ],
                                    "description": "原生启动计划实际选择的算法版本；运行中编辑保存值不会改变它。"
                                  },
                                  "domain_algorithm_versions": {
                                    "type": "object",
                                    "properties": {
                                      "canvas": {
                                        "type": "integer",
                                        "enum": [
                                          2,
                                          3
                                        ]
                                      },
                                      "webgl": {
                                        "type": "integer",
                                        "const": 2
                                      },
                                      "audio": {
                                        "type": "integer",
                                        "const": 2
                                      }
                                    },
                                    "required": [
                                      "canvas",
                                      "webgl",
                                      "audio"
                                    ],
                                    "additionalProperties": true,
                                    "description": "本候选 Canvas 使用所选 2/3，原始 WebGL 和音频始终使用 2。"
                                  },
                                  "support": {
                                    "type": "object",
                                    "properties": {
                                      "canvas": {
                                        "type": "object",
                                        "properties": {
                                          "status": {
                                            "enum": [
                                              "tested_partial",
                                              "unverified",
                                              "unsupported"
                                            ]
                                          },
                                          "surfaces": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          },
                                          "limitations": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          }
                                        },
                                        "required": [
                                          "status",
                                          "surfaces",
                                          "limitations"
                                        ],
                                        "additionalProperties": true
                                      },
                                      "webgl": {
                                        "type": "object",
                                        "properties": {
                                          "status": {
                                            "enum": [
                                              "tested_partial",
                                              "unverified",
                                              "unsupported"
                                            ]
                                          },
                                          "surfaces": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          },
                                          "limitations": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          }
                                        },
                                        "required": [
                                          "status",
                                          "surfaces",
                                          "limitations"
                                        ],
                                        "additionalProperties": true
                                      },
                                      "audio": {
                                        "type": "object",
                                        "properties": {
                                          "status": {
                                            "enum": [
                                              "tested_partial",
                                              "unverified",
                                              "unsupported"
                                            ]
                                          },
                                          "surfaces": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          },
                                          "limitations": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          }
                                        },
                                        "required": [
                                          "status",
                                          "surfaces",
                                          "limitations"
                                        ],
                                        "additionalProperties": true
                                      }
                                    },
                                    "required": [
                                      "canvas",
                                      "webgl",
                                      "audio"
                                    ],
                                    "additionalProperties": true
                                  }
                                },
                                "required": [
                                  "backend",
                                  "ready",
                                  "native_kernel",
                                  "limitations"
                                ],
                                "additionalProperties": true,
                                "description": "当前 Runtime.status 的观测，不是已保存的待启动配置。ready 为 false 表示管理连接或目标配置未就绪；native_kernel 仅标识已验证原生启动计划，不保证连接仍就绪或完整覆盖。原生专有字段在普通内核/无 Runtime owner 时省略。"
                              }
                            },
                            "required": [
                              "profile_id",
                              "session_id",
                              "status",
                              "pid",
                              "started_at"
                            ],
                            "additionalProperties": true
                          }
                        }
                      },
                      "required": [
                        "sessions"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "data",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "INVALID_ARGUMENT",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHORIZED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "409": {
            "description": "CONFLICT / START_TIMEOUT / SESSION_CLOSED / CONFIRMATION_REQUIRED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "description": "RATE_LIMITED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "SERVICE_UNAVAILABLE",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/actions/pages.list": {
      "post": {
        "operationId": "pages_list",
        "summary": "列出浏览器标签页",
        "description": "列出浏览器标签页。只读查询。",
        "x-required-scope": "browser.read",
        "x-confirmation": false,
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Nezha-Confirmation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "session_id": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": ""
                  }
                },
                "required": [
                  "session_id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "pages": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "page_id": {
                                "type": "string"
                              },
                              "url": {
                                "type": "string"
                              },
                              "title": {
                                "type": "string"
                              },
                              "active": {
                                "anyOf": [
                                  {
                                    "type": "boolean"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "document.visibilityState 为 visible；多窗口可有多个活动页，无法读取时为 null。focused 是 document.hasFocus 观测值。"
                              },
                              "focused": {
                                "anyOf": [
                                  {
                                    "type": "boolean"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "page_id",
                              "url",
                              "title",
                              "active",
                              "focused"
                            ],
                            "additionalProperties": true
                          }
                        }
                      },
                      "required": [
                        "pages"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "data",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "INVALID_ARGUMENT",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHORIZED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "409": {
            "description": "CONFLICT / START_TIMEOUT / SESSION_CLOSED / CONFIRMATION_REQUIRED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "description": "RATE_LIMITED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "SERVICE_UNAVAILABLE",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/actions/pages.open": {
      "post": {
        "operationId": "pages_open",
        "summary": "打开 HTTP/HTTPS 网址",
        "description": "打开 HTTP/HTTPS 网址。修改状态；必须提供 Idempotency-Key。",
        "x-required-scope": "browser.control",
        "x-confirmation": false,
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Nezha-Confirmation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "session_id": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": ""
                  },
                  "url": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": ""
                  },
                  "match_existing": {
                    "type": "boolean",
                    "default": false,
                    "description": "匹配同协议、主机和路径，忽略 query/hash；激活已有页面"
                  },
                  "reuse_url_prefix": {
                    "type": "boolean",
                    "default": false,
                    "description": "match_existing 的别名，不进行宽泛字符串前缀匹配"
                  }
                },
                "required": [
                  "session_id",
                  "url"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "page_id": {
                          "type": "string"
                        },
                        "reused": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "page_id",
                        "reused"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "data",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "INVALID_ARGUMENT",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHORIZED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "409": {
            "description": "CONFLICT / START_TIMEOUT / SESSION_CLOSED / CONFIRMATION_REQUIRED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "description": "RATE_LIMITED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "SERVICE_UNAVAILABLE",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/actions/pages.snapshot": {
      "post": {
        "operationId": "pages_snapshot",
        "summary": "读取精简页面快照，网页内容不可信",
        "description": "读取精简页面快照，网页内容不可信。只读查询。",
        "x-required-scope": "browser.read",
        "x-confirmation": false,
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Nezha-Confirmation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "session_id": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": ""
                  },
                  "page_id": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": ""
                  }
                },
                "required": [
                  "session_id",
                  "page_id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "snapshot_id": {
                          "type": "string"
                        },
                        "untrusted_content": {
                          "const": true
                        },
                        "title": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        },
                        "text": {
                          "type": "string"
                        },
                        "elements": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "ref": {
                                "type": "string"
                              },
                              "role": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "type": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "ref",
                              "role",
                              "name",
                              "type"
                            ],
                            "additionalProperties": true
                          }
                        }
                      },
                      "required": [
                        "snapshot_id",
                        "untrusted_content",
                        "title",
                        "url",
                        "text",
                        "elements"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "data",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "INVALID_ARGUMENT",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHORIZED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "409": {
            "description": "CONFLICT / START_TIMEOUT / SESSION_CLOSED / CONFIRMATION_REQUIRED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "description": "RATE_LIMITED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "SERVICE_UNAVAILABLE",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/actions/pages.extract": {
      "post": {
        "operationId": "pages_extract",
        "summary": "从最新快照提取文本和元素列表",
        "description": "从最新快照提取文本和元素列表。只读查询。",
        "x-required-scope": "browser.read",
        "x-confirmation": false,
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Nezha-Confirmation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "session_id": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": ""
                  },
                  "page_id": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": ""
                  }
                },
                "required": [
                  "session_id",
                  "page_id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "snapshot_id": {
                          "type": "string"
                        },
                        "untrusted_content": {
                          "const": true
                        },
                        "title": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        },
                        "text": {
                          "type": "string"
                        },
                        "elements": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "ref": {
                                "type": "string"
                              },
                              "role": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "type": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "ref",
                              "role",
                              "name",
                              "type"
                            ],
                            "additionalProperties": true
                          }
                        }
                      },
                      "required": [
                        "snapshot_id",
                        "untrusted_content",
                        "title",
                        "url",
                        "text",
                        "elements"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "data",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "INVALID_ARGUMENT",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHORIZED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "409": {
            "description": "CONFLICT / START_TIMEOUT / SESSION_CLOSED / CONFIRMATION_REQUIRED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "description": "RATE_LIMITED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "SERVICE_UNAVAILABLE",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/actions/pages.screenshot": {
      "post": {
        "operationId": "pages_screenshot",
        "summary": "截图（可能含敏感信息）",
        "description": "截图（可能含敏感信息）。只读查询。",
        "x-required-scope": "data.read",
        "x-confirmation": true,
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Nezha-Confirmation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "session_id": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": ""
                  },
                  "page_id": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": ""
                  }
                },
                "required": [
                  "session_id",
                  "page_id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "artifact_id": {
                          "type": "string"
                        },
                        "content_type": {
                          "const": "image/png"
                        },
                        "download_path": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "artifact_id",
                        "content_type",
                        "download_path"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "data",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "INVALID_ARGUMENT",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHORIZED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "409": {
            "description": "CONFLICT / START_TIMEOUT / SESSION_CLOSED / CONFIRMATION_REQUIRED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "description": "RATE_LIMITED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "SERVICE_UNAVAILABLE",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/actions/pages.click": {
      "post": {
        "operationId": "pages_click",
        "summary": "点击元素",
        "description": "点击元素。修改状态；必须提供 Idempotency-Key。",
        "x-required-scope": "browser.control",
        "x-confirmation": true,
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Nezha-Confirmation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "session_id": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": ""
                  },
                  "page_id": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": ""
                  },
                  "snapshot_id": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": ""
                  },
                  "element_ref": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": ""
                  }
                },
                "required": [
                  "session_id",
                  "page_id",
                  "snapshot_id",
                  "element_ref"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "done": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "done"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "data",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "INVALID_ARGUMENT",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHORIZED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "409": {
            "description": "CONFLICT / START_TIMEOUT / SESSION_CLOSED / CONFIRMATION_REQUIRED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "description": "RATE_LIMITED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "SERVICE_UNAVAILABLE",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/actions/pages.type": {
      "post": {
        "operationId": "pages_type",
        "summary": "输入文本",
        "description": "输入文本。修改状态；必须提供 Idempotency-Key。",
        "x-required-scope": "browser.control",
        "x-confirmation": true,
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Nezha-Confirmation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "session_id": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": ""
                  },
                  "page_id": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": ""
                  },
                  "snapshot_id": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": ""
                  },
                  "element_ref": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": ""
                  },
                  "text": {
                    "type": "string",
                    "maxLength": 10000,
                    "description": ""
                  }
                },
                "required": [
                  "session_id",
                  "page_id",
                  "snapshot_id",
                  "element_ref",
                  "text"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "done": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "done"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "data",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "INVALID_ARGUMENT",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHORIZED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "409": {
            "description": "CONFLICT / START_TIMEOUT / SESSION_CLOSED / CONFIRMATION_REQUIRED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "description": "RATE_LIMITED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "SERVICE_UNAVAILABLE",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/actions/pages.wait": {
      "post": {
        "operationId": "pages_wait",
        "summary": "等待页面文本出现，最长30秒",
        "description": "等待页面文本出现，最长30秒。只读查询。",
        "x-required-scope": "browser.read",
        "x-confirmation": false,
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Nezha-Confirmation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "session_id": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": ""
                  },
                  "page_id": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": ""
                  },
                  "text": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": ""
                  },
                  "timeout": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 30
                  }
                },
                "required": [
                  "session_id",
                  "page_id",
                  "text"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "matched": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "matched"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "data",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "INVALID_ARGUMENT",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHORIZED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "409": {
            "description": "CONFLICT / START_TIMEOUT / SESSION_CLOSED / CONFIRMATION_REQUIRED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "description": "RATE_LIMITED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "SERVICE_UNAVAILABLE",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/actions/cookies.get": {
      "post": {
        "operationId": "cookies_get",
        "summary": "读取Cookie",
        "description": "读取Cookie。只读查询。",
        "x-required-scope": "data.read",
        "x-confirmation": true,
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Nezha-Confirmation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "profile_id": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": "环境 ID",
                    "pattern": "^[a-zA-Z0-9_-]{1,128}$"
                  }
                },
                "required": [
                  "profile_id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "value": {
                                "type": "string"
                              },
                              "domain": {
                                "type": "string"
                              },
                              "path": {
                                "type": "string"
                              },
                              "expires": {
                                "type": "number"
                              },
                              "secure": {
                                "type": "boolean"
                              },
                              "httpOnly": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "name",
                              "value"
                            ],
                            "additionalProperties": true
                          }
                        },
                        "source": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "items",
                        "source"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "data",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "INVALID_ARGUMENT",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHORIZED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "409": {
            "description": "CONFLICT / START_TIMEOUT / SESSION_CLOSED / CONFIRMATION_REQUIRED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "description": "RATE_LIMITED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "SERVICE_UNAVAILABLE",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/actions/cookies.set": {
      "post": {
        "operationId": "cookies_set",
        "summary": "写入Cookie（停止环境后）",
        "description": "写入Cookie（停止环境后）。修改状态；必须提供 Idempotency-Key。",
        "x-required-scope": "data.write",
        "x-confirmation": true,
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Nezha-Confirmation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "profile_id": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": "环境 ID",
                    "pattern": "^[a-zA-Z0-9_-]{1,128}$"
                  },
                  "items": {
                    "type": "array",
                    "maxItems": 5000,
                    "items": {
                      "type": "object"
                    }
                  }
                },
                "required": [
                  "profile_id",
                  "items"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "count": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "count"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "data",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "INVALID_ARGUMENT",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHORIZED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "409": {
            "description": "CONFLICT / START_TIMEOUT / SESSION_CLOSED / CONFIRMATION_REQUIRED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "description": "RATE_LIMITED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "SERVICE_UNAVAILABLE",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/actions/bookmarks.get": {
      "post": {
        "operationId": "bookmarks_get",
        "summary": "读取书签",
        "description": "读取书签。只读查询。",
        "x-required-scope": "data.read",
        "x-confirmation": true,
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Nezha-Confirmation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "profile_id": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": "环境 ID",
                    "pattern": "^[a-zA-Z0-9_-]{1,128}$"
                  }
                },
                "required": [
                  "profile_id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "url": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "name",
                              "url"
                            ],
                            "additionalProperties": true
                          }
                        }
                      },
                      "required": [
                        "items"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "data",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "INVALID_ARGUMENT",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHORIZED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "409": {
            "description": "CONFLICT / START_TIMEOUT / SESSION_CLOSED / CONFIRMATION_REQUIRED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "description": "RATE_LIMITED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "SERVICE_UNAVAILABLE",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/actions/bookmarks.set": {
      "post": {
        "operationId": "bookmarks_set",
        "summary": "写入书签（停止环境后）",
        "description": "写入书签（停止环境后）。修改状态；必须提供 Idempotency-Key。",
        "x-required-scope": "data.write",
        "x-confirmation": true,
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Nezha-Confirmation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "profile_id": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": "环境 ID",
                    "pattern": "^[a-zA-Z0-9_-]{1,128}$"
                  },
                  "items": {
                    "type": "array",
                    "maxItems": 5000,
                    "items": {
                      "type": "object"
                    }
                  }
                },
                "required": [
                  "profile_id",
                  "items"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "count": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "count"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "data",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "INVALID_ARGUMENT",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHORIZED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "409": {
            "description": "CONFLICT / START_TIMEOUT / SESSION_CLOSED / CONFIRMATION_REQUIRED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "description": "RATE_LIMITED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "SERVICE_UNAVAILABLE",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/actions/extensions.get": {
      "post": {
        "operationId": "extensions_get",
        "summary": "读取扩展",
        "description": "读取扩展。只读查询。",
        "x-required-scope": "data.read",
        "x-confirmation": true,
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Nezha-Confirmation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "profile_id": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": "环境 ID",
                    "pattern": "^[a-zA-Z0-9_-]{1,128}$"
                  }
                },
                "required": [
                  "profile_id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "required": [
                        "items"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "data",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "INVALID_ARGUMENT",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHORIZED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "409": {
            "description": "CONFLICT / START_TIMEOUT / SESSION_CLOSED / CONFIRMATION_REQUIRED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "description": "RATE_LIMITED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "SERVICE_UNAVAILABLE",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/actions/extensions.set": {
      "post": {
        "operationId": "extensions_set",
        "summary": "写入扩展（停止环境后）",
        "description": "写入扩展（停止环境后）。修改状态；必须提供 Idempotency-Key。",
        "x-required-scope": "data.write",
        "x-confirmation": true,
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Nezha-Confirmation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "profile_id": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": "环境 ID",
                    "pattern": "^[a-zA-Z0-9_-]{1,128}$"
                  },
                  "items": {
                    "type": "array",
                    "maxItems": 5000,
                    "items": {
                      "type": "string",
                      "maxLength": 4096,
                      "description": ""
                    }
                  }
                },
                "required": [
                  "profile_id",
                  "items"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "count": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "count"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "data",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "INVALID_ARGUMENT",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHORIZED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "409": {
            "description": "CONFLICT / START_TIMEOUT / SESSION_CLOSED / CONFIRMATION_REQUIRED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "description": "RATE_LIMITED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "SERVICE_UNAVAILABLE",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/actions/tasks.get": {
      "post": {
        "operationId": "tasks_get",
        "summary": "查询任务及结果",
        "description": "查询任务及结果。只读查询。",
        "x-required-scope": "tasks.read",
        "x-confirmation": false,
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Nezha-Confirmation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "task_id": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": ""
                  }
                },
                "required": [
                  "task_id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "status": {
                          "enum": [
                            "queued",
                            "running",
                            "completed",
                            "failed",
                            "cancelled",
                            "interrupted"
                          ]
                        },
                        "progress": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "result": {},
                        "cancel": {
                          "type": "integer"
                        },
                        "updated": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "id",
                        "status",
                        "progress",
                        "total",
                        "result",
                        "cancel",
                        "updated"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "data",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "INVALID_ARGUMENT",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHORIZED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "409": {
            "description": "CONFLICT / START_TIMEOUT / SESSION_CLOSED / CONFIRMATION_REQUIRED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "description": "RATE_LIMITED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "SERVICE_UNAVAILABLE",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/actions/tasks.cancel": {
      "post": {
        "operationId": "tasks_cancel",
        "summary": "请求取消未执行的步骤",
        "description": "请求取消未执行的步骤。修改状态；必须提供 Idempotency-Key。",
        "x-required-scope": "tasks.write",
        "x-confirmation": false,
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Nezha-Confirmation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "task_id": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": ""
                  }
                },
                "required": [
                  "task_id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "status": {
                          "enum": [
                            "queued",
                            "running",
                            "completed",
                            "failed",
                            "cancelled",
                            "interrupted"
                          ]
                        },
                        "progress": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "result": {},
                        "cancel": {
                          "type": "integer"
                        },
                        "updated": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "id",
                        "status",
                        "progress",
                        "total",
                        "result",
                        "cancel",
                        "updated"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "data",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "INVALID_ARGUMENT",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHORIZED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "409": {
            "description": "CONFLICT / START_TIMEOUT / SESSION_CLOSED / CONFIRMATION_REQUIRED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "description": "RATE_LIMITED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "SERVICE_UNAVAILABLE",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/actions/keys.list": {
      "post": {
        "operationId": "keys_list",
        "summary": "查看本机集成令牌",
        "description": "查看本机集成令牌。只读查询。",
        "x-required-scope": "admin",
        "x-confirmation": false,
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Nezha-Confirmation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "required": [],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "keys": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "scopes": {
                                "type": "string",
                                "description": "JSON 数组编码字符串（兼容 0.3.0）"
                              },
                              "profiles": {
                                "type": "string",
                                "description": "JSON 数组或 null 的编码字符串"
                              },
                              "expires": {
                                "type": "number"
                              },
                              "revoked": {
                                "type": "integer"
                              }
                            },
                            "required": [
                              "id",
                              "name",
                              "scopes",
                              "profiles",
                              "expires",
                              "revoked"
                            ],
                            "additionalProperties": true
                          }
                        }
                      },
                      "required": [
                        "keys"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "data",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "INVALID_ARGUMENT",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHORIZED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "409": {
            "description": "CONFLICT / START_TIMEOUT / SESSION_CLOSED / CONFIRMATION_REQUIRED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "description": "RATE_LIMITED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "SERVICE_UNAVAILABLE",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/actions/keys.create": {
      "post": {
        "operationId": "keys_create",
        "summary": "创建独立集成令牌（只返回一次）",
        "description": "创建独立集成令牌（只返回一次）。修改状态；必须提供 Idempotency-Key。",
        "x-required-scope": "admin",
        "x-confirmation": true,
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Nezha-Confirmation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": ""
                  },
                  "scopes": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 4096,
                      "description": ""
                    }
                  },
                  "profile_ids": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 4096,
                      "description": "环境 ID",
                      "pattern": "^[a-zA-Z0-9_-]{1,128}$"
                    }
                  },
                  "ttl_days": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 365
                  }
                },
                "required": [
                  "name",
                  "scopes",
                  "ttl_days"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "key_id": {
                          "type": "string"
                        },
                        "token": {
                          "type": "string",
                          "writeOnly": true,
                          "description": "仅创建时返回一次，勿记录到日志"
                        },
                        "notice": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "key_id",
                        "token",
                        "notice"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "data",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "INVALID_ARGUMENT",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHORIZED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "409": {
            "description": "CONFLICT / START_TIMEOUT / SESSION_CLOSED / CONFIRMATION_REQUIRED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "description": "RATE_LIMITED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "SERVICE_UNAVAILABLE",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/actions/keys.revoke": {
      "post": {
        "operationId": "keys_revoke",
        "summary": "撤销集成令牌",
        "description": "撤销集成令牌。修改状态；必须提供 Idempotency-Key。",
        "x-required-scope": "admin",
        "x-confirmation": true,
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Nezha-Confirmation",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "key_id": {
                    "type": "string",
                    "maxLength": 4096,
                    "description": ""
                  }
                },
                "required": [
                  "key_id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "revoked": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "revoked"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "data",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "INVALID_ARGUMENT",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHORIZED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "409": {
            "description": "CONFLICT / START_TIMEOUT / SESSION_CLOSED / CONFIRMATION_REQUIRED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "description": "RATE_LIMITED",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          },
          "503": {
            "description": "SERVICE_UNAVAILABLE",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "const": false
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "details": {}
                      },
                      "required": [
                        "code",
                        "message"
                      ],
                      "additionalProperties": true
                    },
                    "request_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "error",
                    "request_id"
                  ],
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/events": {
      "get": {
        "summary": "持续 SSE 生命周期事件；按令牌环境和 debug 权限过滤",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "Last-Event-ID",
            "schema": {
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "after",
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "browser.starting / browser.running / browser.stopping / browser.stopped；id/event/data；10秒 heartbeat；断线带 Last-Event-ID 重连",
            "content": {
              "text/event-stream": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/capabilities": {
      "get": {
        "summary": "当前令牌的实际 scopes 和可用工具",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "ok/data/request_id；data.scopes 为已授予权限，data.version 为 API 版本",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok",
                    "data",
                    "request_id"
                  ],
                  "properties": {
                    "ok": {
                      "const": true
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "data": {
                      "type": "object",
                      "required": [
                        "version",
                        "scopes",
                        "tools"
                      ],
                      "properties": {
                        "version": {
                          "type": "string"
                        },
                        "scopes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "tools": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  }
}
