- Move generated OpenAPI bundles out of dist/ into committed specs/ (specs/openapi.json, specs/openapi.raw.json); source YAML tree moves openapi/ -> specs/openapi/; schemas/workflow-schema.json joins as specs/workflow-schema.json - Update all generators/consumers: bundle-openapi, generate-raw-openapi, check-version-sync, bump-version, export-workflow-schema, packaging/embedded-openapi - Rewrite stale .env.example with current HOSE_* environment variables - Archive stale repo-local enterprise configs (superseded by ~/.config/hose-use/enterprises) out of the repo; root enterprises/ keeps only the tracked example.json plus an explanatory README - Add missing directory READMEs: approval/contact/message/task/events domains, cli/, http/, packaging/ - Fix stale domain doc links in README.domains.md and docs/modules/platform.md
49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
list:
|
|
get:
|
|
tags:
|
|
- Corps & Tenancy
|
|
summary: 列出当前账号名下所有已配置企业租户
|
|
description: 支持单账号管理多家企业与同一企业下的多员工身份分层展示。
|
|
operationId: listCorps
|
|
responses:
|
|
"200":
|
|
description: 企业租户列表
|
|
content:
|
|
"application/json":
|
|
schema:
|
|
type: array
|
|
items:
|
|
$ref: ../components/schemas/index.yaml#/CorpConfig
|
|
|
|
switch:
|
|
post:
|
|
tags:
|
|
- Corps & Tenancy
|
|
summary: 切换当前工作企业
|
|
description: 在有状态模式下切换并记忆工作企业,后续操作自动以该企业身份执行。
|
|
operationId: switchCorp
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
"application/json":
|
|
schema:
|
|
type: object
|
|
required:
|
|
- corpId
|
|
properties:
|
|
corpId:
|
|
type: string
|
|
description: 目标企业 ID 或身份 ID (corpId@accountId)
|
|
responses:
|
|
"200":
|
|
description: 切换成功
|
|
content:
|
|
"application/json":
|
|
schema:
|
|
type: object
|
|
properties:
|
|
success:
|
|
type: boolean
|
|
activeCorp:
|
|
$ref: ../components/schemas/index.yaml#/CorpConfig
|