export declare const protobufPackage = "io.channel.datasource.v1"; export declare const TableType: { readonly TABLE_TYPE_UNSPECIFIED: "TABLE_TYPE_UNSPECIFIED"; readonly TABLE_TYPE_TABLE: "TABLE_TYPE_TABLE"; readonly TABLE_TYPE_VIEW: "TABLE_TYPE_VIEW"; readonly TABLE_TYPE_MATERIALIZED_VIEW: "TABLE_TYPE_MATERIALIZED_VIEW"; readonly TABLE_TYPE_EXTERNAL: "TABLE_TYPE_EXTERNAL"; readonly UNRECOGNIZED: "UNRECOGNIZED"; }; export type TableType = typeof TableType[keyof typeof TableType]; export declare namespace TableType { type TABLE_TYPE_UNSPECIFIED = typeof TableType.TABLE_TYPE_UNSPECIFIED; type TABLE_TYPE_TABLE = typeof TableType.TABLE_TYPE_TABLE; type TABLE_TYPE_VIEW = typeof TableType.TABLE_TYPE_VIEW; type TABLE_TYPE_MATERIALIZED_VIEW = typeof TableType.TABLE_TYPE_MATERIALIZED_VIEW; type TABLE_TYPE_EXTERNAL = typeof TableType.TABLE_TYPE_EXTERNAL; type UNRECOGNIZED = typeof TableType.UNRECOGNIZED; } export declare const DataSourceErrorCode: { readonly DATA_SOURCE_ERROR_CODE_UNSPECIFIED: "DATA_SOURCE_ERROR_CODE_UNSPECIFIED"; readonly DATA_SOURCE_ERROR_CODE_UNAVAILABLE: "DATA_SOURCE_ERROR_CODE_UNAVAILABLE"; readonly DATA_SOURCE_ERROR_CODE_UNAUTHENTICATED: "DATA_SOURCE_ERROR_CODE_UNAUTHENTICATED"; readonly DATA_SOURCE_ERROR_CODE_PERMISSION_DENIED: "DATA_SOURCE_ERROR_CODE_PERMISSION_DENIED"; readonly DATA_SOURCE_ERROR_CODE_SOURCE_NOT_FOUND: "DATA_SOURCE_ERROR_CODE_SOURCE_NOT_FOUND"; readonly DATA_SOURCE_ERROR_CODE_QUERY_INVALID: "DATA_SOURCE_ERROR_CODE_QUERY_INVALID"; readonly DATA_SOURCE_ERROR_CODE_QUERY_FAILED: "DATA_SOURCE_ERROR_CODE_QUERY_FAILED"; readonly DATA_SOURCE_ERROR_CODE_LIMIT_EXCEEDED: "DATA_SOURCE_ERROR_CODE_LIMIT_EXCEEDED"; readonly DATA_SOURCE_ERROR_CODE_TIMEOUT: "DATA_SOURCE_ERROR_CODE_TIMEOUT"; readonly DATA_SOURCE_ERROR_CODE_UPSTREAM_AUTH_FAILED: "DATA_SOURCE_ERROR_CODE_UPSTREAM_AUTH_FAILED"; readonly DATA_SOURCE_ERROR_CODE_INTERNAL: "DATA_SOURCE_ERROR_CODE_INTERNAL"; readonly DATA_SOURCE_ERROR_CODE_TABLE_NOT_FOUND: "DATA_SOURCE_ERROR_CODE_TABLE_NOT_FOUND"; readonly DATA_SOURCE_ERROR_CODE_COLUMN_NOT_FOUND: "DATA_SOURCE_ERROR_CODE_COLUMN_NOT_FOUND"; readonly DATA_SOURCE_ERROR_CODE_CANCELLED: "DATA_SOURCE_ERROR_CODE_CANCELLED"; readonly DATA_SOURCE_ERROR_CODE_RESOURCE_EXHAUSTED: "DATA_SOURCE_ERROR_CODE_RESOURCE_EXHAUSTED"; readonly DATA_SOURCE_ERROR_CODE_INVALID_ARGUMENT: "DATA_SOURCE_ERROR_CODE_INVALID_ARGUMENT"; readonly DATA_SOURCE_ERROR_CODE_EXTERNAL_ERROR: "DATA_SOURCE_ERROR_CODE_EXTERNAL_ERROR"; readonly UNRECOGNIZED: "UNRECOGNIZED"; }; export type DataSourceErrorCode = typeof DataSourceErrorCode[keyof typeof DataSourceErrorCode]; export declare namespace DataSourceErrorCode { type DATA_SOURCE_ERROR_CODE_UNSPECIFIED = typeof DataSourceErrorCode.DATA_SOURCE_ERROR_CODE_UNSPECIFIED; type DATA_SOURCE_ERROR_CODE_UNAVAILABLE = typeof DataSourceErrorCode.DATA_SOURCE_ERROR_CODE_UNAVAILABLE; type DATA_SOURCE_ERROR_CODE_UNAUTHENTICATED = typeof DataSourceErrorCode.DATA_SOURCE_ERROR_CODE_UNAUTHENTICATED; type DATA_SOURCE_ERROR_CODE_PERMISSION_DENIED = typeof DataSourceErrorCode.DATA_SOURCE_ERROR_CODE_PERMISSION_DENIED; type DATA_SOURCE_ERROR_CODE_SOURCE_NOT_FOUND = typeof DataSourceErrorCode.DATA_SOURCE_ERROR_CODE_SOURCE_NOT_FOUND; type DATA_SOURCE_ERROR_CODE_QUERY_INVALID = typeof DataSourceErrorCode.DATA_SOURCE_ERROR_CODE_QUERY_INVALID; type DATA_SOURCE_ERROR_CODE_QUERY_FAILED = typeof DataSourceErrorCode.DATA_SOURCE_ERROR_CODE_QUERY_FAILED; type DATA_SOURCE_ERROR_CODE_LIMIT_EXCEEDED = typeof DataSourceErrorCode.DATA_SOURCE_ERROR_CODE_LIMIT_EXCEEDED; type DATA_SOURCE_ERROR_CODE_TIMEOUT = typeof DataSourceErrorCode.DATA_SOURCE_ERROR_CODE_TIMEOUT; type DATA_SOURCE_ERROR_CODE_UPSTREAM_AUTH_FAILED = typeof DataSourceErrorCode.DATA_SOURCE_ERROR_CODE_UPSTREAM_AUTH_FAILED; type DATA_SOURCE_ERROR_CODE_INTERNAL = typeof DataSourceErrorCode.DATA_SOURCE_ERROR_CODE_INTERNAL; type DATA_SOURCE_ERROR_CODE_TABLE_NOT_FOUND = typeof DataSourceErrorCode.DATA_SOURCE_ERROR_CODE_TABLE_NOT_FOUND; type DATA_SOURCE_ERROR_CODE_COLUMN_NOT_FOUND = typeof DataSourceErrorCode.DATA_SOURCE_ERROR_CODE_COLUMN_NOT_FOUND; type DATA_SOURCE_ERROR_CODE_CANCELLED = typeof DataSourceErrorCode.DATA_SOURCE_ERROR_CODE_CANCELLED; type DATA_SOURCE_ERROR_CODE_RESOURCE_EXHAUSTED = typeof DataSourceErrorCode.DATA_SOURCE_ERROR_CODE_RESOURCE_EXHAUSTED; type DATA_SOURCE_ERROR_CODE_INVALID_ARGUMENT = typeof DataSourceErrorCode.DATA_SOURCE_ERROR_CODE_INVALID_ARGUMENT; type DATA_SOURCE_ERROR_CODE_EXTERNAL_ERROR = typeof DataSourceErrorCode.DATA_SOURCE_ERROR_CODE_EXTERNAL_ERROR; type UNRECOGNIZED = typeof DataSourceErrorCode.UNRECOGNIZED; } export interface SessionContext { account?: string | undefined; channelId?: string | undefined; kernelToken?: string | undefined; teamMemberId?: string | undefined; datasourceToken?: string | undefined; } export interface Table { name?: string | undefined; description?: string | undefined; estimatedRowCount?: string | undefined; updatedAt?: string | undefined; tableType?: TableType | undefined; } export interface Column { name?: string | undefined; type?: string | undefined; nullable?: boolean | undefined; description?: string | undefined; partitionKey?: boolean | undefined; precision?: number | undefined; scale?: number | undefined; } export interface TableDefinition { table?: Table | undefined; columns?: Column[] | undefined; primaryKey?: string[] | undefined; } export interface ListTablesRequest { session?: SessionContext | undefined; sourceId?: string | undefined; tableNameFilterPattern?: string | undefined; } export interface ListTablesResponse { tables?: Table[] | undefined; } export interface DescribeTableRequest { session?: SessionContext | undefined; sourceId?: string | undefined; table?: string | undefined; } export interface SearchTablesRequest { session?: SessionContext | undefined; sourceId?: string | undefined; queries?: string[] | undefined; limit?: number | undefined; } export interface SearchTablesResponse { tables?: Table[] | undefined; } export interface ExecuteQueryRequest { session?: SessionContext | undefined; sourceId?: string | undefined; query?: string | undefined; rowLimit?: string | undefined; byteLimit?: string | undefined; timeoutMs?: string | undefined; } export interface ArrowIpcMessage { dataHeader?: Uint8Array | undefined; dataBody?: Uint8Array | undefined; } export interface QueryChunk { arrow?: ArrowIpcMessage | undefined; result?: QueryResult | undefined; error?: DataSourceError | undefined; } export interface QueryResult { rowCount?: string | undefined; limitExceeded?: boolean | undefined; executionMs?: string | undefined; } export interface DataSourceError { code?: DataSourceErrorCode | undefined; message?: string | undefined; retryable?: boolean | undefined; upstream?: UpstreamError | undefined; } export interface UpstreamError { engine?: string | undefined; code?: string | undefined; message?: string | undefined; } //# sourceMappingURL=datasource.d.ts.map