/** * This file was auto-generated by openapi-typescript. * Do not make direct changes to the file. */ export interface paths { "/sync/audit/commits": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * List sync commits for audit UI * @description Returns commit-level audit history scoped to the authenticated partition. */ get: operations["getSyncAuditCommits"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/sync/audit/commits/{commitSeq}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * Read a sync commit with emitted changes * @description Returns commit metadata and change rows for one commit within the authenticated partition. */ get: operations["getSyncAuditCommitsByCommitSeq"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/sync": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Combined push and pull * @description Perform push and/or pull in a single request to reduce round-trips */ post: operations["postSync"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/sync/snapshot-chunks/{chunkId}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * Download snapshot chunk * @description Download an encoded bootstrap snapshot chunk */ get: operations["getSyncSnapshotChunksByChunkId"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/console/stats": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** Get sync statistics */ get: operations["getConsoleStats"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/console/stats/timeseries": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** Get time-series statistics */ get: operations["getConsoleStatsTimeseries"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/console/stats/latency": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** Get latency percentiles */ get: operations["getConsoleStatsLatency"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/console/timeline": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** List timeline items */ get: operations["getConsoleTimeline"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/console/commits": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** List commits */ get: operations["getConsoleCommits"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/console/commits/{seq}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** Get commit details */ get: operations["getConsoleCommitsBySeq"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/console/clients": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** List clients */ get: operations["getConsoleClients"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/console/handlers": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** List registered handlers */ get: operations["getConsoleHandlers"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/console/operations": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** List operation audit events */ get: operations["getConsoleOperations"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/console/prune/preview": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** Preview pruning */ post: operations["postConsolePrunePreview"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/console/prune": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** Trigger pruning */ post: operations["postConsolePrune"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/console/compact": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** Trigger compaction */ post: operations["postConsoleCompact"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/console/notify-data-change": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Notify external data change * @description Creates a synthetic commit to force re-bootstrap for affected tables. Use after pipeline imports or direct DB writes to notify connected clients. */ post: operations["postConsoleNotifyDataChange"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/console/clients/{id}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post?: never; /** Evict client */ delete: operations["deleteConsoleClientsById"]; options?: never; head?: never; patch?: never; trace?: never; }; "/console/events": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** List request events */ get: operations["getConsoleEvents"]; put?: never; post?: never; /** Clear all events */ delete: operations["deleteConsoleEvents"]; options?: never; head?: never; patch?: never; trace?: never; }; "/console/events/{id}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** Get event details */ get: operations["getConsoleEventsById"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/console/events/{id}/payload": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** Get event payload snapshot */ get: operations["getConsoleEventsByIdPayload"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/console/events/prune": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** Prune old events */ post: operations["postConsoleEventsPrune"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/console/api-keys": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** List API keys */ get: operations["getConsoleApiKeys"]; put?: never; /** Create API key */ post: operations["postConsoleApiKeys"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/console/api-keys/{id}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** Get API key */ get: operations["getConsoleApiKeysById"]; put?: never; post?: never; /** Revoke API key */ delete: operations["deleteConsoleApiKeysById"]; options?: never; head?: never; patch?: never; trace?: never; }; "/console/api-keys/bulk-revoke": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** Bulk revoke API keys */ post: operations["postConsoleApiKeysBulkRevoke"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/console/api-keys/{id}/rotate/stage": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** Stage rotate API key */ post: operations["postConsoleApiKeysByIdRotateStage"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/console/api-keys/{id}/rotate": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** Rotate API key */ post: operations["postConsoleApiKeysByIdRotate"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/console/storage": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** List storage items */ get: operations["getConsoleStorage"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/console/storage/{key}/download": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** Download a storage item */ get: operations["getConsoleStorageByKeyDownload"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/console/storage/{key}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post?: never; /** Delete a storage item */ delete: operations["deleteConsoleStorageByKey"]; options?: never; head?: never; patch?: never; trace?: never; }; "/sync/blobs/upload": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Initiate blob upload * @description Initiates a blob upload and returns a presigned URL for uploading */ post: operations["postSyncBlobsUpload"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/sync/blobs/{hash}/complete": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; /** * Complete blob upload * @description Marks a blob upload as complete after the client has uploaded to the presigned URL */ post: operations["postSyncBlobsByHashComplete"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/sync/blobs/{hash}/url": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; /** * Get blob download URL * @description Returns a presigned URL for downloading a blob */ get: operations["getSyncBlobsByHashUrl"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; } export type webhooks = Record; export interface components { schemas: never; responses: never; parameters: never; requestBodies: never; headers: never; pathItems: never; } export type $defs = Record; export interface operations { getSyncAuditCommits: { parameters: { query?: { limit?: number; beforeCommitSeq?: number; actorId?: string; table?: string; from?: string; to?: string; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Commit audit history */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** @constant */ ok: true; commits: { commitSeq: number; actorId: string; clientId: string; clientCommitId: string; createdAt: string; changeCount: number; affectedTables: string[]; }[]; nextCursor: number | null; }; }; }; /** @description Unauthenticated */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; code?: string; }; }; }; }; }; getSyncAuditCommitsByCommitSeq: { parameters: { query?: never; header?: never; path: { commitSeq: number; }; cookie?: never; }; requestBody?: never; responses: { /** @description Commit audit detail */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** @constant */ ok: true; commit: { commitSeq: number; actorId: string; clientId: string; clientCommitId: string; createdAt: string; changeCount: number; affectedTables: string[]; }; changes: { changeId: number; table: string; rowId: string; /** @enum {string} */ op: "upsert" | "delete"; rowVersion: number | null; rowJson: unknown | null; scopes: unknown; }[]; }; }; }; /** @description Unauthenticated */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; code?: string; }; }; }; /** @description Commit not found */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; code?: string; }; }; }; }; }; postSync: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: { content: { "application/json": { clientId: string; push?: { commits: { clientCommitId: string; operations: { table: string; row_id: string; /** @enum {string} */ op: "upsert" | "delete"; payload: { [key: string]: unknown; } | null; base_version?: number | null; }[]; schemaVersion: number; }[]; }; pull?: { limitCommits: number; limitSnapshotRows?: number; maxSnapshotPages?: number; dedupeRows?: boolean; subscriptions: { id: string; table: string; scopes: { [key: string]: string | string[]; }; params?: { [key: string]: unknown; }; cursor: number; bootstrapState?: { asOfCommitSeq: number; tables: string[]; tableIndex: number; rowCursor: string | null; } | null; }[]; }; }; }; }; responses: { /** @description Combined sync response */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** @constant */ ok: true; push?: { /** @constant */ ok: true; commits: { /** @constant */ ok: true; /** @enum {string} */ status: "applied" | "cached" | "rejected"; commitSeq?: number; results: ({ opIndex: number; /** @constant */ status: "applied"; } | { opIndex: number; /** @constant */ status: "conflict"; message: string; server_version: number; server_row: unknown; } | { opIndex: number; /** @constant */ status: "error"; error: string; code?: string; retriable?: boolean; })[]; clientCommitId: string; }[]; }; pull?: { /** @constant */ ok: true; subscriptions: { id: string; /** @enum {string} */ status: "active" | "revoked"; scopes: { [key: string]: string | string[]; }; bootstrap: boolean; bootstrapState?: { asOfCommitSeq: number; tables: string[]; tableIndex: number; rowCursor: string | null; } | null; nextCursor: number; commits: { commitSeq: number; createdAt: string; actorId: string; changes: { table: string; row_id: string; /** @enum {string} */ op: "upsert" | "delete"; row_json: unknown | null; row_version: number | null; scopes: { [key: string]: string; }; }[]; }[]; snapshots?: { table: string; rows: unknown[]; chunks?: { id: string; byteLength: number; sha256: string; /** @constant */ encoding: "json-row-frame-v1"; /** @constant */ compression: "gzip"; }[]; isFirstPage: boolean; isLastPage: boolean; }[]; }[]; }; }; }; }; /** @description Invalid request */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; code?: string; }; }; }; /** @description Unauthenticated */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; code?: string; }; }; }; }; }; getSyncSnapshotChunksByChunkId: { parameters: { query?: { scopes?: string; }; header?: never; path: { chunkId: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Snapshot chunk data (gzip-compressed framed JSON rows) */ 200: { headers: { [name: string]: unknown; }; content: { "application/octet-stream": string; }; }; /** @description Not modified (cached) */ 304: { headers: { [name: string]: unknown; }; content?: never; }; /** @description Unauthenticated */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; code?: string; }; }; }; /** @description Forbidden */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; code?: string; }; }; }; /** @description Not found */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; code?: string; }; }; }; }; }; getConsoleStats: { parameters: { query?: { partitionId?: string; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Sync statistics */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { commitCount: number; changeCount: number; minCommitSeq: number; maxCommitSeq: number; clientCount: number; activeClientCount: number; minActiveClientCursor: number | null; maxActiveClientCursor: number | null; }; }; }; /** @description Unauthenticated */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; }; }; getConsoleStatsTimeseries: { parameters: { query?: { interval?: "minute" | "hour" | "day"; range?: "1h" | "6h" | "24h" | "7d" | "30d"; partitionId?: string; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Time-series statistics */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { buckets: { timestamp: string; pushCount: number; pullCount: number; errorCount: number; avgLatencyMs: number; }[]; /** @enum {string} */ interval: "minute" | "hour" | "day"; /** @enum {string} */ range: "1h" | "6h" | "24h" | "7d" | "30d"; }; }; }; /** @description Unauthenticated */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; }; }; getConsoleStatsLatency: { parameters: { query?: { range?: "1h" | "6h" | "24h" | "7d" | "30d"; partitionId?: string; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Latency percentiles */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { push: { p50: number; p90: number; p99: number; }; pull: { p50: number; p90: number; p99: number; }; /** @enum {string} */ range: "1h" | "6h" | "24h" | "7d" | "30d"; }; }; }; /** @description Unauthenticated */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; }; }; getConsoleTimeline: { parameters: { query?: { limit?: number; offset?: number; partitionId?: string; view?: "all" | "commits" | "events"; eventType?: "push" | "pull"; actorId?: string; clientId?: string; requestId?: string; traceId?: string; table?: string; outcome?: string; search?: string; from?: string; to?: string; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Paginated merged timeline */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { items: { /** @enum {string} */ type: "commit" | "event"; timestamp: string; commit: { commitSeq: number; actorId: string; clientId: string; clientCommitId: string; createdAt: string; changeCount: number; affectedTables: string[]; } | null; event: { eventId: number; partitionId: string; requestId: string; traceId: string | null; spanId: string | null; /** @enum {string} */ eventType: "push" | "pull"; /** @enum {string} */ syncPath: "http-combined" | "ws-push"; /** @enum {string} */ transportPath: "direct" | "relay"; actorId: string; clientId: string; statusCode: number; outcome: string; responseStatus: string; errorCode: string | null; durationMs: number; commitSeq: number | null; operationCount: number | null; rowCount: number | null; subscriptionCount: number | null; scopesSummary: { [key: string]: string | string[]; } | null; tables: string[]; errorMessage: string | null; payloadRef: string | null; createdAt: string; } | null; }[]; total: number; offset: number; limit: number; }; }; }; /** @description Unauthenticated */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; }; }; getConsoleCommits: { parameters: { query?: { limit?: number; offset?: number; partitionId?: string; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Paginated commit list */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { items: { commitSeq: number; actorId: string; clientId: string; clientCommitId: string; createdAt: string; changeCount: number; affectedTables: string[]; }[]; total: number; offset: number; limit: number; }; }; }; /** @description Unauthenticated */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; }; }; getConsoleCommitsBySeq: { parameters: { query?: { partitionId?: string; }; header?: never; path: { seq: number; }; cookie?: never; }; requestBody?: never; responses: { /** @description Commit with changes */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { commitSeq: number; actorId: string; clientId: string; clientCommitId: string; createdAt: string; changeCount: number; affectedTables: string[]; changes: { changeId: number; table: string; rowId: string; /** @enum {string} */ op: "upsert" | "delete"; rowJson: unknown | null; rowVersion: number | null; scopes: { [key: string]: unknown; }; }[]; }; }; }; /** @description Invalid request */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; /** @description Unauthenticated */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; /** @description Not found */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; }; }; getConsoleClients: { parameters: { query?: { limit?: number; offset?: number; partitionId?: string; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Paginated client list */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { items: { clientId: string; actorId: string; cursor: number; lagCommitCount: number; /** @enum {string} */ connectionPath: "direct" | "relay"; /** @enum {string} */ connectionMode: "polling" | "realtime"; realtimeConnectionCount: number; isRealtimeConnected: boolean; /** @enum {string} */ activityState: "active" | "idle" | "stale"; lastRequestAt: string | null; lastRequestType: ("push" | "pull") | null; lastRequestOutcome: string | null; effectiveScopes: { [key: string]: unknown; }; updatedAt: string; }[]; total: number; offset: number; limit: number; }; }; }; /** @description Unauthenticated */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; }; }; getConsoleHandlers: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Handler list */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { items: { table: string; dependsOn?: string[]; snapshotChunkTtlMs?: number; }[]; }; }; }; /** @description Unauthenticated */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; }; }; getConsoleOperations: { parameters: { query?: { limit?: number; offset?: number; partitionId?: string; operationType?: "prune" | "compact" | "notify_data_change" | "evict_client"; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Paginated operation events */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { items: { operationId: number; /** @enum {string} */ operationType: "prune" | "compact" | "notify_data_change" | "evict_client"; consoleUserId: string | null; partitionId: string | null; targetClientId: string | null; requestPayload: unknown | null; resultPayload: unknown | null; createdAt: string; }[]; total: number; offset: number; limit: number; }; }; }; /** @description Unauthenticated */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; }; }; postConsolePrunePreview: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Prune preview */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { watermarkCommitSeq: number; commitsToDelete: number; }; }; }; /** @description Unauthenticated */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; }; }; postConsolePrune: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Prune result */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { deletedCommits: number; }; }; }; /** @description Unauthenticated */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; }; }; postConsoleCompact: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Compact result */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { deletedChanges: number; }; }; }; /** @description Unauthenticated */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; }; }; postConsoleNotifyDataChange: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: { content: { "application/json": { tables: string[]; partitionId?: string; }; }; }; responses: { /** @description Notification result */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { commitSeq: number; tables: string[]; deletedChunks: number; }; }; }; /** @description Invalid request */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; /** @description Unauthenticated */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; }; }; deleteConsoleClientsById: { parameters: { query?: { partitionId?: string; }; header?: never; path: { id: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Evict result */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { evicted: boolean; }; }; }; /** @description Invalid request */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; /** @description Unauthenticated */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; }; }; getConsoleEvents: { parameters: { query?: { limit?: number; offset?: number; partitionId?: string; eventType?: "push" | "pull"; actorId?: string; clientId?: string; requestId?: string; traceId?: string; outcome?: string; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Paginated event list */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { items: { eventId: number; partitionId: string; requestId: string; traceId: string | null; spanId: string | null; /** @enum {string} */ eventType: "push" | "pull"; /** @enum {string} */ syncPath: "http-combined" | "ws-push"; /** @enum {string} */ transportPath: "direct" | "relay"; actorId: string; clientId: string; statusCode: number; outcome: string; responseStatus: string; errorCode: string | null; durationMs: number; commitSeq: number | null; operationCount: number | null; rowCount: number | null; subscriptionCount: number | null; scopesSummary: { [key: string]: string | string[]; } | null; tables: string[]; errorMessage: string | null; payloadRef: string | null; createdAt: string; }[]; total: number; offset: number; limit: number; }; }; }; /** @description Unauthenticated */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; }; }; deleteConsoleEvents: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Clear result */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { deletedCount: number; }; }; }; /** @description Unauthenticated */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; }; }; getConsoleEventsById: { parameters: { query?: { partitionId?: string; }; header?: never; path: { id: number; }; cookie?: never; }; requestBody?: never; responses: { /** @description Event details */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { eventId: number; partitionId: string; requestId: string; traceId: string | null; spanId: string | null; /** @enum {string} */ eventType: "push" | "pull"; /** @enum {string} */ syncPath: "http-combined" | "ws-push"; /** @enum {string} */ transportPath: "direct" | "relay"; actorId: string; clientId: string; statusCode: number; outcome: string; responseStatus: string; errorCode: string | null; durationMs: number; commitSeq: number | null; operationCount: number | null; rowCount: number | null; subscriptionCount: number | null; scopesSummary: { [key: string]: string | string[]; } | null; tables: string[]; errorMessage: string | null; payloadRef: string | null; createdAt: string; }; }; }; /** @description Invalid request */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; /** @description Unauthenticated */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; /** @description Not found */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; }; }; getConsoleEventsByIdPayload: { parameters: { query?: { partitionId?: string; }; header?: never; path: { id: number; }; cookie?: never; }; requestBody?: never; responses: { /** @description Payload snapshot details */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { payloadRef: string; partitionId: string; requestPayload: unknown; responsePayload: unknown | null; createdAt: string; }; }; }; /** @description Invalid request */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; /** @description Unauthenticated */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; /** @description Not found */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; }; }; postConsoleEventsPrune: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Prune result */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { deletedCount: number; }; }; }; /** @description Unauthenticated */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; }; }; getConsoleApiKeys: { parameters: { query?: { limit?: number; offset?: number; type?: "relay" | "proxy" | "admin"; status?: "active" | "revoked" | "expiring"; expiresWithinDays?: number; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Paginated API key list */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { items: { keyId: string; keyPrefix: string; name: string; /** @enum {string} */ keyType: "relay" | "proxy" | "admin"; scopeKeys: string[]; actorId: string | null; createdAt: string; expiresAt: string | null; lastUsedAt: string | null; revokedAt: string | null; }[]; total: number; offset: number; limit: number; }; }; }; /** @description Unauthenticated */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; }; }; postConsoleApiKeys: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: { content: { "application/json": { name: string; /** @enum {string} */ keyType: "relay" | "proxy" | "admin"; scopeKeys?: string[]; actorId?: string; expiresInDays?: number; }; }; }; responses: { /** @description Created API key */ 201: { headers: { [name: string]: unknown; }; content: { "application/json": { key: { keyId: string; keyPrefix: string; name: string; /** @enum {string} */ keyType: "relay" | "proxy" | "admin"; scopeKeys: string[]; actorId: string | null; createdAt: string; expiresAt: string | null; lastUsedAt: string | null; revokedAt: string | null; }; secretKey: string; }; }; }; /** @description Invalid request */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; /** @description Unauthenticated */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; }; }; getConsoleApiKeysById: { parameters: { query?: never; header?: never; path: { id: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description API key details */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { keyId: string; keyPrefix: string; name: string; /** @enum {string} */ keyType: "relay" | "proxy" | "admin"; scopeKeys: string[]; actorId: string | null; createdAt: string; expiresAt: string | null; lastUsedAt: string | null; revokedAt: string | null; }; }; }; /** @description Unauthenticated */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; /** @description Not found */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; }; }; deleteConsoleApiKeysById: { parameters: { query?: never; header?: never; path: { id: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Revoke result */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { revoked: boolean; }; }; }; /** @description Unauthenticated */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; }; }; postConsoleApiKeysBulkRevoke: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: { content: { "application/json": { keyIds: string[]; }; }; }; responses: { /** @description Bulk revoke result */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { requestedCount: number; revokedCount: number; alreadyRevokedCount: number; notFoundCount: number; revokedKeyIds: string[]; alreadyRevokedKeyIds: string[]; notFoundKeyIds: string[]; }; }; }; /** @description Invalid request */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; /** @description Unauthenticated */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; }; }; postConsoleApiKeysByIdRotateStage: { parameters: { query?: never; header?: never; path: { id: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Staged API key replacement */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { key: { keyId: string; keyPrefix: string; name: string; /** @enum {string} */ keyType: "relay" | "proxy" | "admin"; scopeKeys: string[]; actorId: string | null; createdAt: string; expiresAt: string | null; lastUsedAt: string | null; revokedAt: string | null; }; secretKey: string; }; }; }; /** @description Unauthenticated */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; /** @description Not found */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; }; }; postConsoleApiKeysByIdRotate: { parameters: { query?: never; header?: never; path: { id: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Rotated API key */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { key: { keyId: string; keyPrefix: string; name: string; /** @enum {string} */ keyType: "relay" | "proxy" | "admin"; scopeKeys: string[]; actorId: string | null; createdAt: string; expiresAt: string | null; lastUsedAt: string | null; revokedAt: string | null; }; secretKey: string; }; }; }; /** @description Unauthenticated */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; /** @description Not found */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; }; }; getConsoleStorage: { parameters: { query?: { prefix?: string; cursor?: string; limit?: number; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Paginated list of storage items */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { items: { key: string; size: number; uploaded: string; httpMetadata?: { contentType?: string; }; }[]; truncated: boolean; cursor: string | null; }; }; }; /** @description Unauthenticated */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; }; }; getConsoleStorageByKeyDownload: { parameters: { query?: never; header?: never; path: { key: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Storage item contents */ 200: { headers: { [name: string]: unknown; }; content?: never; }; /** @description Unauthenticated */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; /** @description Blob not found */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; }; }; deleteConsoleStorageByKey: { parameters: { query?: never; header?: never; path: { key: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Storage item deleted */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { deleted: boolean; }; }; }; /** @description Unauthenticated */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; }; }; }; }; }; postSyncBlobsUpload: { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: { content: { "application/json": { hash: string; size: number; mimeType: string; }; }; }; responses: { /** @description Upload initiated (or blob already exists) */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { exists: boolean; uploadId?: string; /** Format: uri */ uploadUrl?: string; /** @enum {string} */ uploadMethod?: "PUT" | "POST"; uploadHeaders?: { [key: string]: string; }; chunkSize?: number; }; }; }; /** @description Invalid request */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; code?: string; }; }; }; /** @description Unauthenticated */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; code?: string; }; }; }; }; }; postSyncBlobsByHashComplete: { parameters: { query?: never; header?: never; path: { hash: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Upload completed */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { ok: boolean; metadata?: { hash: string; size: number; mimeType: string; createdAt: string; expiresAt?: string; uploadComplete: boolean; }; error?: string; }; }; }; /** @description Invalid request or upload failed */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; code?: string; }; }; }; /** @description Unauthenticated */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; code?: string; }; }; }; }; }; getSyncBlobsByHashUrl: { parameters: { query?: never; header?: never; path: { hash: string; }; cookie?: never; }; requestBody?: never; responses: { /** @description Download URL */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uri */ url: string; expiresAt: string; metadata: { hash: string; size: number; mimeType: string; createdAt: string; uploadComplete: boolean; }; }; }; }; /** @description Unauthenticated */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; code?: string; }; }; }; /** @description Forbidden */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; code?: string; }; }; }; /** @description Not found */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": { error: string; message?: string; code?: string; }; }; }; }; }; }