Files
hose-use/specs/hose-open-api/openapi.yaml
T
giteaandClaude df25d7b187 chore(release): v0.9.9
- 统一生产环境确认协议:--allow-prod 为唯一显式覆盖参数,--force 兼容
- 两处生产门禁统一 PROD_OVERRIDE_REQUIRED 结构与提示格式
- 预览 --dry-run 始终放行,成功结果统一 productionOverride
- Skill 澄清生产企业写操作需用户授权,不再暗示禁止

Co-Authored-By: Claude <noreply@anthropic.com>
2026-11-18 17:47:33 +08:00

55 lines
1.7 KiB
YAML

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