{
  "openapi": "3.1.0",
  "info": {
    "title": "ATEL Wallet API（拟议，未实现）",
    "version": "2.0.0",
    "description": "拟议 v2.0。paths 仅包含逐操作定义的可评审契约（非已实现或已联调）；x-operationDirectory 是待补齐目录，禁止从目录生成 SDK。P1 所需全部操作完成 schema、鉴权、错误及联调后才可冻结发布。"
  },
  "servers": [
    {
      "url": "https://api.atel.example",
      "description": "占位 origin；路径已包含 /v1，不重复拼接"
    }
  ],
  "tags": [
    {
      "name": "B1 连接 Agent 与设定额度"
    },
    {
      "name": "B2 Agent 交来委托"
    },
    {
      "name": "B3 找办理路径、取得结账信息"
    },
    {
      "name": "B4 核对与自动修正"
    },
    {
      "name": "B5 放行与执行"
    },
    {
      "name": "B6 确认付款结果：成功或失败"
    },
    {
      "name": "B7 结果回到对话"
    },
    {
      "name": "E1 用户浏览器＋Vault 插件"
    },
    {
      "name": "E2 接口与协议（协议解释器）"
    },
    {
      "name": "E3 云端浏览器（P4）"
    },
    {
      "name": "E4 交还用户付款与本人验证"
    },
    {
      "name": "O1 后台最小集与开发者渠道"
    },
    {
      "name": "X1 停止花钱与调整额度"
    },
    {
      "name": "X2 结果不明与异常恢复"
    },
    {
      "name": "X3 首页、交易与证据"
    },
    {
      "name": "X4 设置、隐私与数据"
    }
  ],
  "paths": {
    "/v1/agent/drill-offers": {
      "post": {
        "operationId": "createDrillOffer",
        "summary": "B1-09 让 Agent 用上 ATEL：安装与对话话术",
        "tags": [
          "B1 连接 Agent 与设定额度"
        ],
        "x-requirementIds": [
          "B1-09"
        ],
        "x-internal": false,
        "x-status": "proposed-not-implemented",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 128
            }
          }
        ],
        "responses": {
          "201": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/DrillOfferResult"
                    },
                    "requestId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    }
                  },
                  "required": [
                    "data",
                    "requestId"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "格式无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "身份或签名无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "渠道明确拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "权限／实时限制拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "版本或幂等冲突",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "链接已过期",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "业务条件未满足",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "限流",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "451": {
            "description": "地区限制",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "不可用，先查询原动作",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "agentConnection": []
          }
        ],
        "x-phase": "P1",
        "x-contractStatus": "reviewable-not-implemented",
        "x-source": "T14-接口与验收契约.md",
        "description": "连接令牌归属校验；连接完成后提议，尚不创建任务。",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DrillOfferRequest"
              }
            }
          }
        }
      }
    },
    "/v1/agent/oauth/token": {
      "post": {
        "operationId": "exchangeConnectionToken",
        "summary": "B1-03 确认并绑定 Agent",
        "tags": [
          "B1 连接 Agent 与设定额度"
        ],
        "x-requirementIds": [
          "B1-03"
        ],
        "x-internal": false,
        "x-status": "proposed-not-implemented",
        "parameters": [],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ConnectionTokenResult"
                    },
                    "requestId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    }
                  },
                  "required": [
                    "data",
                    "requestId"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "格式无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "身份或签名无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "渠道明确拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "权限／实时限制拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "版本或幂等冲突",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "链接已过期",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "业务条件未满足",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "限流",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "451": {
            "description": "地区限制",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "不可用，先查询原动作",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [],
        "x-phase": "P1",
        "x-contractStatus": "reviewable-not-implemented",
        "x-source": "T14-接口与验收契约.md",
        "description": "ATEL自定义配对兑换，不宣称完整OAuth Device Grant兼容；验证S256与发起身份绑定，已登记clientId必须匹配。确认后原子单次兑换，错误verifier不暴露状态；确认前ERR_PAIRING_PENDING。刷新令牌逐次轮换。此端点不缓存令牌响应或按幂等键重发令牌。",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "grant_type": {
                        "type": "string",
                        "const": "pairing_code"
                      },
                      "pairingId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "codeVerifier": {
                        "type": "string",
                        "pattern": "^[A-Za-z0-9._~-]{43,128}$"
                      },
                      "clientId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      }
                    },
                    "required": [
                      "grant_type",
                      "pairingId",
                      "codeVerifier"
                    ]
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "grant_type": {
                        "type": "string",
                        "const": "refresh_token"
                      },
                      "refreshToken": {
                        "type": "string",
                        "minLength": 32
                      }
                    },
                    "required": [
                      "grant_type",
                      "refreshToken"
                    ]
                  }
                ]
              }
            }
          }
        }
      }
    },
    "/v1/agent/pairing-requests": {
      "post": {
        "operationId": "createPairingRequest",
        "summary": "B1-02 Agent 发起连接：链接与连接码",
        "tags": [
          "B1 连接 Agent 与设定额度"
        ],
        "x-requirementIds": [
          "B1-02"
        ],
        "x-internal": false,
        "x-status": "proposed-not-implemented",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 128
            }
          }
        ],
        "responses": {
          "201": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PairingRequestResult"
                    },
                    "requestId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    }
                  },
                  "required": [
                    "data",
                    "requestId"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "格式无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "身份或签名无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "渠道明确拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "权限／实时限制拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "版本或幂等冲突",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "链接已过期",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "业务条件未满足",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "限流",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "451": {
            "description": "地区限制",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "不可用，先查询原动作",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [],
        "x-phase": "P1",
        "x-contractStatus": "reviewable-not-implemented",
        "x-source": "T14-接口与验收契约.md",
        "description": "公开但限流的发起端入口；DID签名覆盖请求含challenge，OAuth验证注册客户端断言并防重放。匿名pairing仍需S256发起端证明，不能依靠用户码兑换。",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "agentName": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 40
                      },
                      "host": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "codeChallenge": {
                        "type": "string",
                        "pattern": "^[A-Za-z0-9_-]{43}$"
                      },
                      "codeChallengeMethod": {
                        "type": "string",
                        "const": "S256"
                      },
                      "identityType": {
                        "type": "string",
                        "const": "did"
                      },
                      "did": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "identitySignature": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 16384
                      }
                    },
                    "required": [
                      "agentName",
                      "identityType",
                      "codeChallenge",
                      "codeChallengeMethod",
                      "did",
                      "identitySignature"
                    ]
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "agentName": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 40
                      },
                      "host": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "codeChallenge": {
                        "type": "string",
                        "pattern": "^[A-Za-z0-9_-]{43}$"
                      },
                      "codeChallengeMethod": {
                        "type": "string",
                        "const": "S256"
                      },
                      "identityType": {
                        "type": "string",
                        "const": "oauth"
                      },
                      "clientId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "clientAssertion": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 16384
                      }
                    },
                    "required": [
                      "agentName",
                      "identityType",
                      "codeChallenge",
                      "codeChallengeMethod",
                      "clientId",
                      "clientAssertion"
                    ]
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "agentName": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 40
                      },
                      "host": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "codeChallenge": {
                        "type": "string",
                        "pattern": "^[A-Za-z0-9_-]{43}$"
                      },
                      "codeChallengeMethod": {
                        "type": "string",
                        "const": "S256"
                      },
                      "identityType": {
                        "type": "string",
                        "const": "pairing"
                      }
                    },
                    "required": [
                      "agentName",
                      "identityType",
                      "codeChallenge",
                      "codeChallengeMethod"
                    ]
                  }
                ]
              }
            }
          }
        }
      }
    },
    "/v1/confirmations/{confirmationId}/decision": {
      "post": {
        "operationId": "decideConfirmation",
        "summary": "B1-08 把用户带到确认页（不能显示卡片时改发链接）；B5-02 超出额度时的单笔确认",
        "tags": [
          "B1 连接 Agent 与设定额度"
        ],
        "x-requirementIds": [
          "B1-08",
          "B5-02"
        ],
        "x-internal": false,
        "x-status": "proposed-not-implemented",
        "parameters": [
          {
            "name": "confirmationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 128
            }
          }
        ],
        "responses": {
          "202": {
            "description": "已受理；不得解释为已付款",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "decision": {
                              "type": "string",
                              "const": "rejected"
                            }
                          },
                          "required": [
                            "decision"
                          ]
                        },
                        {
                          "$ref": "#/components/schemas/GrantResult"
                        }
                      ]
                    },
                    "requestId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    }
                  },
                  "required": [
                    "data",
                    "requestId"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "格式无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "身份或签名无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "渠道明确拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "权限／实时限制拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "版本或幂等冲突",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "链接已过期",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "业务条件未满足",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "限流",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "451": {
            "description": "地区限制",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "不可用，先查询原动作",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "userSession": []
          }
        ],
        "x-phase": "P1",
        "x-contractStatus": "reviewable-not-implemented",
        "x-source": "T14-接口与验收契约.md",
        "description": "本端点仅拒绝或本笔特批；修改长期授权走 changes/sign。签名绑定服务端完整报价、基础预占、专项增量与付款后可用额，不能客户端自报额外权限。",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "decision": {
                        "const": "reject",
                        "type": "string"
                      }
                    },
                    "required": [
                      "decision"
                    ]
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "decision": {
                        "const": "one_time",
                        "type": "string"
                      },
                      "ceremonyId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "assertion": {
                        "$ref": "#/components/schemas/Assertion"
                      }
                    },
                    "required": [
                      "decision",
                      "ceremonyId",
                      "assertion"
                    ]
                  }
                ]
              }
            }
          }
        }
      }
    },
    "/v1/connections/{connectionId}/buy-right": {
      "get": {
        "operationId": "getConnectionBuyRight",
        "summary": "X1-06 Agent 列表与详情",
        "tags": [
          "X1 停止花钱与调整额度"
        ],
        "x-requirementIds": [
          "X1-06"
        ],
        "x-internal": false,
        "x-status": "proposed-not-implemented",
        "parameters": [
          {
            "name": "connectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "executionMode",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "automatic",
                "manual_checkout",
                "unknown"
              ]
            }
          },
          {
            "name": "categoryId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/BuyRightSummary"
                    },
                    "requestId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    }
                  },
                  "required": [
                    "data",
                    "requestId"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "格式无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "身份或签名无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "渠道明确拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "权限／实时限制拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "版本或幂等冲突",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "链接已过期",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "业务条件未满足",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "限流",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "451": {
            "description": "地区限制",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "不可用，先查询原动作",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "userSession": []
          }
        ],
        "x-phase": "P2",
        "x-contractStatus": "reviewable-not-implemented",
        "x-source": "T14-接口与验收契约.md",
        "description": "P2；先校验本人连接或应用团队归属；Agent 令牌与越权 403。生产且非演练；buy-right-v1 按办理方式与品类分组。门槛未定或不足四指标全部 null，仅显示方案数；不排名、不推荐、不自动调额。from < to，最长 90 天，非法参数 400；P1 422；读取失败 503。开发者仅汇总，拒绝用户与交易筛选；本人明细游标绑定范围及水位。"
      }
    },
    "/v1/connections/{connectionId}/buy-right/plans": {
      "get": {
        "operationId": "getConnectionBuyRightPlans",
        "summary": "X1-06 Agent 列表与详情",
        "tags": [
          "X1 停止花钱与调整额度"
        ],
        "x-requirementIds": [
          "X1-06"
        ],
        "x-internal": false,
        "x-status": "proposed-not-implemented",
        "parameters": [
          {
            "name": "connectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "executionMode",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "automatic",
                "manual_checkout",
                "unknown"
              ]
            }
          },
          {
            "name": "categoryId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            }
          },
          {
            "name": "metric",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "first_pass",
                "correction",
                "ask_user",
                "completeness"
              ]
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/BuyRightPlanList"
                    },
                    "requestId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    }
                  },
                  "required": [
                    "data",
                    "requestId"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "格式无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "身份或签名无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "渠道明确拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "权限／实时限制拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "版本或幂等冲突",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "链接已过期",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "业务条件未满足",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "限流",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "451": {
            "description": "地区限制",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "不可用，先查询原动作",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "userSession": []
          }
        ],
        "x-phase": "P2",
        "x-contractStatus": "reviewable-not-implemented",
        "x-source": "T14-接口与验收契约.md",
        "description": "P2；先校验本人连接或应用团队归属；Agent 令牌与越权 403。生产且非演练；buy-right-v1 按办理方式与品类分组。门槛未定或不足四指标全部 null，仅显示方案数；不排名、不推荐、不自动调额。from < to，最长 90 天，非法参数 400；P1 422；读取失败 503。开发者仅汇总，拒绝用户与交易筛选；本人明细游标绑定范围及水位。"
      }
    },
    "/v1/developer/apps/{appId}/buy-right": {
      "get": {
        "operationId": "getAppBuyRight",
        "summary": "O1-14 用量与限流",
        "tags": [
          "O1 后台最小集与开发者渠道"
        ],
        "x-requirementIds": [
          "O1-14"
        ],
        "x-internal": false,
        "x-status": "proposed-not-implemented",
        "parameters": [
          {
            "name": "appId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "executionMode",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "automatic",
                "manual_checkout",
                "unknown"
              ]
            }
          },
          {
            "name": "categoryId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/BuyRightSummary"
                    },
                    "requestId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    }
                  },
                  "required": [
                    "data",
                    "requestId"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "格式无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "身份或签名无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "渠道明确拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "权限／实时限制拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "版本或幂等冲突",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "链接已过期",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "业务条件未满足",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "限流",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "451": {
            "description": "地区限制",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "不可用，先查询原动作",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "userSession": []
          }
        ],
        "x-phase": "P2",
        "x-contractStatus": "reviewable-not-implemented",
        "x-source": "T14-接口与验收契约.md",
        "description": "P2；先校验本人连接或应用团队归属；Agent 令牌与越权 403。生产且非演练；buy-right-v1 按办理方式与品类分组。门槛未定或不足四指标全部 null，仅显示方案数；不排名、不推荐、不自动调额。from < to，最长 90 天，非法参数 400；P1 422；读取失败 503。开发者仅汇总，拒绝用户与交易筛选；本人明细游标绑定范围及水位。",
        "x-requiredRole": "developer_team_member"
      }
    },
    "/v1/drill-offers/{offerId}/decision": {
      "post": {
        "operationId": "decideDrillOffer",
        "summary": "B1-09 让 Agent 用上 ATEL：安装与对话话术",
        "tags": [
          "B1 连接 Agent 与设定额度"
        ],
        "x-requirementIds": [
          "B1-09"
        ],
        "x-internal": false,
        "x-status": "proposed-not-implemented",
        "parameters": [
          {
            "name": "offerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 128
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/DrillDecisionResult"
                    },
                    "requestId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    }
                  },
                  "required": [
                    "data",
                    "requestId"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "格式无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "身份或签名无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "渠道明确拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "权限／实时限制拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "版本或幂等冲突",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "链接已过期",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "业务条件未满足",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "限流",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "451": {
            "description": "地区限制",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "不可用，先查询原动作",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "userSession": []
          }
        ],
        "x-phase": "P1",
        "x-contractStatus": "reviewable-not-implemented",
        "x-source": "T14-接口与验收契约.md",
        "description": "本人明确同意才在沙盒创建任务；拒绝不创建；一次决策。",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DrillDecisionRequest"
              }
            }
          }
        }
      }
    },
    "/v1/drill-tasks/{taskId}": {
      "delete": {
        "operationId": "deleteDrillTask",
        "summary": "B1-09 让 Agent 用上 ATEL：安装与对话话术",
        "tags": [
          "B1 连接 Agent 与设定额度"
        ],
        "x-requirementIds": [
          "B1-09"
        ],
        "x-internal": false,
        "x-status": "proposed-not-implemented",
        "parameters": [
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 128
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/DrillDeleteResult"
                    },
                    "requestId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    }
                  },
                  "required": [
                    "data",
                    "requestId"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "格式无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "身份或签名无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "渠道明确拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "权限／实时限制拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "版本或幂等冲突",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "链接已过期",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "业务条件未满足",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "限流",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "451": {
            "description": "地区限制",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "不可用，先查询原动作",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "userSession": []
          }
        ],
        "x-phase": "P1",
        "x-contractStatus": "reviewable-not-implemented",
        "x-source": "T14-接口与验收契约.md",
        "description": "本人用户演练可删除；重复删除幂等；真实任务 ERR_PATH_UNAVAILABLE。"
      }
    },
    "/v1/drill-tasks/{taskId}/confirm": {
      "post": {
        "operationId": "confirmDrillTask",
        "summary": "B1-09 让 Agent 用上 ATEL：安装与对话话术",
        "tags": [
          "B1 连接 Agent 与设定额度"
        ],
        "x-requirementIds": [
          "B1-09"
        ],
        "x-internal": false,
        "x-status": "proposed-not-implemented",
        "parameters": [
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 128
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/DrillTaskResult"
                    },
                    "requestId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    }
                  },
                  "required": [
                    "data",
                    "requestId"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "格式无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "身份或签名无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "渠道明确拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "权限／实时限制拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "版本或幂等冲突",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "链接已过期",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "业务条件未满足",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "限流",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "451": {
            "description": "地区限制",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "不可用，先查询原动作",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "userSession": []
          }
        ],
        "x-phase": "P1",
        "x-contractStatus": "reviewable-not-implemented",
        "x-source": "T14-接口与验收契约.md",
        "description": "本人按钮确认，仅用户演练；真实任务 ERR_PATH_UNAVAILABLE，不使用生产许可。",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DrillConfirmRequest"
              }
            }
          }
        }
      }
    },
    "/v1/mandates/{mandateId}": {
      "get": {
        "operationId": "getMandate",
        "summary": "B1-04 设定额度",
        "tags": [
          "B1 连接 Agent 与设定额度"
        ],
        "x-requirementIds": [
          "B1-04"
        ],
        "x-internal": false,
        "x-status": "proposed-not-implemented",
        "parameters": [
          {
            "name": "mandateId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/MandateResult"
                    },
                    "requestId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    }
                  },
                  "required": [
                    "data",
                    "requestId"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "格式无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "身份或签名无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "渠道明确拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "权限／实时限制拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "版本或幂等冲突",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "链接已过期",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "业务条件未满足",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "限流",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "451": {
            "description": "地区限制",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "不可用，先查询原动作",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "userSession": []
          }
        ],
        "x-phase": "P1",
        "x-contractStatus": "reviewable-not-implemented",
        "x-source": "T14-接口与验收契约.md",
        "description": ""
      }
    },
    "/v1/mandates/{mandateId}/pause": {
      "post": {
        "operationId": "pauseMandate",
        "summary": "X1-01 一键停止花钱：暂停、断开与恢复",
        "tags": [
          "X1 停止花钱与调整额度"
        ],
        "x-requirementIds": [
          "X1-01"
        ],
        "x-internal": false,
        "x-status": "proposed-not-implemented",
        "parameters": [
          {
            "name": "mandateId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 128
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/MandateResult"
                        },
                        {
                          "properties": {
                            "status": {
                              "const": "paused"
                            }
                          }
                        }
                      ]
                    },
                    "requestId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    }
                  },
                  "required": [
                    "data",
                    "requestId"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "格式无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "身份或签名无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "渠道明确拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "权限／实时限制拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "版本或幂等冲突",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "链接已过期",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "业务条件未满足",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "限流",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "451": {
            "description": "地区限制",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "不可用，先查询原动作",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "userSession": []
          }
        ],
        "x-phase": "P1",
        "x-contractStatus": "reviewable-not-implemented",
        "x-source": "T14-接口与验收契约.md",
        "description": "原子递增版本和 revocationEpoch；只停止新消费，既有外部风险由清理状态单独表示。",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "expectedMandateVersion": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "expectedMandateVersion"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/mandates/{mandateId}/renew": {
      "post": {
        "operationId": "renewMandate",
        "summary": "X1-04 授权到期与续期",
        "tags": [
          "X1 停止花钱与调整额度"
        ],
        "x-requirementIds": [
          "X1-04"
        ],
        "x-internal": false,
        "x-status": "proposed-not-implemented",
        "parameters": [
          {
            "name": "mandateId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 128
            }
          }
        ],
        "responses": {
          "202": {
            "description": "已受理；不得解释为已付款",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/MandateResult"
                        },
                        {
                          "properties": {
                            "status": {
                              "const": "activation_pending"
                            }
                          }
                        }
                      ]
                    },
                    "requestId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    }
                  },
                  "required": [
                    "data",
                    "requestId"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "格式无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "身份或签名无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "渠道明确拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "权限／实时限制拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "版本或幂等冲突",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "链接已过期",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "业务条件未满足",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "限流",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "451": {
            "description": "地区限制",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "不可用，先查询原动作",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "userSession": []
          }
        ],
        "x-phase": "P1",
        "x-contractStatus": "reviewable-not-implemented",
        "x-source": "T14-接口与验收契约.md",
        "description": "到期前更新版本；到期后创建关联新 mandateId。两者沿用 budgetContinuityId，不重置预算。",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "expectedMandateVersion": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "ceremonyId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "assertion": {
                    "$ref": "#/components/schemas/Assertion"
                  },
                  "expiresAt": {
                    "type": "string",
                    "format": "date-time"
                  }
                },
                "required": [
                  "expectedMandateVersion",
                  "ceremonyId",
                  "assertion",
                  "expiresAt"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/mandates/{mandateId}/resume": {
      "post": {
        "operationId": "resumeMandate",
        "summary": "X1-01 一键停止花钱：暂停、断开与恢复",
        "tags": [
          "X1 停止花钱与调整额度"
        ],
        "x-requirementIds": [
          "X1-01"
        ],
        "x-internal": false,
        "x-status": "proposed-not-implemented",
        "parameters": [
          {
            "name": "mandateId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 128
            }
          }
        ],
        "responses": {
          "202": {
            "description": "已受理；不得解释为已付款",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/MandateResult"
                        },
                        {
                          "properties": {
                            "status": {
                              "const": "activation_pending"
                            }
                          }
                        }
                      ]
                    },
                    "requestId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    }
                  },
                  "required": [
                    "data",
                    "requestId"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "格式无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "身份或签名无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "渠道明确拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "权限／实时限制拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "版本或幂等冲突",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "链接已过期",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "业务条件未满足",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "限流",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "451": {
            "description": "地区限制",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "不可用，先查询原动作",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "userSession": []
          }
        ],
        "x-phase": "P1",
        "x-contractStatus": "reviewable-not-implemented",
        "x-source": "T14-接口与验收契约.md",
        "description": "一次性 ceremony 绑定服务端载荷摘要与预期版本；链上能力确认前保持 activation_pending。",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "expectedMandateVersion": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "ceremonyId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "assertion": {
                    "$ref": "#/components/schemas/Assertion"
                  }
                },
                "required": [
                  "expectedMandateVersion",
                  "ceremonyId",
                  "assertion"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/mandates/{mandateId}/revoke": {
      "post": {
        "operationId": "revokeMandate",
        "summary": "X1-02 撤销授权与剩余敞口",
        "tags": [
          "X1 停止花钱与调整额度"
        ],
        "x-requirementIds": [
          "X1-02"
        ],
        "x-internal": false,
        "x-status": "proposed-not-implemented",
        "parameters": [
          {
            "name": "mandateId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 128
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/MandateResult"
                        },
                        {
                          "properties": {
                            "status": {
                              "const": "revoked"
                            }
                          }
                        }
                      ]
                    },
                    "requestId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    }
                  },
                  "required": [
                    "data",
                    "requestId"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "格式无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "身份或签名无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "渠道明确拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "权限／实时限制拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "版本或幂等冲突",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "链接已过期",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "业务条件未满足",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "限流",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "451": {
            "description": "地区限制",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "不可用，先查询原动作",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "userSession": []
          }
        ],
        "x-phase": "P1",
        "x-contractStatus": "reviewable-not-implemented",
        "x-source": "T14-接口与验收契约.md",
        "description": "原子递增版本和 revocationEpoch；只停止新消费，既有外部风险由清理状态单独表示。",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "expectedMandateVersion": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "expectedMandateVersion"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/mandates/{mandateId}/sign": {
      "post": {
        "operationId": "signMandate",
        "summary": "B1-07 只签一次确认",
        "tags": [
          "B1 连接 Agent 与设定额度"
        ],
        "x-requirementIds": [
          "B1-07"
        ],
        "x-internal": false,
        "x-status": "proposed-not-implemented",
        "parameters": [
          {
            "name": "mandateId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 128
            }
          }
        ],
        "responses": {
          "202": {
            "description": "已受理；不得解释为已付款",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/MandateResult"
                        },
                        {
                          "properties": {
                            "status": {
                              "const": "activation_pending"
                            }
                          }
                        }
                      ]
                    },
                    "requestId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    }
                  },
                  "required": [
                    "data",
                    "requestId"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "格式无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "身份或签名无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "渠道明确拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "权限／实时限制拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "版本或幂等冲突",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "链接已过期",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "业务条件未满足",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "限流",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "451": {
            "description": "地区限制",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "不可用，先查询原动作",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "userSession": []
          }
        ],
        "x-phase": "P1",
        "x-contractStatus": "reviewable-not-implemented",
        "x-source": "T14-接口与验收契约.md",
        "description": "一次性 ceremony 绑定服务端载荷摘要与预期版本；链上能力确认前保持 activation_pending。",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "expectedMandateVersion": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "ceremonyId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "assertion": {
                    "$ref": "#/components/schemas/Assertion"
                  }
                },
                "required": [
                  "expectedMandateVersion",
                  "ceremonyId",
                  "assertion"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/me/interceptions": {
      "get": {
        "operationId": "getInterceptionSummary",
        "summary": "X3-01 钱包首页",
        "tags": [
          "X3 首页、交易与证据"
        ],
        "x-requirementIds": [
          "X3-01"
        ],
        "x-internal": false,
        "x-status": "proposed-not-implemented",
        "parameters": [],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/InterceptionSummary"
                    },
                    "requestId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    }
                  },
                  "required": [
                    "data",
                    "requestId"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "格式无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "身份或签名无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "渠道明确拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "权限／实时限制拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "版本或幂等冲突",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "链接已过期",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "业务条件未满足",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "限流",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "451": {
            "description": "地区限制",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "不可用，先查询原动作",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "userSession": []
          }
        ],
        "x-phase": "P1",
        "x-contractStatus": "reviewable-not-implemented",
        "x-source": "T14-接口与验收契约.md",
        "description": "本人自然月拦截，按方案去重；排除用户演练；零笔隐藏。"
      }
    },
    "/v1/me/preference-entries": {
      "get": {
        "operationId": "listPreferenceEntries",
        "summary": "X4-18 个人偏好档案",
        "tags": [
          "X4 设置、隐私与数据"
        ],
        "x-requirementIds": [
          "X4-18"
        ],
        "x-internal": false,
        "x-status": "proposed-not-implemented",
        "parameters": [
          {
            "name": "categoryId",
            "in": "query",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PreferenceListResult"
                    },
                    "requestId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    }
                  },
                  "required": [
                    "data",
                    "requestId"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "格式无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "身份或签名无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "渠道明确拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "权限／实时限制拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "版本或幂等冲突",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "链接已过期",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "业务条件未满足",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "限流",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "451": {
            "description": "地区限制",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "不可用，先查询原动作",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "userSession": []
          }
        ],
        "x-phase": "P2",
        "x-contractStatus": "reviewable-not-implemented",
        "x-source": "T14-接口与验收契约.md",
        "description": "P2 X4-18；本人会话与资源归属，Agent 不可调用。档案本体在 Vault。写入须明确确认、同键幂等及原子版本检查；更新时 value 须符合原条目 kind。删除需近期验证与 If-Match。付款成功提示只绑定本单已确认尺码，确认时校验期限、归属及预期版本。P1 ERR_PATH_UNAVAILABLE。"
      },
      "post": {
        "operationId": "createPreferenceEntry",
        "summary": "X4-18 个人偏好档案",
        "tags": [
          "X4 设置、隐私与数据"
        ],
        "x-requirementIds": [
          "X4-18"
        ],
        "x-internal": false,
        "x-status": "proposed-not-implemented",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 128
            }
          }
        ],
        "responses": {
          "201": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PreferenceEntry"
                    },
                    "requestId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    }
                  },
                  "required": [
                    "data",
                    "requestId"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "格式无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "身份或签名无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "渠道明确拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "权限／实时限制拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "版本或幂等冲突",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "链接已过期",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "业务条件未满足",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "限流",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "451": {
            "description": "地区限制",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "不可用，先查询原动作",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "userSession": []
          }
        ],
        "x-phase": "P2",
        "x-contractStatus": "reviewable-not-implemented",
        "x-source": "T14-接口与验收契约.md",
        "description": "P2 X4-18；本人会话与资源归属，Agent 不可调用。档案本体在 Vault。写入须明确确认、同键幂等及原子版本检查；更新时 value 须符合原条目 kind。删除需近期验证与 If-Match。付款成功提示只绑定本单已确认尺码，确认时校验期限、归属及预期版本。P1 ERR_PATH_UNAVAILABLE。",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PreferenceCreateRequest"
              }
            }
          }
        }
      }
    },
    "/v1/me/preference-entries/{entryRef}": {
      "put": {
        "operationId": "updatePreferenceEntry",
        "summary": "X4-18 个人偏好档案",
        "tags": [
          "X4 设置、隐私与数据"
        ],
        "x-requirementIds": [
          "X4-18"
        ],
        "x-internal": false,
        "x-status": "proposed-not-implemented",
        "parameters": [
          {
            "name": "entryRef",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 128
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PreferenceEntry"
                    },
                    "requestId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    }
                  },
                  "required": [
                    "data",
                    "requestId"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "格式无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "身份或签名无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "渠道明确拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "权限／实时限制拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "版本或幂等冲突",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "链接已过期",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "业务条件未满足",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "限流",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "451": {
            "description": "地区限制",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "不可用，先查询原动作",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "userSession": []
          }
        ],
        "x-phase": "P2",
        "x-contractStatus": "reviewable-not-implemented",
        "x-source": "T14-接口与验收契约.md",
        "description": "P2 X4-18；本人会话与资源归属，Agent 不可调用。档案本体在 Vault。写入须明确确认、同键幂等及原子版本检查；更新时 value 须符合原条目 kind。删除需近期验证与 If-Match。付款成功提示只绑定本单已确认尺码，确认时校验期限、归属及预期版本。P1 ERR_PATH_UNAVAILABLE。",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PreferenceUpdateRequest"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "deletePreferenceEntry",
        "summary": "X4-18 个人偏好档案",
        "tags": [
          "X4 设置、隐私与数据"
        ],
        "x-requirementIds": [
          "X4-18"
        ],
        "x-internal": false,
        "x-status": "proposed-not-implemented",
        "parameters": [
          {
            "name": "entryRef",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 128
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[1-9][0-9]*$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PreferenceDeleteResult"
                    },
                    "requestId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    }
                  },
                  "required": [
                    "data",
                    "requestId"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "格式无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "身份或签名无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "渠道明确拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "权限／实时限制拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "版本或幂等冲突",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "链接已过期",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "业务条件未满足",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "限流",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "451": {
            "description": "地区限制",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "不可用，先查询原动作",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "userSession": []
          }
        ],
        "x-phase": "P2",
        "x-contractStatus": "reviewable-not-implemented",
        "x-source": "T14-接口与验收契约.md",
        "description": "P2 X4-18；本人会话与资源归属，Agent 不可调用。档案本体在 Vault。写入须明确确认、同键幂等及原子版本检查；更新时 value 须符合原条目 kind。删除需近期验证与 If-Match。付款成功提示只绑定本单已确认尺码，确认时校验期限、归属及预期版本。P1 ERR_PATH_UNAVAILABLE。"
      }
    },
    "/v1/permits/{permitId}/consume": {
      "post": {
        "operationId": "consumeActionPermit",
        "summary": "B5-04 签发与使用放行许可",
        "tags": [
          "B5 放行与执行"
        ],
        "x-requirementIds": [
          "B5-04"
        ],
        "x-internal": false,
        "x-status": "proposed-not-implemented",
        "parameters": [
          {
            "name": "permitId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 128
            }
          }
        ],
        "responses": {
          "202": {
            "description": "已受理；不得解释为已付款",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ActionResult"
                    },
                    "requestId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    }
                  },
                  "required": [
                    "data",
                    "requestId"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "格式无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "身份或签名无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "渠道明确拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "权限／实时限制拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "版本或幂等冲突",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "链接已过期",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "业务条件未满足",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "限流",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "451": {
            "description": "地区限制",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "不可用，先查询原动作",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "internalService": []
          }
        ],
        "x-phase": "P1",
        "x-contractStatus": "reviewable-not-implemented",
        "x-source": "T14-接口与验收契约.md",
        "description": "服务端核对证书、执行器与许可的绑定，将自报的 paramsHash 与许可摘要比对。请求带 actual 时，服务端还要重算其 JCS-SHA-256 并比对。按签名内 authorityKind 原子复核当前主体、版本、epoch、安全限制和额度。C2 提交后执行器才能外发。",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "executorId": {
                        "const": "vault_fill"
                      },
                      "paramsHash": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "minLength": 64,
                        "maxLength": 64
                      },
                      "actual": {
                        "$ref": "#/components/schemas/VaultFillActual"
                      }
                    },
                    "required": [
                      "executorId",
                      "paramsHash",
                      "actual"
                    ]
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "executorId": {
                        "const": "bitrefill_x402"
                      },
                      "paramsHash": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "minLength": 64,
                        "maxLength": 64
                      },
                      "actual": {
                        "$ref": "#/components/schemas/BitrefillPayActual"
                      }
                    },
                    "required": [
                      "executorId",
                      "paramsHash",
                      "actual"
                    ]
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "executorId": {
                        "const": "x402_signer"
                      },
                      "paramsHash": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$",
                        "minLength": 64,
                        "maxLength": 64
                      },
                      "actual": {
                        "$ref": "#/components/schemas/X402PayActual"
                      }
                    },
                    "required": [
                      "executorId",
                      "paramsHash"
                    ]
                  }
                ],
                "description": "x402_signer 共用一套请求格式。服务端从许可读取 action：x402_pay 和 x402_session_pay 必须带 actual，x402_session_open 可省略。资金动作缺 actual 时返回 400 ERR_REQUEST_INVALID（actual_required），许可保持未消费。"
              }
            }
          }
        }
      }
    },
    "/v1/refunds/{refundId}": {
      "get": {
        "operationId": "getRefund",
        "summary": "B7-05 退款到账记录",
        "tags": [
          "B7 结果回到对话"
        ],
        "x-requirementIds": [
          "B7-05"
        ],
        "x-internal": false,
        "x-status": "proposed-not-implemented",
        "parameters": [
          {
            "name": "refundId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/RefundResult"
                    },
                    "requestId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    }
                  },
                  "required": [
                    "data",
                    "requestId"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "格式无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "身份或签名无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "渠道明确拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "权限／实时限制拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "版本或幂等冲突",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "链接已过期",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "业务条件未满足",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "限流",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "451": {
            "description": "地区限制",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "不可用，先查询原动作",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "userSession": []
          }
        ],
        "x-phase": "later",
        "x-contractStatus": "reviewable-not-implemented",
        "x-source": "T14-接口与验收契约.md",
        "description": ""
      }
    },
    "/v1/tasks/purchase-intents": {
      "post": {
        "operationId": "registerPurchaseIntent",
        "summary": "B2-02 购买委托：登记需求（选品前）→ 提交方案（选品后）",
        "tags": [
          "B2 Agent 交来委托"
        ],
        "x-requirementIds": [
          "B2-02"
        ],
        "x-internal": false,
        "x-status": "proposed-not-implemented",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 128
            }
          }
        ],
        "responses": {
          "200": {
            "description": "同一用户和连接在 10 分钟内换幂等键重发同一登记，命中未结束的原购买任务。",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseIntentRegisterDuplicateResult"
                }
              }
            }
          },
          "201": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PurchaseIntentRegisterResult"
                    },
                    "requestId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    }
                  },
                  "required": [
                    "data",
                    "requestId"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "格式无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "身份或签名无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "渠道明确拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "权限／实时限制拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "版本或幂等冲突",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "链接已过期",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "业务条件未满足",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "限流",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "451": {
            "description": "地区限制",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "不可用，先查询原动作",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "agentConnection": []
          }
        ],
        "x-phase": "P1",
        "x-contractStatus": "reviewable-not-implemented",
        "x-source": "T14-接口与验收契约.md",
        "description": "选品前登记需求；购买委托必带用户原话 userUtterance（≤2000 字）。ATEL 意图识别引擎先独立抽取并与 Agent 声明交叉比对，返回保障等级 L0／L1／L2、intentRef、intentHash 与逐字段 reconciliation；需 L2 或模型降级时返回 intentConfirmationUrl，Agent 不得代确认。模型降级绝不自动通过。",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PurchaseIntentRegisterRequest"
              }
            }
          }
        }
      }
    },
    "/v1/tasks/{taskId}": {
      "get": {
        "operationId": "getTask",
        "summary": "E1-06 清单外网站：转为用户自己结账；E2-04 字段缺失或转换失败的处理；E2-05 用户与 Agent 各自看到什么；E4-01 协议结账交接（首批：Shopify UCP）；X3-03 交易详情",
        "tags": [
          "X3 首页、交易与证据"
        ],
        "x-requirementIds": [
          "E1-06",
          "E2-04",
          "E2-05",
          "E4-01",
          "X3-03"
        ],
        "x-internal": false,
        "x-status": "proposed-not-implemented",
        "parameters": [
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/TaskResult"
                    },
                    "requestId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    }
                  },
                  "required": [
                    "data",
                    "requestId"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "格式无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "身份或签名无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "渠道明确拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "权限／实时限制拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "版本或幂等冲突",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "链接已过期",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "业务条件未满足",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "限流",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "451": {
            "description": "地区限制",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "不可用，先查询原动作",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "userSession": []
          }
        ],
        "x-phase": "P1",
        "x-contractStatus": "reviewable-not-implemented",
        "x-source": "T14-接口与验收契约.md",
        "description": "钱包任务所有者读取；校验资源归属。事件驱动的起点与人工标记不可被此查询改写。"
      }
    },
    "/v1/tasks/{taskId}/handoffs/{handoffId}": {
      "get": {
        "operationId": "getHandoff",
        "summary": "E3-03 用户接手与交还",
        "tags": [
          "E3 云端浏览器（P4）"
        ],
        "x-requirementIds": [
          "E3-03"
        ],
        "x-internal": false,
        "x-status": "proposed-not-implemented",
        "parameters": [
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "handoffId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/HandoffResult"
                    },
                    "requestId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    }
                  },
                  "required": [
                    "data",
                    "requestId"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "格式无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "身份或签名无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "渠道明确拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "权限／实时限制拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "版本或幂等冲突",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "链接已过期",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "业务条件未满足",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "限流",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "451": {
            "description": "地区限制",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "不可用，先查询原动作",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "userSession": []
          }
        ],
        "x-phase": "later",
        "x-contractStatus": "reviewable-not-implemented",
        "x-source": "T14-接口与验收契约.md",
        "description": "查询状态，不因用户点击标记付款；过期先核实外部支付会话。"
      }
    },
    "/v1/tasks/{taskId}/preference-save-offer": {
      "get": {
        "operationId": "getPreferenceSaveOffer",
        "summary": "X4-18 个人偏好档案",
        "tags": [
          "X4 设置、隐私与数据"
        ],
        "x-requirementIds": [
          "X4-18"
        ],
        "x-internal": false,
        "x-status": "proposed-not-implemented",
        "parameters": [
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PreferenceOfferResult"
                    },
                    "requestId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    }
                  },
                  "required": [
                    "data",
                    "requestId"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "格式无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "身份或签名无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "渠道明确拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "权限／实时限制拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "版本或幂等冲突",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "链接已过期",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "业务条件未满足",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "限流",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "451": {
            "description": "地区限制",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "不可用，先查询原动作",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "userSession": []
          }
        ],
        "x-phase": "P2",
        "x-contractStatus": "reviewable-not-implemented",
        "x-source": "T14-接口与验收契约.md",
        "description": "P2 X4-18；本人会话与资源归属，Agent 不可调用。档案本体在 Vault。写入须明确确认、同键幂等及原子版本检查；更新时 value 须符合原条目 kind。删除需近期验证与 If-Match。付款成功提示只绑定本单已确认尺码，确认时校验期限、归属及预期版本。P1 ERR_PATH_UNAVAILABLE。"
      }
    },
    "/v1/tasks/{taskId}/preference-save-offer/confirm": {
      "post": {
        "operationId": "confirmPreferenceSaveOffer",
        "summary": "X4-18 个人偏好档案",
        "tags": [
          "X4 设置、隐私与数据"
        ],
        "x-requirementIds": [
          "X4-18"
        ],
        "x-internal": false,
        "x-status": "proposed-not-implemented",
        "parameters": [
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 128
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PreferenceEntry"
                    },
                    "requestId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    }
                  },
                  "required": [
                    "data",
                    "requestId"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "格式无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "身份或签名无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "渠道明确拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "权限／实时限制拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "版本或幂等冲突",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "链接已过期",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "业务条件未满足",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "限流",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "451": {
            "description": "地区限制",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "不可用，先查询原动作",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "userSession": []
          }
        ],
        "x-phase": "P2",
        "x-contractStatus": "reviewable-not-implemented",
        "x-source": "T14-接口与验收契约.md",
        "description": "P2 X4-18；本人会话与资源归属，Agent 不可调用。档案本体在 Vault。写入须明确确认、同键幂等及原子版本检查；更新时 value 须符合原条目 kind。删除需近期验证与 If-Match。付款成功提示只绑定本单已确认尺码，确认时校验期限、归属及预期版本。P1 ERR_PATH_UNAVAILABLE。",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PreferenceConfirmRequest"
              }
            }
          }
        }
      }
    },
    "/v1/tasks/{taskId}/proof-exports": {
      "post": {
        "operationId": "createProofExport",
        "summary": "X3-07 证据包导出",
        "tags": [
          "X3 首页、交易与证据"
        ],
        "x-requirementIds": [
          "X3-07"
        ],
        "x-internal": false,
        "x-status": "proposed-not-implemented",
        "parameters": [
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 128
            }
          }
        ],
        "responses": {
          "202": {
            "description": "已受理；不得解释为已付款",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ProofExportResult"
                    },
                    "requestId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    }
                  },
                  "required": [
                    "data",
                    "requestId"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "格式无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "身份或签名无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "渠道明确拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "权限／实时限制拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "版本或幂等冲突",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "链接已过期",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "业务条件未满足",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "限流",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "451": {
            "description": "地区限制",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "不可用，先查询原动作",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "userSession": []
          }
        ],
        "x-phase": "P1",
        "x-contractStatus": "reviewable-not-implemented",
        "x-source": "T14-接口与验收契约.md",
        "description": "仅本人任务；card_issuer 仅卡付款，P1 仅 amount_mismatch／duplicate_charge；非卡或阶段未开放 ERR_PATH_UNAVAILABLE，非法组合 ERR_REQUEST_INVALID。",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProofExportRequest"
              }
            }
          }
        }
      }
    },
    "/v1/webhooks/shopify": {
      "post": {
        "operationId": "handleShopifyWebhook",
        "summary": "E2-08 UCP 协议购买",
        "tags": [
          "E2 接口与协议（协议解释器）"
        ],
        "x-requirementIds": [
          "E2-08"
        ],
        "x-internal": false,
        "x-status": "proposed-not-implemented",
        "parameters": [
          {
            "name": "X-Shopify-Shop-Domain",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            }
          },
          {
            "name": "X-Shopify-Topic",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            }
          },
          {
            "name": "X-Shopify-Webhook-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            }
          }
        ],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/AcceptedEvent"
                    },
                    "requestId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    }
                  },
                  "required": [
                    "data",
                    "requestId"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "格式无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "身份或签名无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "渠道明确拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "权限／实时限制拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "版本或幂等冲突",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "链接已过期",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "业务条件未满足",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "限流",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "451": {
            "description": "地区限制",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "不可用，先查询原动作",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "shopifySignature": []
          }
        ],
        "x-phase": "later",
        "x-contractStatus": "reviewable-not-implemented",
        "x-source": "T14-接口与验收契约.md",
        "description": "必须核对 X-Shopify-Shop-Domain 与 X-Shopify-Topic；独立应用订阅，不冒充 Agent partner webhook。只用订单事件核实是否已付款；履约类 Topic 忽略，不推进任何状态。",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true,
                "description": "Shopify 应用原始事件体；按已订阅 Topic 版本验证，兼容供应商扩展字段"
              }
            }
          }
        }
      }
    },
    "/v1/webhooks/stripe": {
      "post": {
        "operationId": "handleStripeWebhook",
        "summary": "B5-09 为已核对订单提供受限付款凭证（SPT）",
        "tags": [
          "B5 放行与执行"
        ],
        "x-requirementIds": [
          "B5-09"
        ],
        "x-internal": false,
        "x-status": "proposed-not-implemented",
        "parameters": [],
        "responses": {
          "200": {
            "description": "成功",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/AcceptedEvent"
                    },
                    "requestId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    }
                  },
                  "required": [
                    "data",
                    "requestId"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "格式无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "身份或签名无效",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "渠道明确拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "权限／实时限制拒绝",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "版本或幂等冲突",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "链接已过期",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "业务条件未满足",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "限流",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "451": {
            "description": "地区限制",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "不可用，先查询原动作",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "stripeSignature": []
          }
        ],
        "x-phase": "later",
        "x-contractStatus": "reviewable-not-implemented",
        "x-source": "T14-接口与验收契约.md",
        "description": "提供方可扩展事件对象，故允许附加字段；验证原始字节后持久化入站事件，按 account＋id 去重并异步归一，不使用对象 created 作为更新版本。",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "type",
                  "data"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "type": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "account": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "created": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "data": {
                    "type": "object",
                    "required": [
                      "object"
                    ],
                    "properties": {
                      "object": {
                        "type": "object"
                      }
                    }
                  }
                },
                "additionalProperties": true
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "agentConnection": {
        "type": "http",
        "scheme": "bearer",
        "description": "连接访问令牌，校验连接归属与环境"
      },
      "userSession": {
        "type": "http",
        "scheme": "bearer",
        "description": "钱包用户会话；资源所有权和 assuranceLevel 另做服务端检查"
      },
      "internalService": {
        "type": "mutualTLS",
        "description": "受信执行器服务证书；executorId 必须与证书主体匹配"
      },
      "stripeSignature": {
        "type": "apiKey",
        "in": "header",
        "name": "Stripe-Signature",
        "description": "原始体验签、时间容差与账户绑定；不能只检查头存在"
      },
      "shopifySignature": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Shopify-Hmac-SHA256",
        "description": "Shopify 应用 webhook 接入：校验原始体与已登记店铺域名；Agent partner 订阅另做专用契约"
      }
    },
    "schemas": {
      "Money": {
        "oneOf": [
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "amount": {
                "type": "string",
                "pattern": "^(0|[1-9][0-9]*)$",
                "maxLength": 78
              },
              "currency": {
                "type": "string",
                "pattern": "^[A-Z]{3}$"
              }
            },
            "required": [
              "amount",
              "currency"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "amount": {
                "type": "string",
                "pattern": "^(0|[1-9][0-9]*)$",
                "maxLength": 78
              },
              "currency": {
                "type": "string",
                "const": "USDC"
              },
              "assetRef": {
                "$ref": "#/components/schemas/AssetRef"
              }
            },
            "required": [
              "amount",
              "currency",
              "assetRef"
            ]
          }
        ]
      },
      "Assertion": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "credentialId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "clientDataJSON": {
            "type": "string",
            "minLength": 1,
            "maxLength": 16384
          },
          "authenticatorData": {
            "type": "string",
            "minLength": 1,
            "maxLength": 16384
          },
          "signature": {
            "type": "string",
            "minLength": 1,
            "maxLength": 8192
          },
          "userHandle": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "credentialId",
          "clientDataJSON",
          "authenticatorData",
          "signature"
        ]
      },
      "Error": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ErrorDetail"
          },
          "requestId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "required": [
          "error",
          "requestId"
        ]
      },
      "MandateResult": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "mandateId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "connectionId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "activation_pending",
              "active",
              "paused",
              "revoked",
              "expired"
            ]
          },
          "mandateVersion": {
            "type": "integer",
            "minimum": 0
          },
          "revocationEpoch": {
            "type": "integer",
            "minimum": 0
          },
          "budgetAssetKey": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "budgetContinuityId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "executionModes": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "automatic",
                "manual_checkout"
              ]
            },
            "minItems": 1,
            "uniqueItems": true
          },
          "paymentMethodIds": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            },
            "uniqueItems": true
          },
          "perTxnLimit": {
            "$ref": "#/components/schemas/Money"
          },
          "periodBudget": {
            "$ref": "#/components/schemas/Money"
          },
          "availableBase": {
            "$ref": "#/components/schemas/SignedMoney"
          },
          "reservedBase": {
            "$ref": "#/components/schemas/Money"
          },
          "spentBase": {
            "$ref": "#/components/schemas/Money"
          },
          "periodType": {
            "type": "string",
            "enum": [
              "calendar_day",
              "calendar_week",
              "calendar_month"
            ]
          },
          "timezone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          },
          "allowedTaskTypes": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "payment",
                "purchase"
              ]
            },
            "minItems": 1,
            "uniqueItems": true
          },
          "merchantScope": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "any",
                  "connected_stores",
                  "merchants"
                ]
              },
              "refs": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "maxItems": 50
              }
            },
            "required": [
              "type",
              "refs"
            ]
          },
          "limits": {
            "type": "array",
            "maxItems": 30,
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "limitId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "dimension": {
                  "type": "string",
                  "enum": [
                    "channel",
                    "payment_channel",
                    "card"
                  ]
                },
                "subjectRef": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "period": {
                  "type": "string",
                  "enum": [
                    "day",
                    "week",
                    "month"
                  ]
                },
                "limit": {
                  "$ref": "#/components/schemas/Money"
                }
              },
              "required": [
                "limitId",
                "dimension",
                "subjectRef",
                "period",
                "limit"
              ]
            }
          },
          "shoppingPreference": {
            "oneOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "minProductStars": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "minMerchantRating": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "preferHighRated": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "minProductStars",
                  "minMerchantRating",
                  "preferHighRated"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "allowSubscription": {
            "type": "boolean",
            "const": false
          },
          "confirmFirstOrderNewMerchant": {
            "type": "boolean"
          },
          "permissionLifetimeCap": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Money"
              },
              {
                "type": "null"
              }
            ]
          },
          "chainCapabilityId": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "mandateId",
          "connectionId",
          "status",
          "mandateVersion",
          "revocationEpoch",
          "budgetAssetKey",
          "budgetContinuityId",
          "executionModes",
          "paymentMethodIds",
          "perTxnLimit",
          "periodBudget",
          "availableBase",
          "reservedBase",
          "spentBase",
          "periodType",
          "timezone",
          "expiresAt",
          "allowedTaskTypes",
          "merchantScope",
          "limits",
          "shoppingPreference",
          "allowSubscription",
          "confirmFirstOrderNewMerchant",
          "permissionLifetimeCap",
          "chainCapabilityId"
        ],
        "allOf": [
          {
            "if": {
              "properties": {
                "executionModes": {
                  "contains": {
                    "const": "automatic"
                  }
                }
              }
            },
            "then": {
              "properties": {
                "paymentMethodIds": {
                  "minItems": 1
                }
              }
            }
          }
        ]
      },
      "PermitAssetRef": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "chainId": {
            "type": "string",
            "enum": [
              "eip155:8453",
              "eip155:84532"
            ]
          },
          "tokenAddress": {
            "type": "string",
            "pattern": "^0x[0-9a-fA-F]{40}$",
            "minLength": 42,
            "maxLength": 42
          }
        },
        "required": [
          "chainId",
          "tokenAddress"
        ]
      },
      "PermitPaymentAmount": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "currency": {
            "const": "USDC"
          },
          "minor": {
            "type": "string",
            "pattern": "^[1-9][0-9]*$",
            "maxLength": 78
          },
          "assetRef": {
            "$ref": "#/components/schemas/PermitAssetRef"
          }
        },
        "required": [
          "currency",
          "minor",
          "assetRef"
        ]
      },
      "VaultReadEvidenceAppend": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "eventId": {
            "type": "string",
            "pattern": "^sev_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
            "minLength": 30,
            "maxLength": 30
          },
          "taskId": {
            "type": "string",
            "pattern": "^tsk_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
            "minLength": 30,
            "maxLength": 30
          },
          "eventType": {
            "const": "vault_read_requested"
          },
          "schemaVersion": {
            "const": "1.0"
          },
          "actor": {
            "const": "agent"
          },
          "payload": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "readRequestId": {
                "type": "string",
                "pattern": "^vrr_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
                "minLength": 30,
                "maxLength": 30
              },
              "purpose": {
                "const": "checkout"
              },
              "executionEnvId": {
                "type": "string",
                "pattern": "^local_extension:cks_[A-Za-z0-9._~-]{1,252}$",
                "not": {
                  "pattern": "\\s"
                }
              }
            },
            "required": [
              "readRequestId",
              "purpose",
              "executionEnvId"
            ]
          },
          "occurredAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"
          }
        },
        "required": [
          "eventId",
          "taskId",
          "eventType",
          "schemaVersion",
          "actor",
          "payload",
          "occurredAt"
        ]
      },
      "VaultReadEvidenceReceipt": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "eventId": {
            "type": "string",
            "pattern": "^sev_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
            "minLength": 30,
            "maxLength": 30
          },
          "seq": {
            "type": "integer",
            "minimum": 1
          },
          "eventHash": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$",
            "minLength": 64,
            "maxLength": 64
          }
        },
        "required": [
          "eventId",
          "seq",
          "eventHash"
        ]
      },
      "VaultFillActual": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "merchantOrigin": {
            "type": "string",
            "format": "uri",
            "pattern": "^https://(?:[A-Za-z0-9.-]+|\\[[0-9A-Fa-f:.]+\\])(?::[0-9]{1,5})?$"
          },
          "summaryDigest": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$",
            "minLength": 64,
            "maxLength": 64
          },
          "vaultCardRef": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "executionEnvId": {
            "type": "string",
            "pattern": "^local_extension:[^\\s]+$"
          },
          "fieldsRequested": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "card",
                "shippingAddress",
                "contactEmail",
                "contactPhone"
              ]
            }
          },
          "frameOrigins": {
            "type": "array",
            "maxItems": 5,
            "items": {
              "type": "string",
              "format": "uri",
              "pattern": "^https://(?:[A-Za-z0-9.-]+|\\[[0-9A-Fa-f:.]+\\])(?::[0-9]{1,5})?$"
            },
            "description": "取站点适配记录中的 HTTPS origin。计算 paramsHash 前先排序。"
          }
        },
        "required": [
          "merchantOrigin",
          "summaryDigest",
          "vaultCardRef",
          "executionEnvId",
          "fieldsRequested",
          "frameOrigins"
        ]
      },
      "BitrefillPayActual": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "skuId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "faceValue": {
            "oneOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "currency": {
                    "type": "string",
                    "pattern": "^[A-Z]{3}$"
                  },
                  "minor": {
                    "type": "string",
                    "pattern": "^(0|[1-9][0-9]*)$",
                    "maxLength": 78
                  }
                },
                "required": [
                  "currency",
                  "minor"
                ]
              },
              {
                "$ref": "#/components/schemas/PermitPaymentAmount"
              }
            ]
          },
          "payTo": {
            "type": "string",
            "pattern": "^0x[0-9a-fA-F]{40}$",
            "minLength": 42,
            "maxLength": 42
          },
          "amount": {
            "$ref": "#/components/schemas/PermitPaymentAmount"
          },
          "quoteId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "required": [
          "skuId",
          "faceValue",
          "payTo",
          "amount",
          "quoteId"
        ]
      },
      "X402PayActual": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "payTo": {
            "type": "string",
            "pattern": "^0x[0-9a-fA-F]{40}$",
            "minLength": 42,
            "maxLength": 42
          },
          "amount": {
            "$ref": "#/components/schemas/PermitPaymentAmount"
          },
          "asset": {
            "$ref": "#/components/schemas/PermitAssetRef"
          },
          "network": {
            "type": "string",
            "enum": [
              "eip155:8453",
              "eip155:84532"
            ]
          },
          "resource": {
            "type": "string",
            "format": "uri",
            "pattern": "^[Hh][Tt][Tt][Pp][Ss]://(?:(?:[A-Za-z0-9._~!$&'()*+,;=-]|%[0-9a-fA-F]{2})+|\\[[0-9a-fA-F:.]+\\])(?::[0-9]*)?(?:[/?#].*)?$",
            "not": {
              "pattern": "[\\s\\\\]"
            }
          },
          "method": {
            "type": "string",
            "enum": [
              "GET",
              "POST"
            ]
          },
          "bodyHash": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$",
            "minLength": 64,
            "maxLength": 64
          },
          "logicalRequestId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "required": [
          "payTo",
          "amount",
          "asset",
          "network",
          "resource",
          "method",
          "bodyHash",
          "logicalRequestId"
        ]
      },
      "ActionResult": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "actionAttemptId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "taskId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "status": {
            "type": "string",
            "enum": [
              "dispatch_committed",
              "pending_verification"
            ]
          },
          "consumedAt": {
            "type": "string",
            "format": "date-time"
          },
          "externalIdempotencyKey": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "description": "执行器外发与崩溃恢复查询使用同一个业务键。"
          }
        },
        "required": [
          "actionAttemptId",
          "taskId",
          "status",
          "consumedAt",
          "externalIdempotencyKey"
        ]
      },
      "GrantResult": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "grantId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "taskId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "mandateVersion": {
            "type": "integer",
            "minimum": 0
          },
          "baseReservation": {
            "$ref": "#/components/schemas/Money"
          },
          "extraGrant": {
            "$ref": "#/components/schemas/Money"
          },
          "baseAvailableAfter": {
            "$ref": "#/components/schemas/SignedMoney"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          },
          "status": {
            "type": "string",
            "enum": [
              "awaiting_chain",
              "ready",
              "consumed",
              "inflight_unknown",
              "invalidated",
              "expired"
            ]
          }
        },
        "required": [
          "grantId",
          "taskId",
          "mandateVersion",
          "baseReservation",
          "extraGrant",
          "baseAvailableAfter",
          "expiresAt",
          "status"
        ]
      },
      "RefundResult": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "refundId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "paymentId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "amount": {
            "$ref": "#/components/schemas/Money"
          },
          "status": {
            "type": "string",
            "enum": [
              "received",
              "returned"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "refundId",
          "paymentId",
          "amount",
          "status",
          "updatedAt"
        ]
      },
      "HandoffResult": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "handoffId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "taskId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "status": {
            "type": "string",
            "enum": [
              "awaiting_user",
              "closing",
              "pending_verification",
              "paid",
              "closed_unpaid",
              "correction_required"
            ]
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          },
          "lastVerifiedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "sourceStatus": {
            "type": "string",
            "enum": [
              "fresh",
              "stale",
              "unknown"
            ]
          }
        },
        "required": [
          "handoffId",
          "taskId",
          "status",
          "expiresAt",
          "lastVerifiedAt",
          "sourceStatus"
        ]
      },
      "AcceptedEvent": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "received": {
            "type": "boolean",
            "const": true
          }
        },
        "required": [
          "received"
        ]
      },
      "AssetRef": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "chainId": {
            "type": "string",
            "pattern": "^eip155:[1-9][0-9]*$"
          },
          "tokenAddress": {
            "type": "string",
            "pattern": "^0x[0-9a-f]{40}$"
          }
        },
        "required": [
          "chainId",
          "tokenAddress"
        ]
      },
      "SignedMoney": {
        "oneOf": [
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "amount": {
                "type": "string",
                "pattern": "^(0|-?[1-9][0-9]*)$",
                "maxLength": 79
              },
              "currency": {
                "type": "string",
                "pattern": "^[A-Z]{3}$"
              }
            },
            "required": [
              "amount",
              "currency"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "amount": {
                "type": "string",
                "pattern": "^(0|-?[1-9][0-9]*)$",
                "maxLength": 79
              },
              "currency": {
                "type": "string",
                "const": "USDC"
              },
              "assetRef": {
                "$ref": "#/components/schemas/AssetRef"
              }
            },
            "required": [
              "amount",
              "currency",
              "assetRef"
            ]
          }
        ]
      },
      "AuthorityContext": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "authorityKind": {
            "const": "personal_spend",
            "type": "string"
          },
          "userId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "connectionId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "appId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "mandateId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "mandateVersion": {
            "type": "integer",
            "minimum": 0
          },
          "revocationEpoch": {
            "type": "integer",
            "minimum": 0
          },
          "executionMode": {
            "type": "string",
            "enum": [
              "automatic",
              "manual_checkout"
            ]
          }
        },
        "required": [
          "authorityKind",
          "userId",
          "connectionId",
          "appId",
          "mandateId",
          "mandateVersion",
          "revocationEpoch",
          "executionMode"
        ]
      },
      "OrderReadCapability": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "sourcePath": {
            "type": "string",
            "enum": [
              "ucp_agent_webhook",
              "buyer_on_demand",
              "provider_api"
            ]
          },
          "backgroundRead": {
            "type": "boolean"
          },
          "subscriptionVerified": {
            "type": "boolean"
          },
          "credentialRef": {
            "type": [
              "string",
              "null"
            ]
          },
          "scope": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            }
          },
          "orderAttribution": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "lastVerifiedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "revokedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        },
        "required": [
          "sourcePath",
          "backgroundRead",
          "subscriptionVerified",
          "credentialRef",
          "scope",
          "orderAttribution",
          "lastVerifiedAt",
          "revokedAt"
        ],
        "allOf": [
          {
            "if": {
              "properties": {
                "sourcePath": {
                  "enum": [
                    "ucp_agent_webhook",
                    "buyer_on_demand"
                  ]
                }
              }
            },
            "then": {
              "properties": {
                "backgroundRead": {
                  "const": false
                }
              }
            }
          }
        ],
        "description": "订单读取能力：只用于核实订单页或接口是否显示“已付款”，作为付款凭证来源；不跟踪订单状态。"
      },
      "FeePolicy": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "feePolicyId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "version": {
            "type": "integer",
            "minimum": 0
          },
          "operations": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "deploy": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "payer": {
                    "type": "string",
                    "enum": [
                      "user_native",
                      "sponsor"
                    ]
                  },
                  "chainId": {
                    "type": "string",
                    "pattern": "^eip155:[1-9][0-9]*$"
                  },
                  "nativeAsset": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "maxFeePerAction": {
                    "type": "string",
                    "pattern": "^(0|[1-9][0-9]*)$",
                    "maxLength": 78
                  },
                  "lifetimeFeeCap": {
                    "type": "string",
                    "pattern": "^(0|[1-9][0-9]*)$",
                    "maxLength": 78
                  },
                  "quoteExpiresAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "providerRef": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "failureAction": {
                    "type": "string",
                    "enum": [
                      "block_and_prompt",
                      "block_and_wait"
                    ]
                  }
                },
                "required": [
                  "payer",
                  "chainId",
                  "nativeAsset",
                  "maxFeePerAction",
                  "lifetimeFeeCap",
                  "quoteExpiresAt",
                  "providerRef",
                  "failureAction"
                ]
              },
              "install": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "payer": {
                    "type": "string",
                    "enum": [
                      "user_native",
                      "sponsor"
                    ]
                  },
                  "chainId": {
                    "type": "string",
                    "pattern": "^eip155:[1-9][0-9]*$"
                  },
                  "nativeAsset": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "maxFeePerAction": {
                    "type": "string",
                    "pattern": "^(0|[1-9][0-9]*)$",
                    "maxLength": 78
                  },
                  "lifetimeFeeCap": {
                    "type": "string",
                    "pattern": "^(0|[1-9][0-9]*)$",
                    "maxLength": 78
                  },
                  "quoteExpiresAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "providerRef": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "failureAction": {
                    "type": "string",
                    "enum": [
                      "block_and_prompt",
                      "block_and_wait"
                    ]
                  }
                },
                "required": [
                  "payer",
                  "chainId",
                  "nativeAsset",
                  "maxFeePerAction",
                  "lifetimeFeeCap",
                  "quoteExpiresAt",
                  "providerRef",
                  "failureAction"
                ]
              },
              "pay": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "payer": {
                    "type": "string",
                    "enum": [
                      "user_native",
                      "sponsor"
                    ]
                  },
                  "chainId": {
                    "type": "string",
                    "pattern": "^eip155:[1-9][0-9]*$"
                  },
                  "nativeAsset": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "maxFeePerAction": {
                    "type": "string",
                    "pattern": "^(0|[1-9][0-9]*)$",
                    "maxLength": 78
                  },
                  "lifetimeFeeCap": {
                    "type": "string",
                    "pattern": "^(0|[1-9][0-9]*)$",
                    "maxLength": 78
                  },
                  "quoteExpiresAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "providerRef": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "failureAction": {
                    "type": "string",
                    "enum": [
                      "block_and_prompt",
                      "block_and_wait"
                    ]
                  }
                },
                "required": [
                  "payer",
                  "chainId",
                  "nativeAsset",
                  "maxFeePerAction",
                  "lifetimeFeeCap",
                  "quoteExpiresAt",
                  "providerRef",
                  "failureAction"
                ]
              },
              "revoke": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "payer": {
                    "type": "string",
                    "enum": [
                      "user_native",
                      "sponsor"
                    ]
                  },
                  "chainId": {
                    "type": "string",
                    "pattern": "^eip155:[1-9][0-9]*$"
                  },
                  "nativeAsset": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "maxFeePerAction": {
                    "type": "string",
                    "pattern": "^(0|[1-9][0-9]*)$",
                    "maxLength": 78
                  },
                  "lifetimeFeeCap": {
                    "type": "string",
                    "pattern": "^(0|[1-9][0-9]*)$",
                    "maxLength": 78
                  },
                  "quoteExpiresAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "providerRef": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "failureAction": {
                    "type": "string",
                    "enum": [
                      "block_and_prompt",
                      "block_and_wait"
                    ]
                  }
                },
                "required": [
                  "payer",
                  "chainId",
                  "nativeAsset",
                  "maxFeePerAction",
                  "lifetimeFeeCap",
                  "quoteExpiresAt",
                  "providerRef",
                  "failureAction"
                ]
              },
              "recover": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "payer": {
                    "type": "string",
                    "enum": [
                      "user_native",
                      "sponsor"
                    ]
                  },
                  "chainId": {
                    "type": "string",
                    "pattern": "^eip155:[1-9][0-9]*$"
                  },
                  "nativeAsset": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "maxFeePerAction": {
                    "type": "string",
                    "pattern": "^(0|[1-9][0-9]*)$",
                    "maxLength": 78
                  },
                  "lifetimeFeeCap": {
                    "type": "string",
                    "pattern": "^(0|[1-9][0-9]*)$",
                    "maxLength": 78
                  },
                  "quoteExpiresAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "providerRef": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "failureAction": {
                    "type": "string",
                    "enum": [
                      "block_and_prompt",
                      "block_and_wait"
                    ]
                  }
                },
                "required": [
                  "payer",
                  "chainId",
                  "nativeAsset",
                  "maxFeePerAction",
                  "lifetimeFeeCap",
                  "quoteExpiresAt",
                  "providerRef",
                  "failureAction"
                ]
              },
              "exit": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "payer": {
                    "type": "string",
                    "enum": [
                      "user_native",
                      "sponsor"
                    ]
                  },
                  "chainId": {
                    "type": "string",
                    "pattern": "^eip155:[1-9][0-9]*$"
                  },
                  "nativeAsset": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "maxFeePerAction": {
                    "type": "string",
                    "pattern": "^(0|[1-9][0-9]*)$",
                    "maxLength": 78
                  },
                  "lifetimeFeeCap": {
                    "type": "string",
                    "pattern": "^(0|[1-9][0-9]*)$",
                    "maxLength": 78
                  },
                  "quoteExpiresAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "providerRef": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "failureAction": {
                    "type": "string",
                    "enum": [
                      "block_and_prompt",
                      "block_and_wait"
                    ]
                  }
                },
                "required": [
                  "payer",
                  "chainId",
                  "nativeAsset",
                  "maxFeePerAction",
                  "lifetimeFeeCap",
                  "quoteExpiresAt",
                  "providerRef",
                  "failureAction"
                ]
              }
            },
            "required": [
              "deploy",
              "install",
              "pay",
              "revoke",
              "recover",
              "exit"
            ]
          },
          "bundlerRef": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "backupSubmissionRef": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "evidenceRefs": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            },
            "minItems": 1
          }
        },
        "required": [
          "feePolicyId",
          "version",
          "operations",
          "bundlerRef",
          "backupSubmissionRef",
          "evidenceRefs"
        ]
      },
      "TaskMetricEvent": {
        "oneOf": [
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "eventId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "schemaVersion": {
                "type": "integer",
                "const": 1
              },
              "taskId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "rootTaskId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "occurredAt": {
                "type": "string",
                "format": "date-time"
              },
              "recordedAt": {
                "type": "string",
                "format": "date-time"
              },
              "eventType": {
                "const": "task.execution_entered",
                "type": "string"
              },
              "payload": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "trigger": {
                    "type": "string",
                    "enum": [
                      "automatic_dispatch",
                      "manual_handoff"
                    ]
                  },
                  "executionMode": {
                    "type": "string",
                    "enum": [
                      "automatic",
                      "manual_checkout"
                    ]
                  },
                  "sourceRef": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  }
                },
                "required": [
                  "trigger",
                  "executionMode",
                  "sourceRef"
                ]
              },
              "isDrill": {
                "type": "boolean",
                "const": false,
                "default": false,
                "description": "用户演练不进入任务指标事件流；历史事件须关联任务过滤"
              }
            },
            "required": [
              "eventId",
              "schemaVersion",
              "taskId",
              "rootTaskId",
              "occurredAt",
              "recordedAt",
              "eventType",
              "payload"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "eventId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "schemaVersion": {
                "type": "integer",
                "const": 1
              },
              "taskId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "rootTaskId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "occurredAt": {
                "type": "string",
                "format": "date-time"
              },
              "recordedAt": {
                "type": "string",
                "format": "date-time"
              },
              "eventType": {
                "const": "task.human_intervention",
                "type": "string"
              },
              "payload": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "reason": {
                    "type": "string",
                    "enum": [
                      "one_time_grant",
                      "provide_info",
                      "clarification",
                      "authentication",
                      "manual_checkout",
                      "operator_exception"
                    ]
                  },
                  "actorType": {
                    "type": "string",
                    "enum": [
                      "user",
                      "operator"
                    ]
                  },
                  "sourceRef": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  }
                },
                "required": [
                  "reason",
                  "actorType",
                  "sourceRef"
                ]
              },
              "isDrill": {
                "type": "boolean",
                "const": false,
                "default": false,
                "description": "用户演练不进入任务指标事件流；历史事件须关联任务过滤"
              }
            },
            "required": [
              "eventId",
              "schemaVersion",
              "taskId",
              "rootTaskId",
              "occurredAt",
              "recordedAt",
              "eventType",
              "payload"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "eventId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "schemaVersion": {
                "type": "integer",
                "const": 1
              },
              "taskId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "rootTaskId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "occurredAt": {
                "type": "string",
                "format": "date-time"
              },
              "recordedAt": {
                "type": "string",
                "format": "date-time"
              },
              "eventType": {
                "const": "task.outcome_corrected",
                "type": "string"
              },
              "payload": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "priorOutcomeEventId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "reason": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "sourceRef": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  }
                },
                "required": [
                  "priorOutcomeEventId",
                  "reason",
                  "sourceRef"
                ]
              },
              "isDrill": {
                "type": "boolean",
                "const": false,
                "default": false,
                "description": "用户演练不进入任务指标事件流；历史事件须关联任务过滤"
              }
            },
            "required": [
              "eventId",
              "schemaVersion",
              "taskId",
              "rootTaskId",
              "occurredAt",
              "recordedAt",
              "eventType",
              "payload"
            ]
          }
        ]
      },
      "MetricsSnapshot": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "metricVersion": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "cohortStart": {
            "type": "string",
            "format": "date-time"
          },
          "cohortEnd": {
            "type": "string",
            "format": "date-time"
          },
          "timezone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "snapshotAt": {
            "type": "string",
            "format": "date-time"
          },
          "sourceWatermark": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "revision": {
            "type": "integer",
            "minimum": 0
          },
          "N": {
            "type": "integer",
            "minimum": 0
          },
          "C": {
            "type": "integer",
            "minimum": 0
          },
          "A": {
            "type": "integer",
            "minimum": 0
          },
          "U": {
            "type": "integer",
            "minimum": 0
          },
          "C_partial": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "metricVersion",
          "cohortStart",
          "cohortEnd",
          "timezone",
          "snapshotAt",
          "sourceWatermark",
          "revision",
          "N",
          "C",
          "A",
          "U",
          "C_partial"
        ]
      },
      "AdmissionRecord": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "gateId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "phase": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "ownerRole": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "namedOwner": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "unverified",
              "sandbox_verified",
              "production_approved",
              "suspended"
            ]
          },
          "provider": {
            "type": [
              "string",
              "null"
            ]
          },
          "account": {
            "type": [
              "string",
              "null"
            ]
          },
          "region": {
            "type": [
              "string",
              "null"
            ]
          },
          "version": {
            "type": [
              "string",
              "null"
            ]
          },
          "requiredEvidence": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1024
          },
          "disabledBehavior": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1024
          },
          "evidenceRefs": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            }
          },
          "verifiedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "validUntil": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "approvedBy": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "gateId",
          "phase",
          "ownerRole",
          "namedOwner",
          "status",
          "provider",
          "account",
          "region",
          "version",
          "requiredEvidence",
          "disabledBehavior",
          "evidenceRefs",
          "verifiedAt",
          "validUntil",
          "approvedBy"
        ],
        "allOf": [
          {
            "if": {
              "properties": {
                "status": {
                  "const": "production_approved"
                }
              }
            },
            "then": {
              "properties": {
                "namedOwner": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "provider": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "account": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "region": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "version": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "approvedBy": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "evidenceRefs": {
                  "minItems": 1
                },
                "verifiedAt": {
                  "type": "string",
                  "format": "date-time"
                },
                "validUntil": {
                  "type": "string",
                  "format": "date-time"
                }
              }
            }
          }
        ]
      },
      "IntentCertificatePayload": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "intentCertId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "taskId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "authorityContext": {
            "$ref": "#/components/schemas/AuthorityContext"
          },
          "requirementVersion": {
            "type": "integer",
            "minimum": 0
          },
          "planVersion": {
            "type": "integer",
            "minimum": 0
          },
          "materialHash": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          },
          "checksHash": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          },
          "sourceLevel": {
            "enum": [
              "agent_reported",
              "user_confirmed"
            ]
          },
          "ruleSetVersion": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "issuedAt": {
            "type": "string",
            "format": "date-time"
          },
          "verdict": {
            "type": "string",
            "enum": [
              "pass",
              "ask_user",
              "block"
            ]
          },
          "evidenceSummary": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1024
          },
          "checkFieldSources": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "enum": [
                "user_words",
                "user_confirmed",
                "agent_reported",
                "page_read",
                "category_template",
                "user_profile"
              ]
            }
          }
        },
        "required": [
          "intentCertId",
          "taskId",
          "authorityContext",
          "requirementVersion",
          "planVersion",
          "materialHash",
          "checksHash",
          "sourceLevel",
          "ruleSetVersion",
          "issuedAt"
        ],
        "description": "Wallet 独立意图校验模块的结论经 AtelSecurityPort 提交后，由 ATEL 安全层记录并签发；verdict 为 pass／ask_user／block，ruleSetVersion 为 Wallet 校验规则版本，ATEL 只接收并记录，不运行 Wallet 业务规则。"
      },
      "ActionPermitPayload": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "permitId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "taskId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "authorityContext": {
            "$ref": "#/components/schemas/AuthorityContext"
          },
          "intentCertId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "requirementVersion": {
            "type": "integer",
            "minimum": 0
          },
          "planVersion": {
            "type": "integer",
            "minimum": 0
          },
          "action": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "executorId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "paramsHash": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          },
          "grantId": {
            "type": [
              "string",
              "null"
            ]
          },
          "issuedAt": {
            "type": "string",
            "format": "date-time"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "permitId",
          "taskId",
          "authorityContext",
          "intentCertId",
          "requirementVersion",
          "planVersion",
          "action",
          "executorId",
          "paramsHash",
          "grantId",
          "issuedAt",
          "expiresAt"
        ]
      },
      "PaymentResult": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "paymentId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "taskId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "status": {
            "enum": [
              "none",
              "confirming",
              "succeeded",
              "failed"
            ]
          },
          "amount": {
            "$ref": "#/components/schemas/Money"
          },
          "fundsAvailability": {
            "enum": [
              "available",
              "frozen",
              "unknown"
            ]
          },
          "refundSummary": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "state": {
                "enum": [
                  "none",
                  "partial",
                  "full"
                ]
              },
              "netRefunded": {
                "$ref": "#/components/schemas/Money"
              }
            },
            "required": [
              "state",
              "netRefunded"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "paymentId",
          "taskId",
          "status",
          "amount",
          "fundsAvailability",
          "refundSummary",
          "updatedAt"
        ]
      },
      "CompletionCriteria": {
        "type": [
          "string",
          "null"
        ],
        "enum": [
          "payment_succeeded",
          "paid_resource_request",
          null
        ],
        "description": "完成判据：付款已确认成功（payment_succeeded），或按次付费请求已付（paid_resource_request）；未确定路径时可为 null。订单与履约不是判据。"
      },
      "CompletionKind": {
        "type": [
          "string",
          "null"
        ],
        "enum": [
          "full",
          "partial",
          null
        ],
        "description": "完成程度；completed 为 full 或已获同意的 partial，其他状态为 null。"
      },
      "EvidenceToolCall": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "seq": {
            "type": "integer",
            "minimum": 0
          },
          "caller": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "tool": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "argsSummary": {
            "type": "string",
            "maxLength": 512
          },
          "resultSummary": {
            "type": "string",
            "maxLength": 512
          },
          "gate": {
            "type": "string",
            "enum": [
              "not_required",
              "allowed",
              "asked_user",
              "denied"
            ]
          },
          "at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "seq",
          "caller",
          "tool",
          "argsSummary",
          "resultSummary",
          "gate",
          "at"
        ]
      },
      "EvidenceGateDecision": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "seq": {
            "type": "integer",
            "minimum": 0
          },
          "decision": {
            "type": "string",
            "enum": [
              "allow",
              "ask_user",
              "deny",
              "auto_fix"
            ]
          },
          "reason": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "rule": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "seq",
          "decision",
          "reason",
          "rule"
        ]
      },
      "EvidenceReceipt": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "seq": {
            "type": "integer",
            "minimum": 0
          },
          "source": {
            "type": "string",
            "enum": [
              "merchant_page",
              "merchant_email",
              "protocol_response",
              "provider_receipt",
              "chain"
            ]
          },
          "orderId": {
            "type": [
              "string",
              "null"
            ]
          },
          "amount": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Money"
              },
              {
                "type": "null"
              }
            ]
          },
          "paymentRef": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "seq",
          "source",
          "orderId",
          "amount",
          "paymentRef"
        ]
      },
      "EvidencePurchaseDelegation": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "type": {
            "type": "string",
            "const": "purchase"
          },
          "baseline": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "items": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "spec": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string"
                      }
                    },
                    "quantity": {
                      "type": "integer",
                      "minimum": 1
                    }
                  },
                  "required": [
                    "name",
                    "spec",
                    "quantity"
                  ]
                },
                "minItems": 1
              },
              "maxTotal": {
                "$ref": "#/components/schemas/Money"
              },
              "fieldSources": {
                "type": "object",
                "additionalProperties": {
                  "type": "string",
                  "enum": [
                    "user_words",
                    "user_confirmed",
                    "agent_reported",
                    "page_read",
                    "category_template"
                  ]
                }
              }
            },
            "required": [
              "items",
              "maxTotal",
              "fieldSources"
            ]
          },
          "quote": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "summaryHash": {
                "type": "string",
                "pattern": "^sha256:[0-9a-f…]{2,64}$"
              },
              "total": {
                "$ref": "#/components/schemas/Money"
              },
              "source": {
                "type": "string",
                "enum": [
                  "api",
                  "protocol",
                  "page"
                ]
              }
            },
            "required": [
              "summaryHash",
              "total",
              "source"
            ]
          },
          "correctionRounds": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2
          }
        },
        "required": [
          "type",
          "baseline",
          "quote",
          "correctionRounds"
        ]
      },
      "EvidencePaymentDelegation": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "type": {
            "type": "string",
            "const": "payment"
          },
          "payee": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "ref": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "domainOrAddress": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              }
            },
            "required": [
              "ref",
              "domainOrAddress"
            ]
          },
          "amount": {
            "$ref": "#/components/schemas/Money"
          },
          "asset": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "network": {
            "type": [
              "string",
              "null"
            ]
          },
          "originRef": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "limitCheck": {
            "type": "string",
            "enum": [
              "within_limit",
              "over_limit_confirmed"
            ]
          }
        },
        "required": [
          "type",
          "payee",
          "amount",
          "asset",
          "network",
          "originRef",
          "limitCheck"
        ]
      },
      "EvidenceApiSegment": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "kind": {
            "type": "string",
            "const": "api"
          },
          "endpoint": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "requestHashes": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^sha256:[0-9a-f…]{2,64}$"
            }
          },
          "responseRefs": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            }
          }
        },
        "required": [
          "kind",
          "endpoint",
          "requestHashes",
          "responseRefs"
        ]
      },
      "EvidenceProtocolSegment": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "kind": {
            "type": "string",
            "const": "protocol"
          },
          "protocol": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "adapterVersion": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "capabilityProfileRef": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "mappedFields": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "field": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "source": {
                  "type": "string",
                  "enum": [
                    "merchant",
                    "atel",
                    "user"
                  ]
                }
              },
              "required": [
                "field",
                "source"
              ]
            }
          }
        },
        "required": [
          "kind",
          "protocol",
          "adapterVersion",
          "capabilityProfileRef",
          "mappedFields"
        ]
      },
      "EvidencePluginSegment": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "kind": {
            "type": "string",
            "const": "plugin"
          },
          "site": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "pageReads": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "seq": {
                  "type": "integer",
                  "minimum": 0
                },
                "summaryHash": {
                  "type": "string",
                  "pattern": "^sha256:[0-9a-f…]{2,64}$"
                },
                "fields": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "string"
                  }
                },
                "verdict": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                }
              },
              "required": [
                "seq",
                "summaryHash",
                "fields",
                "verdict"
              ]
            },
            "minItems": 1
          },
          "fill": {
            "oneOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "permitRef": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "vaultRecordRef": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "fieldClasses": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "minItems": 1
                  },
                  "card": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "brand": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "last4": {
                        "type": "string",
                        "pattern": "^[0-9]{4}$"
                      }
                    },
                    "required": [
                      "brand",
                      "last4"
                    ]
                  },
                  "preFillSummaryHash": {
                    "type": "string",
                    "pattern": "^sha256:[0-9a-f…]{2,64}$"
                  }
                },
                "required": [
                  "permitRef",
                  "vaultRecordRef",
                  "fieldClasses",
                  "card",
                  "preFillSummaryHash"
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "kind",
          "site",
          "pageReads",
          "fill"
        ]
      },
      "EvidenceScriptSegment": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "kind": {
            "type": "string",
            "const": "script"
          },
          "sessionRef": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "recipeVersion": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "steps": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "seq": {
                  "type": "integer",
                  "minimum": 0
                },
                "element": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "action": {
                  "type": "string",
                  "enum": [
                    "click",
                    "type",
                    "select",
                    "submit"
                  ]
                },
                "inputClass": {
                  "type": "string",
                  "enum": [
                    "plain",
                    "vault_placeholder",
                    "redacted",
                    "none"
                  ]
                },
                "beforeHash": {
                  "type": "string",
                  "pattern": "^sha256:[0-9a-f…]{2,64}$"
                },
                "afterHash": {
                  "type": "string",
                  "pattern": "^sha256:[0-9a-f…]{2,64}$"
                },
                "screenshotRef": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "expected": {
                  "type": "string",
                  "maxLength": 512
                },
                "deviation": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "permitRef": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                }
              },
              "required": [
                "seq",
                "element",
                "action",
                "inputClass",
                "beforeHash",
                "afterHash",
                "screenshotRef",
                "expected",
                "deviation",
                "permitRef"
              ]
            },
            "minItems": 1
          },
          "handovers": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "from": {
                  "type": "string",
                  "enum": [
                    "atel",
                    "user"
                  ]
                },
                "to": {
                  "type": "string",
                  "enum": [
                    "atel",
                    "user"
                  ]
                },
                "startedAt": {
                  "type": "string",
                  "format": "date-time"
                },
                "endedAt": {
                  "oneOf": [
                    {
                      "type": "string",
                      "format": "date-time"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "from",
                "to",
                "startedAt",
                "endedAt"
              ]
            }
          }
        },
        "required": [
          "kind",
          "sessionRef",
          "recipeVersion",
          "steps",
          "handovers"
        ]
      },
      "EvidencePack": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "packId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "taskId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "scope": {
            "type": "string",
            "const": "user"
          },
          "purpose": {
            "type": "string",
            "enum": [
              "self_keep",
              "after_sales",
              "third_party_check",
              "card_issuer"
            ]
          },
          "delegation": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/EvidencePurchaseDelegation"
              },
              {
                "$ref": "#/components/schemas/EvidencePaymentDelegation"
              }
            ]
          },
          "segments": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/EvidenceApiSegment"
                },
                {
                  "$ref": "#/components/schemas/EvidenceProtocolSegment"
                },
                {
                  "$ref": "#/components/schemas/EvidencePluginSegment"
                },
                {
                  "$ref": "#/components/schemas/EvidenceScriptSegment"
                }
              ]
            },
            "minItems": 1
          },
          "toolCalls": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EvidenceToolCall"
            }
          },
          "gateDecisions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EvidenceGateDecision"
            }
          },
          "receipts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EvidenceReceipt"
            }
          },
          "checkpoint": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "checkpointId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "merkleRoot": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              },
              "anchoredAt": {
                "oneOf": [
                  {
                    "type": "string",
                    "format": "date-time"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "checkpointId",
              "merkleRoot",
              "anchoredAt"
            ]
          },
          "signature": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "withheld": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            }
          },
          "issuerCase": {
            "type": "string",
            "enum": [
              "amount_mismatch",
              "duplicate_charge",
              "not_as_ordered",
              "not_received"
            ]
          },
          "noticeVersion": {
            "type": "string",
            "minLength": 1
          },
          "submissionNotice": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "packId",
          "taskId",
          "scope",
          "purpose",
          "delegation",
          "segments",
          "toolCalls",
          "gateDecisions",
          "receipts",
          "checkpoint",
          "signature",
          "withheld"
        ],
        "allOf": [
          {
            "if": {
              "properties": {
                "purpose": {
                  "const": "card_issuer"
                }
              },
              "required": [
                "purpose"
              ]
            },
            "then": {
              "required": [
                "issuerCase",
                "noticeVersion",
                "submissionNotice"
              ]
            },
            "else": {
              "not": {
                "anyOf": [
                  {
                    "required": [
                      "issuerCase"
                    ]
                  },
                  {
                    "required": [
                      "noticeVersion"
                    ]
                  },
                  {
                    "required": [
                      "submissionNotice"
                    ]
                  }
                ]
              }
            }
          }
        ]
      },
      "ProofExportRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "format": {
            "type": "string",
            "enum": [
              "pdf",
              "csv",
              "json"
            ],
            "default": "pdf"
          },
          "purpose": {
            "type": "string",
            "enum": [
              "self",
              "platform",
              "third_party",
              "card_issuer"
            ],
            "default": "self"
          },
          "issuerCase": {
            "type": "string",
            "enum": [
              "amount_mismatch",
              "duplicate_charge",
              "not_as_ordered",
              "not_received"
            ]
          }
        },
        "required": [],
        "allOf": [
          {
            "if": {
              "required": [
                "purpose"
              ],
              "properties": {
                "purpose": {
                  "const": "card_issuer"
                }
              }
            },
            "then": {
              "required": [
                "issuerCase"
              ]
            },
            "else": {
              "not": {
                "required": [
                  "issuerCase"
                ]
              }
            }
          }
        ]
      },
      "ProofExportResult": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "exportId": {
            "type": "string",
            "minLength": 1
          },
          "status": {
            "type": "string",
            "enum": [
              "queued"
            ]
          },
          "proofId": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "exportId",
          "status",
          "proofId"
        ]
      },
      "DrillOfferRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "connectionId": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "connectionId"
        ]
      },
      "DrillOfferResult": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "offerId": {
            "type": "string",
            "minLength": 1
          },
          "decisionUrl": {
            "type": "string",
            "format": "uri"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "offerId",
          "decisionUrl",
          "expiresAt"
        ]
      },
      "DrillDecisionRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "accepted": {
            "type": "boolean"
          }
        },
        "required": [
          "accepted"
        ]
      },
      "DrillDecisionResult": {
        "oneOf": [
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "accepted": {
                "const": false,
                "type": "boolean"
              }
            },
            "required": [
              "accepted"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "accepted": {
                "const": true,
                "type": "boolean"
              },
              "taskId": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "accepted",
              "taskId"
            ]
          }
        ]
      },
      "DrillConfirmRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "decision": {
            "type": "string",
            "enum": [
              "approve",
              "reject"
            ]
          }
        },
        "required": [
          "decision"
        ]
      },
      "DrillTaskResult": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "taskId": {
            "type": "string",
            "minLength": 1
          },
          "isDrill": {
            "type": "boolean",
            "const": true
          },
          "status": {
            "type": "string",
            "enum": [
              "completed",
              "cancelled"
            ]
          }
        },
        "required": [
          "taskId",
          "isDrill",
          "status"
        ]
      },
      "DrillDeleteResult": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "taskId": {
            "type": "string",
            "minLength": 1
          },
          "deleted": {
            "type": "boolean",
            "const": true
          }
        },
        "required": [
          "taskId",
          "deleted"
        ]
      },
      "InterceptionSummary": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "periodStart": {
            "type": "string",
            "format": "date-time"
          },
          "periodEnd": {
            "type": "string",
            "format": "date-time"
          },
          "total": {
            "type": "integer",
            "minimum": 0
          },
          "mismatchCount": {
            "type": "integer",
            "minimum": 0
          },
          "overBudgetCount": {
            "type": "integer",
            "minimum": 0
          },
          "visible": {
            "type": "boolean"
          },
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "taskId": {
                  "type": "string",
                  "minLength": 1
                },
                "planVersion": {
                  "type": "integer",
                  "minimum": 0
                },
                "category": {
                  "type": "string",
                  "enum": [
                    "mismatch",
                    "over_budget"
                  ]
                },
                "occurredAt": {
                  "type": "string",
                  "format": "date-time"
                },
                "checkUrl": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "required": [
                "taskId",
                "planVersion",
                "category",
                "occurredAt",
                "checkUrl"
              ]
            }
          }
        },
        "required": [
          "periodStart",
          "periodEnd",
          "total",
          "mismatchCount",
          "overBudgetCount",
          "visible",
          "items"
        ]
      },
      "WeeklyDigestPreference": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "weeklyDigestEnabled": {
            "type": "boolean",
            "default": true
          },
          "channels": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "in_app",
                "email"
              ]
            },
            "default": [
              "in_app",
              "email"
            ]
          }
        },
        "required": [
          "weeklyDigestEnabled",
          "channels"
        ]
      },
      "MissingVariantResult": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "needs_info"
            ]
          },
          "nextAction": {
            "type": "string",
            "enum": [
              "provide_info"
            ]
          },
          "missingFields": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "clarification": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "recipient": {
                "type": "string",
                "enum": [
                  "agent"
                ]
              },
              "prompt": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "recipient",
              "prompt"
            ]
          },
          "requirementChecks": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "field": {
                  "type": "string",
                  "minLength": 1
                },
                "requirement": {
                  "type": "null"
                },
                "result": {
                  "type": "string",
                  "enum": [
                    "insufficient"
                  ]
                },
                "reason": {
                  "type": "string",
                  "enum": [
                    "required_variant_missing"
                  ]
                }
              },
              "required": [
                "field",
                "requirement",
                "result",
                "reason"
              ]
            }
          }
        },
        "required": [
          "status",
          "nextAction",
          "missingFields",
          "clarification",
          "requirementChecks"
        ]
      },
      "PreferenceValue": {
        "oneOf": [
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "size": {
                "type": "string",
                "minLength": 1,
                "maxLength": 32
              },
              "sizeSystem": {
                "type": "string",
                "minLength": 1,
                "maxLength": 32
              }
            },
            "required": [
              "size",
              "sizeSystem"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "items": {
                "type": "array",
                "minItems": 1,
                "maxItems": 20,
                "uniqueItems": true,
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128
                }
              }
            },
            "required": [
              "items"
            ]
          }
        ]
      },
      "PreferenceEntry": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "entryRef": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "categoryId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "kind": {
            "type": "string",
            "enum": [
              "size",
              "excluded_substitutions"
            ]
          },
          "value": {
            "$ref": "#/components/schemas/PreferenceValue"
          },
          "version": {
            "type": "integer",
            "minimum": 1
          },
          "confirmedAt": {
            "type": "string",
            "format": "date-time"
          },
          "confirmationSource": {
            "type": "string",
            "enum": [
              "settings",
              "payment_success",
              "clarification"
            ]
          }
        },
        "required": [
          "entryRef",
          "categoryId",
          "kind",
          "value",
          "version",
          "confirmedAt",
          "confirmationSource"
        ],
        "allOf": [
          {
            "if": {
              "properties": {
                "kind": {
                  "const": "size"
                }
              }
            },
            "then": {
              "properties": {
                "value": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "size": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 32
                    },
                    "sizeSystem": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 32
                    }
                  },
                  "required": [
                    "size",
                    "sizeSystem"
                  ]
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "kind": {
                  "const": "excluded_substitutions"
                }
              }
            },
            "then": {
              "properties": {
                "value": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "type": "array",
                      "minItems": 1,
                      "maxItems": 20,
                      "uniqueItems": true,
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      }
                    }
                  },
                  "required": [
                    "items"
                  ]
                }
              }
            }
          }
        ]
      },
      "PreferenceCreateRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "categoryId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "kind": {
            "type": "string",
            "enum": [
              "size",
              "excluded_substitutions"
            ]
          },
          "value": {
            "$ref": "#/components/schemas/PreferenceValue"
          },
          "confirmed": {
            "type": "boolean",
            "const": true
          }
        },
        "required": [
          "categoryId",
          "kind",
          "value",
          "confirmed"
        ],
        "allOf": [
          {
            "if": {
              "properties": {
                "kind": {
                  "const": "size"
                }
              }
            },
            "then": {
              "properties": {
                "value": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "size": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 32
                    },
                    "sizeSystem": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 32
                    }
                  },
                  "required": [
                    "size",
                    "sizeSystem"
                  ]
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "kind": {
                  "const": "excluded_substitutions"
                }
              }
            },
            "then": {
              "properties": {
                "value": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "type": "array",
                      "minItems": 1,
                      "maxItems": 20,
                      "uniqueItems": true,
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      }
                    }
                  },
                  "required": [
                    "items"
                  ]
                }
              }
            }
          }
        ]
      },
      "PreferenceUpdateRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "value": {
            "$ref": "#/components/schemas/PreferenceValue"
          },
          "expectedVersion": {
            "type": "integer",
            "minimum": 1
          },
          "confirmed": {
            "type": "boolean",
            "const": true
          }
        },
        "required": [
          "value",
          "expectedVersion",
          "confirmed"
        ]
      },
      "PreferenceListResult": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PreferenceEntry"
            }
          },
          "nextCursor": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items",
          "nextCursor"
        ]
      },
      "PreferenceDeleteResult": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "entryRef": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "status": {
            "type": "string",
            "enum": [
              "deleted"
            ]
          }
        },
        "required": [
          "entryRef",
          "status"
        ]
      },
      "PreferenceSaveOffer": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "offerRef": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "categoryId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "kind": {
            "type": "string",
            "enum": [
              "size"
            ]
          },
          "value": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "size": {
                "type": "string",
                "minLength": 1,
                "maxLength": 32
              },
              "sizeSystem": {
                "type": "string",
                "minLength": 1,
                "maxLength": 32
              }
            },
            "required": [
              "size",
              "sizeSystem"
            ]
          },
          "expectedVersion": {
            "type": "integer",
            "minimum": 0
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "offerRef",
          "categoryId",
          "kind",
          "value",
          "expectedVersion",
          "expiresAt"
        ]
      },
      "PreferenceOfferResult": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "offer": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PreferenceSaveOffer"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "offer"
        ]
      },
      "PreferenceConfirmRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "offerRef": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "confirmed": {
            "type": "boolean",
            "const": true
          }
        },
        "required": [
          "offerRef",
          "confirmed"
        ]
      },
      "RequirementFieldOrigin": {
        "type": "string",
        "enum": [
          "user_confirmed",
          "wallet_mandate",
          "agent_reported",
          "page_read",
          "category_template",
          "user_profile"
        ]
      },
      "ProfileCheckSource": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "category": {
            "type": "string",
            "enum": [
              "user_profile"
            ]
          },
          "entryRef": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "entryVersion": {
            "type": "integer",
            "minimum": 1
          },
          "confirmedAt": {
            "type": "string",
            "format": "date-time"
          },
          "fetchedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "category",
          "entryRef",
          "entryVersion",
          "confirmedAt",
          "fetchedAt"
        ]
      },
      "ProfileRequiredInfoItem": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "key": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "state": {
            "type": "string",
            "enum": [
              "available"
            ]
          },
          "provideVia": {
            "type": "array",
            "maxItems": 0
          },
          "label": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "profileEntry": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "entryRef": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "categoryId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "kind": {
                "type": "string",
                "enum": [
                  "size",
                  "excluded_substitutions"
                ]
              },
              "value": {
                "$ref": "#/components/schemas/PreferenceValue"
              },
              "version": {
                "type": "integer",
                "minimum": 1
              },
              "confirmedAt": {
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "entryRef",
              "categoryId",
              "kind",
              "value",
              "version",
              "confirmedAt"
            ]
          },
          "source": {
            "type": "string",
            "enum": [
              "user_profile"
            ]
          }
        },
        "required": [
          "key",
          "state",
          "provideVia",
          "label",
          "profileEntry",
          "source"
        ]
      },
      "ProfileClarificationContext": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "reason": {
            "type": "string",
            "enum": [
              "profile_conflict"
            ]
          },
          "profileContext": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "entryRef": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "entryVersion": {
                "type": "integer",
                "minimum": 1
              },
              "categoryId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "kind": {
                "type": "string",
                "enum": [
                  "size",
                  "excluded_substitutions"
                ]
              }
            },
            "required": [
              "entryRef",
              "entryVersion",
              "categoryId",
              "kind"
            ]
          }
        },
        "required": [
          "reason",
          "profileContext"
        ]
      },
      "ProfileClarificationAnswer": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "field": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "value": {
            "$ref": "#/components/schemas/PreferenceValue"
          },
          "rememberForFuture": {
            "type": "boolean",
            "default": false
          },
          "expectedProfileVersion": {
            "type": "integer",
            "minimum": 1
          }
        },
        "required": [
          "field",
          "value"
        ],
        "allOf": [
          {
            "if": {
              "required": [
                "rememberForFuture"
              ],
              "properties": {
                "rememberForFuture": {
                  "const": true
                }
              }
            },
            "then": {
              "required": [
                "expectedProfileVersion"
              ]
            }
          }
        ]
      },
      "ProfileSaveStatus": {
        "type": "string",
        "enum": [
          "not_requested",
          "pending",
          "saved",
          "version_conflict",
          "unavailable"
        ]
      },
      "BuyRightGroup": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "executionMode": {
            "type": "string",
            "enum": [
              "automatic",
              "manual_checkout",
              "unknown"
            ]
          },
          "categoryId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "planCount": {
            "type": "integer",
            "minimum": 0
          },
          "displayState": {
            "type": "string",
            "enum": [
              "count_only",
              "metrics"
            ]
          },
          "firstPassRate": {
            "type": [
              "number",
              "null"
            ],
            "minimum": 0,
            "maximum": 1
          },
          "averageCorrectionRounds": {
            "type": [
              "number",
              "null"
            ],
            "minimum": 0,
            "maximum": 2
          },
          "askUserRate": {
            "type": [
              "number",
              "null"
            ],
            "minimum": 0,
            "maximum": 1
          },
          "requirementCompleteness": {
            "type": [
              "number",
              "null"
            ],
            "minimum": 0,
            "maximum": 1
          }
        },
        "required": [
          "executionMode",
          "categoryId",
          "planCount",
          "displayState",
          "firstPassRate",
          "averageCorrectionRounds",
          "askUserRate",
          "requirementCompleteness"
        ],
        "allOf": [
          {
            "if": {
              "properties": {
                "displayState": {
                  "const": "count_only"
                }
              }
            },
            "then": {
              "properties": {
                "firstPassRate": {
                  "type": "null"
                },
                "averageCorrectionRounds": {
                  "type": "null"
                },
                "askUserRate": {
                  "type": "null"
                },
                "requirementCompleteness": {
                  "type": "null"
                }
              }
            },
            "else": {
              "properties": {
                "firstPassRate": {
                  "type": "number"
                },
                "averageCorrectionRounds": {
                  "type": "number"
                },
                "askUserRate": {
                  "type": "number"
                },
                "planCount": {
                  "minimum": 1
                }
              }
            }
          }
        ]
      },
      "BuyRightSummary": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "from": {
            "type": "string",
            "format": "date-time"
          },
          "to": {
            "type": "string",
            "format": "date-time"
          },
          "asOf": {
            "type": "string",
            "format": "date-time"
          },
          "metricVersion": {
            "const": "buy-right-v1",
            "type": "string"
          },
          "thresholdVersion": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "minSampleSize": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 1
          },
          "groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BuyRightGroup"
            }
          }
        },
        "required": [
          "from",
          "to",
          "asOf",
          "metricVersion",
          "thresholdVersion",
          "minSampleSize",
          "groups"
        ],
        "allOf": [
          {
            "if": {
              "properties": {
                "minSampleSize": {
                  "type": "null"
                }
              }
            },
            "then": {
              "properties": {
                "groups": {
                  "items": {
                    "properties": {
                      "displayState": {
                        "const": "count_only"
                      }
                    }
                  }
                }
              }
            }
          }
        ],
        "description": "P2；按组与服务端门槛比较，低于门槛四指标须为 null；跨字段大小关系由服务端与 TC 验证。只含聚合，无用户与交易内容。"
      },
      "BuyRightPlanList": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "asOf": {
            "type": "string",
            "format": "date-time"
          },
          "items": {
            "type": "array",
            "maxItems": 100,
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "taskId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "initialPlanVersion": {
                  "type": "integer",
                  "minimum": 0
                },
                "checkUrl": {
                  "type": "string",
                  "pattern": "^#personal/activity/[^/]+/check$"
                }
              },
              "required": [
                "taskId",
                "initialPlanVersion",
                "checkUrl"
              ]
            }
          },
          "nextCursor": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "asOf",
          "items",
          "nextCursor"
        ]
      },
      "LimitPeriod": {
        "type": "string",
        "enum": [
          "day",
          "week",
          "month"
        ]
      },
      "LimitDimension": {
        "type": "string",
        "enum": [
          "per_txn",
          "agent_total",
          "channel",
          "payment_channel",
          "card"
        ]
      },
      "LimitRule": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "limitId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "dimension": {
            "$ref": "#/components/schemas/LimitDimension"
          },
          "subjectRef": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 256
          },
          "period": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LimitPeriod"
              },
              {
                "type": "null"
              }
            ]
          },
          "limit": {
            "$ref": "#/components/schemas/Money"
          }
        },
        "required": [
          "limitId",
          "dimension",
          "subjectRef",
          "period",
          "limit"
        ],
        "description": "P1；subjectRef：channel 为渠道标识，payment_channel 为 vault_card／onchain_usdc，card 为卡引用，per_txn 与 agent_total 为 null；period：per_txn 为 null。一笔付款须同时满足所有适用维度，任一超出进入单笔确认；台账按维度分别占用、释放、回补，币种分行不相加。"
      },
      "LimitUsage": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "limitId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "dimension": {
            "$ref": "#/components/schemas/LimitDimension"
          },
          "period": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LimitPeriod"
              },
              {
                "type": "null"
              }
            ]
          },
          "available": {
            "$ref": "#/components/schemas/Money"
          },
          "reserved": {
            "$ref": "#/components/schemas/Money"
          },
          "spent": {
            "$ref": "#/components/schemas/Money"
          },
          "periodEndsAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "tightest": {
            "type": "boolean"
          }
        },
        "required": [
          "limitId",
          "dimension",
          "period",
          "available",
          "reserved",
          "spent",
          "periodEndsAt",
          "tightest"
        ],
        "description": "P1；首页与 Agent 卡片只显示 tightest=true 的一项，详情逐项列出。"
      },
      "ShoppingPreference": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "minProductStars": {
            "type": [
              "number",
              "null"
            ],
            "minimum": 1,
            "maximum": 5
          },
          "minMerchantRating": {
            "type": [
              "number",
              "null"
            ],
            "minimum": 0,
            "maximum": 5
          },
          "preferHighRated": {
            "type": "boolean"
          }
        },
        "required": [
          "minProductStars",
          "minMerchantRating",
          "preferHighRated"
        ],
        "description": "P1；随委托传给 Agent 作挑选参考，不拦截、不参与放行、不影响额度；记录写“用户偏好已传给 Agent”。"
      },
      "CategoryTemplate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "templateId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "category": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "scenario": {
            "type": "string",
            "enum": [
              "purchase",
              "payment"
            ]
          },
          "requiredFields": {
            "type": "array",
            "maxItems": 20,
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          "version": {
            "type": "integer",
            "minimum": 1
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "published",
              "retired"
            ]
          }
        },
        "required": [
          "templateId",
          "category",
          "scenario",
          "requiredFields",
          "version",
          "status"
        ],
        "description": "P1；按场景与品类的预填模板，由 ATEL 运营维护；必填项缺失时请 Agent 向用户补问。"
      },
      "IntentCheckVerdict": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "taskId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "scenario": {
            "type": "string",
            "enum": [
              "purchase",
              "payment"
            ]
          },
          "verdict": {
            "type": "string",
            "enum": [
              "pass",
              "ask_user",
              "block"
            ]
          },
          "ruleStage": {
            "type": "string",
            "enum": [
              "rule_intercept",
              "scenario_check"
            ]
          },
          "failedLimitIds": {
            "type": "array",
            "maxItems": 20,
            "items": {
              "type": "string"
            }
          },
          "evidenceSummary": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1024
          },
          "fieldSources": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "enum": [
                "user_words",
                "user_confirmed",
                "agent_reported",
                "page_read",
                "category_template",
                "user_profile"
              ]
            }
          },
          "ruleSetVersion": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "autoFixRound": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2
          }
        },
        "required": [
          "taskId",
          "scenario",
          "verdict",
          "ruleStage",
          "evidenceSummary",
          "fieldSources",
          "ruleSetVersion",
          "autoFixRound"
        ],
        "description": "P1；Wallet 意图校验模块经 AtelSecurityPort 提交 ATEL 安全层的结论；规则放行，AI 只能拦或问，不能放宽权限；自动修正最多 2 轮。"
      },
      "AssuranceLevel": {
        "type": "string",
        "enum": [
          "L0",
          "L1",
          "L2"
        ],
        "description": "P1；意图保障等级：L0 只有 Agent 说法；L1 ATEL 从原话独立识别且与 Agent 一致；L2 用户在 ATEL 页面确认。整体取各字段最低。"
      },
      "IntentReconciliationResult": {
        "type": "string",
        "enum": [
          "agree",
          "conflict",
          "agent_inferred",
          "agent_wider",
          "atel_added"
        ],
        "description": "P1；交叉比对结果：一致／冲突（以原话为准）／Agent 推断（更严，不算用户要求）／Agent 更宽（不接受）／原话有 Agent 漏报（ATEL 补）。"
      },
      "IntentFieldOrigin": {
        "type": "string",
        "enum": [
          "agent_reported",
          "atel_extracted",
          "user_confirmed",
          "category_template",
          "page_read",
          "wallet_mandate",
          "user_profile"
        ],
        "description": "P1；意图字段来源，由服务端判定；user_profile 为 P2。"
      },
      "IntentField": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "value": {
            "type": [
              "string",
              "number",
              "boolean",
              "null"
            ]
          },
          "normalized": {
            "type": [
              "string",
              "number",
              "boolean",
              "null"
            ]
          },
          "origin": {
            "$ref": "#/components/schemas/IntentFieldOrigin"
          },
          "assurance": {
            "$ref": "#/components/schemas/AssuranceLevel"
          },
          "confidence": {
            "type": "number",
            "minimum": 0,
            "maximum": 1
          },
          "evidenceSpan": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "start": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "end": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "text": {
                    "type": "string",
                    "maxLength": 200
                  }
                },
                "required": [
                  "start",
                  "end",
                  "text"
                ]
              }
            ]
          },
          "reconciliation": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/IntentReconciliationResult"
              }
            ]
          }
        },
        "required": [
          "name",
          "value",
          "normalized",
          "origin",
          "assurance",
          "confidence",
          "evidenceSpan",
          "reconciliation"
        ],
        "description": "P1；意图对象中的一个字段：原值、归一化值、来源、保障、置信度与原话依据。"
      },
      "Intent": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "intentId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "taskId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "version": {
            "type": "integer",
            "minimum": 1
          },
          "category": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "fields": {
            "type": "array",
            "maxItems": 40,
            "items": {
              "$ref": "#/components/schemas/IntentField"
            }
          },
          "assuranceLevel": {
            "$ref": "#/components/schemas/AssuranceLevel"
          },
          "riskScore": {
            "type": "number",
            "minimum": 0,
            "maximum": 100
          },
          "gaps": {
            "type": "array",
            "maxItems": 40,
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "field": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "question": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 512
                },
                "options": {
                  "type": "array",
                  "maxItems": 20,
                  "items": {
                    "type": "string",
                    "maxLength": 128
                  }
                }
              },
              "required": [
                "field",
                "question",
                "options"
              ]
            }
          },
          "constraints": {
            "type": "object",
            "additionalProperties": true
          },
          "utteranceCommitment": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              }
            ]
          },
          "modelRef": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "provider": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "model": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "version": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                },
                "required": [
                  "provider",
                  "model",
                  "version"
                ]
              }
            ]
          },
          "promptVersion": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "ontologyVersion": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "policyVersion": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "intentId",
          "taskId",
          "version",
          "category",
          "fields",
          "assuranceLevel",
          "riskScore",
          "gaps",
          "constraints",
          "utteranceCommitment",
          "modelRef",
          "promptVersion",
          "ontologyVersion",
          "policyVersion",
          "createdAt"
        ],
        "description": "P1；企业级意图识别输出的意图对象。整体 assuranceLevel 取各字段最低；规范化（JCS）后 SHA-256 得 intentHash，Wallet 服务密钥签名后经 AtelSecurityPort.submitIntent 交安全层；降级时 modelRef 为 null 且 assuranceLevel 最高 L0。"
      },
      "PurchaseIntentRegisterRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "category": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "userUtterance": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2000
          },
          "context": {
            "type": "array",
            "maxItems": 8,
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "role": {
                  "type": "string",
                  "enum": [
                    "user",
                    "agent"
                  ]
                },
                "text": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 1000
                }
              },
              "required": [
                "role",
                "text"
              ]
            }
          },
          "productRef": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "merchantRef": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "variant": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "number",
                "boolean"
              ]
            }
          },
          "quantity": {
            "type": "integer",
            "minimum": 1,
            "maximum": 20
          },
          "maxTotal": {
            "$ref": "#/components/schemas/Money"
          },
          "delivery": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "infoRef": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "latestDate": {
                "type": "string",
                "format": "date"
              }
            },
            "required": [
              "infoRef",
              "latestDate"
            ]
          },
          "substitution": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "allowMerchantSwap": {
                "type": "boolean"
              },
              "allowedVariants": {
                "type": "array",
                "maxItems": 20,
                "items": {
                  "type": "string",
                  "maxLength": 128
                }
              },
              "preferLowest": {
                "type": "boolean"
              }
            },
            "required": [
              "allowMerchantSwap",
              "allowedVariants",
              "preferLowest"
            ]
          },
          "allowSubscription": {
            "type": "boolean",
            "const": false
          },
          "allowPartial": {
            "type": "boolean"
          },
          "callbackUrl": {
            "type": "string",
            "format": "uri",
            "pattern": "^https://"
          },
          "taskId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "changeReason": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        },
        "required": [
          "category",
          "userUtterance",
          "maxTotal"
        ],
        "description": "P1；登记购买需求（选品前）。userUtterance 必填（≤2000 字，逐字原话）；context 最多 8 条且只作理解；Idempotency-Key 在请求头。"
      },
      "PurchaseIntentRegisterResult": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "taskId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "type": {
            "type": "string",
            "const": "purchase"
          },
          "status": {
            "type": "string",
            "const": "requirement_registered"
          },
          "requirementVersion": {
            "type": "integer",
            "minimum": 1
          },
          "requirementRegisteredAt": {
            "type": "string",
            "format": "date-time"
          },
          "gaps": {
            "type": "array",
            "maxItems": 40,
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "field": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "question": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 512
                },
                "options": {
                  "type": "array",
                  "maxItems": 20,
                  "items": {
                    "type": "string",
                    "maxLength": 128
                  }
                }
              },
              "required": [
                "field",
                "question",
                "options"
              ]
            }
          },
          "constraints": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "template": {
                "type": "object",
                "additionalProperties": true
              },
              "shoppingPreference": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": true
              }
            },
            "required": [
              "template",
              "shoppingPreference"
            ]
          },
          "requiredInfo": {
            "type": "array",
            "maxItems": 40,
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "key": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 64
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "available",
                    "missing",
                    "may_require_user"
                  ]
                },
                "provideVia": {
                  "type": "array",
                  "maxItems": 5,
                  "items": {
                    "type": "string",
                    "maxLength": 64
                  }
                }
              },
              "required": [
                "key",
                "state",
                "provideVia"
              ]
            }
          },
          "assuranceLevel": {
            "$ref": "#/components/schemas/AssuranceLevel"
          },
          "intentRef": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "intentHash": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          },
          "intentVersion": {
            "type": "integer",
            "minimum": 1
          },
          "intentConfirmationUrl": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "type": "string",
                "format": "uri"
              }
            ]
          },
          "reconciliation": {
            "type": "array",
            "maxItems": 40,
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "field": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 64
                },
                "agentValue": {
                  "type": [
                    "string",
                    "number",
                    "boolean",
                    "null"
                  ]
                },
                "atelValue": {
                  "type": [
                    "string",
                    "number",
                    "boolean",
                    "null"
                  ]
                },
                "result": {
                  "$ref": "#/components/schemas/IntentReconciliationResult"
                },
                "assurance": {
                  "$ref": "#/components/schemas/AssuranceLevel"
                },
                "evidenceSpan": {
                  "oneOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "start": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "end": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "text": {
                          "type": "string",
                          "maxLength": 200
                        }
                      },
                      "required": [
                        "start",
                        "end",
                        "text"
                      ]
                    }
                  ]
                }
              },
              "required": [
                "field",
                "agentValue",
                "atelValue",
                "result",
                "assurance"
              ]
            }
          },
          "degraded": {
            "type": "boolean"
          },
          "pollAfterSeconds": {
            "type": "integer",
            "const": 15
          }
        },
        "required": [
          "taskId",
          "type",
          "status",
          "requirementVersion",
          "requirementRegisteredAt",
          "gaps",
          "constraints",
          "requiredInfo",
          "assuranceLevel",
          "intentRef",
          "intentHash",
          "intentVersion",
          "intentConfirmationUrl",
          "reconciliation",
          "degraded",
          "pollAfterSeconds"
        ],
        "description": "P1；登记响应：需求基准 v1 与意图识别结果。degraded 为 true（模型超时或不可用）时 assuranceLevel 最高 L0 且 intentConfirmationUrl 必有值；assuranceLevel 为 L0 且需要确认时同样必有 intentConfirmationUrl。",
        "allOf": [
          {
            "if": {
              "properties": {
                "degraded": {
                  "const": true
                }
              },
              "required": [
                "degraded"
              ]
            },
            "then": {
              "properties": {
                "assuranceLevel": {
                  "const": "L0"
                },
                "intentConfirmationUrl": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          }
        ]
      },
      "ErrorDetail": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string",
            "enum": [
              "ERR_AUTH_INVALID",
              "ERR_OBJECT_FORBIDDEN",
              "ERR_MANDATE_PAUSED",
              "ERR_APP_SUSPENDED",
              "ERR_SPEC_MISMATCH",
              "ERR_BUDGET_EXCEEDED",
              "ERR_QUOTE_EXPIRED",
              "ERR_DUPLICATE_REQUEST",
              "ERR_PERMIT_USED",
              "ERR_PERMIT_EXPIRED",
              "ERR_INVENTORY_CONFLICT",
              "ERR_INFO_REQUIRED",
              "ERR_SENSITIVE_INFO_NOT_ALLOWED",
              "ERR_CONFIRMATION_REQUIRED",
              "ERR_PATH_UNAVAILABLE",
              "ERR_SITE_BLOCKED",
              "ERR_CHANNEL_DECLINED",
              "ERR_REGION_RESTRICTED",
              "ERR_CONNECTOR_UNAVAILABLE",
              "ERR_PAIRING_PENDING",
              "ERR_MANDATE_EXISTS",
              "ERR_OTP_INVALID",
              "ERR_ASSERTION_INVALID",
              "ERR_PASSKEY_COOLING",
              "ERR_LINK_EXPIRED",
              "ERR_INTERNAL",
              "ERR_REQUEST_INVALID",
              "ERR_RATE_LIMITED",
              "ERR_VERSION_CONFLICT",
              "ERR_VAULT_UNAVAILABLE",
              "ERR_CHECKOUT_MISMATCH",
              "ERR_SITE_NOT_ADAPTED",
              "ERR_SANDBOX_ONLY",
              "ERR_PROFILE_CONFIRMATION_REQUIRED"
            ]
          },
          "message": {
            "type": "string",
            "maxLength": 2048
          },
          "retryable": {
            "type": "boolean"
          },
          "issues": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "field": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "code": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "message": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                }
              },
              "required": [
                "field",
                "code",
                "message"
              ]
            }
          },
          "taskId": {
            "type": [
              "string",
              "null"
            ]
          },
          "retryAfterSeconds": {
            "type": "integer",
            "minimum": 0
          },
          "nextAction": {
            "type": "string",
            "enum": [
              "none",
              "wait",
              "user_confirm",
              "user_action",
              "provide_info"
            ]
          },
          "details": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "required": [
          "code",
          "message",
          "retryable",
          "issues"
        ]
      },
      "PairingRequestResult": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "pairingId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "pairingCode": {
            "type": "string",
            "pattern": "^[0-9]{6}$"
          },
          "pairingUrl": {
            "type": "string",
            "format": "uri"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          },
          "pollAfterSeconds": {
            "type": "integer",
            "minimum": 5
          }
        },
        "required": [
          "pairingId",
          "pairingCode",
          "pairingUrl",
          "expiresAt",
          "pollAfterSeconds"
        ]
      },
      "VerifiedAppRegistrationKey": {
        "oneOf": [
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "environment": {
                "type": "string",
                "enum": [
                  "production",
                  "sandbox"
                ]
              },
              "identityType": {
                "const": "oauth"
              },
              "clientId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              }
            },
            "required": [
              "environment",
              "identityType",
              "clientId"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "environment": {
                "type": "string",
                "enum": [
                  "production",
                  "sandbox"
                ]
              },
              "identityType": {
                "const": "did"
              },
              "publicKeyRef": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "environment",
              "identityType",
              "publicKeyRef"
            ]
          }
        ]
      },
      "PublishedAppRegistration": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "registered": {
            "const": true
          },
          "name": {
            "type": "string",
            "minLength": 2,
            "maxLength": 40
          },
          "iconRef": {
            "type": "string",
            "minLength": 1
          },
          "developerName": {
            "type": "string",
            "minLength": 2,
            "maxLength": 60
          }
        },
        "required": [
          "registered",
          "name",
          "iconRef",
          "developerName"
        ]
      },
      "UnregisteredApp": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "registered": {
            "const": false
          }
        },
        "required": [
          "registered"
        ]
      },
      "AppRegistrationReadResult": {
        "oneOf": [
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "appId": {
                "type": "string",
                "minLength": 1,
                "not": {
                  "const": "app_unregistered"
                }
              },
              "appRegistration": {
                "$ref": "#/components/schemas/PublishedAppRegistration"
              }
            },
            "required": [
              "appId",
              "appRegistration"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "appId": {
                "const": "app_unregistered"
              },
              "appRegistration": {
                "$ref": "#/components/schemas/UnregisteredApp"
              }
            },
            "required": [
              "appId",
              "appRegistration"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "error": {
                "type": "string",
                "enum": [
                  "not_published",
                  "suspended",
                  "delisted",
                  "unavailable",
                  "inconsistent"
                ]
              }
            },
            "required": [
              "error"
            ]
          }
        ]
      },
      "PairingIdentityDisplay": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "agentName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 40
          },
          "identityVerified": {
            "type": "boolean"
          },
          "clientDomain": {
            "type": "string",
            "format": "hostname"
          },
          "appRegistration": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PublishedAppRegistration"
              },
              {
                "$ref": "#/components/schemas/UnregisteredApp"
              }
            ]
          }
        },
        "required": [
          "agentName",
          "identityVerified",
          "appRegistration"
        ],
        "if": {
          "properties": {
            "identityVerified": {
              "const": false
            }
          }
        },
        "then": {
          "properties": {
            "appRegistration": {
              "$ref": "#/components/schemas/UnregisteredApp"
            }
          },
          "not": {
            "required": [
              "clientDomain"
            ]
          }
        }
      },
      "ConnectionTokenResult": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "accessToken": {
            "type": "string",
            "minLength": 16
          },
          "tokenType": {
            "type": "string",
            "const": "Bearer"
          },
          "expiresIn": {
            "type": "integer",
            "const": 3600
          },
          "refreshToken": {
            "type": "string",
            "minLength": 32
          },
          "refreshExpiresIn": {
            "type": "integer",
            "const": 2592000
          },
          "connectionId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "required": [
          "accessToken",
          "tokenType",
          "expiresIn",
          "refreshToken",
          "refreshExpiresIn",
          "connectionId"
        ]
      },
      "TaskResult": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "taskId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "rootTaskId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "type": {
            "type": "string",
            "enum": [
              "payment",
              "purchase"
            ]
          },
          "authorityContext": {
            "$ref": "#/components/schemas/AuthorityContext"
          },
          "status": {
            "type": "string",
            "enum": [
              "requirement_registered",
              "checking",
              "needs_info",
              "needs_revision",
              "needs_confirmation",
              "ready",
              "executing",
              "action_required",
              "pending_verification",
              "completed",
              "blocked",
              "cancelled",
              "handoff",
              "correction_required",
              "failed"
            ]
          },
          "completionCriteria": {
            "$ref": "#/components/schemas/CompletionCriteria"
          },
          "completionKind": {
            "$ref": "#/components/schemas/CompletionKind"
          },
          "executionEnteredAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "firstHumanInterventionAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "requirementVersion": {
            "type": "integer",
            "minimum": 0
          },
          "planVersion": {
            "type": "integer",
            "minimum": 0
          },
          "cancelStatus": {
            "type": "string",
            "enum": [
              "none",
              "requested",
              "pending",
              "resolved",
              "denied"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "isDrill": {
            "type": "boolean",
            "default": false,
            "readOnly": true
          }
        },
        "required": [
          "taskId",
          "rootTaskId",
          "type",
          "authorityContext",
          "status",
          "completionCriteria",
          "completionKind",
          "executionEnteredAt",
          "firstHumanInterventionAt",
          "requirementVersion",
          "planVersion",
          "cancelStatus",
          "updatedAt"
        ],
        "allOf": [
          {
            "if": {
              "properties": {
                "status": {
                  "const": "completed"
                }
              }
            },
            "then": {
              "properties": {
                "completionCriteria": {
                  "type": "string"
                },
                "completionKind": {
                  "enum": [
                    "full",
                    "partial"
                  ]
                }
              }
            },
            "else": {
              "properties": {
                "completionKind": {
                  "type": "null"
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "type": {
                  "const": "payment"
                }
              }
            },
            "then": {
              "properties": {
                "completionCriteria": {
                  "enum": [
                    "paid_resource_request",
                    "payment_succeeded",
                    null
                  ]
                }
              }
            }
          },
          {
            "if": {
              "properties": {
                "type": {
                  "const": "purchase"
                }
              }
            },
            "then": {
              "properties": {
                "completionCriteria": {
                  "enum": [
                    "payment_succeeded",
                    null
                  ]
                }
              }
            }
          }
        ]
      },
      "CreatePaymentTaskDuplicateSameConnection": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "taskId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "type": {
            "const": "payment"
          },
          "status": {
            "type": "string",
            "enum": [
              "requirement_registered",
              "checking",
              "needs_info",
              "needs_revision",
              "needs_confirmation",
              "ready",
              "executing",
              "action_required",
              "pending_verification",
              "completed",
              "blocked",
              "cancelled",
              "handoff",
              "correction_required",
              "failed"
            ],
            "description": "查重命中时原任务的当前状态。"
          },
          "duplicateOf": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "description": "等于 taskId，指向原任务。"
          },
          "idSource": {
            "type": "string",
            "enum": [
              "explicit",
              "derived"
            ],
            "description": "原任务逻辑请求编号的来源。"
          },
          "pollAfterSeconds": {
            "type": "integer",
            "minimum": 1,
            "description": "建议轮询间隔。Wallet 当前返回 15 秒。"
          }
        },
        "required": [
          "taskId",
          "type",
          "status",
          "duplicateOf",
          "idSource",
          "pollAfterSeconds"
        ]
      },
      "CreatePaymentTaskDuplicateOtherConnection": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "duplicateOf": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "description": "同一用户的原任务标识。查询原任务仍需通过连接归属校验。"
          },
          "status": {
            "const": "duplicate_elsewhere"
          }
        },
        "required": [
          "duplicateOf",
          "status"
        ]
      },
      "CreatePaymentTaskDuplicateResult": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "data": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CreatePaymentTaskDuplicateSameConnection"
              },
              {
                "$ref": "#/components/schemas/CreatePaymentTaskDuplicateOtherConnection"
              }
            ]
          },
          "requestId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "required": [
          "data",
          "requestId"
        ]
      },
      "PurchaseIntentRegisterDuplicateResult": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "data": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "duplicateOf": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256,
                "description": "原购买任务的标识。"
              },
              "status": {
                "type": "string",
                "enum": [
                  "requirement_registered",
                  "checking",
                  "needs_info",
                  "needs_revision",
                  "needs_confirmation",
                  "ready",
                  "executing",
                  "action_required",
                  "pending_verification",
                  "completed",
                  "blocked",
                  "cancelled",
                  "handoff",
                  "correction_required",
                  "failed"
                ],
                "description": "查重命中时原购买任务的当前状态。"
              }
            },
            "required": [
              "duplicateOf",
              "status"
            ]
          },
          "requestId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "required": [
          "data",
          "requestId"
        ]
      },
      "BudgetLedgerResult": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
          "data": {
            "type": "object",
            "additionalProperties": true,
            "properties": {
              "budgetContinuityId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256,
                "description": "续期或替换授权时沿用的预算连续记录。"
              },
              "periodStart": {
                "type": "string",
                "format": "date-time",
                "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"
              },
              "periodEnd": {
                "type": "string",
                "format": "date-time",
                "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"
              },
              "available": {
                "$ref": "#/components/schemas/SignedMoney",
                "description": "周期额度减去占用、净支出与 overrun 后的余额，可为负。"
              },
              "reserved": {
                "$ref": "#/components/schemas/Money",
                "description": "当前在途的基础额度占用。"
              },
              "spent": {
                "$ref": "#/components/schemas/Money",
                "description": "累计基础支出，退款回补另计。"
              },
              "grantBalance": {
                "$ref": "#/components/schemas/Money",
                "description": "本笔专项余额，独立于基础可用额。"
              },
              "exposure": {
                "$ref": "#/components/schemas/Money",
                "description": "当月人工结账超出原占用的 overrun。"
              },
              "asOf": {
                "type": "string",
                "format": "date-time",
                "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$",
                "description": "台账余额读取时点。"
              }
            },
            "required": [
              "budgetContinuityId",
              "periodStart",
              "periodEnd",
              "available",
              "reserved",
              "spent",
              "grantBalance",
              "exposure",
              "asOf"
            ]
          },
          "requestId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          }
        },
        "required": [
          "data",
          "requestId"
        ]
      }
    },
    "responses": {
      "CreatePaymentTaskDuplicateResponse": {
        "description": "x402 单次 GET（http402、atel_fetch、full）换幂等键提交并命中原任务时的 HTTP 200 响应。",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/CreatePaymentTaskDuplicateResult"
            }
          }
        }
      },
      "BudgetLedgerReadResponse": {
        "description": "钱包用户会话读取授权预算汇总的 HTTP 200 响应。金额使用 OpenAPI 的 amount 字段。",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/BudgetLedgerResult"
            }
          }
        }
      }
    }
  },
  "x-operationDirectory": [
    {
      "path": "/v1/account-recovery",
      "method": "POST",
      "operationId": "startAccountRecovery",
      "requirementIds": [
        "X4-08"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/account-recovery/{recoveryId}/cancel",
      "method": "POST",
      "operationId": "cancelAccountRecovery",
      "requirementIds": [
        "X4-08"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/account-recovery/{recoveryId}/confirm",
      "method": "POST",
      "operationId": "confirmAccountRecovery",
      "requirementIds": [
        "X4-08"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/account-recovery/{recoveryId}/registration/options",
      "method": "POST",
      "operationId": "beginRecoveryRegistration",
      "requirementIds": [
        "X4-08"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "有效 recoveryToken 与路径 recoveryId 绑定，签发一次性 recover 注册挑战，无需登录会话"
    },
    {
      "path": "/v1/admin/alerts",
      "method": "GET",
      "operationId": "listAlerts",
      "requirementIds": [
        "O1-06"
      ],
      "phase": "later",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/admin/alerts/{alertId}/ack",
      "method": "POST",
      "operationId": "ackAlert",
      "requirementIds": [
        "O1-06"
      ],
      "phase": "later",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/admin/approvals",
      "method": "GET",
      "operationId": "listApprovals",
      "requirementIds": [
        "O1-01"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/admin/approvals/{approvalId}/decision",
      "method": "POST",
      "operationId": "decideApproval",
      "requirementIds": [
        "O1-01"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/admin/audit-logs",
      "method": "GET",
      "operationId": "listAuditLogs",
      "requirementIds": [
        "O1-01"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/admin/raw/{objectType}/{objectId}/{field}",
      "method": "GET",
      "operationId": "getRawField",
      "requirementIds": [
        "X4-12"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/admin/region-policies/{region}",
      "method": "PUT",
      "operationId": "updateRegionPolicy",
      "requirementIds": [
        "X4-14"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/admin/releases",
      "method": "GET",
      "operationId": "listReleases",
      "requirementIds": [
        "O1-04"
      ],
      "phase": "later",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/admin/releases",
      "method": "POST",
      "operationId": "createRelease",
      "requirementIds": [
        "O1-04"
      ],
      "phase": "later",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/admin/releases/{releaseId}/metrics",
      "method": "GET",
      "operationId": "getReleaseMetrics",
      "requirementIds": [
        "O1-04"
      ],
      "phase": "later",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/admin/releases/{releaseId}/promote",
      "method": "POST",
      "operationId": "promoteRelease",
      "requirementIds": [
        "O1-04"
      ],
      "phase": "later",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/admin/releases/{releaseId}/rollback",
      "method": "POST",
      "operationId": "rollbackRelease",
      "requirementIds": [
        "O1-04"
      ],
      "phase": "later",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/admin/restrictions",
      "method": "POST",
      "operationId": "createRestriction",
      "requirementIds": [
        "O1-07"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/admin/restrictions",
      "method": "GET",
      "operationId": "listRestrictions",
      "requirementIds": [
        "O1-07"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/admin/restrictions/{restrictionId}/lift",
      "method": "POST",
      "operationId": "liftRestriction",
      "requirementIds": [
        "O1-07"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/admin/risk-policy",
      "method": "GET",
      "operationId": "getRiskPolicy",
      "requirementIds": [
        "O1-05"
      ],
      "phase": "later",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/admin/risk-policy/versions",
      "method": "POST",
      "operationId": "proposeRiskPolicy",
      "requirementIds": [
        "O1-05"
      ],
      "phase": "later",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/admin/risk-policy/versions",
      "method": "GET",
      "operationId": "listRiskPolicyVersions",
      "requirementIds": [
        "O1-05"
      ],
      "phase": "later",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/admin/sites/{siteDomain}/status",
      "method": "PUT",
      "operationId": "setSiteStatus",
      "requirementIds": [
        "O1-04"
      ],
      "phase": "later",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/admin/tasks",
      "method": "GET",
      "operationId": "adminSearchTasks",
      "requirementIds": [
        "O1-03"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/admin/tasks/{taskId}/actions",
      "method": "POST",
      "operationId": "adminRunTaskAction",
      "requirementIds": [
        "O1-03"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/admin/tasks/{taskId}/investigation",
      "method": "GET",
      "operationId": "adminGetTaskInvestigation",
      "requirementIds": [
        "O1-03"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/admin/tickets",
      "method": "GET",
      "operationId": "listTickets",
      "requirementIds": [
        "O1-02"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/admin/tickets",
      "method": "POST",
      "operationId": "createTicket",
      "requirementIds": [
        "O1-02"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/admin/tickets/{ticketId}",
      "method": "GET",
      "operationId": "getTicket",
      "requirementIds": [
        "O1-02"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/admin/tickets/{ticketId}/assign",
      "method": "POST",
      "operationId": "assignTicket",
      "requirementIds": [
        "O1-02"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/admin/tickets/{ticketId}/messages",
      "method": "POST",
      "operationId": "contactParty",
      "requirementIds": [
        "O1-02"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/admin/tickets/{ticketId}/resolve",
      "method": "POST",
      "operationId": "resolveTicket",
      "requirementIds": [
        "O1-02"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/admin/tickets/{ticketId}/transfer",
      "method": "POST",
      "operationId": "transferTicket",
      "requirementIds": [
        "O1-02"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/admin/tickets/{ticketId}/waiting",
      "method": "POST",
      "operationId": "setTicketWaiting",
      "requirementIds": [
        "O1-02"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/admin/users",
      "method": "GET",
      "operationId": "listAdminUsers",
      "requirementIds": [
        "O1-01"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/admin/users/{adminId}/roles",
      "method": "PUT",
      "operationId": "updateAdminRoles",
      "requirementIds": [
        "O1-01"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/agent/mandate",
      "method": "GET",
      "operationId": "getAgentMandate",
      "requirementIds": [
        "B1-04"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/agent/oauth/authorize",
      "method": "GET",
      "operationId": "authorizeAgent",
      "requirementIds": [
        "B1-03"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "回调须一次性 state、会话／租户绑定；待逐连接器契约"
    },
    {
      "path": "/v1/agent/oauth/revoke",
      "method": "POST",
      "operationId": "revokeAgentToken",
      "requirementIds": [
        "X1-07"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "回调须一次性 state、会话／租户绑定；待逐连接器契约"
    },
    {
      "path": "/v1/agent/onboarding-links",
      "method": "POST",
      "operationId": "createOnboardingLink",
      "requirementIds": [
        "B1-09"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/agent/pairing-requests/{pairingId}",
      "method": "GET",
      "operationId": "getPairingStatus",
      "requirementIds": [
        "B1-02"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/agent/payment-tasks",
      "method": "POST",
      "operationId": "createPaymentTask",
      "requirementIds": [
        "B2-01"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "有效 Agent 连接令牌且有提交委托权限。跨连接命中仅限同一用户，查询原任务仍校验连接归属。",
      "x-partialResponses": {
        "200": {
          "$ref": "#/components/responses/CreatePaymentTaskDuplicateResponse"
        }
      }
    },
    {
      "path": "/v1/agent/purchase-tasks/{taskId}/checkout-ready",
      "method": "POST",
      "operationId": "reportCheckoutReady",
      "requirementIds": [
        "E1-01"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/agent/signup-invites",
      "method": "POST",
      "operationId": "createSignupInvite",
      "requirementIds": [
        "B1-02"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/agent/signup-invites/{inviteId}",
      "method": "GET",
      "operationId": "getSignupInviteStatus",
      "requirementIds": [
        "B1-02"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/agent/tasks/{taskId}",
      "method": "GET",
      "operationId": "getAgentTask",
      "requirementIds": [
        "B7-01"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/agent/tasks/{taskId}/cancel",
      "method": "POST",
      "operationId": "cancelAgentTask",
      "requirementIds": [
        "B7-04"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/agent/tasks/{taskId}/info",
      "method": "POST",
      "operationId": "provideTaskInfo",
      "requirementIds": [
        "B2-04"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/agent/tasks/{taskId}/required-info",
      "method": "GET",
      "operationId": "getRequiredInfo",
      "requirementIds": [
        "B2-04"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/agent/tasks/{taskId}/session/close",
      "method": "POST",
      "operationId": "closeMeteredSession",
      "requirementIds": [
        "B5-08"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/agent/tasks/{taskId}/status",
      "method": "GET",
      "operationId": "getAgentTaskStatus",
      "requirementIds": [
        "B7-02"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/assistant/history",
      "method": "DELETE",
      "operationId": "clearAssistantHistory",
      "requirementIds": [
        "B7-06"
      ],
      "phase": "later",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/assistant/questions",
      "method": "POST",
      "operationId": "askAssistant",
      "requirementIds": [
        "B7-06"
      ],
      "phase": "later",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/auth/email/start",
      "method": "POST",
      "operationId": "startEmailLogin",
      "requirementIds": [
        "B1-01"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "登录流程防枚举、速率限制与一次性 challenge；待逐操作契约"
    },
    {
      "path": "/v1/auth/email/verify",
      "method": "POST",
      "operationId": "verifyEmailLogin",
      "requirementIds": [
        "B1-01"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "登录流程防枚举、速率限制与一次性 challenge；待逐操作契约"
    },
    {
      "path": "/v1/auth/passkeys/assertion",
      "method": "POST",
      "operationId": "finishPasskeyAssertion",
      "requirementIds": [
        "B1-01"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "登录流程防枚举、速率限制与一次性 challenge；待逐操作契约"
    },
    {
      "path": "/v1/auth/passkeys/assertion/options",
      "method": "POST",
      "operationId": "beginPasskeyAssertion",
      "requirementIds": [
        "B1-01"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "登录流程防枚举、速率限制与一次性 challenge；待逐操作契约"
    },
    {
      "path": "/v1/auth/passkeys/registration",
      "method": "POST",
      "operationId": "finishPasskeyRegistration",
      "requirementIds": [
        "B1-01"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "已验证邮箱受限会话或现有高保证会话，非公开注册写入"
    },
    {
      "path": "/v1/auth/passkeys/registration/options",
      "method": "POST",
      "operationId": "beginPasskeyRegistration",
      "requirementIds": [
        "B1-01"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "已验证邮箱受限会话或现有高保证会话，非公开注册写入"
    },
    {
      "path": "/v1/check-templates",
      "method": "GET",
      "operationId": "listCheckTemplates",
      "requirementIds": [
        "B4-05"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/checkpoints/{checkpointId}",
      "method": "GET",
      "operationId": "getCheckpoint",
      "requirementIds": [
        "X3-08"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/clarifications/{clarificationId}",
      "method": "GET",
      "operationId": "getClarification",
      "requirementIds": [
        "B4-03"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/clarifications/{clarificationId}/answers",
      "method": "POST",
      "operationId": "answerClarification",
      "requirementIds": [
        "B4-03"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/confirmations/{confirmationId}",
      "method": "GET",
      "operationId": "getConfirmation",
      "requirementIds": [
        "B1-08",
        "B5-02"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/connections",
      "method": "GET",
      "operationId": "listConnections",
      "requirementIds": [
        "X1-06"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/connections/{connectionId}",
      "method": "GET",
      "operationId": "getConnection",
      "requirementIds": [
        "X1-06"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/connections/{connectionId}",
      "method": "PATCH",
      "operationId": "updateConnection",
      "requirementIds": [
        "X1-06"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/connections/{connectionId}/disconnect",
      "method": "POST",
      "operationId": "disconnectConnection",
      "requirementIds": [
        "X1-07"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/credentials/{issuanceId}",
      "method": "GET",
      "operationId": "getCredential",
      "requirementIds": [
        "B6-02"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/credentials/{issuanceId}/deactivate",
      "method": "POST",
      "operationId": "deactivateCredential",
      "requirementIds": [
        "B6-02"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/developer/apps",
      "method": "POST",
      "operationId": "createAgentApp",
      "requirementIds": [
        "O1-10"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/developer/apps/{appId}",
      "method": "GET",
      "operationId": "getAgentApp",
      "requirementIds": [
        "O1-10"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/developer/apps/{appId}",
      "method": "PATCH",
      "operationId": "updateAgentApp",
      "requirementIds": [
        "O1-10"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/developer/apps/{appId}/credentials",
      "method": "POST",
      "operationId": "createAppCredential",
      "requirementIds": [
        "O1-11"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/developer/apps/{appId}/credentials",
      "method": "GET",
      "operationId": "listAppCredentials",
      "requirementIds": [
        "O1-11"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/developer/apps/{appId}/delist",
      "method": "POST",
      "operationId": "delistAgentApp",
      "requirementIds": [
        "O1-16"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/developer/apps/{appId}/did-keys",
      "method": "POST",
      "operationId": "registerAppDidKey",
      "requirementIds": [
        "O1-11"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/developer/apps/{appId}/review",
      "method": "POST",
      "operationId": "submitAppReview",
      "requirementIds": [
        "O1-10"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/developer/apps/{appId}/review",
      "method": "GET",
      "operationId": "getAppReview",
      "requirementIds": [
        "O1-10"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/developer/apps/{appId}/sandbox-checks",
      "method": "GET",
      "operationId": "listSandboxChecks",
      "requirementIds": [
        "O1-12"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/developer/apps/{appId}/skill-versions",
      "method": "GET",
      "operationId": "getAppSkillVersions",
      "requirementIds": [
        "O1-13"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/developer/apps/{appId}/usage",
      "method": "GET",
      "operationId": "getAppUsage",
      "requirementIds": [
        "O1-14"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/developer/apps/{appId}/usage/breakdown",
      "method": "GET",
      "operationId": "getAppUsageBreakdown",
      "requirementIds": [
        "O1-14"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/developer/credentials/{credentialId}/revoke",
      "method": "POST",
      "operationId": "revokeAppCredential",
      "requirementIds": [
        "O1-11"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/developer/credentials/{credentialId}/rotate",
      "method": "POST",
      "operationId": "rotateAppCredential",
      "requirementIds": [
        "O1-11"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/developer/did-keys/{keyId}",
      "method": "DELETE",
      "operationId": "deleteAppDidKey",
      "requirementIds": [
        "O1-11"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/developer/invitations/{invitationId}/accept",
      "method": "POST",
      "operationId": "acceptTeamInvitation",
      "requirementIds": [
        "O1-09"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/developer/invoices/{invoiceId}",
      "method": "GET",
      "operationId": "getInvoice",
      "requirementIds": [
        "O1-15"
      ],
      "phase": "later",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/developer/invoices/{invoiceId}/disputes",
      "method": "POST",
      "operationId": "createInvoiceDispute",
      "requirementIds": [
        "O1-15"
      ],
      "phase": "later",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/developer/sandbox/mock-merchants",
      "method": "GET",
      "operationId": "listMockMerchants",
      "requirementIds": [
        "O1-12"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/developer/sandbox/test-funds",
      "method": "POST",
      "operationId": "requestTestFunds",
      "requirementIds": [
        "O1-12"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/developer/skill/releases",
      "method": "GET",
      "operationId": "listSkillReleases",
      "requirementIds": [
        "O1-13"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/developer/skill/releases/{version}",
      "method": "GET",
      "operationId": "getSkillRelease",
      "requirementIds": [
        "O1-13"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/developer/teams",
      "method": "POST",
      "operationId": "createDeveloperTeam",
      "requirementIds": [
        "O1-09"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/developer/teams/{teamId}",
      "method": "GET",
      "operationId": "getDeveloperTeam",
      "requirementIds": [
        "O1-09"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/developer/teams/{teamId}/billing-method",
      "method": "PUT",
      "operationId": "setBillingMethod",
      "requirementIds": [
        "O1-15"
      ],
      "phase": "later",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/developer/teams/{teamId}/entity",
      "method": "PUT",
      "operationId": "submitTeamEntity",
      "requirementIds": [
        "O1-09"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/developer/teams/{teamId}/invitations",
      "method": "POST",
      "operationId": "inviteTeamMember",
      "requirementIds": [
        "O1-09"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/developer/teams/{teamId}/invoices",
      "method": "GET",
      "operationId": "listInvoices",
      "requirementIds": [
        "O1-15"
      ],
      "phase": "later",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/developer/teams/{teamId}/members/{memberId}",
      "method": "PATCH",
      "operationId": "updateTeamMember",
      "requirementIds": [
        "O1-09"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/developer/teams/{teamId}/members/{memberId}",
      "method": "DELETE",
      "operationId": "removeTeamMember",
      "requirementIds": [
        "O1-09"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/devices",
      "method": "GET",
      "operationId": "listDevices",
      "requirementIds": [
        "X4-07"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/devices/{deviceId}",
      "method": "DELETE",
      "operationId": "signOutDevice",
      "requirementIds": [
        "X4-07"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/devices/{deviceId}/push-token",
      "method": "POST",
      "operationId": "registerPushToken",
      "requirementIds": [
        "B7-03"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/email-connections",
      "method": "POST",
      "operationId": "connectMerchantEmail",
      "requirementIds": [
        "E1-05"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/email-connections/{connectionId}",
      "method": "DELETE",
      "operationId": "revokeEmailConnection",
      "requirementIds": [
        "E1-05"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/events/{eventId}/inclusion-proof",
      "method": "GET",
      "operationId": "getInclusionProof",
      "requirementIds": [
        "X3-08"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/intent-certificates/{intentCertId}",
      "method": "GET",
      "operationId": "getIntentCertificate",
      "requirementIds": [
        "B4-04"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/intents/{intentId}/confirmation",
      "method": "GET",
      "operationId": "getIntentConfirmation",
      "requirementIds": [
        "B2-03"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/intents/{intentId}/confirmation",
      "method": "POST",
      "operationId": "submitIntentConfirmation",
      "requirementIds": [
        "B2-03"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/internal/events",
      "method": "POST",
      "operationId": "appendSecurityEvent",
      "requirementIds": [
        "X3-05"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/internal/gateway/evaluate",
      "method": "POST",
      "operationId": "evaluateToolPolicy",
      "requirementIds": [
        "B5-05"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/internal/payment-evidence",
      "method": "POST",
      "operationId": "ingestPaymentEvidence",
      "requirementIds": [
        "E1-05"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/internal/tools/{toolName}",
      "method": "PUT",
      "operationId": "registerTool",
      "requirementIds": [
        "B5-05"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/internal/vault/fill-requests",
      "method": "POST",
      "operationId": "requestVaultFill",
      "requirementIds": [
        "E1-03",
        "E3-05"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/mandates",
      "method": "POST",
      "operationId": "createMandateDraft",
      "requirementIds": [
        "B1-04",
        "B1-06"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/mandates",
      "method": "GET",
      "operationId": "listMandates",
      "requirementIds": [
        "B1-04"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/mandates/{mandateId}/changes",
      "method": "POST",
      "operationId": "proposeMandateChange",
      "requirementIds": [
        "X1-03"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/mandates/{mandateId}/ledger",
      "method": "GET",
      "operationId": "getBudgetLedger",
      "requirementIds": [
        "B6-03",
        "X1-05"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "钱包用户会话及授权归属校验。归属不符或授权不存在时返回 403 ERR_OBJECT_FORBIDDEN。",
      "x-partialResponses": {
        "200": {
          "$ref": "#/components/responses/BudgetLedgerReadResponse"
        }
      }
    },
    {
      "path": "/v1/mandates/{mandateId}/ledger/entries",
      "method": "GET",
      "operationId": "listLedgerEntries",
      "requirementIds": [
        "X1-05"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/mandates/{mandateId}/ledger/events",
      "method": "GET",
      "operationId": "listLedgerEvents",
      "requirementIds": [
        "B6-03"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/mandates/{mandateId}/revocation",
      "method": "GET",
      "operationId": "getRevocationProgress",
      "requirementIds": [
        "X1-02"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/me",
      "method": "GET",
      "operationId": "getMe",
      "requirementIds": [
        "B1-01",
        "X4-17"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/me",
      "method": "PATCH",
      "operationId": "updateMe",
      "requirementIds": [
        "B1-01",
        "X4-17"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/me/capabilities",
      "method": "GET",
      "operationId": "getMyCapabilities",
      "requirementIds": [
        "X4-14"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/me/data-requests",
      "method": "POST",
      "operationId": "createDataRequest",
      "requirementIds": [
        "X4-13"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/me/data-requests",
      "method": "GET",
      "operationId": "listDataRequests",
      "requirementIds": [
        "X4-13"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/me/data-requests/{requestId}",
      "method": "GET",
      "operationId": "getDataRequest",
      "requirementIds": [
        "X4-13"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/me/privacy/connections",
      "method": "GET",
      "operationId": "listPrivacyConnections",
      "requirementIds": [
        "X4-09"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/me/privacy/connections/{connectionRef}",
      "method": "DELETE",
      "operationId": "disconnectPrivacyConnection",
      "requirementIds": [
        "X4-09"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/notification-settings",
      "method": "GET",
      "operationId": "getNotificationSettings",
      "requirementIds": [
        "B7-03"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/notification-settings",
      "method": "PUT",
      "operationId": "updateNotificationSettings",
      "requirementIds": [
        "B7-03"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/notifications",
      "method": "GET",
      "operationId": "listNotifications",
      "requirementIds": [
        "B7-03"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/notifications/{notificationId}/read",
      "method": "POST",
      "operationId": "markNotificationRead",
      "requirementIds": [
        "B7-03"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/onboarding/{onboardingId}/complete",
      "method": "POST",
      "operationId": "completeOnboarding",
      "requirementIds": [
        "B1-09"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/pairing-requests/redeem",
      "method": "POST",
      "operationId": "redeemPairingCode",
      "requirementIds": [
        "B1-02"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/pairing-requests/{pairingId}",
      "method": "GET",
      "operationId": "getPairingRequest",
      "requirementIds": [
        "B1-03"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/pairing-requests/{pairingId}/confirm",
      "method": "POST",
      "operationId": "confirmPairing",
      "requirementIds": [
        "B1-03"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/pairing-requests/{pairingId}/reject",
      "method": "POST",
      "operationId": "rejectPairing",
      "requirementIds": [
        "B1-03"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/passkeys",
      "method": "GET",
      "operationId": "listPasskeys",
      "requirementIds": [
        "X4-07"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/passkeys/{passkeyId}",
      "method": "PATCH",
      "operationId": "renamePasskey",
      "requirementIds": [
        "X4-07"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/passkeys/{passkeyId}",
      "method": "DELETE",
      "operationId": "deletePasskey",
      "requirementIds": [
        "X4-07"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/payment-businesses/{paymentBusinessKey}",
      "method": "GET",
      "operationId": "getPaymentBusiness",
      "requirementIds": [
        "B2-06"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/payment-methods",
      "method": "GET",
      "operationId": "listPaymentMethods",
      "requirementIds": [
        "X4-01"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/payment-methods/agent-card",
      "method": "POST",
      "operationId": "connectAgentCard",
      "requirementIds": [
        "X4-05"
      ],
      "phase": "later",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/payment-methods/onchain/external",
      "method": "POST",
      "operationId": "linkExternalWallet",
      "requirementIds": [
        "X4-03"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/payment-methods/onchain/smart-accounts",
      "method": "POST",
      "operationId": "createSmartAccount",
      "requirementIds": [
        "X4-04"
      ],
      "phase": "later",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/payment-methods/vault-card",
      "method": "POST",
      "operationId": "linkVaultCard",
      "requirementIds": [
        "B1-05",
        "X4-02"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/payment-methods/wallet-accounts/callback",
      "method": "GET",
      "operationId": "completeWalletAccountLink",
      "requirementIds": [
        "X4-06"
      ],
      "phase": "later",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/payment-methods/wallet-accounts/link",
      "method": "POST",
      "operationId": "startWalletAccountLink",
      "requirementIds": [
        "X4-06"
      ],
      "phase": "later",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/payment-methods/{paymentMethodId}",
      "method": "PATCH",
      "operationId": "updatePaymentMethod",
      "requirementIds": [
        "X4-01"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/payment-methods/{paymentMethodId}",
      "method": "DELETE",
      "operationId": "removePaymentMethod",
      "requirementIds": [
        "X4-01"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/payment-methods/{paymentMethodId}/controls",
      "method": "GET",
      "operationId": "getCardControlSync",
      "requirementIds": [
        "X4-05"
      ],
      "phase": "later",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/payment-methods/{paymentMethodId}/session-permissions",
      "method": "GET",
      "operationId": "getSessionPermission",
      "requirementIds": [
        "X4-03",
        "X4-04"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/payment-preferences",
      "method": "GET",
      "operationId": "getPaymentPreferences",
      "requirementIds": [
        "B5-01"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/payment-preferences",
      "method": "PUT",
      "operationId": "updatePaymentPreferences",
      "requirementIds": [
        "B5-01"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/payments/{paymentId}",
      "method": "GET",
      "operationId": "getPayment",
      "requirementIds": [
        "B6-01"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/permits/{permitId}",
      "method": "GET",
      "operationId": "getActionPermit",
      "requirementIds": [
        "B5-04"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/profile/saved-info",
      "method": "GET",
      "operationId": "listSavedInfo",
      "requirementIds": [
        "B2-05"
      ],
      "phase": "later",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/profile/saved-info/{infoRef}",
      "method": "PUT",
      "operationId": "upsertSavedInfo",
      "requirementIds": [
        "B2-05"
      ],
      "phase": "later",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/proof-exports/{exportId}",
      "method": "GET",
      "operationId": "getProofExport",
      "requirementIds": [
        "X3-07"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/proofs/{proofId}",
      "method": "GET",
      "operationId": "getCompletionProof",
      "requirementIds": [
        "X3-07"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/proofs/{proofId}/verify-links",
      "method": "POST",
      "operationId": "createVerifyLink",
      "requirementIds": [
        "X3-09"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/public/proof-keys",
      "method": "GET",
      "operationId": "getProofPublicKeys",
      "requirementIds": [
        "X3-09"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/public/verify",
      "method": "POST",
      "operationId": "verifyProof",
      "requirementIds": [
        "X3-09"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/signup-invites/{inviteId}",
      "method": "GET",
      "operationId": "getSignupInvite",
      "requirementIds": [
        "B1-02"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/signup-invites/{inviteId}/complete",
      "method": "POST",
      "operationId": "completeSignup",
      "requirementIds": [
        "B1-02"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/site-sessions",
      "method": "GET",
      "operationId": "listSiteSessions",
      "requirementIds": [
        "B2-05"
      ],
      "phase": "later",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/site-sessions/{sessionRef}",
      "method": "DELETE",
      "operationId": "deleteSiteSession",
      "requirementIds": [
        "B2-05"
      ],
      "phase": "later",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/skill/manifest",
      "method": "GET",
      "operationId": "getSkillManifest",
      "requirementIds": [
        "B1-09"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/tasks",
      "method": "GET",
      "operationId": "listTasks",
      "requirementIds": [
        "X3-02"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/tasks/{taskId}/browser-sessions",
      "method": "POST",
      "operationId": "createBrowserSession",
      "requirementIds": [
        "E3-01"
      ],
      "phase": "later",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/tasks/{taskId}/browser-sessions/{sessionId}",
      "method": "GET",
      "operationId": "getBrowserSession",
      "requirementIds": [
        "E3-01"
      ],
      "phase": "later",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/tasks/{taskId}/browser-sessions/{sessionId}/end",
      "method": "POST",
      "operationId": "endBrowserSession",
      "requirementIds": [
        "E3-08"
      ],
      "phase": "later",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/tasks/{taskId}/browser-sessions/{sessionId}/live-view-links",
      "method": "POST",
      "operationId": "issueLiveViewLink",
      "requirementIds": [
        "E3-02"
      ],
      "phase": "later",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/tasks/{taskId}/browser-sessions/{sessionId}/return",
      "method": "POST",
      "operationId": "returnBrowserSession",
      "requirementIds": [
        "E3-03"
      ],
      "phase": "later",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/tasks/{taskId}/browser-sessions/{sessionId}/takeover",
      "method": "POST",
      "operationId": "takeoverBrowserSession",
      "requirementIds": [
        "E3-03"
      ],
      "phase": "later",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/tasks/{taskId}/cancel",
      "method": "POST",
      "operationId": "cancelTask",
      "requirementIds": [
        "B7-04"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/tasks/{taskId}/cancel",
      "method": "GET",
      "operationId": "getCancelProgress",
      "requirementIds": [
        "B7-04"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/tasks/{taskId}/checks",
      "method": "POST",
      "operationId": "runIntentCheck",
      "requirementIds": [
        "B4-01"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/tasks/{taskId}/checks/{checkId}",
      "method": "GET",
      "operationId": "getCheckResult",
      "requirementIds": [
        "B4-01"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/tasks/{taskId}/clarifications",
      "method": "POST",
      "operationId": "createClarification",
      "requirementIds": [
        "B4-03"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/tasks/{taskId}/execution-gate",
      "method": "POST",
      "operationId": "evaluateExecutionGate",
      "requirementIds": [
        "B5-03"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/tasks/{taskId}/gate-decisions",
      "method": "GET",
      "operationId": "listGateDecisions",
      "requirementIds": [
        "X3-05"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/tasks/{taskId}/handoffs/{handoffId}/renew",
      "method": "POST",
      "operationId": "renewHandoff",
      "requirementIds": [
        "E4-03",
        "E4-04"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/tasks/{taskId}/info",
      "method": "POST",
      "operationId": "submitTaskInfo",
      "requirementIds": [
        "B2-04"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/tasks/{taskId}/intent-certificates",
      "method": "POST",
      "operationId": "issueIntentCertificate",
      "requirementIds": [
        "B4-04"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/tasks/{taskId}/manual-handoff",
      "method": "GET",
      "operationId": "getManualHandoff",
      "requirementIds": [
        "E4-02",
        "E4-03",
        "E4-04",
        "X2-03"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/tasks/{taskId}/materials",
      "method": "POST",
      "operationId": "fetchSourceMaterial",
      "requirementIds": [
        "B3-02"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/tasks/{taskId}/materials",
      "method": "GET",
      "operationId": "listSourceMaterials",
      "requirementIds": [
        "B3-02"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/tasks/{taskId}/money-issues",
      "method": "POST",
      "operationId": "createMoneyIssue",
      "requirementIds": [
        "O1-08"
      ],
      "phase": "later",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/tasks/{taskId}/plan",
      "method": "POST",
      "operationId": "submitPurchasePlan",
      "requirementIds": [
        "B2-02"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/tasks/{taskId}/plans",
      "method": "POST",
      "operationId": "submitRevisedPlan",
      "requirementIds": [
        "B2-02",
        "B4-02"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/tasks/{taskId}/requirement-checks",
      "method": "GET",
      "operationId": "getRequirementChecks",
      "requirementIds": [
        "X3-06"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/tasks/{taskId}/requirements",
      "method": "POST",
      "operationId": "createRequirementBaseline",
      "requirementIds": [
        "B2-03"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/tasks/{taskId}/requirements/{requirementVersion}",
      "method": "GET",
      "operationId": "getRequirement",
      "requirementIds": [
        "B2-03"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/tasks/{taskId}/requote",
      "method": "POST",
      "operationId": "requoteBeforeSubmit",
      "requirementIds": [
        "B4-06"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/tasks/{taskId}/resume",
      "method": "POST",
      "operationId": "resumeTask",
      "requirementIds": [
        "X2-02"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/tasks/{taskId}/session",
      "method": "GET",
      "operationId": "getMeteredSession",
      "requirementIds": [
        "B5-08"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/tasks/{taskId}/timeline",
      "method": "GET",
      "operationId": "getSecurityTimeline",
      "requirementIds": [
        "X3-05"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/tasks/{taskId}/vault-fill",
      "method": "GET",
      "operationId": "getVaultFillAttempt",
      "requirementIds": [
        "E1-03",
        "E1-04",
        "E4-02"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/tasks/{taskId}/verification",
      "method": "GET",
      "operationId": "getVerificationStatus",
      "requirementIds": [
        "X2-01"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/todos",
      "method": "GET",
      "operationId": "listTodos",
      "requirementIds": [
        "X3-04"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/todos/{todoId}",
      "method": "GET",
      "operationId": "getTodo",
      "requirementIds": [
        "X3-04"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/vault/cards",
      "method": "GET",
      "operationId": "listVaultCards",
      "requirementIds": [
        "B1-05",
        "X4-02"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/wallet/overview",
      "method": "GET",
      "operationId": "getWalletOverview",
      "requirementIds": [
        "X3-01"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐操作身份、角色及资源归属待冻结"
    },
    {
      "path": "/v1/webhooks/channels/{channelType}",
      "method": "POST",
      "operationId": "receiveChannelWebhook",
      "requirementIds": [
        "B6-01"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐提供方原始体验签；签名头与 schema 待冻结，不能统一为 X-Provider-Signature"
    },
    {
      "path": "/v1/webhooks/duffel",
      "method": "POST",
      "operationId": "handleDuffelWebhook",
      "requirementIds": [
        "B5-10"
      ],
      "phase": "later",
      "status": "directory-not-codegen",
      "authorization": "逐提供方原始体验签；签名头与 schema 待冻结，不能统一为 X-Provider-Signature"
    },
    {
      "path": "/v1/webhooks/issuer/{issuer}",
      "method": "POST",
      "operationId": "handleIssuerWebhook",
      "requirementIds": [
        "X4-05"
      ],
      "phase": "later",
      "status": "directory-not-codegen",
      "authorization": "逐提供方原始体验签；签名头与 schema 待冻结，不能统一为 X-Provider-Signature"
    },
    {
      "path": "/v1/webhooks/vault/card-events",
      "method": "POST",
      "operationId": "handleVaultCardEvent",
      "requirementIds": [
        "X4-02"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐提供方原始体验签；签名头与 schema 待冻结，不能统一为 X-Provider-Signature"
    },
    {
      "path": "/v1/webhooks/vault/fill-results",
      "method": "POST",
      "operationId": "handleVaultFillResult",
      "requirementIds": [
        "E1-03",
        "E1-04",
        "E3-05"
      ],
      "phase": "P1",
      "status": "directory-not-codegen",
      "authorization": "逐提供方原始体验签；签名头与 schema 待冻结，不能统一为 X-Provider-Signature"
    }
  ],
  "x-contractCoverage": {
    "reviewable": 31,
    "directory": 211,
    "releaseGate": "All required operations for the selected phase must be reviewed, implemented and integration-tested before release."
  }
}
