Structs§
- Bearer
Auth Layer - [
tower_layer::Layer] that wraps a router (or any innertowerservice) with bearer-token auth. - Bearer
Auth Service - The [
tower_service::Service] produced byBearerAuthLayer. - Codex
Rest Backend - Production REST backend.
- Rest
Call Body - Request body for raw method bridge calls.
- Rest
Call Request - Backend-facing raw method call request.
- Rest
Call Response - Response body for raw method bridge calls.
- Rest
Client Options - Optional client/session overrides for REST requests that spawn Codex.
- Rest
Error Reply Request - Request body for replying with an error to a server-originated request.
- Rest
Error Response - Structured REST error payload.
- Rest
Health Response - Health response returned by
GET /healthandGET /v1/health. - Rest
Limits - Resource limits used by the default REST backend and route layer.
- Rest
Limits EnvError - Error returned by
RestLimits::try_from_envwhen aCODEX_APP_SERVER_REST_*environment variable is set but cannot be parsed as its expected type. - Rest
List Sessions Response - Response body for
GET /v1/sessions. - Rest
Request Reply Response - Response body for request-reply endpoints.
- Rest
Request Reply Result Request - Request body for replying successfully to a server-originated request.
- Rest
Router Options - REST router behavior knobs.
- Rest
Session Create Request - Request body for
POST /v1/sessions. - Rest
Session Create Response - Response body for
POST /v1/sessions. - Rest
Session Summary - One session entry in
GET /v1/sessions. - Rest
Status Response - Simple status response used by mutating bridge endpoints.
- Rest
Text Turn Request - Request body for
POST /v1/text-turn. - Rest
Text Turn Response - Response body for
POST /v1/text-turn.
Enums§
- Rest
Approval Policy - REST approval policy preset used while collecting turn events.
- Rest
Error - Errors surfaced by the optional REST adapter.
- Rest
Event Response - Event returned by
GET /v1/sessions/{sessionId}/events.
Traits§
- Rest
Backend - Backend used by the REST router.
Functions§
- bearer_
auth - Builds a
BearerAuthLayerthat requiresAuthorization: Bearer <token>on every request except (by default) the health routes. - openapi_
spec - Builds the full OpenAPI 3.1.0 document for the
restmodule. - router
- Builds a conservative REST router backed by real
codex app-serverprocesses. - router_
with_ backend - Builds a REST router with a caller-provided backend.
- router_
with_ backend_ and_ options - Builds a REST router with a caller-provided backend and options.
- router_
with_ backend_ arc - Builds a REST router from a shared backend trait object.
- router_
with_ backend_ arc_ and_ options - Builds a REST router from a shared backend trait object and options.
- router_
with_ options - Builds a REST router backed by real
codex app-serverprocesses and options. - text_
turn_ router - Builds a router with the one-shot text-turn helper enabled.
- trusted_
bridge_ router - Builds a trusted full bridge router backed by real
codex app-serverprocesses.