export type ClientOptions = { baseUrl: `${string}://${string}` | (string & {}); }; export type SystemHealthData = { body?: never; path?: never; query?: never; url: '/v1/healthz'; }; export type SystemHealthResponses = { /** * Default Response */ 200: { data: { /** * Health indicator */ status: 'ok'; /** * Service name */ service: 'facade'; /** * Public API version */ version: string; }; }; }; export type SystemHealthResponse = SystemHealthResponses[keyof SystemHealthResponses]; export type AuthSignInData = { /** * Credentials used to create a facade bearer token */ body: { /** * User login used by the legacy auth backend */ login: string; /** * Plain-text password for the user account */ password: string; }; path?: never; query?: never; url: '/v1/auth/sign-in'; }; export type AuthSignInErrors = { /** * Default Response */ 401: { error: { /** * Stable machine-readable error code */ code: string; /** * Human-readable error message */ message: string; /** * Optional structured details from the facade or upstream systems */ details?: { [key: string]: unknown; } | Array | string | unknown; }; }; /** * Default Response */ 409: { error: { /** * Stable machine-readable error code */ code: string; /** * Human-readable error message */ message: string; /** * Optional structured details from the facade or upstream systems */ details?: { [key: string]: unknown; } | Array | string | unknown; }; }; /** * Default Response */ 503: { error: { /** * Stable machine-readable error code */ code: string; /** * Human-readable error message */ message: string; /** * Optional structured details from the facade or upstream systems */ details?: { [key: string]: unknown; } | Array | string | unknown; }; }; }; export type AuthSignInError = AuthSignInErrors[keyof AuthSignInErrors]; export type AuthSignInResponses = { /** * Successful authentication response */ 200: { /** * Created facade session */ data: { /** * Facade bearer token backed by the shared session table */ accessToken: string; /** * Authorization scheme for the access token */ tokenType: 'Bearer'; /** * Normalized facade user */ user: { /** * Internal user identifier from the shared session store */ id: number | string; /** * Login of the authenticated user */ login: string; /** * User type from the legacy auth model */ type: string | unknown; }; }; }; }; export type AuthSignInResponse = AuthSignInResponses[keyof AuthSignInResponses]; export type AuthSignOutData = { body?: never; path?: never; query?: never; url: '/v1/auth/sign-out'; }; export type AuthSignOutErrors = { /** * Default Response */ 401: { error: { /** * Stable machine-readable error code */ code: string; /** * Human-readable error message */ message: string; /** * Optional structured details from the facade or upstream systems */ details?: { [key: string]: unknown; } | Array | string | unknown; }; }; }; export type AuthSignOutError = AuthSignOutErrors[keyof AuthSignOutErrors]; export type AuthSignOutResponses = { /** * Default Response */ 200: { data: { ok: boolean; }; }; }; export type AuthSignOutResponse = AuthSignOutResponses[keyof AuthSignOutResponses]; export type AuthRefreshData = { body?: never; path?: never; query?: never; url: '/v1/me'; }; export type AuthRefreshErrors = { /** * Default Response */ 401: { error: { /** * Stable machine-readable error code */ code: string; /** * Human-readable error message */ message: string; /** * Optional structured details from the facade or upstream systems */ details?: { [key: string]: unknown; } | Array | string | unknown; }; }; }; export type AuthRefreshError = AuthRefreshErrors[keyof AuthRefreshErrors]; export type AuthRefreshResponses = { /** * Current authenticated user */ 200: { data: { /** * Normalized facade user */ user: { /** * Internal user identifier from the shared session store */ id: number | string; /** * Login of the authenticated user */ login: string; /** * User type from the legacy auth model */ type: string | unknown; }; } & { /** * Facade bearer token payload */ auth?: { /** * Facade bearer token backed by the shared session table */ accessToken: string; /** * Authorization scheme for the access token */ tokenType: 'Bearer'; }; }; }; }; export type AuthRefreshResponse = AuthRefreshResponses[keyof AuthRefreshResponses]; export type DebugBrowserData = { /** * Browser diagnostic payload sent over HTTP when websocket delivery is not reliable enough for debugging */ body: { /** * Telemetry mode: periodic state snapshot or a discrete debug event */ kind: 'snapshot' | 'event'; /** * Application-defined debug event name, for example ws-error or ws-close */ eventType?: string; /** * Client-side event timestamp in ISO 8601 format */ clientTime: string; page: { /** * Page origin without user-specific secrets */ origin?: string; /** * Current pathname or route without query string */ path?: string; /** * Browser document visibility state */ visibilityState?: string; /** * Whether the tab is focused */ focused?: boolean; }; browser: { /** * Full browser user agent string */ userAgent: string; /** * Primary browser language */ language?: string; languages?: Array; /** * Navigator platform string */ platform?: string; /** * IANA timezone reported by the browser */ timezone?: string; }; screen: { /** * Physical screen width in CSS pixels */ width?: number; /** * Physical screen height in CSS pixels */ height?: number; /** * Available screen width in CSS pixels */ availWidth?: number; /** * Available screen height in CSS pixels */ availHeight?: number; /** * Window device pixel ratio */ devicePixelRatio?: number; /** * Viewport width in CSS pixels */ viewportWidth?: number; /** * Viewport height in CSS pixels */ viewportHeight?: number; }; connection?: { /** * Navigator online state */ online?: boolean; /** * NetworkInformation.effectiveType value */ effectiveType?: string; /** * Estimated network downlink in Mbps */ downlink?: number; /** * Estimated network RTT in milliseconds */ rtt?: number; /** * Whether the browser requests reduced data usage */ saveData?: boolean; }; websocket?: { /** * Current websocket URL without query string */ url?: string; /** * Current websocket client state */ state?: string; /** * Reconnect retry counter */ retryCount?: number; /** * Last websocket error summary */ lastError?: string; /** * Last websocket close code */ lastCloseCode?: number; /** * Last websocket close reason */ lastCloseReason?: string; }; context?: { /** * Frontend application version string */ appVersion?: string; /** * Build or deploy tag of the frontend bundle */ buildTag?: string; /** * Client-side session identifier for correlating browser events */ sessionId?: string; }; }; path?: never; query?: never; url: '/v1/debug/browser'; }; export type DebugBrowserErrors = { /** * Default Response */ 400: { error: { /** * Stable machine-readable error code */ code: string; /** * Human-readable error message */ message: string; /** * Optional structured details from the facade or upstream systems */ details?: { [key: string]: unknown; } | Array | string | unknown; }; }; /** * Default Response */ 401: { error: { /** * Stable machine-readable error code */ code: string; /** * Human-readable error message */ message: string; /** * Optional structured details from the facade or upstream systems */ details?: { [key: string]: unknown; } | Array | string | unknown; }; }; }; export type DebugBrowserError = DebugBrowserErrors[keyof DebugBrowserErrors]; export type DebugBrowserResponses = { /** * Default Response */ 200: { data: { /** * Debug payload was accepted and logged */ ok: true; } & { /** * Facade bearer token payload */ auth?: { /** * Facade bearer token backed by the shared session table */ accessToken: string; /** * Authorization scheme for the access token */ tokenType: 'Bearer'; }; }; }; }; export type DebugBrowserResponse = DebugBrowserResponses[keyof DebugBrowserResponses]; export type GetV1OpenapiJsonData = { body?: never; path?: never; query?: never; url: '/v1/openapi.json'; }; export type GetV1OpenapiJsonResponses = { /** * Default Response */ 200: unknown; }; //# sourceMappingURL=types.gen.d.ts.map