import type { OperatorScope } from "../identity/PrincipalsFile.js"; import type { Role } from "../identity/PrincipalRegistry.js"; /** The payload limit on every route, in bytes. */ export declare const MAX_BODY_BYTES: number; export interface RouteDefinition { readonly method: "GET" | "POST"; readonly path: string; /** Public routes answer without a principal; they carry no state. */ readonly public: boolean; /** The role a principal must hold to reach the route; absent on public routes. */ readonly role?: Role; /** The scope an operator must hold, on control routes. */ readonly scope?: OperatorScope; /** * On a proposer route, the scope under which an `OPERATOR` may call it * too: the issuer app's backend presenting a cardholder's attestation for * an intent the agent proposed. Role or scope, never both. */ readonly operatorScope?: OperatorScope; } /** * The one route with a parameter: the issuer's authorization id is a path * segment. The template is matched by the listener, segment for segment. */ export declare const CARD_AUTHORIZATION_RESULT_PATH = "/v1/card-authorizations/{authorization_id}/result"; /** The whole surface. The README's table is checked against this list. */ export declare const ROUTES: readonly [{ readonly method: "GET"; readonly path: "/health"; readonly public: true; }, { readonly method: "GET"; readonly path: "/ready"; readonly public: true; }, { readonly method: "POST"; readonly path: "/v1/actions"; readonly public: false; readonly role: "PROPOSER"; }, { readonly method: "POST"; readonly path: "/v1/reconciliations"; readonly public: false; readonly role: "PROPOSER"; }, { readonly method: "POST"; readonly path: "/v1/escalations"; readonly public: false; readonly role: "PROPOSER"; readonly operatorScope: "escalations.resume"; }, { readonly method: "GET"; readonly path: "/v1/control/status"; readonly public: false; readonly role: "OPERATOR"; readonly scope: "status"; }, { readonly method: "POST"; readonly path: "/v1/control/halt"; readonly public: false; readonly role: "OPERATOR"; readonly scope: "halt"; }, { readonly method: "POST"; readonly path: "/v1/control/resume"; readonly public: false; readonly role: "OPERATOR"; readonly scope: "resume"; }, { readonly method: "GET"; readonly path: "/v1/control/open-attempts"; readonly public: false; readonly role: "OPERATOR"; readonly scope: "status"; }, { readonly method: "POST"; readonly path: "/v1/control/secrets/reload"; readonly public: false; readonly role: "OPERATOR"; readonly scope: "secrets.reload"; }, { readonly method: "POST"; readonly path: "/v1/control/evidence-export"; readonly public: false; readonly role: "OPERATOR"; readonly scope: "evidence"; }, { readonly method: "GET"; readonly path: "/metrics"; readonly public: false; readonly role: "OPERATOR"; readonly scope: "metrics"; }, { readonly method: "POST"; readonly path: "/v1/card-authorizations"; readonly public: false; readonly role: "OPERATOR"; readonly scope: "cards.authorize"; }, { readonly method: "POST"; readonly path: "/v1/card-authorizations/{authorization_id}/result"; readonly public: false; readonly role: "OPERATOR"; readonly scope: "cards.authorize"; }]; export type RoutePath = (typeof ROUTES)[number]["path"]; /** The exposition's content type; every other response is JSON. */ export declare const METRICS_CONTENT_TYPE = "application/openmetrics-text; version=1.0.0; charset=utf-8"; /** Every response, success or refusal, carries the same protective headers. */ export declare const RESPONSE_HEADERS: { readonly "content-type": "application/json; charset=utf-8"; readonly "cache-control": "no-store"; readonly "x-content-type-options": "nosniff"; readonly "content-security-policy": "default-src 'none'; frame-ancestors 'none'"; readonly "x-frame-options": "DENY"; }; //# sourceMappingURL=Routes.d.ts.map