- 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
69 lines
1.9 KiB
YAML
69 lines
1.9 KiB
YAML
login:
|
|
post:
|
|
tags:
|
|
- Auth & SSO
|
|
summary: 纯 API 账密自动全流程登录
|
|
description: 自动拉取公钥进行 RSA PKCS#1 加密,发起统一认证中心握手并批量获取名下所有企业身份。
|
|
operationId: authLogin
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
"application/json":
|
|
schema:
|
|
$ref: ../components/schemas/index.yaml#/AuthLoginRequest
|
|
responses:
|
|
"200":
|
|
description: 登录成功
|
|
content:
|
|
"application/json":
|
|
schema:
|
|
type: object
|
|
properties:
|
|
success:
|
|
type: boolean
|
|
totalCorps:
|
|
type: integer
|
|
activeCorp:
|
|
$ref: ../components/schemas/index.yaml#/CorpConfig
|
|
"401":
|
|
description: 账密错误或鉴权失败
|
|
content:
|
|
"application/json":
|
|
schema:
|
|
$ref: ../components/schemas/index.yaml#/ErrorResponse
|
|
|
|
status:
|
|
get:
|
|
tags:
|
|
- Auth & SSO
|
|
summary: 查看当前登录与活跃企业状态
|
|
description: 查询本地或无状态下的当前账号、工作企业与凭证有效期。
|
|
operationId: authStatus
|
|
responses:
|
|
"200":
|
|
description: 状态正常
|
|
content:
|
|
"application/json":
|
|
schema:
|
|
$ref: ../components/schemas/index.yaml#/AuthStatusResponse
|
|
|
|
refresh:
|
|
post:
|
|
tags:
|
|
- Auth & SSO
|
|
summary: 批量刷新企业 30 天 AccessToken
|
|
description: 自动无感为当前账号名下的所有企业租户更新最新 30 天访问令牌。
|
|
operationId: authRefresh
|
|
responses:
|
|
"200":
|
|
description: 刷新完成
|
|
content:
|
|
"application/json":
|
|
schema:
|
|
type: object
|
|
properties:
|
|
refreshed:
|
|
type: integer
|
|
total:
|
|
type: integer
|