59 lines
2.4 KiB
YAML
59 lines
2.4 KiB
YAML
openapi: 3.1.0
|
|
info:
|
|
title: seal-use Wrapped API
|
|
version: 0.10.27
|
|
description: |
|
|
HTTP contract for the seal-use wrapped backend API, served by the local HTTP adapter
|
|
(`seal-use http`, or the `seal-use service start` daemon; default http://127.0.0.1:8787).
|
|
|
|
These endpoints describe the stable wrapped API for frontend developers and agents. They are
|
|
not the raw downstream Seal endpoints: seal-use is responsible for enterprise selection,
|
|
source authentication, response compaction, and diagnostics-friendly fields.
|
|
|
|
Every operation declares `x-implementation-status`, so a caller can tell what the running
|
|
adapter actually serves:
|
|
|
|
- `implemented` — routed by `src/http/routes.ts` today. `src/http/openapi-implementation.test.ts`
|
|
fails when an `implemented` operation has no matching route.
|
|
- `planned` — contract-only, designed but not routed yet. Calling it returns 404.
|
|
|
|
The same capabilities are reachable through the CLI, and through the optional MCP server when
|
|
it is enabled.
|
|
servers:
|
|
- url: http://localhost:8787
|
|
description: Local HTTP adapter (`seal-use http`, or the `seal-use service start` daemon). Loopback-only by default.
|
|
security:
|
|
- localSession: []
|
|
tags:
|
|
- name: Corps
|
|
description: Local enterprise configuration selection.
|
|
- name: Source
|
|
description: Source-derived Seal enterprise configuration.
|
|
- name: Auth
|
|
description: Wrapped authentication diagnostics and current identity.
|
|
- name: Approval Runs
|
|
description: Wrapped approval run history, summaries, document URLs, and trace bridge helpers.
|
|
- name: Approval Knowledge
|
|
description: Wrapped approval rules, documents, preferences, and search.
|
|
- name: Simulation
|
|
description: Wrapped simulation batch record access.
|
|
paths:
|
|
$ref: ./paths/index.yaml
|
|
components:
|
|
securitySchemes:
|
|
localSession:
|
|
type: apiKey
|
|
in: header
|
|
name: X-Seal-Home-Session
|
|
description: |
|
|
Reserved header. The local adapter does not currently authenticate requests: it acts with
|
|
the credentials already stored on this machine for the selected enterprise. Keep it bound
|
|
to loopback (`--host 127.0.0.1`) and do not expose the port to a network or an origin you
|
|
do not control.
|
|
parameters:
|
|
$ref: ./components/parameters.yaml
|
|
responses:
|
|
$ref: ./components/responses.yaml
|
|
schemas:
|
|
$ref: ./components/schemas/index.yaml
|