api/

directory
v0.3.0-rc.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2026 License: Apache-2.0

README

Vendored API contract

These files are copied unchanged from the spec repository. openapi/angelia.v1.yaml is at commit dbb439e ("feat(openapi): API gaps found by the admin UI (spec 0.9.0) (#20)") on the spec repository's main. Since spec 0.8.0, spec 0.9.0 adds order=desc and before to listEvents with EventPage.next_before; the sink, since and until filters of listDeliveries and Delivery.sink; listAccess (GET /v1/access, admin); Me.session_id; ETag on GET and PUT of watches, sinks and subscriptions with the optional If-Match and If-None-Match: * headers and the precondition-failed problem (412); the JsonSchema type of Plugin.config_schema; previewTemplate (POST /v1/template-previews, admin); and corrects the event stream's text on EventSource (spec docs/api.md decisions 47 to 54). The MCP tool contract and the event schemas are unchanged by 0.9.0. Before that, spec 0.8.0 (commit a5d861a, "feat(openapi): /v1/me and browser sessions under /v1/sessions (spec 0.8.0) (#19)") added getMe (GET /v1/me, read), the admin operations listSessions and revokeSession under /v1/sessions, the schemas Me, Session, SessionPage, SessionUser, UiRole and PrincipalId, the sessionCookie security scheme (documentation only: every operation still declares bearerAuth), the csrf problem, and widens TokenActor to a session principal (github:<id>). The other files are at commit 874e3a8 ("feat(openapi): API tokens under /v1/tokens (spec 0.7.0) (#18)"), unchanged by 0.8.0: the MCP tool contract and the event schemas (no MCP tool manages sessions).

Here In the spec repository
openapi/angelia.v1.yaml openapi/angelia.v1.yaml
schemas/release/envelope/v1.json schemas/release/envelope/v1.json
schemas/release/v1.json schemas/release/v1.json
mcp/tools.v1.json mcp/tools.v1.json

The layout mirrors the spec repository so that the relative $ref from the OpenAPI document to the envelope schema resolves. The spec repository is the source of truth: never edit these files here. To update, copy the files from a newer spec commit, record the commit above, run go generate ./internal/api/ ./internal/apiclient/ and commit the result.

openapi/embed.go embeds the document so that the server validates requests and enforces scopes from the specification itself (internal/api). mcp/embed.go embeds the MCP tool contract: the MCP server (internal/mcp) serves its input and output schemas, and a golden test requires the server's tools/list to equal it (ADR 0029). Licence: Apache-2.0 OR CC-BY-4.0, as in the spec repository.

Directories

Path Synopsis
Package mcp embeds the vendored MCP tool contract (see api/README.md).
Package mcp embeds the vendored MCP tool contract (see api/README.md).
Package openapi embeds the vendored REST API specification (see api/README.md).
Package openapi embeds the vendored REST API specification (see api/README.md).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL