{
    "openapi": "3.0.3",
    "info": {
        "title": "青橙网络验证 API",
        "description": "在线授权 / 离线授权 / 免费试用 / 设备管理 / 云服务 / 浮动许可 / 用量套餐 一体化 API。\n所有 POST 端点（除公告/健康检查）均需 HMAC-SHA256 签名鉴权，请求头见下方 securitySchemes。",
        "version": "1.0.0",
        "contact": {
            "name": "青橙网络验证"
        }
    },
    "servers": [
        {
            "url": "https://api.zhuanqianba.com.cn",
            "description": "当前站点"
        }
    ],
    "tags": [
        {
            "name": "核心验证",
            "description": "激活 / 验证 / 心跳 / 状态 / 离线签发"
        },
        {
            "name": "免费试用",
            "description": "试用开始 / 状态查询"
        },
        {
            "name": "设备管理",
            "description": "绑定 / 解绑 / 直登"
        },
        {
            "name": "账号",
            "description": "终端用户注册 / 登录 / 找回密码"
        },
        {
            "name": "云服务",
            "description": "云变量 / 云函数 / 云文件 / 用户云数据"
        },
        {
            "name": "平台扩展",
            "description": "代理 / 浮动许可 / 用量套餐 / 公告 / 健康检查"
        }
    ],
    "components": {
        "securitySchemes": {
            "HmacAuth": {
                "type": "apiKey",
                "in": "header",
                "name": "X-Sign",
                "description": "HMAC-SHA256 签名。需同时提供 X-App-Key / X-Timestamp / X-Nonce 请求头，签名串 = appKey\\n时间戳\\n随机串\\n排序后的请求体（http_build_query，键按字典序，RFC1738 编码）。"
            }
        },
        "schemas": {
            "ApiResponse": {
                "type": "object",
                "properties": {
                    "code": {
                        "type": "integer",
                        "description": "0 成功；1xx 参数/业务；2xx 授权/用户；3xx 卡密/策略/风控；401 签名失败；403 业务拒绝；429 限流；500 内部错误"
                    },
                    "msg": {
                        "type": "string",
                        "example": "ok"
                    },
                    "data": {
                        "type": "object",
                        "additionalProperties": true
                    }
                }
            }
        }
    },
    "security": [
        {
            "HmacAuth": []
        }
    ]
}