/** * Ground "operated transfers" admin routes — the CRUD surfaces for the twelve * ground-transfer resources: operators, vehicles, drivers, transfer * preferences, dispatches, execution events, dispatch assignments, dispatch * legs, dispatch passengers, driver shifts, service incidents, and dispatch * checkpoints. Mounted on the legacy `/v1/operations/*` surface (operator React * clients hit those paths) AND, for the published OpenAPI admin contract, on the * staff surface at `/v1/admin/operations/*` (see `operations/routes.ts`). * * Migrated to `@hono/zod-openapi` for the OpenAPI admin backfill (voyant#2114 — * operations ground sub-batch). Request schemas reuse the exported * `validation.ts` insert/update/list-query schemas the handlers already parse; * response row schemas are authored here from the Drizzle `$inferSelect` shapes * (§17 dates → strings). No list endpoint joins another table, so no list row * carries extra columns. Each resource is its own small `OpenAPIHono` sub-chain; * the per-resource chains are then composed onto `groundRoutes` via `.route("/")` * grouped into six sub-chains so the `.openapi()` operations propagate up * through the parent operations registries while keeping type-inference cost * bounded (one flat chain has O(n²) inference cost). * * agent-quality: file-size exception — intentional: a mechanically-repetitive * CRUD bundle over twelve ground resources (60 legs), each with a `createRoute` * def + co-located handler per the established admin route pattern (mirrors * `availability/routes-pickups.ts`). Splitting per resource would fragment the * single mounted instance without aiding review. See voyant#2114. */ import { OpenAPIHono } from "@hono/zod-openapi"; import type { PostgresJsDatabase } from "drizzle-orm/postgres-js"; type Env = { Variables: { db: PostgresJsDatabase; userId?: string; }; }; /** * Compose the per-resource sub-chains onto a single `OpenAPIHono` so the * `.openapi()` operations propagate up through the parent operations registries * (`OpenAPIHono.route` copies the sub-app's registered routes). Grouped into six * sub-chains of ten legs each to keep type-inference cost bounded. */ export declare const groundRoutes: OpenAPIHono | null | undefined; }; }; output: { error: string; }; outputFormat: "json"; status: 400; } | { input: { json: { dispatchId: string; incidentType: string; severity?: "warning" | "critical" | "info" | undefined; resolutionStatus?: "open" | "cancelled" | "mitigated" | "resolved" | undefined; openedAt?: string | null | undefined; resolvedAt?: string | null | undefined; notes?: string | null | undefined; metadata?: Record | null | undefined; }; }; output: { data: { id: string; dispatchId: string; severity: "warning" | "critical" | "info"; incidentType: string; resolutionStatus: "open" | "cancelled" | "mitigated" | "resolved"; openedAt: string; resolvedAt: string | null; notes: string | null; metadata: { [x: string]: import("hono/utils/types").JSONValue; } | null; createdAt: string; updatedAt: string; }; }; outputFormat: "json"; status: 201; }; }; } & { "/service-incidents/:id": { $get: { input: { param: { id: string; }; }; output: { error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { id: string; }; }; output: { data: { id: string; dispatchId: string; severity: "warning" | "critical" | "info"; incidentType: string; resolutionStatus: "open" | "cancelled" | "mitigated" | "resolved"; openedAt: string; resolvedAt: string | null; notes: string | null; metadata: { [x: string]: import("hono/utils/types").JSONValue; } | null; createdAt: string; updatedAt: string; }; }; outputFormat: "json"; status: 200; }; }; } & { "/service-incidents/:id": { $patch: { input: { param: { id: string; }; } & { json: { dispatchId?: string | undefined; severity?: "warning" | "critical" | "info" | undefined; incidentType?: string | undefined; resolutionStatus?: "open" | "cancelled" | "mitigated" | "resolved" | undefined; openedAt?: string | null | undefined; resolvedAt?: string | null | undefined; notes?: string | null | undefined; metadata?: Record | null | undefined; }; }; output: { error: string; }; outputFormat: "json"; status: 400; } | { input: { param: { id: string; }; } & { json: { dispatchId?: string | undefined; severity?: "warning" | "critical" | "info" | undefined; incidentType?: string | undefined; resolutionStatus?: "open" | "cancelled" | "mitigated" | "resolved" | undefined; openedAt?: string | null | undefined; resolvedAt?: string | null | undefined; notes?: string | null | undefined; metadata?: Record | null | undefined; }; }; output: { error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { id: string; }; } & { json: { dispatchId?: string | undefined; severity?: "warning" | "critical" | "info" | undefined; incidentType?: string | undefined; resolutionStatus?: "open" | "cancelled" | "mitigated" | "resolved" | undefined; openedAt?: string | null | undefined; resolvedAt?: string | null | undefined; notes?: string | null | undefined; metadata?: Record | null | undefined; }; }; output: { data: { id: string; dispatchId: string; severity: "warning" | "critical" | "info"; incidentType: string; resolutionStatus: "open" | "cancelled" | "mitigated" | "resolved"; openedAt: string; resolvedAt: string | null; notes: string | null; metadata: { [x: string]: import("hono/utils/types").JSONValue; } | null; createdAt: string; updatedAt: string; }; }; outputFormat: "json"; status: 200; }; }; } & { "/service-incidents/:id": { $delete: { input: { param: { id: string; }; }; output: { error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { id: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; } & { "/dispatch-checkpoints": { $get: { input: { query: { limit?: unknown; offset?: unknown; dispatchId?: string | undefined; status?: "cancelled" | "pending" | "reached" | "missed" | undefined; }; }; output: { data: { id: string; dispatchId: string; sequence: number; checkpointType: string; status: "cancelled" | "pending" | "reached" | "missed"; plannedAt: string | null; actualAt: string | null; facilityId: string | null; addressId: string | null; notes: string | null; metadata: { [x: string]: import("hono/utils/types").JSONValue; } | null; createdAt: string; updatedAt: string; }[]; total: number; limit: number; offset: number; }; outputFormat: "json"; status: 200; }; }; } & { "/dispatch-checkpoints": { $post: { input: { json: { dispatchId: string; checkpointType: string; sequence?: number | undefined; status?: "cancelled" | "pending" | "reached" | "missed" | undefined; plannedAt?: string | null | undefined; actualAt?: string | null | undefined; facilityId?: string | null | undefined; addressId?: string | null | undefined; notes?: string | null | undefined; metadata?: Record | null | undefined; }; }; output: { error: string; }; outputFormat: "json"; status: 400; } | { input: { json: { dispatchId: string; checkpointType: string; sequence?: number | undefined; status?: "cancelled" | "pending" | "reached" | "missed" | undefined; plannedAt?: string | null | undefined; actualAt?: string | null | undefined; facilityId?: string | null | undefined; addressId?: string | null | undefined; notes?: string | null | undefined; metadata?: Record | null | undefined; }; }; output: { data: { id: string; dispatchId: string; sequence: number; checkpointType: string; status: "cancelled" | "pending" | "reached" | "missed"; plannedAt: string | null; actualAt: string | null; facilityId: string | null; addressId: string | null; notes: string | null; metadata: { [x: string]: import("hono/utils/types").JSONValue; } | null; createdAt: string; updatedAt: string; }; }; outputFormat: "json"; status: 201; }; }; } & { "/dispatch-checkpoints/:id": { $get: { input: { param: { id: string; }; }; output: { error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { id: string; }; }; output: { data: { id: string; dispatchId: string; sequence: number; checkpointType: string; status: "cancelled" | "pending" | "reached" | "missed"; plannedAt: string | null; actualAt: string | null; facilityId: string | null; addressId: string | null; notes: string | null; metadata: { [x: string]: import("hono/utils/types").JSONValue; } | null; createdAt: string; updatedAt: string; }; }; outputFormat: "json"; status: 200; }; }; } & { "/dispatch-checkpoints/:id": { $patch: { input: { param: { id: string; }; } & { json: { dispatchId?: string | undefined; sequence?: number | undefined; checkpointType?: string | undefined; status?: "cancelled" | "pending" | "reached" | "missed" | undefined; plannedAt?: string | null | undefined; actualAt?: string | null | undefined; facilityId?: string | null | undefined; addressId?: string | null | undefined; notes?: string | null | undefined; metadata?: Record | null | undefined; }; }; output: { error: string; }; outputFormat: "json"; status: 400; } | { input: { param: { id: string; }; } & { json: { dispatchId?: string | undefined; sequence?: number | undefined; checkpointType?: string | undefined; status?: "cancelled" | "pending" | "reached" | "missed" | undefined; plannedAt?: string | null | undefined; actualAt?: string | null | undefined; facilityId?: string | null | undefined; addressId?: string | null | undefined; notes?: string | null | undefined; metadata?: Record | null | undefined; }; }; output: { error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { id: string; }; } & { json: { dispatchId?: string | undefined; sequence?: number | undefined; checkpointType?: string | undefined; status?: "cancelled" | "pending" | "reached" | "missed" | undefined; plannedAt?: string | null | undefined; actualAt?: string | null | undefined; facilityId?: string | null | undefined; addressId?: string | null | undefined; notes?: string | null | undefined; metadata?: Record | null | undefined; }; }; output: { data: { id: string; dispatchId: string; sequence: number; checkpointType: string; status: "cancelled" | "pending" | "reached" | "missed"; plannedAt: string | null; actualAt: string | null; facilityId: string | null; addressId: string | null; notes: string | null; metadata: { [x: string]: import("hono/utils/types").JSONValue; } | null; createdAt: string; updatedAt: string; }; }; outputFormat: "json"; status: 200; }; }; } & { "/dispatch-checkpoints/:id": { $delete: { input: { param: { id: string; }; }; output: { error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { id: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; }, "/"> & import("hono/types").MergeSchemaPath<{ "/dispatch-passengers": { $get: { input: { query: { limit?: unknown; offset?: unknown; dispatchId?: string | undefined; participantId?: string | undefined; }; }; output: { data: { id: string; dispatchId: string; participantId: string | null; displayName: string | null; seatLabel: string | null; notes: string | null; createdAt: string; updatedAt: string; }[]; total: number; limit: number; offset: number; }; outputFormat: "json"; status: 200; }; }; } & { "/dispatch-passengers": { $post: { input: { json: { dispatchId: string; participantId?: string | null | undefined; displayName?: string | null | undefined; seatLabel?: string | null | undefined; notes?: string | null | undefined; }; }; output: { error: string; }; outputFormat: "json"; status: 400; } | { input: { json: { dispatchId: string; participantId?: string | null | undefined; displayName?: string | null | undefined; seatLabel?: string | null | undefined; notes?: string | null | undefined; }; }; output: { data: { id: string; dispatchId: string; participantId: string | null; displayName: string | null; seatLabel: string | null; notes: string | null; createdAt: string; updatedAt: string; }; }; outputFormat: "json"; status: 201; }; }; } & { "/dispatch-passengers/:id": { $get: { input: { param: { id: string; }; }; output: { error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { id: string; }; }; output: { data: { id: string; dispatchId: string; participantId: string | null; displayName: string | null; seatLabel: string | null; notes: string | null; createdAt: string; updatedAt: string; }; }; outputFormat: "json"; status: 200; }; }; } & { "/dispatch-passengers/:id": { $patch: { input: { param: { id: string; }; } & { json: { dispatchId?: string | undefined; participantId?: string | null | undefined; displayName?: string | null | undefined; seatLabel?: string | null | undefined; notes?: string | null | undefined; }; }; output: { error: string; }; outputFormat: "json"; status: 400; } | { input: { param: { id: string; }; } & { json: { dispatchId?: string | undefined; participantId?: string | null | undefined; displayName?: string | null | undefined; seatLabel?: string | null | undefined; notes?: string | null | undefined; }; }; output: { error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { id: string; }; } & { json: { dispatchId?: string | undefined; participantId?: string | null | undefined; displayName?: string | null | undefined; seatLabel?: string | null | undefined; notes?: string | null | undefined; }; }; output: { data: { id: string; dispatchId: string; participantId: string | null; displayName: string | null; seatLabel: string | null; notes: string | null; createdAt: string; updatedAt: string; }; }; outputFormat: "json"; status: 200; }; }; } & { "/dispatch-passengers/:id": { $delete: { input: { param: { id: string; }; }; output: { error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { id: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; } & { "/driver-shifts": { $get: { input: { query: { limit?: unknown; offset?: unknown; driverId?: string | undefined; operatorId?: string | undefined; facilityId?: string | undefined; status?: "cancelled" | "available" | "completed" | "scheduled" | "on_duty" | undefined; }; }; output: { data: { id: string; driverId: string; operatorId: string | null; facilityId: string | null; startsAt: string; endsAt: string; status: "cancelled" | "available" | "completed" | "scheduled" | "on_duty"; notes: string | null; metadata: { [x: string]: import("hono/utils/types").JSONValue; } | null; createdAt: string; updatedAt: string; }[]; total: number; limit: number; offset: number; }; outputFormat: "json"; status: 200; }; }; } & { "/driver-shifts": { $post: { input: { json: { driverId: string; startsAt: string; endsAt: string; operatorId?: string | null | undefined; facilityId?: string | null | undefined; status?: "cancelled" | "available" | "completed" | "scheduled" | "on_duty" | undefined; notes?: string | null | undefined; metadata?: Record | null | undefined; }; }; output: { error: string; }; outputFormat: "json"; status: 400; } | { input: { json: { driverId: string; startsAt: string; endsAt: string; operatorId?: string | null | undefined; facilityId?: string | null | undefined; status?: "cancelled" | "available" | "completed" | "scheduled" | "on_duty" | undefined; notes?: string | null | undefined; metadata?: Record | null | undefined; }; }; output: { data: { id: string; driverId: string; operatorId: string | null; facilityId: string | null; startsAt: string; endsAt: string; status: "cancelled" | "available" | "completed" | "scheduled" | "on_duty"; notes: string | null; metadata: { [x: string]: import("hono/utils/types").JSONValue; } | null; createdAt: string; updatedAt: string; }; }; outputFormat: "json"; status: 201; }; }; } & { "/driver-shifts/:id": { $get: { input: { param: { id: string; }; }; output: { error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { id: string; }; }; output: { data: { id: string; driverId: string; operatorId: string | null; facilityId: string | null; startsAt: string; endsAt: string; status: "cancelled" | "available" | "completed" | "scheduled" | "on_duty"; notes: string | null; metadata: { [x: string]: import("hono/utils/types").JSONValue; } | null; createdAt: string; updatedAt: string; }; }; outputFormat: "json"; status: 200; }; }; } & { "/driver-shifts/:id": { $patch: { input: { param: { id: string; }; } & { json: { driverId?: string | undefined; operatorId?: string | null | undefined; facilityId?: string | null | undefined; startsAt?: string | undefined; endsAt?: string | undefined; status?: "cancelled" | "available" | "completed" | "scheduled" | "on_duty" | undefined; notes?: string | null | undefined; metadata?: Record | null | undefined; }; }; output: { error: string; }; outputFormat: "json"; status: 400; } | { input: { param: { id: string; }; } & { json: { driverId?: string | undefined; operatorId?: string | null | undefined; facilityId?: string | null | undefined; startsAt?: string | undefined; endsAt?: string | undefined; status?: "cancelled" | "available" | "completed" | "scheduled" | "on_duty" | undefined; notes?: string | null | undefined; metadata?: Record | null | undefined; }; }; output: { error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { id: string; }; } & { json: { driverId?: string | undefined; operatorId?: string | null | undefined; facilityId?: string | null | undefined; startsAt?: string | undefined; endsAt?: string | undefined; status?: "cancelled" | "available" | "completed" | "scheduled" | "on_duty" | undefined; notes?: string | null | undefined; metadata?: Record | null | undefined; }; }; output: { data: { id: string; driverId: string; operatorId: string | null; facilityId: string | null; startsAt: string; endsAt: string; status: "cancelled" | "available" | "completed" | "scheduled" | "on_duty"; notes: string | null; metadata: { [x: string]: import("hono/utils/types").JSONValue; } | null; createdAt: string; updatedAt: string; }; }; outputFormat: "json"; status: 200; }; }; } & { "/driver-shifts/:id": { $delete: { input: { param: { id: string; }; }; output: { error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { id: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; }, "/"> & import("hono/types").MergeSchemaPath<{ "/dispatch-assignments": { $get: { input: { query: { limit?: unknown; offset?: unknown; dispatchId?: string | undefined; operatorId?: string | undefined; vehicleId?: string | undefined; driverId?: string | undefined; assignmentSource?: "manual" | "suggested" | "auto" | undefined; }; }; output: { data: { id: string; dispatchId: string; operatorId: string | null; vehicleId: string | null; driverId: string | null; assignmentSource: "manual" | "suggested" | "auto"; assignedAt: string; acceptedAt: string | null; notes: string | null; metadata: { [x: string]: import("hono/utils/types").JSONValue; } | null; createdAt: string; updatedAt: string; }[]; total: number; limit: number; offset: number; }; outputFormat: "json"; status: 200; }; }; } & { "/dispatch-assignments": { $post: { input: { json: { dispatchId: string; operatorId?: string | null | undefined; vehicleId?: string | null | undefined; driverId?: string | null | undefined; assignmentSource?: "manual" | "suggested" | "auto" | undefined; assignedAt?: string | null | undefined; acceptedAt?: string | null | undefined; notes?: string | null | undefined; metadata?: Record | null | undefined; }; }; output: { error: string; }; outputFormat: "json"; status: 400; } | { input: { json: { dispatchId: string; operatorId?: string | null | undefined; vehicleId?: string | null | undefined; driverId?: string | null | undefined; assignmentSource?: "manual" | "suggested" | "auto" | undefined; assignedAt?: string | null | undefined; acceptedAt?: string | null | undefined; notes?: string | null | undefined; metadata?: Record | null | undefined; }; }; output: { data: { id: string; dispatchId: string; operatorId: string | null; vehicleId: string | null; driverId: string | null; assignmentSource: "manual" | "suggested" | "auto"; assignedAt: string; acceptedAt: string | null; notes: string | null; metadata: { [x: string]: import("hono/utils/types").JSONValue; } | null; createdAt: string; updatedAt: string; }; }; outputFormat: "json"; status: 201; }; }; } & { "/dispatch-assignments/:id": { $get: { input: { param: { id: string; }; }; output: { error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { id: string; }; }; output: { data: { id: string; dispatchId: string; operatorId: string | null; vehicleId: string | null; driverId: string | null; assignmentSource: "manual" | "suggested" | "auto"; assignedAt: string; acceptedAt: string | null; notes: string | null; metadata: { [x: string]: import("hono/utils/types").JSONValue; } | null; createdAt: string; updatedAt: string; }; }; outputFormat: "json"; status: 200; }; }; } & { "/dispatch-assignments/:id": { $patch: { input: { param: { id: string; }; } & { json: { dispatchId?: string | undefined; operatorId?: string | null | undefined; vehicleId?: string | null | undefined; driverId?: string | null | undefined; assignmentSource?: "manual" | "suggested" | "auto" | undefined; assignedAt?: string | null | undefined; acceptedAt?: string | null | undefined; notes?: string | null | undefined; metadata?: Record | null | undefined; }; }; output: { error: string; }; outputFormat: "json"; status: 400; } | { input: { param: { id: string; }; } & { json: { dispatchId?: string | undefined; operatorId?: string | null | undefined; vehicleId?: string | null | undefined; driverId?: string | null | undefined; assignmentSource?: "manual" | "suggested" | "auto" | undefined; assignedAt?: string | null | undefined; acceptedAt?: string | null | undefined; notes?: string | null | undefined; metadata?: Record | null | undefined; }; }; output: { error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { id: string; }; } & { json: { dispatchId?: string | undefined; operatorId?: string | null | undefined; vehicleId?: string | null | undefined; driverId?: string | null | undefined; assignmentSource?: "manual" | "suggested" | "auto" | undefined; assignedAt?: string | null | undefined; acceptedAt?: string | null | undefined; notes?: string | null | undefined; metadata?: Record | null | undefined; }; }; output: { data: { id: string; dispatchId: string; operatorId: string | null; vehicleId: string | null; driverId: string | null; assignmentSource: "manual" | "suggested" | "auto"; assignedAt: string; acceptedAt: string | null; notes: string | null; metadata: { [x: string]: import("hono/utils/types").JSONValue; } | null; createdAt: string; updatedAt: string; }; }; outputFormat: "json"; status: 200; }; }; } & { "/dispatch-assignments/:id": { $delete: { input: { param: { id: string; }; }; output: { error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { id: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; } & { "/dispatch-legs": { $get: { input: { query: { limit?: unknown; offset?: unknown; dispatchId?: string | undefined; legType?: "pickup" | "dropoff" | "stop" | "deadhead" | undefined; }; }; output: { data: { id: string; dispatchId: string; sequence: number; legType: "pickup" | "dropoff" | "stop" | "deadhead"; facilityId: string | null; addressId: string | null; scheduledAt: string | null; actualAt: string | null; notes: string | null; metadata: { [x: string]: import("hono/utils/types").JSONValue; } | null; createdAt: string; updatedAt: string; }[]; total: number; limit: number; offset: number; }; outputFormat: "json"; status: 200; }; }; } & { "/dispatch-legs": { $post: { input: { json: { dispatchId: string; sequence?: number | undefined; legType?: "pickup" | "dropoff" | "stop" | "deadhead" | undefined; facilityId?: string | null | undefined; addressId?: string | null | undefined; scheduledAt?: string | null | undefined; actualAt?: string | null | undefined; notes?: string | null | undefined; metadata?: Record | null | undefined; }; }; output: { error: string; }; outputFormat: "json"; status: 400; } | { input: { json: { dispatchId: string; sequence?: number | undefined; legType?: "pickup" | "dropoff" | "stop" | "deadhead" | undefined; facilityId?: string | null | undefined; addressId?: string | null | undefined; scheduledAt?: string | null | undefined; actualAt?: string | null | undefined; notes?: string | null | undefined; metadata?: Record | null | undefined; }; }; output: { data: { id: string; dispatchId: string; sequence: number; legType: "pickup" | "dropoff" | "stop" | "deadhead"; facilityId: string | null; addressId: string | null; scheduledAt: string | null; actualAt: string | null; notes: string | null; metadata: { [x: string]: import("hono/utils/types").JSONValue; } | null; createdAt: string; updatedAt: string; }; }; outputFormat: "json"; status: 201; }; }; } & { "/dispatch-legs/:id": { $get: { input: { param: { id: string; }; }; output: { error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { id: string; }; }; output: { data: { id: string; dispatchId: string; sequence: number; legType: "pickup" | "dropoff" | "stop" | "deadhead"; facilityId: string | null; addressId: string | null; scheduledAt: string | null; actualAt: string | null; notes: string | null; metadata: { [x: string]: import("hono/utils/types").JSONValue; } | null; createdAt: string; updatedAt: string; }; }; outputFormat: "json"; status: 200; }; }; } & { "/dispatch-legs/:id": { $patch: { input: { param: { id: string; }; } & { json: { dispatchId?: string | undefined; sequence?: number | undefined; legType?: "pickup" | "dropoff" | "stop" | "deadhead" | undefined; facilityId?: string | null | undefined; addressId?: string | null | undefined; scheduledAt?: string | null | undefined; actualAt?: string | null | undefined; notes?: string | null | undefined; metadata?: Record | null | undefined; }; }; output: { error: string; }; outputFormat: "json"; status: 400; } | { input: { param: { id: string; }; } & { json: { dispatchId?: string | undefined; sequence?: number | undefined; legType?: "pickup" | "dropoff" | "stop" | "deadhead" | undefined; facilityId?: string | null | undefined; addressId?: string | null | undefined; scheduledAt?: string | null | undefined; actualAt?: string | null | undefined; notes?: string | null | undefined; metadata?: Record | null | undefined; }; }; output: { error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { id: string; }; } & { json: { dispatchId?: string | undefined; sequence?: number | undefined; legType?: "pickup" | "dropoff" | "stop" | "deadhead" | undefined; facilityId?: string | null | undefined; addressId?: string | null | undefined; scheduledAt?: string | null | undefined; actualAt?: string | null | undefined; notes?: string | null | undefined; metadata?: Record | null | undefined; }; }; output: { data: { id: string; dispatchId: string; sequence: number; legType: "pickup" | "dropoff" | "stop" | "deadhead"; facilityId: string | null; addressId: string | null; scheduledAt: string | null; actualAt: string | null; notes: string | null; metadata: { [x: string]: import("hono/utils/types").JSONValue; } | null; createdAt: string; updatedAt: string; }; }; outputFormat: "json"; status: 200; }; }; } & { "/dispatch-legs/:id": { $delete: { input: { param: { id: string; }; }; output: { error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { id: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; }, "/"> & import("hono/types").MergeSchemaPath<{ "/dispatches": { $get: { input: { query: { limit?: unknown; offset?: unknown; transferPreferenceId?: string | undefined; bookingId?: string | undefined; bookingItemId?: string | undefined; operatorId?: string | undefined; vehicleId?: string | undefined; driverId?: string | undefined; status?: "cancelled" | "completed" | "assigned" | "draft" | "scheduled" | "en_route" | "arrived" | "picked_up" | "no_show" | undefined; serviceDate?: string | undefined; }; }; output: { data: { id: string; transferPreferenceId: string; bookingId: string; bookingItemId: string | null; operatorId: string | null; vehicleId: string | null; driverId: string | null; serviceDate: string | null; scheduledPickupAt: string | null; scheduledDropoffAt: string | null; actualPickupAt: string | null; actualDropoffAt: string | null; status: "cancelled" | "completed" | "assigned" | "draft" | "scheduled" | "en_route" | "arrived" | "picked_up" | "no_show"; passengerCount: number | null; checkedBags: number | null; carryOnBags: number | null; notes: string | null; createdAt: string; updatedAt: string; }[]; total: number; limit: number; offset: number; }; outputFormat: "json"; status: 200; }; }; } & { "/dispatches": { $post: { input: { json: { transferPreferenceId: string; bookingId: string; bookingItemId?: string | null | undefined; operatorId?: string | null | undefined; vehicleId?: string | null | undefined; driverId?: string | null | undefined; serviceDate?: string | null | undefined; scheduledPickupAt?: string | null | undefined; scheduledDropoffAt?: string | null | undefined; actualPickupAt?: string | null | undefined; actualDropoffAt?: string | null | undefined; status?: "cancelled" | "completed" | "assigned" | "draft" | "scheduled" | "en_route" | "arrived" | "picked_up" | "no_show" | undefined; passengerCount?: number | null | undefined; checkedBags?: number | null | undefined; carryOnBags?: number | null | undefined; notes?: string | null | undefined; }; }; output: { error: string; }; outputFormat: "json"; status: 400; } | { input: { json: { transferPreferenceId: string; bookingId: string; bookingItemId?: string | null | undefined; operatorId?: string | null | undefined; vehicleId?: string | null | undefined; driverId?: string | null | undefined; serviceDate?: string | null | undefined; scheduledPickupAt?: string | null | undefined; scheduledDropoffAt?: string | null | undefined; actualPickupAt?: string | null | undefined; actualDropoffAt?: string | null | undefined; status?: "cancelled" | "completed" | "assigned" | "draft" | "scheduled" | "en_route" | "arrived" | "picked_up" | "no_show" | undefined; passengerCount?: number | null | undefined; checkedBags?: number | null | undefined; carryOnBags?: number | null | undefined; notes?: string | null | undefined; }; }; output: { data: { id: string; transferPreferenceId: string; bookingId: string; bookingItemId: string | null; operatorId: string | null; vehicleId: string | null; driverId: string | null; serviceDate: string | null; scheduledPickupAt: string | null; scheduledDropoffAt: string | null; actualPickupAt: string | null; actualDropoffAt: string | null; status: "cancelled" | "completed" | "assigned" | "draft" | "scheduled" | "en_route" | "arrived" | "picked_up" | "no_show"; passengerCount: number | null; checkedBags: number | null; carryOnBags: number | null; notes: string | null; createdAt: string; updatedAt: string; }; }; outputFormat: "json"; status: 201; }; }; } & { "/dispatches/:id": { $get: { input: { param: { id: string; }; }; output: { error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { id: string; }; }; output: { data: { id: string; transferPreferenceId: string; bookingId: string; bookingItemId: string | null; operatorId: string | null; vehicleId: string | null; driverId: string | null; serviceDate: string | null; scheduledPickupAt: string | null; scheduledDropoffAt: string | null; actualPickupAt: string | null; actualDropoffAt: string | null; status: "cancelled" | "completed" | "assigned" | "draft" | "scheduled" | "en_route" | "arrived" | "picked_up" | "no_show"; passengerCount: number | null; checkedBags: number | null; carryOnBags: number | null; notes: string | null; createdAt: string; updatedAt: string; }; }; outputFormat: "json"; status: 200; }; }; } & { "/dispatches/:id": { $patch: { input: { param: { id: string; }; } & { json: { transferPreferenceId?: string | undefined; bookingId?: string | undefined; bookingItemId?: string | null | undefined; operatorId?: string | null | undefined; vehicleId?: string | null | undefined; driverId?: string | null | undefined; serviceDate?: string | null | undefined; scheduledPickupAt?: string | null | undefined; scheduledDropoffAt?: string | null | undefined; actualPickupAt?: string | null | undefined; actualDropoffAt?: string | null | undefined; status?: "cancelled" | "completed" | "assigned" | "draft" | "scheduled" | "en_route" | "arrived" | "picked_up" | "no_show" | undefined; passengerCount?: number | null | undefined; checkedBags?: number | null | undefined; carryOnBags?: number | null | undefined; notes?: string | null | undefined; }; }; output: { error: string; }; outputFormat: "json"; status: 400; } | { input: { param: { id: string; }; } & { json: { transferPreferenceId?: string | undefined; bookingId?: string | undefined; bookingItemId?: string | null | undefined; operatorId?: string | null | undefined; vehicleId?: string | null | undefined; driverId?: string | null | undefined; serviceDate?: string | null | undefined; scheduledPickupAt?: string | null | undefined; scheduledDropoffAt?: string | null | undefined; actualPickupAt?: string | null | undefined; actualDropoffAt?: string | null | undefined; status?: "cancelled" | "completed" | "assigned" | "draft" | "scheduled" | "en_route" | "arrived" | "picked_up" | "no_show" | undefined; passengerCount?: number | null | undefined; checkedBags?: number | null | undefined; carryOnBags?: number | null | undefined; notes?: string | null | undefined; }; }; output: { error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { id: string; }; } & { json: { transferPreferenceId?: string | undefined; bookingId?: string | undefined; bookingItemId?: string | null | undefined; operatorId?: string | null | undefined; vehicleId?: string | null | undefined; driverId?: string | null | undefined; serviceDate?: string | null | undefined; scheduledPickupAt?: string | null | undefined; scheduledDropoffAt?: string | null | undefined; actualPickupAt?: string | null | undefined; actualDropoffAt?: string | null | undefined; status?: "cancelled" | "completed" | "assigned" | "draft" | "scheduled" | "en_route" | "arrived" | "picked_up" | "no_show" | undefined; passengerCount?: number | null | undefined; checkedBags?: number | null | undefined; carryOnBags?: number | null | undefined; notes?: string | null | undefined; }; }; output: { data: { id: string; transferPreferenceId: string; bookingId: string; bookingItemId: string | null; operatorId: string | null; vehicleId: string | null; driverId: string | null; serviceDate: string | null; scheduledPickupAt: string | null; scheduledDropoffAt: string | null; actualPickupAt: string | null; actualDropoffAt: string | null; status: "cancelled" | "completed" | "assigned" | "draft" | "scheduled" | "en_route" | "arrived" | "picked_up" | "no_show"; passengerCount: number | null; checkedBags: number | null; carryOnBags: number | null; notes: string | null; createdAt: string; updatedAt: string; }; }; outputFormat: "json"; status: 200; }; }; } & { "/dispatches/:id": { $delete: { input: { param: { id: string; }; }; output: { error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { id: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; } & { "/execution-events": { $get: { input: { query: { limit?: unknown; offset?: unknown; dispatchId?: string | undefined; eventType?: "cancelled" | "assigned" | "scheduled" | "driver_en_route" | "driver_arrived" | "pickup_completed" | "dropoff_completed" | "issue" | "note" | undefined; }; }; output: { data: { id: string; dispatchId: string; eventType: "cancelled" | "assigned" | "scheduled" | "driver_en_route" | "driver_arrived" | "pickup_completed" | "dropoff_completed" | "issue" | "note"; occurredAt: string; facilityId: string | null; addressId: string | null; notes: string | null; metadata: { [x: string]: import("hono/utils/types").JSONValue; } | null; createdAt: string; }[]; total: number; limit: number; offset: number; }; outputFormat: "json"; status: 200; }; }; } & { "/execution-events": { $post: { input: { json: { dispatchId: string; eventType?: "cancelled" | "assigned" | "scheduled" | "driver_en_route" | "driver_arrived" | "pickup_completed" | "dropoff_completed" | "issue" | "note" | undefined; occurredAt?: string | null | undefined; facilityId?: string | null | undefined; addressId?: string | null | undefined; notes?: string | null | undefined; metadata?: Record | null | undefined; }; }; output: { error: string; }; outputFormat: "json"; status: 400; } | { input: { json: { dispatchId: string; eventType?: "cancelled" | "assigned" | "scheduled" | "driver_en_route" | "driver_arrived" | "pickup_completed" | "dropoff_completed" | "issue" | "note" | undefined; occurredAt?: string | null | undefined; facilityId?: string | null | undefined; addressId?: string | null | undefined; notes?: string | null | undefined; metadata?: Record | null | undefined; }; }; output: { data: { id: string; dispatchId: string; eventType: "cancelled" | "assigned" | "scheduled" | "driver_en_route" | "driver_arrived" | "pickup_completed" | "dropoff_completed" | "issue" | "note"; occurredAt: string; facilityId: string | null; addressId: string | null; notes: string | null; metadata: { [x: string]: import("hono/utils/types").JSONValue; } | null; createdAt: string; }; }; outputFormat: "json"; status: 201; }; }; } & { "/execution-events/:id": { $get: { input: { param: { id: string; }; }; output: { error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { id: string; }; }; output: { data: { id: string; dispatchId: string; eventType: "cancelled" | "assigned" | "scheduled" | "driver_en_route" | "driver_arrived" | "pickup_completed" | "dropoff_completed" | "issue" | "note"; occurredAt: string; facilityId: string | null; addressId: string | null; notes: string | null; metadata: { [x: string]: import("hono/utils/types").JSONValue; } | null; createdAt: string; }; }; outputFormat: "json"; status: 200; }; }; } & { "/execution-events/:id": { $patch: { input: { param: { id: string; }; } & { json: { dispatchId?: string | undefined; eventType?: "cancelled" | "assigned" | "scheduled" | "driver_en_route" | "driver_arrived" | "pickup_completed" | "dropoff_completed" | "issue" | "note" | undefined; occurredAt?: string | null | undefined; facilityId?: string | null | undefined; addressId?: string | null | undefined; notes?: string | null | undefined; metadata?: Record | null | undefined; }; }; output: { error: string; }; outputFormat: "json"; status: 400; } | { input: { param: { id: string; }; } & { json: { dispatchId?: string | undefined; eventType?: "cancelled" | "assigned" | "scheduled" | "driver_en_route" | "driver_arrived" | "pickup_completed" | "dropoff_completed" | "issue" | "note" | undefined; occurredAt?: string | null | undefined; facilityId?: string | null | undefined; addressId?: string | null | undefined; notes?: string | null | undefined; metadata?: Record | null | undefined; }; }; output: { error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { id: string; }; } & { json: { dispatchId?: string | undefined; eventType?: "cancelled" | "assigned" | "scheduled" | "driver_en_route" | "driver_arrived" | "pickup_completed" | "dropoff_completed" | "issue" | "note" | undefined; occurredAt?: string | null | undefined; facilityId?: string | null | undefined; addressId?: string | null | undefined; notes?: string | null | undefined; metadata?: Record | null | undefined; }; }; output: { data: { id: string; dispatchId: string; eventType: "cancelled" | "assigned" | "scheduled" | "driver_en_route" | "driver_arrived" | "pickup_completed" | "dropoff_completed" | "issue" | "note"; occurredAt: string; facilityId: string | null; addressId: string | null; notes: string | null; metadata: { [x: string]: import("hono/utils/types").JSONValue; } | null; createdAt: string; }; }; outputFormat: "json"; status: 200; }; }; } & { "/execution-events/:id": { $delete: { input: { param: { id: string; }; }; output: { error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { id: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; }, "/"> & import("hono/types").MergeSchemaPath<{ "/drivers": { $get: { input: { query: { limit?: unknown; offset?: unknown; resourceId?: string | undefined; operatorId?: string | undefined; active?: "0" | "1" | "true" | "false" | undefined; }; }; output: { data: { id: string; resourceId: string; operatorId: string | null; licenseNumber: string | null; spokenLanguages: string[]; isGuide: boolean; isMeetAndGreetCapable: boolean; active: boolean; notes: string | null; createdAt: string; updatedAt: string; }[]; total: number; limit: number; offset: number; }; outputFormat: "json"; status: 200; }; }; } & { "/drivers": { $post: { input: { json: { resourceId: string; operatorId?: string | null | undefined; licenseNumber?: string | null | undefined; spokenLanguages?: string[] | undefined; isGuide?: boolean | undefined; isMeetAndGreetCapable?: boolean | undefined; active?: boolean | undefined; notes?: string | null | undefined; }; }; output: { error: string; }; outputFormat: "json"; status: 400; } | { input: { json: { resourceId: string; operatorId?: string | null | undefined; licenseNumber?: string | null | undefined; spokenLanguages?: string[] | undefined; isGuide?: boolean | undefined; isMeetAndGreetCapable?: boolean | undefined; active?: boolean | undefined; notes?: string | null | undefined; }; }; output: { data: { id: string; resourceId: string; operatorId: string | null; licenseNumber: string | null; spokenLanguages: string[]; isGuide: boolean; isMeetAndGreetCapable: boolean; active: boolean; notes: string | null; createdAt: string; updatedAt: string; }; }; outputFormat: "json"; status: 201; }; }; } & { "/drivers/:id": { $get: { input: { param: { id: string; }; }; output: { error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { id: string; }; }; output: { data: { id: string; resourceId: string; operatorId: string | null; licenseNumber: string | null; spokenLanguages: string[]; isGuide: boolean; isMeetAndGreetCapable: boolean; active: boolean; notes: string | null; createdAt: string; updatedAt: string; }; }; outputFormat: "json"; status: 200; }; }; } & { "/drivers/:id": { $patch: { input: { param: { id: string; }; } & { json: { resourceId?: string | undefined; operatorId?: string | null | undefined; licenseNumber?: string | null | undefined; spokenLanguages?: string[] | undefined; isGuide?: boolean | undefined; isMeetAndGreetCapable?: boolean | undefined; active?: boolean | undefined; notes?: string | null | undefined; }; }; output: { error: string; }; outputFormat: "json"; status: 400; } | { input: { param: { id: string; }; } & { json: { resourceId?: string | undefined; operatorId?: string | null | undefined; licenseNumber?: string | null | undefined; spokenLanguages?: string[] | undefined; isGuide?: boolean | undefined; isMeetAndGreetCapable?: boolean | undefined; active?: boolean | undefined; notes?: string | null | undefined; }; }; output: { error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { id: string; }; } & { json: { resourceId?: string | undefined; operatorId?: string | null | undefined; licenseNumber?: string | null | undefined; spokenLanguages?: string[] | undefined; isGuide?: boolean | undefined; isMeetAndGreetCapable?: boolean | undefined; active?: boolean | undefined; notes?: string | null | undefined; }; }; output: { data: { id: string; resourceId: string; operatorId: string | null; licenseNumber: string | null; spokenLanguages: string[]; isGuide: boolean; isMeetAndGreetCapable: boolean; active: boolean; notes: string | null; createdAt: string; updatedAt: string; }; }; outputFormat: "json"; status: 200; }; }; } & { "/drivers/:id": { $delete: { input: { param: { id: string; }; }; output: { error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { id: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; } & { "/transfer-preferences": { $get: { input: { query: { limit?: unknown; offset?: unknown; bookingId?: string | undefined; bookingItemId?: string | undefined; serviceLevel?: "other" | "private" | "shared" | "vip" | "shuttle" | undefined; }; }; output: { data: { id: string; bookingId: string; bookingItemId: string | null; pickupFacilityId: string | null; dropoffFacilityId: string | null; pickupAddressId: string | null; dropoffAddressId: string | null; requestedVehicleCategory: "other" | "car" | "sedan" | "suv" | "van" | "minibus" | "bus" | "boat" | "train" | null; requestedVehicleClass: "other" | "economy" | "standard" | "premium" | "luxury" | "accessible" | null; serviceLevel: "other" | "private" | "shared" | "vip" | "shuttle"; passengerCount: number | null; checkedBags: number | null; carryOnBags: number | null; wheelchairCount: number | null; childSeatCount: number | null; driverLanguage: string | null; meetAndGreet: boolean; accessibilityNotes: string | null; pickupNotes: string | null; dropoffNotes: string | null; notes: string | null; createdAt: string; updatedAt: string; }[]; total: number; limit: number; offset: number; }; outputFormat: "json"; status: 200; }; }; } & { "/transfer-preferences": { $post: { input: { json: { bookingId: string; bookingItemId?: string | null | undefined; pickupFacilityId?: string | null | undefined; dropoffFacilityId?: string | null | undefined; pickupAddressId?: string | null | undefined; dropoffAddressId?: string | null | undefined; requestedVehicleCategory?: "other" | "car" | "sedan" | "suv" | "van" | "minibus" | "bus" | "boat" | "train" | null | undefined; requestedVehicleClass?: "other" | "economy" | "standard" | "premium" | "luxury" | "accessible" | null | undefined; serviceLevel?: "other" | "private" | "shared" | "vip" | "shuttle" | undefined; passengerCount?: number | null | undefined; checkedBags?: number | null | undefined; carryOnBags?: number | null | undefined; wheelchairCount?: number | null | undefined; childSeatCount?: number | null | undefined; driverLanguage?: string | null | undefined; meetAndGreet?: boolean | undefined; accessibilityNotes?: string | null | undefined; pickupNotes?: string | null | undefined; dropoffNotes?: string | null | undefined; notes?: string | null | undefined; }; }; output: { error: string; }; outputFormat: "json"; status: 400; } | { input: { json: { bookingId: string; bookingItemId?: string | null | undefined; pickupFacilityId?: string | null | undefined; dropoffFacilityId?: string | null | undefined; pickupAddressId?: string | null | undefined; dropoffAddressId?: string | null | undefined; requestedVehicleCategory?: "other" | "car" | "sedan" | "suv" | "van" | "minibus" | "bus" | "boat" | "train" | null | undefined; requestedVehicleClass?: "other" | "economy" | "standard" | "premium" | "luxury" | "accessible" | null | undefined; serviceLevel?: "other" | "private" | "shared" | "vip" | "shuttle" | undefined; passengerCount?: number | null | undefined; checkedBags?: number | null | undefined; carryOnBags?: number | null | undefined; wheelchairCount?: number | null | undefined; childSeatCount?: number | null | undefined; driverLanguage?: string | null | undefined; meetAndGreet?: boolean | undefined; accessibilityNotes?: string | null | undefined; pickupNotes?: string | null | undefined; dropoffNotes?: string | null | undefined; notes?: string | null | undefined; }; }; output: { data: { id: string; bookingId: string; bookingItemId: string | null; pickupFacilityId: string | null; dropoffFacilityId: string | null; pickupAddressId: string | null; dropoffAddressId: string | null; requestedVehicleCategory: "other" | "car" | "sedan" | "suv" | "van" | "minibus" | "bus" | "boat" | "train" | null; requestedVehicleClass: "other" | "economy" | "standard" | "premium" | "luxury" | "accessible" | null; serviceLevel: "other" | "private" | "shared" | "vip" | "shuttle"; passengerCount: number | null; checkedBags: number | null; carryOnBags: number | null; wheelchairCount: number | null; childSeatCount: number | null; driverLanguage: string | null; meetAndGreet: boolean; accessibilityNotes: string | null; pickupNotes: string | null; dropoffNotes: string | null; notes: string | null; createdAt: string; updatedAt: string; }; }; outputFormat: "json"; status: 201; }; }; } & { "/transfer-preferences/:id": { $get: { input: { param: { id: string; }; }; output: { error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { id: string; }; }; output: { data: { id: string; bookingId: string; bookingItemId: string | null; pickupFacilityId: string | null; dropoffFacilityId: string | null; pickupAddressId: string | null; dropoffAddressId: string | null; requestedVehicleCategory: "other" | "car" | "sedan" | "suv" | "van" | "minibus" | "bus" | "boat" | "train" | null; requestedVehicleClass: "other" | "economy" | "standard" | "premium" | "luxury" | "accessible" | null; serviceLevel: "other" | "private" | "shared" | "vip" | "shuttle"; passengerCount: number | null; checkedBags: number | null; carryOnBags: number | null; wheelchairCount: number | null; childSeatCount: number | null; driverLanguage: string | null; meetAndGreet: boolean; accessibilityNotes: string | null; pickupNotes: string | null; dropoffNotes: string | null; notes: string | null; createdAt: string; updatedAt: string; }; }; outputFormat: "json"; status: 200; }; }; } & { "/transfer-preferences/:id": { $patch: { input: { param: { id: string; }; } & { json: { bookingId?: string | undefined; bookingItemId?: string | null | undefined; pickupFacilityId?: string | null | undefined; dropoffFacilityId?: string | null | undefined; pickupAddressId?: string | null | undefined; dropoffAddressId?: string | null | undefined; requestedVehicleCategory?: "other" | "car" | "sedan" | "suv" | "van" | "minibus" | "bus" | "boat" | "train" | null | undefined; requestedVehicleClass?: "other" | "economy" | "standard" | "premium" | "luxury" | "accessible" | null | undefined; serviceLevel?: "other" | "private" | "shared" | "vip" | "shuttle" | undefined; passengerCount?: number | null | undefined; checkedBags?: number | null | undefined; carryOnBags?: number | null | undefined; wheelchairCount?: number | null | undefined; childSeatCount?: number | null | undefined; driverLanguage?: string | null | undefined; meetAndGreet?: boolean | undefined; accessibilityNotes?: string | null | undefined; pickupNotes?: string | null | undefined; dropoffNotes?: string | null | undefined; notes?: string | null | undefined; }; }; output: { error: string; }; outputFormat: "json"; status: 400; } | { input: { param: { id: string; }; } & { json: { bookingId?: string | undefined; bookingItemId?: string | null | undefined; pickupFacilityId?: string | null | undefined; dropoffFacilityId?: string | null | undefined; pickupAddressId?: string | null | undefined; dropoffAddressId?: string | null | undefined; requestedVehicleCategory?: "other" | "car" | "sedan" | "suv" | "van" | "minibus" | "bus" | "boat" | "train" | null | undefined; requestedVehicleClass?: "other" | "economy" | "standard" | "premium" | "luxury" | "accessible" | null | undefined; serviceLevel?: "other" | "private" | "shared" | "vip" | "shuttle" | undefined; passengerCount?: number | null | undefined; checkedBags?: number | null | undefined; carryOnBags?: number | null | undefined; wheelchairCount?: number | null | undefined; childSeatCount?: number | null | undefined; driverLanguage?: string | null | undefined; meetAndGreet?: boolean | undefined; accessibilityNotes?: string | null | undefined; pickupNotes?: string | null | undefined; dropoffNotes?: string | null | undefined; notes?: string | null | undefined; }; }; output: { error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { id: string; }; } & { json: { bookingId?: string | undefined; bookingItemId?: string | null | undefined; pickupFacilityId?: string | null | undefined; dropoffFacilityId?: string | null | undefined; pickupAddressId?: string | null | undefined; dropoffAddressId?: string | null | undefined; requestedVehicleCategory?: "other" | "car" | "sedan" | "suv" | "van" | "minibus" | "bus" | "boat" | "train" | null | undefined; requestedVehicleClass?: "other" | "economy" | "standard" | "premium" | "luxury" | "accessible" | null | undefined; serviceLevel?: "other" | "private" | "shared" | "vip" | "shuttle" | undefined; passengerCount?: number | null | undefined; checkedBags?: number | null | undefined; carryOnBags?: number | null | undefined; wheelchairCount?: number | null | undefined; childSeatCount?: number | null | undefined; driverLanguage?: string | null | undefined; meetAndGreet?: boolean | undefined; accessibilityNotes?: string | null | undefined; pickupNotes?: string | null | undefined; dropoffNotes?: string | null | undefined; notes?: string | null | undefined; }; }; output: { data: { id: string; bookingId: string; bookingItemId: string | null; pickupFacilityId: string | null; dropoffFacilityId: string | null; pickupAddressId: string | null; dropoffAddressId: string | null; requestedVehicleCategory: "other" | "car" | "sedan" | "suv" | "van" | "minibus" | "bus" | "boat" | "train" | null; requestedVehicleClass: "other" | "economy" | "standard" | "premium" | "luxury" | "accessible" | null; serviceLevel: "other" | "private" | "shared" | "vip" | "shuttle"; passengerCount: number | null; checkedBags: number | null; carryOnBags: number | null; wheelchairCount: number | null; childSeatCount: number | null; driverLanguage: string | null; meetAndGreet: boolean; accessibilityNotes: string | null; pickupNotes: string | null; dropoffNotes: string | null; notes: string | null; createdAt: string; updatedAt: string; }; }; outputFormat: "json"; status: 200; }; }; } & { "/transfer-preferences/:id": { $delete: { input: { param: { id: string; }; }; output: { error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { id: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; }, "/"> & import("hono/types").MergeSchemaPath<{ "/operators": { $get: { input: { query: { limit?: unknown; offset?: unknown; supplierId?: string | undefined; facilityId?: string | undefined; active?: "0" | "1" | "true" | "false" | undefined; }; }; output: { data: { id: string; supplierId: string | null; facilityId: string | null; name: string; code: string | null; active: boolean; notes: string | null; createdAt: string; updatedAt: string; }[]; total: number; limit: number; offset: number; }; outputFormat: "json"; status: 200; }; }; } & { "/operators": { $post: { input: { json: { name: string; supplierId?: string | null | undefined; facilityId?: string | null | undefined; code?: string | null | undefined; active?: boolean | undefined; notes?: string | null | undefined; }; }; output: { data: { id: string; supplierId: string | null; facilityId: string | null; name: string; code: string | null; active: boolean; notes: string | null; createdAt: string; updatedAt: string; }; }; outputFormat: "json"; status: 201; } | { input: { json: { name: string; supplierId?: string | null | undefined; facilityId?: string | null | undefined; code?: string | null | undefined; active?: boolean | undefined; notes?: string | null | undefined; }; }; output: { error: string; }; outputFormat: "json"; status: 400; }; }; } & { "/operators/:id": { $get: { input: { param: { id: string; }; }; output: { data: { id: string; supplierId: string | null; facilityId: string | null; name: string; code: string | null; active: boolean; notes: string | null; createdAt: string; updatedAt: string; }; }; outputFormat: "json"; status: 200; } | { input: { param: { id: string; }; }; output: { error: string; }; outputFormat: "json"; status: 404; }; }; } & { "/operators/:id": { $patch: { input: { param: { id: string; }; } & { json: { supplierId?: string | null | undefined; facilityId?: string | null | undefined; name?: string | undefined; code?: string | null | undefined; active?: boolean | undefined; notes?: string | null | undefined; }; }; output: { error: string; }; outputFormat: "json"; status: 400; } | { input: { param: { id: string; }; } & { json: { supplierId?: string | null | undefined; facilityId?: string | null | undefined; name?: string | undefined; code?: string | null | undefined; active?: boolean | undefined; notes?: string | null | undefined; }; }; output: { error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { id: string; }; } & { json: { supplierId?: string | null | undefined; facilityId?: string | null | undefined; name?: string | undefined; code?: string | null | undefined; active?: boolean | undefined; notes?: string | null | undefined; }; }; output: { data: { id: string; supplierId: string | null; facilityId: string | null; name: string; code: string | null; active: boolean; notes: string | null; createdAt: string; updatedAt: string; }; }; outputFormat: "json"; status: 200; }; }; } & { "/operators/:id": { $delete: { input: { param: { id: string; }; }; output: { error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { id: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; } & { "/vehicles": { $get: { input: { query: { limit?: unknown; offset?: unknown; resourceId?: string | undefined; operatorId?: string | undefined; category?: "other" | "car" | "sedan" | "suv" | "van" | "minibus" | "bus" | "boat" | "train" | undefined; active?: "0" | "1" | "true" | "false" | undefined; }; }; output: { data: { id: string; resourceId: string; operatorId: string | null; category: "other" | "car" | "sedan" | "suv" | "van" | "minibus" | "bus" | "boat" | "train"; vehicleClass: "other" | "economy" | "standard" | "premium" | "luxury" | "accessible"; passengerCapacity: number | null; checkedBagCapacity: number | null; carryOnCapacity: number | null; wheelchairCapacity: number | null; childSeatCapacity: number | null; isAccessible: boolean; active: boolean; notes: string | null; createdAt: string; updatedAt: string; }[]; total: number; limit: number; offset: number; }; outputFormat: "json"; status: 200; }; }; } & { "/vehicles": { $post: { input: { json: { resourceId: string; operatorId?: string | null | undefined; category?: "other" | "car" | "sedan" | "suv" | "van" | "minibus" | "bus" | "boat" | "train" | undefined; vehicleClass?: "other" | "economy" | "standard" | "premium" | "luxury" | "accessible" | undefined; passengerCapacity?: number | null | undefined; checkedBagCapacity?: number | null | undefined; carryOnCapacity?: number | null | undefined; wheelchairCapacity?: number | null | undefined; childSeatCapacity?: number | null | undefined; isAccessible?: boolean | undefined; active?: boolean | undefined; notes?: string | null | undefined; }; }; output: { error: string; }; outputFormat: "json"; status: 400; } | { input: { json: { resourceId: string; operatorId?: string | null | undefined; category?: "other" | "car" | "sedan" | "suv" | "van" | "minibus" | "bus" | "boat" | "train" | undefined; vehicleClass?: "other" | "economy" | "standard" | "premium" | "luxury" | "accessible" | undefined; passengerCapacity?: number | null | undefined; checkedBagCapacity?: number | null | undefined; carryOnCapacity?: number | null | undefined; wheelchairCapacity?: number | null | undefined; childSeatCapacity?: number | null | undefined; isAccessible?: boolean | undefined; active?: boolean | undefined; notes?: string | null | undefined; }; }; output: { data: { id: string; resourceId: string; operatorId: string | null; category: "other" | "car" | "sedan" | "suv" | "van" | "minibus" | "bus" | "boat" | "train"; vehicleClass: "other" | "economy" | "standard" | "premium" | "luxury" | "accessible"; passengerCapacity: number | null; checkedBagCapacity: number | null; carryOnCapacity: number | null; wheelchairCapacity: number | null; childSeatCapacity: number | null; isAccessible: boolean; active: boolean; notes: string | null; createdAt: string; updatedAt: string; }; }; outputFormat: "json"; status: 201; }; }; } & { "/vehicles/:id": { $get: { input: { param: { id: string; }; }; output: { error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { id: string; }; }; output: { data: { id: string; resourceId: string; operatorId: string | null; category: "other" | "car" | "sedan" | "suv" | "van" | "minibus" | "bus" | "boat" | "train"; vehicleClass: "other" | "economy" | "standard" | "premium" | "luxury" | "accessible"; passengerCapacity: number | null; checkedBagCapacity: number | null; carryOnCapacity: number | null; wheelchairCapacity: number | null; childSeatCapacity: number | null; isAccessible: boolean; active: boolean; notes: string | null; createdAt: string; updatedAt: string; }; }; outputFormat: "json"; status: 200; }; }; } & { "/vehicles/:id": { $patch: { input: { param: { id: string; }; } & { json: { resourceId?: string | undefined; operatorId?: string | null | undefined; category?: "other" | "car" | "sedan" | "suv" | "van" | "minibus" | "bus" | "boat" | "train" | undefined; vehicleClass?: "other" | "economy" | "standard" | "premium" | "luxury" | "accessible" | undefined; passengerCapacity?: number | null | undefined; checkedBagCapacity?: number | null | undefined; carryOnCapacity?: number | null | undefined; wheelchairCapacity?: number | null | undefined; childSeatCapacity?: number | null | undefined; isAccessible?: boolean | undefined; active?: boolean | undefined; notes?: string | null | undefined; }; }; output: { error: string; }; outputFormat: "json"; status: 400; } | { input: { param: { id: string; }; } & { json: { resourceId?: string | undefined; operatorId?: string | null | undefined; category?: "other" | "car" | "sedan" | "suv" | "van" | "minibus" | "bus" | "boat" | "train" | undefined; vehicleClass?: "other" | "economy" | "standard" | "premium" | "luxury" | "accessible" | undefined; passengerCapacity?: number | null | undefined; checkedBagCapacity?: number | null | undefined; carryOnCapacity?: number | null | undefined; wheelchairCapacity?: number | null | undefined; childSeatCapacity?: number | null | undefined; isAccessible?: boolean | undefined; active?: boolean | undefined; notes?: string | null | undefined; }; }; output: { error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { id: string; }; } & { json: { resourceId?: string | undefined; operatorId?: string | null | undefined; category?: "other" | "car" | "sedan" | "suv" | "van" | "minibus" | "bus" | "boat" | "train" | undefined; vehicleClass?: "other" | "economy" | "standard" | "premium" | "luxury" | "accessible" | undefined; passengerCapacity?: number | null | undefined; checkedBagCapacity?: number | null | undefined; carryOnCapacity?: number | null | undefined; wheelchairCapacity?: number | null | undefined; childSeatCapacity?: number | null | undefined; isAccessible?: boolean | undefined; active?: boolean | undefined; notes?: string | null | undefined; }; }; output: { data: { id: string; resourceId: string; operatorId: string | null; category: "other" | "car" | "sedan" | "suv" | "van" | "minibus" | "bus" | "boat" | "train"; vehicleClass: "other" | "economy" | "standard" | "premium" | "luxury" | "accessible"; passengerCapacity: number | null; checkedBagCapacity: number | null; carryOnCapacity: number | null; wheelchairCapacity: number | null; childSeatCapacity: number | null; isAccessible: boolean; active: boolean; notes: string | null; createdAt: string; updatedAt: string; }; }; outputFormat: "json"; status: 200; }; }; } & { "/vehicles/:id": { $delete: { input: { param: { id: string; }; }; output: { error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { id: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; }, "/">, "/">; export type GroundRoutes = typeof groundRoutes; export {};