/** * `@sylphx/management/adminBootstrap` — reset the Appwrite-pattern bootstrap window. * * Mirrors `POST /admin/reset-bootstrap-window` in * `apps/api/src/server/platform/routes/admin/bootstrap.ts` (ADR-089 §2.7 * Phase 7 Commit B). * * Auth: **platform super-admin session** (cookie). Deliberately NOT a * service-token surface — see the route file's header for rationale. * * Typical use: * * sylphx admin reset-bootstrap-window * * dispatches here via `requireAuthEffect` + `withAuthedSdk`. Once this * call returns, the operator has ~10 minutes to point the new admin at * `POST /v1/auth/bootstrap-signup` with the `X-Sylphx-Project-Id: platform` * header; after that the window closes itself and the endpoint 404s. */ import type { Client } from './client.js'; /** * Confirmation returned by {@link resetWindow}. * * `ttlSeconds` mirrors `BOOTSTRAP_WINDOW_TTL_SECONDS` on the server * (`packages/core/src/lib/bootstrap-window.ts`). Carried on the wire so * CLI output can show an accurate countdown without hard-coding the * value client-side. */ export interface ResetBootstrapWindowResult { /** Always `true` when the endpoint returns 200. */ readonly opened: boolean; /** Seconds until the window closes again. */ readonly ttlSeconds: number; /** Operator-facing next-step instruction. */ readonly message: string; } /** * Re-open the bootstrap window for 10 minutes. * * Authenticates as the caller's platform super-admin session. The * server emits an `admin_action` audit event + a * `sylphx_bootstrap_window_reset_total` metric tick for every * invocation, so this call is never silent. */ export declare const resetWindow: (client: Client) => Promise; //# sourceMappingURL=adminBootstrap.d.ts.map