/* generated using openapi-typescript-codegen -- do not edit */ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ import type { CancelablePromise } from '../core/CancelablePromise'; import { OpenAPI } from '../core/OpenAPI'; import { request as __request } from '../core/request'; export class HealthService { /** * Health * Liveness probe. Cached Stripe status to avoid Stripe outage blocking deploys. * @returns string Successful Response * @throws ApiError */ public static healthCheck(): CancelablePromise> { return __request(OpenAPI, { method: 'GET', url: '/v1/health', }); } /** * Health Observability Test * Trigger a GlitchTip-captured event for smoke testing the error pipeline. * * Admin-only (ADMIN_SECRET header + IP allowlist via ``require_admin``). * Two modes: * - ``mode=exception`` (default): raises ``RuntimeError`` which the * FastAPI ``sentry-sdk`` integration auto-captures as an Issue in * GlitchTip (sentry-sdk is GlitchTip's official wire-compat client). * - ``mode=message``: sends a ``sentry_sdk.capture_message`` info event * without crashing — useful when you want to verify ingestion * without triggering a 500 in monitoring dashboards. * @returns any Successful Response * @throws ApiError */ public static healthObservabilityTest({ mode = 'exception', }: { mode?: string, }): CancelablePromise> { return __request(OpenAPI, { method: 'GET', url: '/v1/health/_observability_test', query: { 'mode': mode, }, errors: { 422: `Validation Error`, }, }); } /** * Health Deep * Deep dependency check. Admin-only (header secret + IP allowlist). * @returns any Successful Response * @throws ApiError */ public static healthDeep(): CancelablePromise> { return __request(OpenAPI, { method: 'GET', url: '/v1/health/deep', }); } }