type ColumnType = 'bigserial' | 'boolean' | 'double precision' | 'jsonb' | 'text' | 'text[]' | 'timestamptz' | 'xid8'; interface SignalColumn { name: string; type: ColumnType; nullable?: boolean; defaultSql?: string; } export declare const SPAN_EVENT_COLUMNS: readonly [{ readonly name: 'cursorId'; readonly type: 'bigserial'; }, { readonly name: 'xactId'; readonly type: 'xid8'; readonly defaultSql: 'pg_current_xact_id()'; }, { readonly name: 'traceId'; readonly type: 'text'; }, { readonly name: 'spanId'; readonly type: 'text'; }, { readonly name: 'parentSpanId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'experimentId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'entityType'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'entityId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'entityName'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'entityVersionId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'parentEntityType'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'parentEntityId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'parentEntityName'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'parentEntityVersionId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'rootEntityType'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'rootEntityId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'rootEntityName'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'rootEntityVersionId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'userId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'organizationId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'resourceId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'runId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'sessionId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'threadId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'requestId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'environment'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'executionSource'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'serviceName'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'name'; readonly type: 'text'; }, { readonly name: 'spanType'; readonly type: 'text'; }, { readonly name: 'isEvent'; readonly type: 'boolean'; readonly defaultSql: 'false'; }, { readonly name: 'isPending'; readonly type: 'boolean'; readonly defaultSql: 'false'; }, { readonly name: 'startedAt'; readonly type: 'timestamptz'; }, { readonly name: 'endedAt'; readonly type: 'timestamptz'; }, { readonly name: 'tags'; readonly type: 'text[]'; readonly defaultSql: "'{}'"; }, { readonly name: 'metadataSearch'; readonly type: 'jsonb'; readonly defaultSql: "'{}'::jsonb"; }, { readonly name: 'attributes'; readonly type: 'jsonb'; readonly nullable: true; }, { readonly name: 'scope'; readonly type: 'jsonb'; readonly nullable: true; }, { readonly name: 'links'; readonly type: 'jsonb'; readonly nullable: true; }, { readonly name: 'input'; readonly type: 'jsonb'; readonly nullable: true; }, { readonly name: 'output'; readonly type: 'jsonb'; readonly nullable: true; }, { readonly name: 'error'; readonly type: 'jsonb'; readonly nullable: true; }, { readonly name: 'metadataRaw'; readonly type: 'jsonb'; readonly nullable: true; }, { readonly name: 'requestContext'; readonly type: 'jsonb'; readonly nullable: true; }]; export declare const METRIC_EVENT_COLUMNS: readonly [{ readonly name: 'cursorId'; readonly type: 'bigserial'; }, { readonly name: 'xactId'; readonly type: 'xid8'; readonly defaultSql: 'pg_current_xact_id()'; }, { readonly name: 'metricId'; readonly type: 'text'; }, { readonly name: 'timestamp'; readonly type: 'timestamptz'; }, { readonly name: 'name'; readonly type: 'text'; }, { readonly name: 'value'; readonly type: 'double precision'; }, { readonly name: 'traceId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'spanId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'experimentId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'entityType'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'entityId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'entityName'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'entityVersionId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'parentEntityType'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'parentEntityId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'parentEntityName'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'parentEntityVersionId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'rootEntityType'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'rootEntityId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'rootEntityName'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'rootEntityVersionId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'userId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'organizationId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'resourceId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'runId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'sessionId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'threadId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'requestId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'environment'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'executionSource'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'serviceName'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'provider'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'model'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'estimatedCost'; readonly type: 'double precision'; readonly nullable: true; }, { readonly name: 'costUnit'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'tags'; readonly type: 'text[]'; readonly defaultSql: "'{}'"; }, { readonly name: 'labels'; readonly type: 'jsonb'; readonly defaultSql: "'{}'::jsonb"; }, { readonly name: 'costMetadata'; readonly type: 'jsonb'; readonly nullable: true; }, { readonly name: 'metadata'; readonly type: 'jsonb'; readonly nullable: true; }, { readonly name: 'scope'; readonly type: 'jsonb'; readonly nullable: true; }]; export declare const LOG_EVENT_COLUMNS: readonly [{ readonly name: 'cursorId'; readonly type: 'bigserial'; }, { readonly name: 'xactId'; readonly type: 'xid8'; readonly defaultSql: 'pg_current_xact_id()'; }, { readonly name: 'logId'; readonly type: 'text'; }, { readonly name: 'timestamp'; readonly type: 'timestamptz'; }, { readonly name: 'level'; readonly type: 'text'; }, { readonly name: 'message'; readonly type: 'text'; }, { readonly name: 'traceId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'spanId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'experimentId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'entityType'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'entityId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'entityName'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'entityVersionId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'parentEntityType'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'parentEntityId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'parentEntityName'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'parentEntityVersionId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'rootEntityType'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'rootEntityId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'rootEntityName'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'rootEntityVersionId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'userId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'organizationId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'resourceId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'runId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'sessionId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'threadId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'requestId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'environment'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'executionSource'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'serviceName'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'tags'; readonly type: 'text[]'; readonly defaultSql: "'{}'"; }, { readonly name: 'data'; readonly type: 'jsonb'; readonly nullable: true; }, { readonly name: 'metadata'; readonly type: 'jsonb'; readonly nullable: true; }, { readonly name: 'scope'; readonly type: 'jsonb'; readonly nullable: true; }]; export declare const SCORE_EVENT_COLUMNS: readonly [{ readonly name: 'cursorId'; readonly type: 'bigserial'; }, { readonly name: 'xactId'; readonly type: 'xid8'; readonly defaultSql: 'pg_current_xact_id()'; }, { readonly name: 'scoreId'; readonly type: 'text'; }, { readonly name: 'timestamp'; readonly type: 'timestamptz'; }, { readonly name: 'scorerId'; readonly type: 'text'; }, { readonly name: 'scorerVersion'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'scoreSource'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'score'; readonly type: 'double precision'; }, { readonly name: 'reason'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'traceId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'spanId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'experimentId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'entityType'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'entityId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'entityName'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'entityVersionId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'parentEntityType'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'parentEntityId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'parentEntityName'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'parentEntityVersionId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'rootEntityType'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'rootEntityId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'rootEntityName'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'rootEntityVersionId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'userId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'organizationId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'resourceId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'runId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'sessionId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'threadId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'requestId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'environment'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'executionSource'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'serviceName'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'scoreTraceId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'tags'; readonly type: 'text[]'; readonly defaultSql: "'{}'"; }, { readonly name: 'metadata'; readonly type: 'jsonb'; readonly nullable: true; }, { readonly name: 'scope'; readonly type: 'jsonb'; readonly nullable: true; }]; export declare const FEEDBACK_EVENT_COLUMNS: readonly [{ readonly name: 'cursorId'; readonly type: 'bigserial'; }, { readonly name: 'xactId'; readonly type: 'xid8'; readonly defaultSql: 'pg_current_xact_id()'; }, { readonly name: 'feedbackId'; readonly type: 'text'; }, { readonly name: 'timestamp'; readonly type: 'timestamptz'; }, { readonly name: 'feedbackSource'; readonly type: 'text'; }, { readonly name: 'feedbackType'; readonly type: 'text'; }, { readonly name: 'valueString'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'valueNumber'; readonly type: 'double precision'; readonly nullable: true; }, { readonly name: 'comment'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'feedbackUserId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'sourceId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'reviewStatus'; readonly type: 'text'; readonly defaultSql: "'needs-review'"; }, { readonly name: 'traceId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'spanId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'experimentId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'entityType'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'entityId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'entityName'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'entityVersionId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'parentEntityType'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'parentEntityId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'parentEntityName'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'parentEntityVersionId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'rootEntityType'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'rootEntityId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'rootEntityName'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'rootEntityVersionId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'userId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'organizationId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'resourceId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'runId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'sessionId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'threadId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'requestId'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'environment'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'executionSource'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'serviceName'; readonly type: 'text'; readonly nullable: true; }, { readonly name: 'tags'; readonly type: 'text[]'; readonly defaultSql: "'{}'"; }, { readonly name: 'metadata'; readonly type: 'jsonb'; readonly nullable: true; }, { readonly name: 'scope'; readonly type: 'jsonb'; readonly nullable: true; }]; export declare const SPAN_LIGHT_SELECT_COLUMN_NAMES: readonly ['cursorId', 'xactId', 'traceId', 'spanId', 'parentSpanId', 'name', 'entityType', 'entityId', 'entityName', 'spanType', 'error', 'isEvent', 'isPending', 'startedAt', 'endedAt']; export declare function buildColumnDefinitions(columns: readonly SignalColumn[]): string; export declare function buildSelectColumns(columns: readonly SignalColumn[]): string; export declare function buildNamedSelectColumns(columnNames: readonly string[]): string; export declare const JSONB_COLUMNS: Set; export declare const TEXT_ARRAY_COLUMNS: Set; export declare const METRIC_TYPED_COLUMNS: Set; export declare const SCORE_TYPED_COLUMNS: Set; export declare const FEEDBACK_TYPED_COLUMNS: Set; export {}; //# sourceMappingURL=signal-schema.d.ts.map