Files
hose-use/specs/hose-open-api/openapi.yaml
T
gitea 901fa072d3 chore: 发布 0.9.3
版本号统一提升至 0.9.3,同步 package.json、README、两份 Skill、
.zcode-plugin/plugin.json、OpenAPI YAML 与 bundled JSON;重新生成
OpenAPI 规范与 MCP plugin bundle。

本版相对 0.9.2 合入:
- AI PRO 激活交互主体改为 AI Agent(客户只粘贴凭证,Agent 自行激活)
- 灰度节点开通生产硬拦截、dry-run 与实发一致、传输层拆薄
- Piper 集群地址环境变量(HOSE_PIPER_BASE_URL / HOSE_PIPER_TEST_BASE_URL)
- 明确功能授权边界:hose-use 免费,凭证只管 hose-aipro

校验:bun run bump patch 版本同步通过;bun test 1103 pass / 0 fail;
bun run check、check:version、check:readme 全通过。
2026-11-05 17:15:54 +08:00

55 lines
1.7 KiB
YAML

openapi: 3.1.0
info:
title: hose-use API & MCP Tools Specification
version: 0.9.3
description: >-
Unified Enterprise SaaS API, CLI, and MCP Specification for Ekuaibao (合思/易快报), EASO, and Piper Workflows.
servers:
- url: http://localhost:3000
description: Local hose-use CLI / MCP Runtime Gateway
tags:
- name: Auth & SSO
description: 统一认证、多账号管理与 30 天 Token 自动无感续杯
- name: Corps & Tenancy
description: 多企业租户管理与工作空间切换
- name: Platforms
description: 自建应用检索与实例枚举
- name: Workflows
description: 跨自建应用工作流聚合检索、DSL 图谱与启停
- name: Bills & Documents
description: 费控单据、报销借款单、发票明细与 DataLink 实体字典
- name: Probe & Diagnostics
description: 会话有效性与 EASO 鉴权连通性诊断
paths:
/api/auth/login:
$ref: ./paths/auth.yaml#/login
/api/auth/status:
$ref: ./paths/auth.yaml#/status
/api/auth/refresh:
$ref: ./paths/auth.yaml#/refresh
/api/corps:
$ref: ./paths/corps.yaml#/list
/api/corps/switch:
$ref: ./paths/corps.yaml#/switch
/api/platforms:
$ref: ./paths/platform.yaml#/list
/api/workflows:
$ref: ./paths/workflow.yaml#/list
/api/workflows/find:
$ref: ./paths/workflow.yaml#/find
/api/workflows/{pipelineId}:
$ref: ./paths/workflow.yaml#/detail
/api/workflows/{pipelineId}/toggle:
$ref: ./paths/workflow.yaml#/toggle
/api/bills:
$ref: ./paths/bill.yaml#/list
/api/bills/{code}:
$ref: ./paths/bill.yaml#/get
/api/bills/schema:
$ref: ./paths/bill.yaml#/schema
/api/probe:
$ref: ./paths/probe.yaml#/probe
components:
schemas:
$ref: ./components/schemas/index.yaml