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

本次发布承载 AI PRO 离线凭证激活(PR #171):默认不激活,凭 Ed25519
签名凭证在本地 login 激活,约束为 maxVersion 版本上限与 exp 绝对到期
时间。面向自行安装的 Agent 的首次安装与激活流程已写入 hose-aipro Skill。

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

55 lines
1.7 KiB
YAML

openapi: 3.1.0
info:
title: hose-use API & MCP Tools Specification
version: 0.9.2
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