import { Part } from "../../types/a2a.js"; import { AppType, ConversationMetadata, MessageContent, MessageMetadata, TaskMetadataConfig } from "../../types/utility.js"; import { account, deviceCode, invitation, jwks, member, oauthAccessToken, oauthClient, oauthClientAssertion, oauthClientResource, oauthConsent, oauthRefreshToken, oauthResource, organization, session, ssoProvider, user, verification } from "../../auth/auth-schema.js"; import { USAGE_GENERATION_TYPES } from "../../constants/otel-attributes.js"; import * as drizzle_orm188 from "drizzle-orm"; import * as drizzle_orm_pg_core2040 from "drizzle-orm/pg-core"; //#region src/db/runtime/runtime-schema.d.ts declare namespace runtime_schema_d_exports { export { GenerationType, USAGE_GENERATION_TYPES, account, apiKeys, apps, coPilotRuns, contextCache, conversations, conversationsRelations, datasetRun, datasetRunConversationRelations, deviceCode, evaluationResult, evaluationRun, events, feedback, feedbackRelations, invitation, invitationProjectAssignment, jwks, ledgerArtifacts, ledgerArtifactsRelations, member, messages, messagesRelations, oauthAccessToken, oauthClient, oauthClientAssertion, oauthClientResource, oauthConsent, oauthRefreshToken, oauthResource, orgEntitlement, organization, projectMetadata, scheduledTriggerInvocations, scheduledTriggerUsers, scheduledTriggers, schedulerState, session, ssoProvider, streamChunks, taskRelations, taskRelationsRelations, tasks, tasksRelations, toolApprovalDecisions, triggerInvocations, user, userProfile, userProfileRelations, verification, workAppGitHubInstallations, workAppGitHubInstallationsRelations, workAppGitHubMcpToolAccessMode, workAppGitHubMcpToolRepositoryAccess, workAppGitHubMcpToolRepositoryAccessRelations, workAppGitHubProjectAccessMode, workAppGitHubProjectRepositoryAccess, workAppGitHubProjectRepositoryAccessRelations, workAppGitHubRepositories, workAppGitHubRepositoriesRelations, workAppSlackChannelAgentConfigs, workAppSlackMcpToolAccessConfig, workAppSlackUserMappings, workAppSlackWorkspaces, workflowExecutions }; } /** * Runtime projects table - source of truth for which projects exist in a tenant. * This is NOT versioned - project existence is tracked here while * project configuration/content lives in the versioned config DB. * * Named 'project_metadata' to avoid conflict with the manage-schema 'projects' table. */ declare const projectMetadata: drizzle_orm_pg_core2040.PgTableWithColumns<{ name: "project_metadata"; schema: undefined; columns: { id: drizzle_orm_pg_core2040.PgColumn<{ name: "id"; tableName: "project_metadata"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; tenantId: drizzle_orm_pg_core2040.PgColumn<{ name: "tenant_id"; tableName: "project_metadata"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; createdAt: drizzle_orm_pg_core2040.PgColumn<{ name: "created_at"; tableName: "project_metadata"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; createdBy: drizzle_orm_pg_core2040.PgColumn<{ name: "created_by"; tableName: "project_metadata"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; mainBranchName: drizzle_orm_pg_core2040.PgColumn<{ name: "main_branch_name"; tableName: "project_metadata"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 512; }>; }; dialect: "pg"; }>; declare const conversations: drizzle_orm_pg_core2040.PgTableWithColumns<{ name: "conversations"; schema: undefined; columns: { createdAt: drizzle_orm_pg_core2040.PgColumn<{ name: "created_at"; tableName: "conversations"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; updatedAt: drizzle_orm_pg_core2040.PgColumn<{ name: "updated_at"; tableName: "conversations"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; userId: drizzle_orm_pg_core2040.PgColumn<{ name: "user_id"; tableName: "conversations"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; agentId: drizzle_orm_pg_core2040.PgColumn<{ name: "agent_id"; tableName: "conversations"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; activeSubAgentId: drizzle_orm_pg_core2040.PgColumn<{ name: "active_sub_agent_id"; tableName: "conversations"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; ref: drizzle_orm_pg_core2040.PgColumn<{ name: "ref"; tableName: "conversations"; dataType: "json"; columnType: "PgJsonb"; data: { type: "commit" | "tag" | "branch"; name: string; hash: string; }; driverParam: unknown; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, { $type: { type: "commit" | "tag" | "branch"; name: string; hash: string; }; }>; title: drizzle_orm_pg_core2040.PgColumn<{ name: "title"; tableName: "conversations"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; lastContextResolution: drizzle_orm_pg_core2040.PgColumn<{ name: "last_context_resolution"; tableName: "conversations"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; metadata: drizzle_orm_pg_core2040.PgColumn<{ name: "metadata"; tableName: "conversations"; dataType: "json"; columnType: "PgJsonb"; data: ConversationMetadata; driverParam: unknown; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, { $type: ConversationMetadata; }>; userProperties: drizzle_orm_pg_core2040.PgColumn<{ name: "user_properties"; tableName: "conversations"; dataType: "json"; columnType: "PgJsonb"; data: Record | null; driverParam: unknown; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, { $type: Record | null; }>; properties: drizzle_orm_pg_core2040.PgColumn<{ name: "properties"; tableName: "conversations"; dataType: "json"; columnType: "PgJsonb"; data: Record | null; driverParam: unknown; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, { $type: Record | null; }>; projectId: drizzle_orm_pg_core2040.PgColumn<{ name: "project_id"; tableName: "conversations"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; tenantId: drizzle_orm_pg_core2040.PgColumn<{ name: "tenant_id"; tableName: "conversations"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; id: drizzle_orm_pg_core2040.PgColumn<{ name: "id"; tableName: "conversations"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; }; dialect: "pg"; }>; declare const tasks: drizzle_orm_pg_core2040.PgTableWithColumns<{ name: "tasks"; schema: undefined; columns: { createdAt: drizzle_orm_pg_core2040.PgColumn<{ name: "created_at"; tableName: "tasks"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; updatedAt: drizzle_orm_pg_core2040.PgColumn<{ name: "updated_at"; tableName: "tasks"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; contextId: drizzle_orm_pg_core2040.PgColumn<{ name: "context_id"; tableName: "tasks"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; ref: drizzle_orm_pg_core2040.PgColumn<{ name: "ref"; tableName: "tasks"; dataType: "json"; columnType: "PgJsonb"; data: { type: "commit" | "tag" | "branch"; name: string; hash: string; }; driverParam: unknown; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, { $type: { type: "commit" | "tag" | "branch"; name: string; hash: string; }; }>; status: drizzle_orm_pg_core2040.PgColumn<{ name: "status"; tableName: "tasks"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; metadata: drizzle_orm_pg_core2040.PgColumn<{ name: "metadata"; tableName: "tasks"; dataType: "json"; columnType: "PgJsonb"; data: TaskMetadataConfig; driverParam: unknown; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, { $type: TaskMetadataConfig; }>; subAgentId: drizzle_orm_pg_core2040.PgColumn<{ name: "sub_agent_id"; tableName: "tasks"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; agentId: drizzle_orm_pg_core2040.PgColumn<{ name: "agent_id"; tableName: "tasks"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; projectId: drizzle_orm_pg_core2040.PgColumn<{ name: "project_id"; tableName: "tasks"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; tenantId: drizzle_orm_pg_core2040.PgColumn<{ name: "tenant_id"; tableName: "tasks"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; id: drizzle_orm_pg_core2040.PgColumn<{ name: "id"; tableName: "tasks"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; }; dialect: "pg"; }>; declare const workflowExecutions: drizzle_orm_pg_core2040.PgTableWithColumns<{ name: "workflow_executions"; schema: undefined; columns: { createdAt: drizzle_orm_pg_core2040.PgColumn<{ name: "created_at"; tableName: "workflow_executions"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; updatedAt: drizzle_orm_pg_core2040.PgColumn<{ name: "updated_at"; tableName: "workflow_executions"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; agentId: drizzle_orm_pg_core2040.PgColumn<{ name: "agent_id"; tableName: "workflow_executions"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; conversationId: drizzle_orm_pg_core2040.PgColumn<{ name: "conversation_id"; tableName: "workflow_executions"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; requestId: drizzle_orm_pg_core2040.PgColumn<{ name: "request_id"; tableName: "workflow_executions"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; status: drizzle_orm_pg_core2040.PgColumn<{ name: "status"; tableName: "workflow_executions"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 50; }>; metadata: drizzle_orm_pg_core2040.PgColumn<{ name: "metadata"; tableName: "workflow_executions"; dataType: "json"; columnType: "PgJsonb"; data: Record; driverParam: unknown; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, { $type: Record; }>; projectId: drizzle_orm_pg_core2040.PgColumn<{ name: "project_id"; tableName: "workflow_executions"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; tenantId: drizzle_orm_pg_core2040.PgColumn<{ name: "tenant_id"; tableName: "workflow_executions"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; id: drizzle_orm_pg_core2040.PgColumn<{ name: "id"; tableName: "workflow_executions"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; }; dialect: "pg"; }>; declare const streamChunks: drizzle_orm_pg_core2040.PgTableWithColumns<{ name: "stream_chunks"; schema: undefined; columns: { tenantId: drizzle_orm_pg_core2040.PgColumn<{ name: "tenant_id"; tableName: "stream_chunks"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; projectId: drizzle_orm_pg_core2040.PgColumn<{ name: "project_id"; tableName: "stream_chunks"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; conversationId: drizzle_orm_pg_core2040.PgColumn<{ name: "conversation_id"; tableName: "stream_chunks"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; idx: drizzle_orm_pg_core2040.PgColumn<{ name: "idx"; tableName: "stream_chunks"; dataType: "number"; columnType: "PgInteger"; data: number; driverParam: string | number; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; data: drizzle_orm_pg_core2040.PgColumn<{ name: "data"; tableName: "stream_chunks"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; isFinal: drizzle_orm_pg_core2040.PgColumn<{ name: "is_final"; tableName: "stream_chunks"; dataType: "boolean"; columnType: "PgBoolean"; data: boolean; driverParam: boolean; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; createdAt: drizzle_orm_pg_core2040.PgColumn<{ name: "created_at"; tableName: "stream_chunks"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; }; dialect: "pg"; }>; /** * Pending tool-approval decisions for the classic (non-durable) execution path. * * Classic execution keeps the pending approval in the memory of the single * server instance running the agent. When the user's approval request is * load-balanced to a *different* instance, that instance has no in-memory entry * and the approval is otherwise lost (the agent waits out its timeout). To make * delivery cross-instance, the receiving instance records the decision here and * the instance awaiting the approval polls and consumes it. * * Rows are short-lived: consumed on pickup, or swept by a periodic cleanup job * (see cleanupExpiredToolApprovalDecisions). A residual row means the waiting * instance went away before consuming it. Mirrors the stream_chunks pattern. */ declare const toolApprovalDecisions: drizzle_orm_pg_core2040.PgTableWithColumns<{ name: "tool_approval_decisions"; schema: undefined; columns: { tenantId: drizzle_orm_pg_core2040.PgColumn<{ name: "tenant_id"; tableName: "tool_approval_decisions"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; projectId: drizzle_orm_pg_core2040.PgColumn<{ name: "project_id"; tableName: "tool_approval_decisions"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; conversationId: drizzle_orm_pg_core2040.PgColumn<{ name: "conversation_id"; tableName: "tool_approval_decisions"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; toolCallId: drizzle_orm_pg_core2040.PgColumn<{ name: "tool_call_id"; tableName: "tool_approval_decisions"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; approved: drizzle_orm_pg_core2040.PgColumn<{ name: "approved"; tableName: "tool_approval_decisions"; dataType: "boolean"; columnType: "PgBoolean"; data: boolean; driverParam: boolean; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; reason: drizzle_orm_pg_core2040.PgColumn<{ name: "reason"; tableName: "tool_approval_decisions"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; createdAt: drizzle_orm_pg_core2040.PgColumn<{ name: "created_at"; tableName: "tool_approval_decisions"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; }; dialect: "pg"; }>; declare const apiKeys: drizzle_orm_pg_core2040.PgTableWithColumns<{ name: "api_keys"; schema: undefined; columns: { createdAt: drizzle_orm_pg_core2040.PgColumn<{ name: "created_at"; tableName: "api_keys"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; updatedAt: drizzle_orm_pg_core2040.PgColumn<{ name: "updated_at"; tableName: "api_keys"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; agentId: drizzle_orm_pg_core2040.PgColumn<{ name: "agent_id"; tableName: "api_keys"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; publicId: drizzle_orm_pg_core2040.PgColumn<{ name: "public_id"; tableName: "api_keys"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; keyHash: drizzle_orm_pg_core2040.PgColumn<{ name: "key_hash"; tableName: "api_keys"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; keyPrefix: drizzle_orm_pg_core2040.PgColumn<{ name: "key_prefix"; tableName: "api_keys"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; name: drizzle_orm_pg_core2040.PgColumn<{ name: "name"; tableName: "api_keys"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; lastUsedAt: drizzle_orm_pg_core2040.PgColumn<{ name: "last_used_at"; tableName: "api_keys"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; expiresAt: drizzle_orm_pg_core2040.PgColumn<{ name: "expires_at"; tableName: "api_keys"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; projectId: drizzle_orm_pg_core2040.PgColumn<{ name: "project_id"; tableName: "api_keys"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; tenantId: drizzle_orm_pg_core2040.PgColumn<{ name: "tenant_id"; tableName: "api_keys"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; id: drizzle_orm_pg_core2040.PgColumn<{ name: "id"; tableName: "api_keys"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; }; dialect: "pg"; }>; declare const apps: drizzle_orm_pg_core2040.PgTableWithColumns<{ name: "apps"; schema: undefined; columns: { createdAt: drizzle_orm_pg_core2040.PgColumn<{ name: "created_at"; tableName: "apps"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; updatedAt: drizzle_orm_pg_core2040.PgColumn<{ name: "updated_at"; tableName: "apps"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; id: drizzle_orm_pg_core2040.PgColumn<{ name: "id"; tableName: "apps"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: true; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; tenantId: drizzle_orm_pg_core2040.PgColumn<{ name: "tenant_id"; tableName: "apps"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; projectId: drizzle_orm_pg_core2040.PgColumn<{ name: "project_id"; tableName: "apps"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; name: drizzle_orm_pg_core2040.PgColumn<{ name: "name"; tableName: "apps"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; description: drizzle_orm_pg_core2040.PgColumn<{ name: "description"; tableName: "apps"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; type: drizzle_orm_pg_core2040.PgColumn<{ name: "type"; tableName: "apps"; dataType: "string"; columnType: "PgVarchar"; data: AppType; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 64; $type: AppType; }>; defaultProjectId: drizzle_orm_pg_core2040.PgColumn<{ name: "default_project_id"; tableName: "apps"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; defaultAgentId: drizzle_orm_pg_core2040.PgColumn<{ name: "default_agent_id"; tableName: "apps"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; prompt: drizzle_orm_pg_core2040.PgColumn<{ name: "prompt"; tableName: "apps"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; enabled: drizzle_orm_pg_core2040.PgColumn<{ name: "enabled"; tableName: "apps"; dataType: "boolean"; columnType: "PgBoolean"; data: boolean; driverParam: boolean; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; config: drizzle_orm_pg_core2040.PgColumn<{ name: "config"; tableName: "apps"; dataType: "json"; columnType: "PgJsonb"; data: { type: "web_client"; webClient: { allowedDomains: string[]; publicKeys: { kid: string; publicKey: string; algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA"; addedAt: string; }[]; allowAnonymous: boolean; audience?: string | undefined; }; } | { type: "api"; api: Record; } | { type: "support_copilot"; supportCopilot: { platform: string; credentialReferenceId?: string | undefined; quickActions?: { group: string; actions: { label: string; prompt: string; }[]; }[] | undefined; }; }; driverParam: unknown; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, { $type: { type: "web_client"; webClient: { allowedDomains: string[]; publicKeys: { kid: string; publicKey: string; algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA"; addedAt: string; }[]; allowAnonymous: boolean; audience?: string | undefined; }; } | { type: "api"; api: Record; } | { type: "support_copilot"; supportCopilot: { platform: string; credentialReferenceId?: string | undefined; quickActions?: { group: string; actions: { label: string; prompt: string; }[]; }[] | undefined; }; }; }>; lastUsedAt: drizzle_orm_pg_core2040.PgColumn<{ name: "last_used_at"; tableName: "apps"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; }; dialect: "pg"; }>; /** * Trigger invocations - records each time a webhook trigger is invoked. * This is runtime data (transactional) so it lives in PostgreSQL, not DoltGres. * NOTE: No FK to triggers table since triggers is in a different database (DoltGres). * Application code must enforce referential integrity for triggerId. * Can optionally link to conversations when the trigger creates one. */ declare const triggerInvocations: drizzle_orm_pg_core2040.PgTableWithColumns<{ name: "trigger_invocations"; schema: undefined; columns: { triggerId: drizzle_orm_pg_core2040.PgColumn<{ name: "trigger_id"; tableName: "trigger_invocations"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; conversationId: drizzle_orm_pg_core2040.PgColumn<{ name: "conversation_id"; tableName: "trigger_invocations"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; runAsUserId: drizzle_orm_pg_core2040.PgColumn<{ name: "run_as_user_id"; tableName: "trigger_invocations"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; batchId: drizzle_orm_pg_core2040.PgColumn<{ name: "batch_id"; tableName: "trigger_invocations"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; ref: drizzle_orm_pg_core2040.PgColumn<{ name: "ref"; tableName: "trigger_invocations"; dataType: "json"; columnType: "PgJsonb"; data: { type: "commit" | "tag" | "branch"; name: string; hash: string; }; driverParam: unknown; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, { $type: { type: "commit" | "tag" | "branch"; name: string; hash: string; }; }>; status: drizzle_orm_pg_core2040.PgColumn<{ name: "status"; tableName: "trigger_invocations"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 20; }>; requestPayload: drizzle_orm_pg_core2040.PgColumn<{ name: "request_payload"; tableName: "trigger_invocations"; dataType: "json"; columnType: "PgJsonb"; data: unknown; driverParam: unknown; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; transformedPayload: drizzle_orm_pg_core2040.PgColumn<{ name: "transformed_payload"; tableName: "trigger_invocations"; dataType: "json"; columnType: "PgJsonb"; data: unknown; driverParam: unknown; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; errorMessage: drizzle_orm_pg_core2040.PgColumn<{ name: "error_message"; tableName: "trigger_invocations"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; createdAt: drizzle_orm_pg_core2040.PgColumn<{ name: "created_at"; tableName: "trigger_invocations"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; agentId: drizzle_orm_pg_core2040.PgColumn<{ name: "agent_id"; tableName: "trigger_invocations"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; projectId: drizzle_orm_pg_core2040.PgColumn<{ name: "project_id"; tableName: "trigger_invocations"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; tenantId: drizzle_orm_pg_core2040.PgColumn<{ name: "tenant_id"; tableName: "trigger_invocations"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; id: drizzle_orm_pg_core2040.PgColumn<{ name: "id"; tableName: "trigger_invocations"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; }; dialect: "pg"; }>; /** * Slack workspace installations - records each Slack workspace installation. * Enforces workspace -> tenant uniqueness and provides audit trail. * Stores reference to Nango connection for token retrieval. */ declare const workAppSlackWorkspaces: drizzle_orm_pg_core2040.PgTableWithColumns<{ name: "work_app_slack_workspaces"; schema: undefined; columns: { createdAt: drizzle_orm_pg_core2040.PgColumn<{ name: "created_at"; tableName: "work_app_slack_workspaces"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; updatedAt: drizzle_orm_pg_core2040.PgColumn<{ name: "updated_at"; tableName: "work_app_slack_workspaces"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; id: drizzle_orm_pg_core2040.PgColumn<{ name: "id"; tableName: "work_app_slack_workspaces"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: true; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; tenantId: drizzle_orm_pg_core2040.PgColumn<{ name: "tenant_id"; tableName: "work_app_slack_workspaces"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; slackTeamId: drizzle_orm_pg_core2040.PgColumn<{ name: "slack_team_id"; tableName: "work_app_slack_workspaces"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; slackEnterpriseId: drizzle_orm_pg_core2040.PgColumn<{ name: "slack_enterprise_id"; tableName: "work_app_slack_workspaces"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; slackAppId: drizzle_orm_pg_core2040.PgColumn<{ name: "slack_app_id"; tableName: "work_app_slack_workspaces"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; slackTeamName: drizzle_orm_pg_core2040.PgColumn<{ name: "slack_team_name"; tableName: "work_app_slack_workspaces"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 512; }>; nangoProviderConfigKey: drizzle_orm_pg_core2040.PgColumn<{ name: "nango_provider_config_key"; tableName: "work_app_slack_workspaces"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; nangoConnectionId: drizzle_orm_pg_core2040.PgColumn<{ name: "nango_connection_id"; tableName: "work_app_slack_workspaces"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; status: drizzle_orm_pg_core2040.PgColumn<{ name: "status"; tableName: "work_app_slack_workspaces"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 20; }>; installedByUserId: drizzle_orm_pg_core2040.PgColumn<{ name: "installed_by_user_id"; tableName: "work_app_slack_workspaces"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; shouldAllowJoinFromWorkspace: drizzle_orm_pg_core2040.PgColumn<{ name: "should_allow_join_from_workspace"; tableName: "work_app_slack_workspaces"; dataType: "boolean"; columnType: "PgBoolean"; data: boolean; driverParam: boolean; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; defaultAgentId: drizzle_orm_pg_core2040.PgColumn<{ name: "default_agent_id"; tableName: "work_app_slack_workspaces"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; defaultProjectId: drizzle_orm_pg_core2040.PgColumn<{ name: "default_project_id"; tableName: "work_app_slack_workspaces"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; defaultGrantAccessToMembers: drizzle_orm_pg_core2040.PgColumn<{ name: "default_grant_access_to_members"; tableName: "work_app_slack_workspaces"; dataType: "boolean"; columnType: "PgBoolean"; data: boolean; driverParam: boolean; notNull: false; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; }; dialect: "pg"; }>; /** * Slack user mappings - maps Slack users to Inkeep users. * Enables Slack users to trigger agents after linking their accounts. * Unique per tenant + clientId + slackTeamId + slackUserId. */ declare const workAppSlackUserMappings: drizzle_orm_pg_core2040.PgTableWithColumns<{ name: "work_app_slack_user_mappings"; schema: undefined; columns: { createdAt: drizzle_orm_pg_core2040.PgColumn<{ name: "created_at"; tableName: "work_app_slack_user_mappings"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; updatedAt: drizzle_orm_pg_core2040.PgColumn<{ name: "updated_at"; tableName: "work_app_slack_user_mappings"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; id: drizzle_orm_pg_core2040.PgColumn<{ name: "id"; tableName: "work_app_slack_user_mappings"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: true; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; tenantId: drizzle_orm_pg_core2040.PgColumn<{ name: "tenant_id"; tableName: "work_app_slack_user_mappings"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; clientId: drizzle_orm_pg_core2040.PgColumn<{ name: "client_id"; tableName: "work_app_slack_user_mappings"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; slackUserId: drizzle_orm_pg_core2040.PgColumn<{ name: "slack_user_id"; tableName: "work_app_slack_user_mappings"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; slackTeamId: drizzle_orm_pg_core2040.PgColumn<{ name: "slack_team_id"; tableName: "work_app_slack_user_mappings"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; slackEnterpriseId: drizzle_orm_pg_core2040.PgColumn<{ name: "slack_enterprise_id"; tableName: "work_app_slack_user_mappings"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; inkeepUserId: drizzle_orm_pg_core2040.PgColumn<{ name: "inkeep_user_id"; tableName: "work_app_slack_user_mappings"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; slackUsername: drizzle_orm_pg_core2040.PgColumn<{ name: "slack_username"; tableName: "work_app_slack_user_mappings"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; slackEmail: drizzle_orm_pg_core2040.PgColumn<{ name: "slack_email"; tableName: "work_app_slack_user_mappings"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; linkedAt: drizzle_orm_pg_core2040.PgColumn<{ name: "linked_at"; tableName: "work_app_slack_user_mappings"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; lastUsedAt: drizzle_orm_pg_core2040.PgColumn<{ name: "last_used_at"; tableName: "work_app_slack_user_mappings"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; }; dialect: "pg"; }>; /** * Slack channel agent configurations - maps Slack channels to default agents. * Allows admins to set channel-specific agent defaults that override workspace defaults. * Unique per tenant + slackTeamId + slackChannelId. */ declare const workAppSlackChannelAgentConfigs: drizzle_orm_pg_core2040.PgTableWithColumns<{ name: "work_app_slack_channel_agent_configs"; schema: undefined; columns: { createdAt: drizzle_orm_pg_core2040.PgColumn<{ name: "created_at"; tableName: "work_app_slack_channel_agent_configs"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; updatedAt: drizzle_orm_pg_core2040.PgColumn<{ name: "updated_at"; tableName: "work_app_slack_channel_agent_configs"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; id: drizzle_orm_pg_core2040.PgColumn<{ name: "id"; tableName: "work_app_slack_channel_agent_configs"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: true; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; tenantId: drizzle_orm_pg_core2040.PgColumn<{ name: "tenant_id"; tableName: "work_app_slack_channel_agent_configs"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; slackTeamId: drizzle_orm_pg_core2040.PgColumn<{ name: "slack_team_id"; tableName: "work_app_slack_channel_agent_configs"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; slackChannelId: drizzle_orm_pg_core2040.PgColumn<{ name: "slack_channel_id"; tableName: "work_app_slack_channel_agent_configs"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; slackChannelName: drizzle_orm_pg_core2040.PgColumn<{ name: "slack_channel_name"; tableName: "work_app_slack_channel_agent_configs"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; slackChannelType: drizzle_orm_pg_core2040.PgColumn<{ name: "slack_channel_type"; tableName: "work_app_slack_channel_agent_configs"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 50; }>; projectId: drizzle_orm_pg_core2040.PgColumn<{ name: "project_id"; tableName: "work_app_slack_channel_agent_configs"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; agentId: drizzle_orm_pg_core2040.PgColumn<{ name: "agent_id"; tableName: "work_app_slack_channel_agent_configs"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; configuredByUserId: drizzle_orm_pg_core2040.PgColumn<{ name: "configured_by_user_id"; tableName: "work_app_slack_channel_agent_configs"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; enabled: drizzle_orm_pg_core2040.PgColumn<{ name: "enabled"; tableName: "work_app_slack_channel_agent_configs"; dataType: "boolean"; columnType: "PgBoolean"; data: boolean; driverParam: boolean; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; grantAccessToMembers: drizzle_orm_pg_core2040.PgColumn<{ name: "grant_access_to_members"; tableName: "work_app_slack_channel_agent_configs"; dataType: "boolean"; columnType: "PgBoolean"; data: boolean; driverParam: boolean; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; }; dialect: "pg"; }>; declare const scheduledTriggers: drizzle_orm_pg_core2040.PgTableWithColumns<{ name: "scheduled_triggers"; schema: undefined; columns: { createdAt: drizzle_orm_pg_core2040.PgColumn<{ name: "created_at"; tableName: "scheduled_triggers"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; updatedAt: drizzle_orm_pg_core2040.PgColumn<{ name: "updated_at"; tableName: "scheduled_triggers"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; agentId: drizzle_orm_pg_core2040.PgColumn<{ name: "agent_id"; tableName: "scheduled_triggers"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; name: drizzle_orm_pg_core2040.PgColumn<{ name: "name"; tableName: "scheduled_triggers"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; description: drizzle_orm_pg_core2040.PgColumn<{ name: "description"; tableName: "scheduled_triggers"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; enabled: drizzle_orm_pg_core2040.PgColumn<{ name: "enabled"; tableName: "scheduled_triggers"; dataType: "boolean"; columnType: "PgBoolean"; data: boolean; driverParam: boolean; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; cronExpression: drizzle_orm_pg_core2040.PgColumn<{ name: "cron_expression"; tableName: "scheduled_triggers"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; cronTimezone: drizzle_orm_pg_core2040.PgColumn<{ name: "cron_timezone"; tableName: "scheduled_triggers"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 64; }>; runAt: drizzle_orm_pg_core2040.PgColumn<{ name: "run_at"; tableName: "scheduled_triggers"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; payload: drizzle_orm_pg_core2040.PgColumn<{ name: "payload"; tableName: "scheduled_triggers"; dataType: "json"; columnType: "PgJsonb"; data: Record | null; driverParam: unknown; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, { $type: Record | null; }>; messageTemplate: drizzle_orm_pg_core2040.PgColumn<{ name: "message_template"; tableName: "scheduled_triggers"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; maxRetries: drizzle_orm_pg_core2040.PgColumn<{ name: "max_retries"; tableName: "scheduled_triggers"; dataType: "number"; columnType: "PgInteger"; data: number; driverParam: string | number; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; retryDelaySeconds: drizzle_orm_pg_core2040.PgColumn<{ name: "retry_delay_seconds"; tableName: "scheduled_triggers"; dataType: "number"; columnType: "PgInteger"; data: number; driverParam: string | number; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; timeoutSeconds: drizzle_orm_pg_core2040.PgColumn<{ name: "timeout_seconds"; tableName: "scheduled_triggers"; dataType: "number"; columnType: "PgInteger"; data: number; driverParam: string | number; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; runAsUserId: drizzle_orm_pg_core2040.PgColumn<{ name: "run_as_user_id"; tableName: "scheduled_triggers"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; createdBy: drizzle_orm_pg_core2040.PgColumn<{ name: "created_by"; tableName: "scheduled_triggers"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; nextRunAt: drizzle_orm_pg_core2040.PgColumn<{ name: "next_run_at"; tableName: "scheduled_triggers"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; ref: drizzle_orm_pg_core2040.PgColumn<{ name: "ref"; tableName: "scheduled_triggers"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; dispatchDelayMs: drizzle_orm_pg_core2040.PgColumn<{ name: "dispatch_delay_ms"; tableName: "scheduled_triggers"; dataType: "number"; columnType: "PgInteger"; data: number; driverParam: string | number; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; datasetRunConfigId: drizzle_orm_pg_core2040.PgColumn<{ name: "dataset_run_config_id"; tableName: "scheduled_triggers"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; projectId: drizzle_orm_pg_core2040.PgColumn<{ name: "project_id"; tableName: "scheduled_triggers"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; tenantId: drizzle_orm_pg_core2040.PgColumn<{ name: "tenant_id"; tableName: "scheduled_triggers"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; id: drizzle_orm_pg_core2040.PgColumn<{ name: "id"; tableName: "scheduled_triggers"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; }; dialect: "pg"; }>; declare const scheduledTriggerInvocations: drizzle_orm_pg_core2040.PgTableWithColumns<{ name: "scheduled_trigger_invocations"; schema: undefined; columns: { scheduledTriggerId: drizzle_orm_pg_core2040.PgColumn<{ name: "scheduled_trigger_id"; tableName: "scheduled_trigger_invocations"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; ref: drizzle_orm_pg_core2040.PgColumn<{ name: "ref"; tableName: "scheduled_trigger_invocations"; dataType: "json"; columnType: "PgJsonb"; data: { type: "commit" | "tag" | "branch"; name: string; hash: string; }; driverParam: unknown; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, { $type: { type: "commit" | "tag" | "branch"; name: string; hash: string; }; }>; status: drizzle_orm_pg_core2040.PgColumn<{ name: "status"; tableName: "scheduled_trigger_invocations"; dataType: "string"; columnType: "PgVarchar"; data: "pending" | "failed" | "running" | "completed" | "cancelled"; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 50; $type: "pending" | "failed" | "running" | "completed" | "cancelled"; }>; scheduledFor: drizzle_orm_pg_core2040.PgColumn<{ name: "scheduled_for"; tableName: "scheduled_trigger_invocations"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; startedAt: drizzle_orm_pg_core2040.PgColumn<{ name: "started_at"; tableName: "scheduled_trigger_invocations"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; completedAt: drizzle_orm_pg_core2040.PgColumn<{ name: "completed_at"; tableName: "scheduled_trigger_invocations"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; resolvedPayload: drizzle_orm_pg_core2040.PgColumn<{ name: "resolved_payload"; tableName: "scheduled_trigger_invocations"; dataType: "json"; columnType: "PgJsonb"; data: Record | null; driverParam: unknown; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, { $type: Record | null; }>; conversationIds: drizzle_orm_pg_core2040.PgColumn<{ name: "conversation_ids"; tableName: "scheduled_trigger_invocations"; dataType: "json"; columnType: "PgJsonb"; data: string[]; driverParam: unknown; notNull: false; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, { $type: string[]; }>; attemptNumber: drizzle_orm_pg_core2040.PgColumn<{ name: "attempt_number"; tableName: "scheduled_trigger_invocations"; dataType: "number"; columnType: "PgInteger"; data: number; driverParam: string | number; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; idempotencyKey: drizzle_orm_pg_core2040.PgColumn<{ name: "idempotency_key"; tableName: "scheduled_trigger_invocations"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; runAsUserId: drizzle_orm_pg_core2040.PgColumn<{ name: "run_as_user_id"; tableName: "scheduled_trigger_invocations"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; createdAt: drizzle_orm_pg_core2040.PgColumn<{ name: "created_at"; tableName: "scheduled_trigger_invocations"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; agentId: drizzle_orm_pg_core2040.PgColumn<{ name: "agent_id"; tableName: "scheduled_trigger_invocations"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; projectId: drizzle_orm_pg_core2040.PgColumn<{ name: "project_id"; tableName: "scheduled_trigger_invocations"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; tenantId: drizzle_orm_pg_core2040.PgColumn<{ name: "tenant_id"; tableName: "scheduled_trigger_invocations"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; id: drizzle_orm_pg_core2040.PgColumn<{ name: "id"; tableName: "scheduled_trigger_invocations"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; }; dialect: "pg"; }>; declare const scheduledTriggerUsers: drizzle_orm_pg_core2040.PgTableWithColumns<{ name: "scheduled_trigger_users"; schema: undefined; columns: { tenantId: drizzle_orm_pg_core2040.PgColumn<{ name: "tenant_id"; tableName: "scheduled_trigger_users"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; scheduledTriggerId: drizzle_orm_pg_core2040.PgColumn<{ name: "scheduled_trigger_id"; tableName: "scheduled_trigger_users"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; userId: drizzle_orm_pg_core2040.PgColumn<{ name: "user_id"; tableName: "scheduled_trigger_users"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; createdAt: drizzle_orm_pg_core2040.PgColumn<{ name: "created_at"; tableName: "scheduled_trigger_users"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; }; dialect: "pg"; }>; declare const schedulerState: drizzle_orm_pg_core2040.PgTableWithColumns<{ name: "scheduler_state"; schema: undefined; columns: { createdAt: drizzle_orm_pg_core2040.PgColumn<{ name: "created_at"; tableName: "scheduler_state"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; updatedAt: drizzle_orm_pg_core2040.PgColumn<{ name: "updated_at"; tableName: "scheduler_state"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; id: drizzle_orm_pg_core2040.PgColumn<{ name: "id"; tableName: "scheduler_state"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: true; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; currentRunId: drizzle_orm_pg_core2040.PgColumn<{ name: "current_run_id"; tableName: "scheduler_state"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; }; dialect: "pg"; }>; declare const messages: drizzle_orm_pg_core2040.PgTableWithColumns<{ name: "messages"; schema: undefined; columns: { createdAt: drizzle_orm_pg_core2040.PgColumn<{ name: "created_at"; tableName: "messages"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; updatedAt: drizzle_orm_pg_core2040.PgColumn<{ name: "updated_at"; tableName: "messages"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; conversationId: drizzle_orm_pg_core2040.PgColumn<{ name: "conversation_id"; tableName: "messages"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; role: drizzle_orm_pg_core2040.PgColumn<{ name: "role"; tableName: "messages"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; fromSubAgentId: drizzle_orm_pg_core2040.PgColumn<{ name: "from_sub_agent_id"; tableName: "messages"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; toSubAgentId: drizzle_orm_pg_core2040.PgColumn<{ name: "to_sub_agent_id"; tableName: "messages"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; fromExternalAgentId: drizzle_orm_pg_core2040.PgColumn<{ name: "from_external_sub_agent_id"; tableName: "messages"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; toExternalAgentId: drizzle_orm_pg_core2040.PgColumn<{ name: "to_external_sub_agent_id"; tableName: "messages"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; fromTeamAgentId: drizzle_orm_pg_core2040.PgColumn<{ name: "from_team_agent_id"; tableName: "messages"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; toTeamAgentId: drizzle_orm_pg_core2040.PgColumn<{ name: "to_team_agent_id"; tableName: "messages"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; content: drizzle_orm_pg_core2040.PgColumn<{ name: "content"; tableName: "messages"; dataType: "json"; columnType: "PgJsonb"; data: MessageContent; driverParam: unknown; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, { $type: MessageContent; }>; visibility: drizzle_orm_pg_core2040.PgColumn<{ name: "visibility"; tableName: "messages"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; messageType: drizzle_orm_pg_core2040.PgColumn<{ name: "message_type"; tableName: "messages"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; taskId: drizzle_orm_pg_core2040.PgColumn<{ name: "task_id"; tableName: "messages"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; parentMessageId: drizzle_orm_pg_core2040.PgColumn<{ name: "parent_message_id"; tableName: "messages"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; a2aTaskId: drizzle_orm_pg_core2040.PgColumn<{ name: "a2a_task_id"; tableName: "messages"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; a2aSessionId: drizzle_orm_pg_core2040.PgColumn<{ name: "a2a_session_id"; tableName: "messages"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; metadata: drizzle_orm_pg_core2040.PgColumn<{ name: "metadata"; tableName: "messages"; dataType: "json"; columnType: "PgJsonb"; data: MessageMetadata; driverParam: unknown; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, { $type: MessageMetadata; }>; userProperties: drizzle_orm_pg_core2040.PgColumn<{ name: "user_properties"; tableName: "messages"; dataType: "json"; columnType: "PgJsonb"; data: Record | null; driverParam: unknown; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, { $type: Record | null; }>; properties: drizzle_orm_pg_core2040.PgColumn<{ name: "properties"; tableName: "messages"; dataType: "json"; columnType: "PgJsonb"; data: Record | null; driverParam: unknown; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, { $type: Record | null; }>; projectId: drizzle_orm_pg_core2040.PgColumn<{ name: "project_id"; tableName: "messages"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; tenantId: drizzle_orm_pg_core2040.PgColumn<{ name: "tenant_id"; tableName: "messages"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; id: drizzle_orm_pg_core2040.PgColumn<{ name: "id"; tableName: "messages"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; }; dialect: "pg"; }>; declare const feedback: drizzle_orm_pg_core2040.PgTableWithColumns<{ name: "feedback"; schema: undefined; columns: { createdAt: drizzle_orm_pg_core2040.PgColumn<{ name: "created_at"; tableName: "feedback"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; updatedAt: drizzle_orm_pg_core2040.PgColumn<{ name: "updated_at"; tableName: "feedback"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; conversationId: drizzle_orm_pg_core2040.PgColumn<{ name: "conversation_id"; tableName: "feedback"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; messageId: drizzle_orm_pg_core2040.PgColumn<{ name: "message_id"; tableName: "feedback"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; type: drizzle_orm_pg_core2040.PgColumn<{ name: "type"; tableName: "feedback"; dataType: "string"; columnType: "PgVarchar"; data: "positive" | "negative"; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 20; $type: "positive" | "negative"; }>; details: drizzle_orm_pg_core2040.PgColumn<{ name: "details"; tableName: "feedback"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; projectId: drizzle_orm_pg_core2040.PgColumn<{ name: "project_id"; tableName: "feedback"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; tenantId: drizzle_orm_pg_core2040.PgColumn<{ name: "tenant_id"; tableName: "feedback"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; id: drizzle_orm_pg_core2040.PgColumn<{ name: "id"; tableName: "feedback"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; }; dialect: "pg"; }>; declare const events: drizzle_orm_pg_core2040.PgTableWithColumns<{ name: "events"; schema: undefined; columns: { createdAt: drizzle_orm_pg_core2040.PgColumn<{ name: "created_at"; tableName: "events"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; updatedAt: drizzle_orm_pg_core2040.PgColumn<{ name: "updated_at"; tableName: "events"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; type: drizzle_orm_pg_core2040.PgColumn<{ name: "type"; tableName: "events"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; agentId: drizzle_orm_pg_core2040.PgColumn<{ name: "agent_id"; tableName: "events"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; conversationId: drizzle_orm_pg_core2040.PgColumn<{ name: "conversation_id"; tableName: "events"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; messageId: drizzle_orm_pg_core2040.PgColumn<{ name: "message_id"; tableName: "events"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; properties: drizzle_orm_pg_core2040.PgColumn<{ name: "properties"; tableName: "events"; dataType: "json"; columnType: "PgJsonb"; data: Record | null; driverParam: unknown; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, { $type: Record | null; }>; userProperties: drizzle_orm_pg_core2040.PgColumn<{ name: "user_properties"; tableName: "events"; dataType: "json"; columnType: "PgJsonb"; data: Record | null; driverParam: unknown; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, { $type: Record | null; }>; metadata: drizzle_orm_pg_core2040.PgColumn<{ name: "metadata"; tableName: "events"; dataType: "json"; columnType: "PgJsonb"; data: Record | null; driverParam: unknown; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, { $type: Record | null; }>; serverMetadata: drizzle_orm_pg_core2040.PgColumn<{ name: "server_metadata"; tableName: "events"; dataType: "json"; columnType: "PgJsonb"; data: { [k: string]: unknown; authMethod?: string; } | null; driverParam: unknown; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, { $type: { [k: string]: unknown; authMethod?: string; } | null; }>; projectId: drizzle_orm_pg_core2040.PgColumn<{ name: "project_id"; tableName: "events"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; tenantId: drizzle_orm_pg_core2040.PgColumn<{ name: "tenant_id"; tableName: "events"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; id: drizzle_orm_pg_core2040.PgColumn<{ name: "id"; tableName: "events"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; }; dialect: "pg"; }>; declare const coPilotRuns: drizzle_orm_pg_core2040.PgTableWithColumns<{ name: "copilot_runs"; schema: undefined; columns: { createdAt: drizzle_orm_pg_core2040.PgColumn<{ name: "created_at"; tableName: "copilot_runs"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; updatedAt: drizzle_orm_pg_core2040.PgColumn<{ name: "updated_at"; tableName: "copilot_runs"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; ref: drizzle_orm_pg_core2040.PgColumn<{ name: "ref"; tableName: "copilot_runs"; dataType: "json"; columnType: "PgJsonb"; data: { type: "commit" | "tag" | "branch"; name: string; hash: string; }; driverParam: unknown; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, { $type: { type: "commit" | "tag" | "branch"; name: string; hash: string; }; }>; conversationId: drizzle_orm_pg_core2040.PgColumn<{ name: "conversation_id"; tableName: "copilot_runs"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; feedbackIds: drizzle_orm_pg_core2040.PgColumn<{ name: "feedback_ids"; tableName: "copilot_runs"; dataType: "json"; columnType: "PgJsonb"; data: string[]; driverParam: unknown; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, { $type: string[]; }>; status: drizzle_orm_pg_core2040.PgColumn<{ name: "status"; tableName: "copilot_runs"; dataType: "string"; columnType: "PgVarchar"; data: "failed" | "running" | "completed" | "suspended"; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 50; $type: "failed" | "running" | "completed" | "suspended"; }>; projectId: drizzle_orm_pg_core2040.PgColumn<{ name: "project_id"; tableName: "copilot_runs"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; tenantId: drizzle_orm_pg_core2040.PgColumn<{ name: "tenant_id"; tableName: "copilot_runs"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; id: drizzle_orm_pg_core2040.PgColumn<{ name: "id"; tableName: "copilot_runs"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; }; dialect: "pg"; }>; declare const taskRelations: drizzle_orm_pg_core2040.PgTableWithColumns<{ name: "task_relations"; schema: undefined; columns: { createdAt: drizzle_orm_pg_core2040.PgColumn<{ name: "created_at"; tableName: "task_relations"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; updatedAt: drizzle_orm_pg_core2040.PgColumn<{ name: "updated_at"; tableName: "task_relations"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; parentTaskId: drizzle_orm_pg_core2040.PgColumn<{ name: "parent_task_id"; tableName: "task_relations"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; childTaskId: drizzle_orm_pg_core2040.PgColumn<{ name: "child_task_id"; tableName: "task_relations"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; relationType: drizzle_orm_pg_core2040.PgColumn<{ name: "relation_type"; tableName: "task_relations"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; projectId: drizzle_orm_pg_core2040.PgColumn<{ name: "project_id"; tableName: "task_relations"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; tenantId: drizzle_orm_pg_core2040.PgColumn<{ name: "tenant_id"; tableName: "task_relations"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; id: drizzle_orm_pg_core2040.PgColumn<{ name: "id"; tableName: "task_relations"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; }; dialect: "pg"; }>; declare const ledgerArtifacts: drizzle_orm_pg_core2040.PgTableWithColumns<{ name: "ledger_artifacts"; schema: undefined; columns: { createdAt: drizzle_orm_pg_core2040.PgColumn<{ name: "created_at"; tableName: "ledger_artifacts"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; updatedAt: drizzle_orm_pg_core2040.PgColumn<{ name: "updated_at"; tableName: "ledger_artifacts"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; taskId: drizzle_orm_pg_core2040.PgColumn<{ name: "task_id"; tableName: "ledger_artifacts"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; toolCallId: drizzle_orm_pg_core2040.PgColumn<{ name: "tool_call_id"; tableName: "ledger_artifacts"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; contextId: drizzle_orm_pg_core2040.PgColumn<{ name: "context_id"; tableName: "ledger_artifacts"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; type: drizzle_orm_pg_core2040.PgColumn<{ name: "type"; tableName: "ledger_artifacts"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; name: drizzle_orm_pg_core2040.PgColumn<{ name: "name"; tableName: "ledger_artifacts"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; description: drizzle_orm_pg_core2040.PgColumn<{ name: "description"; tableName: "ledger_artifacts"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; parts: drizzle_orm_pg_core2040.PgColumn<{ name: "parts"; tableName: "ledger_artifacts"; dataType: "json"; columnType: "PgJsonb"; data: Part[] | null; driverParam: unknown; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, { $type: Part[] | null; }>; metadata: drizzle_orm_pg_core2040.PgColumn<{ name: "metadata"; tableName: "ledger_artifacts"; dataType: "json"; columnType: "PgJsonb"; data: Record | null; driverParam: unknown; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, { $type: Record | null; }>; summary: drizzle_orm_pg_core2040.PgColumn<{ name: "summary"; tableName: "ledger_artifacts"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; mime: drizzle_orm_pg_core2040.PgColumn<{ name: "mime"; tableName: "ledger_artifacts"; dataType: "json"; columnType: "PgJsonb"; data: string[] | null; driverParam: unknown; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, { $type: string[] | null; }>; visibility: drizzle_orm_pg_core2040.PgColumn<{ name: "visibility"; tableName: "ledger_artifacts"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; allowedAgents: drizzle_orm_pg_core2040.PgColumn<{ name: "allowed_agents"; tableName: "ledger_artifacts"; dataType: "json"; columnType: "PgJsonb"; data: string[] | null; driverParam: unknown; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, { $type: string[] | null; }>; derivedFrom: drizzle_orm_pg_core2040.PgColumn<{ name: "derived_from"; tableName: "ledger_artifacts"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; projectId: drizzle_orm_pg_core2040.PgColumn<{ name: "project_id"; tableName: "ledger_artifacts"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; tenantId: drizzle_orm_pg_core2040.PgColumn<{ name: "tenant_id"; tableName: "ledger_artifacts"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; id: drizzle_orm_pg_core2040.PgColumn<{ name: "id"; tableName: "ledger_artifacts"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; }; dialect: "pg"; }>; declare const contextCache: drizzle_orm_pg_core2040.PgTableWithColumns<{ name: "context_cache"; schema: undefined; columns: { createdAt: drizzle_orm_pg_core2040.PgColumn<{ name: "created_at"; tableName: "context_cache"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; updatedAt: drizzle_orm_pg_core2040.PgColumn<{ name: "updated_at"; tableName: "context_cache"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; conversationId: drizzle_orm_pg_core2040.PgColumn<{ name: "conversation_id"; tableName: "context_cache"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; contextConfigId: drizzle_orm_pg_core2040.PgColumn<{ name: "context_config_id"; tableName: "context_cache"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; contextVariableKey: drizzle_orm_pg_core2040.PgColumn<{ name: "context_variable_key"; tableName: "context_cache"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; ref: drizzle_orm_pg_core2040.PgColumn<{ name: "ref"; tableName: "context_cache"; dataType: "json"; columnType: "PgJsonb"; data: { type: "commit" | "tag" | "branch"; name: string; hash: string; }; driverParam: unknown; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, { $type: { type: "commit" | "tag" | "branch"; name: string; hash: string; }; }>; value: drizzle_orm_pg_core2040.PgColumn<{ name: "value"; tableName: "context_cache"; dataType: "json"; columnType: "PgJsonb"; data: unknown; driverParam: unknown; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, { $type: unknown; }>; requestHash: drizzle_orm_pg_core2040.PgColumn<{ name: "request_hash"; tableName: "context_cache"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; fetchedAt: drizzle_orm_pg_core2040.PgColumn<{ name: "fetched_at"; tableName: "context_cache"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; fetchSource: drizzle_orm_pg_core2040.PgColumn<{ name: "fetch_source"; tableName: "context_cache"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; projectId: drizzle_orm_pg_core2040.PgColumn<{ name: "project_id"; tableName: "context_cache"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; tenantId: drizzle_orm_pg_core2040.PgColumn<{ name: "tenant_id"; tableName: "context_cache"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; id: drizzle_orm_pg_core2040.PgColumn<{ name: "id"; tableName: "context_cache"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; }; dialect: "pg"; }>; /** * Execution of a suite of items from a dataset. Represents a batch run that * processes dataset items and creates conversations (basically a batch run of conversations). Tracks the execution * status and links to conversations created during the run via * datasetRunConversationRelations join table. * * When evaluators are specified, an evaluation job is automatically created after the run completes, * and the evaluationJobConfigId links to that job. * * Includes: datasetId (which dataset to run), * datasetRunConfigId (optional: if created from a config), * evaluationJobConfigId (optional: links to evaluation job created for this run), and timestamps */ declare const datasetRun: drizzle_orm_pg_core2040.PgTableWithColumns<{ name: "dataset_run"; schema: undefined; columns: { createdAt: drizzle_orm_pg_core2040.PgColumn<{ name: "created_at"; tableName: "dataset_run"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; updatedAt: drizzle_orm_pg_core2040.PgColumn<{ name: "updated_at"; tableName: "dataset_run"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; datasetId: drizzle_orm_pg_core2040.PgColumn<{ name: "dataset_id"; tableName: "dataset_run"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; datasetRunConfigId: drizzle_orm_pg_core2040.PgColumn<{ name: "dataset_run_config_id"; tableName: "dataset_run"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; evaluationJobConfigId: drizzle_orm_pg_core2040.PgColumn<{ name: "evaluation_job_config_id"; tableName: "dataset_run"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; ref: drizzle_orm_pg_core2040.PgColumn<{ name: "ref"; tableName: "dataset_run"; dataType: "json"; columnType: "PgJsonb"; data: { type: "commit" | "tag" | "branch"; name: string; hash: string; }; driverParam: unknown; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, { $type: { type: "commit" | "tag" | "branch"; name: string; hash: string; }; }>; projectId: drizzle_orm_pg_core2040.PgColumn<{ name: "project_id"; tableName: "dataset_run"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; tenantId: drizzle_orm_pg_core2040.PgColumn<{ name: "tenant_id"; tableName: "dataset_run"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; id: drizzle_orm_pg_core2040.PgColumn<{ name: "id"; tableName: "dataset_run"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; }; dialect: "pg"; }>; /** * Links conversations created during a dataset run execution. One-to-many * relationship where one datasetRun can create many conversations, but each * conversation belongs to exactly one datasetRun. Used to track which * conversations were generated from which dataset run. * * Includes: datasetRunId (composite FK to datasetRun), conversationId (composite FK to conversations), * datasetItemId (composite FK to datasetItem) to directly link conversations to their source dataset items, * unique constraint on (datasetRunId, conversationId) ensures one conversation per datasetRun, * and timestamps */ declare const datasetRunConversationRelations: drizzle_orm_pg_core2040.PgTableWithColumns<{ name: "dataset_run_conversation_relations"; schema: undefined; columns: { createdAt: drizzle_orm_pg_core2040.PgColumn<{ name: "created_at"; tableName: "dataset_run_conversation_relations"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; updatedAt: drizzle_orm_pg_core2040.PgColumn<{ name: "updated_at"; tableName: "dataset_run_conversation_relations"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; datasetRunId: drizzle_orm_pg_core2040.PgColumn<{ name: "dataset_run_id"; tableName: "dataset_run_conversation_relations"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; conversationId: drizzle_orm_pg_core2040.PgColumn<{ name: "conversation_id"; tableName: "dataset_run_conversation_relations"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; datasetItemId: drizzle_orm_pg_core2040.PgColumn<{ name: "dataset_item_id"; tableName: "dataset_run_conversation_relations"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; projectId: drizzle_orm_pg_core2040.PgColumn<{ name: "project_id"; tableName: "dataset_run_conversation_relations"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; tenantId: drizzle_orm_pg_core2040.PgColumn<{ name: "tenant_id"; tableName: "dataset_run_conversation_relations"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; id: drizzle_orm_pg_core2040.PgColumn<{ name: "id"; tableName: "dataset_run_conversation_relations"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; }; dialect: "pg"; }>; /** * Record created when an evaluation job config or evaluation run config is triggered. * Represents a completed evaluation run. Links to the evaluationJobConfig (if created from a job) * or evaluationRunConfig (if created from a run config). * Results are stored in evaluationResult table. * one to many relationship with evaluationResult * * Includes: evaluationJobConfigId (optional: if created from a job), * evaluationRunConfigId (optional: if created from a run config), * and timestamps */ declare const evaluationRun: drizzle_orm_pg_core2040.PgTableWithColumns<{ name: "evaluation_run"; schema: undefined; columns: { createdAt: drizzle_orm_pg_core2040.PgColumn<{ name: "created_at"; tableName: "evaluation_run"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; updatedAt: drizzle_orm_pg_core2040.PgColumn<{ name: "updated_at"; tableName: "evaluation_run"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; evaluationJobConfigId: drizzle_orm_pg_core2040.PgColumn<{ name: "evaluation_job_config_id"; tableName: "evaluation_run"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; evaluationRunConfigId: drizzle_orm_pg_core2040.PgColumn<{ name: "evaluation_run_config_id"; tableName: "evaluation_run"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; ref: drizzle_orm_pg_core2040.PgColumn<{ name: "ref"; tableName: "evaluation_run"; dataType: "json"; columnType: "PgJsonb"; data: { type: "commit" | "tag" | "branch"; name: string; hash: string; }; driverParam: unknown; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, { $type: { type: "commit" | "tag" | "branch"; name: string; hash: string; }; }>; projectId: drizzle_orm_pg_core2040.PgColumn<{ name: "project_id"; tableName: "evaluation_run"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; tenantId: drizzle_orm_pg_core2040.PgColumn<{ name: "tenant_id"; tableName: "evaluation_run"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; id: drizzle_orm_pg_core2040.PgColumn<{ name: "id"; tableName: "evaluation_run"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; }; dialect: "pg"; }>; /** * Stores the result of evaluating a conversation with a specific evaluator. * Contains the evaluation output. Linked to an evaluation run. * Each result represents one evaluator's assessment of one conversation. * * Includes: conversationId (required), evaluatorId (required), * evaluationRunId (optional, links to evaluationRun), * output (evaluation result as MessageContent), and timestamps */ declare const evaluationResult: drizzle_orm_pg_core2040.PgTableWithColumns<{ name: "evaluation_result"; schema: undefined; columns: { createdAt: drizzle_orm_pg_core2040.PgColumn<{ name: "created_at"; tableName: "evaluation_result"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; updatedAt: drizzle_orm_pg_core2040.PgColumn<{ name: "updated_at"; tableName: "evaluation_result"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; conversationId: drizzle_orm_pg_core2040.PgColumn<{ name: "conversation_id"; tableName: "evaluation_result"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; evaluatorId: drizzle_orm_pg_core2040.PgColumn<{ name: "evaluator_id"; tableName: "evaluation_result"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; evaluationRunId: drizzle_orm_pg_core2040.PgColumn<{ name: "evaluation_run_id"; tableName: "evaluation_result"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; output: drizzle_orm_pg_core2040.PgColumn<{ name: "output"; tableName: "evaluation_result"; dataType: "json"; columnType: "PgJsonb"; data: MessageContent; driverParam: unknown; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, { $type: MessageContent; }>; projectId: drizzle_orm_pg_core2040.PgColumn<{ name: "project_id"; tableName: "evaluation_result"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; tenantId: drizzle_orm_pg_core2040.PgColumn<{ name: "tenant_id"; tableName: "evaluation_result"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; id: drizzle_orm_pg_core2040.PgColumn<{ name: "id"; tableName: "evaluation_result"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; }; dialect: "pg"; }>; declare const userProfile: drizzle_orm_pg_core2040.PgTableWithColumns<{ name: "user_profile"; schema: undefined; columns: { createdAt: drizzle_orm_pg_core2040.PgColumn<{ name: "created_at"; tableName: "user_profile"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; updatedAt: drizzle_orm_pg_core2040.PgColumn<{ name: "updated_at"; tableName: "user_profile"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; id: drizzle_orm_pg_core2040.PgColumn<{ name: "id"; tableName: "user_profile"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: true; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; userId: drizzle_orm_pg_core2040.PgColumn<{ name: "user_id"; tableName: "user_profile"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; timezone: drizzle_orm_pg_core2040.PgColumn<{ name: "timezone"; tableName: "user_profile"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: false; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; attributes: drizzle_orm_pg_core2040.PgColumn<{ name: "attributes"; tableName: "user_profile"; dataType: "json"; columnType: "PgJsonb"; data: Record; driverParam: unknown; notNull: false; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, { $type: Record; }>; }; dialect: "pg"; }>; declare const userProfileRelations: drizzle_orm188.Relations<"user_profile", { user: drizzle_orm188.One<"user", true>; }>; type GenerationType = (typeof USAGE_GENERATION_TYPES)[number]; declare const conversationsRelations: drizzle_orm188.Relations<"conversations", { messages: drizzle_orm188.Many<"messages">; }>; declare const messagesRelations: drizzle_orm188.Relations<"messages", { conversation: drizzle_orm188.One<"conversations", true>; task: drizzle_orm188.One<"tasks", false>; parentMessage: drizzle_orm188.One<"messages", false>; childMessages: drizzle_orm188.Many<"messages">; feedback: drizzle_orm188.Many<"feedback">; }>; declare const feedbackRelations: drizzle_orm188.Relations<"feedback", { conversation: drizzle_orm188.One<"conversations", true>; message: drizzle_orm188.One<"messages", false>; }>; declare const tasksRelations: drizzle_orm188.Relations<"tasks", { messages: drizzle_orm188.Many<"messages">; ledgerArtifacts: drizzle_orm188.Many<"ledger_artifacts">; parentRelations: drizzle_orm188.Many<"task_relations">; childRelations: drizzle_orm188.Many<"task_relations">; }>; declare const taskRelationsRelations: drizzle_orm188.Relations<"task_relations", { parentTask: drizzle_orm188.One<"tasks", true>; childTask: drizzle_orm188.One<"tasks", true>; }>; declare const ledgerArtifactsRelations: drizzle_orm188.Relations<"ledger_artifacts", { task: drizzle_orm188.One<"tasks", true>; }>; /** * Tracks GitHub App installations linked to tenants. * One tenant can have multiple installations (e.g., multiple orgs). * The installation_id is the GitHub-assigned ID, unique across all GitHub. */ declare const workAppGitHubInstallations: drizzle_orm_pg_core2040.PgTableWithColumns<{ name: "work_app_github_installations"; schema: undefined; columns: { createdAt: drizzle_orm_pg_core2040.PgColumn<{ name: "created_at"; tableName: "work_app_github_installations"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; updatedAt: drizzle_orm_pg_core2040.PgColumn<{ name: "updated_at"; tableName: "work_app_github_installations"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; installationId: drizzle_orm_pg_core2040.PgColumn<{ name: "installation_id"; tableName: "work_app_github_installations"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; accountLogin: drizzle_orm_pg_core2040.PgColumn<{ name: "account_login"; tableName: "work_app_github_installations"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; accountId: drizzle_orm_pg_core2040.PgColumn<{ name: "account_id"; tableName: "work_app_github_installations"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; accountType: drizzle_orm_pg_core2040.PgColumn<{ name: "account_type"; tableName: "work_app_github_installations"; dataType: "string"; columnType: "PgVarchar"; data: "Organization" | "User"; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 20; $type: "Organization" | "User"; }>; status: drizzle_orm_pg_core2040.PgColumn<{ name: "status"; tableName: "work_app_github_installations"; dataType: "string"; columnType: "PgVarchar"; data: "pending" | "active" | "suspended" | "disconnected"; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 20; $type: "pending" | "active" | "suspended" | "disconnected"; }>; tenantId: drizzle_orm_pg_core2040.PgColumn<{ name: "tenant_id"; tableName: "work_app_github_installations"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; id: drizzle_orm_pg_core2040.PgColumn<{ name: "id"; tableName: "work_app_github_installations"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; }; dialect: "pg"; }>; /** * Repositories accessible through a GitHub App installation. * These are synced from GitHub when the app is installed or updated. * The repository_id is the GitHub-assigned ID, unique across all GitHub. */ declare const workAppGitHubRepositories: drizzle_orm_pg_core2040.PgTableWithColumns<{ name: "work_app_github_repositories"; schema: undefined; columns: { createdAt: drizzle_orm_pg_core2040.PgColumn<{ name: "created_at"; tableName: "work_app_github_repositories"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; updatedAt: drizzle_orm_pg_core2040.PgColumn<{ name: "updated_at"; tableName: "work_app_github_repositories"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; id: drizzle_orm_pg_core2040.PgColumn<{ name: "id"; tableName: "work_app_github_repositories"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: true; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; installationDbId: drizzle_orm_pg_core2040.PgColumn<{ name: "installation_db_id"; tableName: "work_app_github_repositories"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; repositoryId: drizzle_orm_pg_core2040.PgColumn<{ name: "repository_id"; tableName: "work_app_github_repositories"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; repositoryName: drizzle_orm_pg_core2040.PgColumn<{ name: "repository_name"; tableName: "work_app_github_repositories"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; repositoryFullName: drizzle_orm_pg_core2040.PgColumn<{ name: "repository_full_name"; tableName: "work_app_github_repositories"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 512; }>; private: drizzle_orm_pg_core2040.PgColumn<{ name: "private"; tableName: "work_app_github_repositories"; dataType: "boolean"; columnType: "PgBoolean"; data: boolean; driverParam: boolean; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; }; dialect: "pg"; }>; /** * Links projects to specific GitHub repositories for fine-grained access control. * When a project has entries here, only the listed repositories are accessible. * When no entries exist for a project, all tenant repositories are accessible (mode='all'). * The tenant_id and project_id reference the projects table in the manage schema * (cross-schema, no FK constraint for project). tenant_id is included because * project IDs are only unique within a tenant. */ declare const workAppGitHubProjectRepositoryAccess: drizzle_orm_pg_core2040.PgTableWithColumns<{ name: "work_app_github_project_repository_access"; schema: undefined; columns: { createdAt: drizzle_orm_pg_core2040.PgColumn<{ name: "created_at"; tableName: "work_app_github_project_repository_access"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; updatedAt: drizzle_orm_pg_core2040.PgColumn<{ name: "updated_at"; tableName: "work_app_github_project_repository_access"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; repositoryDbId: drizzle_orm_pg_core2040.PgColumn<{ name: "repository_db_id"; tableName: "work_app_github_project_repository_access"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; projectId: drizzle_orm_pg_core2040.PgColumn<{ name: "project_id"; tableName: "work_app_github_project_repository_access"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; tenantId: drizzle_orm_pg_core2040.PgColumn<{ name: "tenant_id"; tableName: "work_app_github_project_repository_access"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; id: drizzle_orm_pg_core2040.PgColumn<{ name: "id"; tableName: "work_app_github_project_repository_access"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; }; dialect: "pg"; }>; /** * Links MCP tools to specific GitHub repositories for repository-scoped access. * When an MCP tool has entries here, only the listed repositories are accessible to that tool. * The tool_id, tenant_id, and project_id reference the tools table in the manage schema * (cross-schema, no FK constraint). These are denormalized here so all GitHub access * info can be queried from PostgreSQL alone. */ declare const workAppGitHubMcpToolRepositoryAccess: drizzle_orm_pg_core2040.PgTableWithColumns<{ name: "work_app_github_mcp_tool_repository_access"; schema: undefined; columns: { createdAt: drizzle_orm_pg_core2040.PgColumn<{ name: "created_at"; tableName: "work_app_github_mcp_tool_repository_access"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; updatedAt: drizzle_orm_pg_core2040.PgColumn<{ name: "updated_at"; tableName: "work_app_github_mcp_tool_repository_access"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; toolId: drizzle_orm_pg_core2040.PgColumn<{ name: "tool_id"; tableName: "work_app_github_mcp_tool_repository_access"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; repositoryDbId: drizzle_orm_pg_core2040.PgColumn<{ name: "repository_db_id"; tableName: "work_app_github_mcp_tool_repository_access"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; projectId: drizzle_orm_pg_core2040.PgColumn<{ name: "project_id"; tableName: "work_app_github_mcp_tool_repository_access"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; tenantId: drizzle_orm_pg_core2040.PgColumn<{ name: "tenant_id"; tableName: "work_app_github_mcp_tool_repository_access"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; id: drizzle_orm_pg_core2040.PgColumn<{ name: "id"; tableName: "work_app_github_mcp_tool_repository_access"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; }; dialect: "pg"; }>; /** * Stores the explicit access mode for project-level GitHub repository access. * - 'all': Project has access to all repositories from tenant GitHub installations * - 'selected': Project only has access to repositories listed in work_app_github_project_repository_access * If no row exists for a project, defaults to 'selected' (fail-safe: no access unless explicitly granted). */ declare const workAppGitHubProjectAccessMode: drizzle_orm_pg_core2040.PgTableWithColumns<{ name: "work_app_github_project_access_mode"; schema: undefined; columns: { createdAt: drizzle_orm_pg_core2040.PgColumn<{ name: "created_at"; tableName: "work_app_github_project_access_mode"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; updatedAt: drizzle_orm_pg_core2040.PgColumn<{ name: "updated_at"; tableName: "work_app_github_project_access_mode"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; tenantId: drizzle_orm_pg_core2040.PgColumn<{ name: "tenant_id"; tableName: "work_app_github_project_access_mode"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; projectId: drizzle_orm_pg_core2040.PgColumn<{ name: "project_id"; tableName: "work_app_github_project_access_mode"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; mode: drizzle_orm_pg_core2040.PgColumn<{ name: "mode"; tableName: "work_app_github_project_access_mode"; dataType: "string"; columnType: "PgVarchar"; data: "selected" | "all"; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 20; $type: "selected" | "all"; }>; }; dialect: "pg"; }>; /** * Stores the explicit access mode for MCP tool-level GitHub repository access. * - 'all': Tool has access to all repositories the project has access to * - 'selected': Tool only has access to repositories listed in work_app_github_mcp_tool_repository_access * If no row exists for a tool, defaults to 'selected' (fail-safe: no access unless explicitly granted). */ declare const workAppGitHubMcpToolAccessMode: drizzle_orm_pg_core2040.PgTableWithColumns<{ name: "work_app_github_mcp_tool_access_mode"; schema: undefined; columns: { createdAt: drizzle_orm_pg_core2040.PgColumn<{ name: "created_at"; tableName: "work_app_github_mcp_tool_access_mode"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; updatedAt: drizzle_orm_pg_core2040.PgColumn<{ name: "updated_at"; tableName: "work_app_github_mcp_tool_access_mode"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; toolId: drizzle_orm_pg_core2040.PgColumn<{ name: "tool_id"; tableName: "work_app_github_mcp_tool_access_mode"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; tenantId: drizzle_orm_pg_core2040.PgColumn<{ name: "tenant_id"; tableName: "work_app_github_mcp_tool_access_mode"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; projectId: drizzle_orm_pg_core2040.PgColumn<{ name: "project_id"; tableName: "work_app_github_mcp_tool_access_mode"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; mode: drizzle_orm_pg_core2040.PgColumn<{ name: "mode"; tableName: "work_app_github_mcp_tool_access_mode"; dataType: "string"; columnType: "PgVarchar"; data: "selected" | "all"; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 20; $type: "selected" | "all"; }>; }; dialect: "pg"; }>; declare const workAppGitHubInstallationsRelations: drizzle_orm188.Relations<"work_app_github_installations", { repositories: drizzle_orm188.Many<"work_app_github_repositories">; }>; declare const workAppGitHubRepositoriesRelations: drizzle_orm188.Relations<"work_app_github_repositories", { installation: drizzle_orm188.One<"work_app_github_installations", true>; projectAccess: drizzle_orm188.Many<"work_app_github_project_repository_access">; mcpToolAccess: drizzle_orm188.Many<"work_app_github_mcp_tool_repository_access">; }>; declare const workAppGitHubProjectRepositoryAccessRelations: drizzle_orm188.Relations<"work_app_github_project_repository_access", { repository: drizzle_orm188.One<"work_app_github_repositories", true>; }>; declare const workAppGitHubMcpToolRepositoryAccessRelations: drizzle_orm188.Relations<"work_app_github_mcp_tool_repository_access", { repository: drizzle_orm188.One<"work_app_github_repositories", true>; }>; declare const workAppSlackMcpToolAccessConfig: drizzle_orm_pg_core2040.PgTableWithColumns<{ name: "work_app_slack_mcp_tool_access_config"; schema: undefined; columns: { createdAt: drizzle_orm_pg_core2040.PgColumn<{ name: "created_at"; tableName: "work_app_slack_mcp_tool_access_config"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; updatedAt: drizzle_orm_pg_core2040.PgColumn<{ name: "updated_at"; tableName: "work_app_slack_mcp_tool_access_config"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; toolId: drizzle_orm_pg_core2040.PgColumn<{ name: "tool_id"; tableName: "work_app_slack_mcp_tool_access_config"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; tenantId: drizzle_orm_pg_core2040.PgColumn<{ name: "tenant_id"; tableName: "work_app_slack_mcp_tool_access_config"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; projectId: drizzle_orm_pg_core2040.PgColumn<{ name: "project_id"; tableName: "work_app_slack_mcp_tool_access_config"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; channelAccessMode: drizzle_orm_pg_core2040.PgColumn<{ name: "channel_access_mode"; tableName: "work_app_slack_mcp_tool_access_config"; dataType: "string"; columnType: "PgVarchar"; data: "selected" | "all"; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 20; $type: "selected" | "all"; }>; dmEnabled: drizzle_orm_pg_core2040.PgColumn<{ name: "dm_enabled"; tableName: "work_app_slack_mcp_tool_access_config"; dataType: "boolean"; columnType: "PgBoolean"; data: boolean; driverParam: boolean; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; channelIds: drizzle_orm_pg_core2040.PgColumn<{ name: "channel_ids"; tableName: "work_app_slack_mcp_tool_access_config"; dataType: "json"; columnType: "PgJsonb"; data: string[]; driverParam: unknown; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, { $type: string[]; }>; }; dialect: "pg"; }>; declare const invitationProjectAssignment: drizzle_orm_pg_core2040.PgTableWithColumns<{ name: "invitation_project_assignment"; schema: undefined; columns: { id: drizzle_orm_pg_core2040.PgColumn<{ name: "id"; tableName: "invitation_project_assignment"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: true; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; invitationId: drizzle_orm_pg_core2040.PgColumn<{ name: "invitation_id"; tableName: "invitation_project_assignment"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; projectId: drizzle_orm_pg_core2040.PgColumn<{ name: "project_id"; tableName: "invitation_project_assignment"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; projectRole: drizzle_orm_pg_core2040.PgColumn<{ name: "project_role"; tableName: "invitation_project_assignment"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; createdAt: drizzle_orm_pg_core2040.PgColumn<{ name: "created_at"; tableName: "invitation_project_assignment"; dataType: "date"; columnType: "PgTimestamp"; data: Date; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; }; dialect: "pg"; }>; declare const orgEntitlement: drizzle_orm_pg_core2040.PgTableWithColumns<{ name: "org_entitlement"; schema: undefined; columns: { createdAt: drizzle_orm_pg_core2040.PgColumn<{ name: "created_at"; tableName: "org_entitlement"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; updatedAt: drizzle_orm_pg_core2040.PgColumn<{ name: "updated_at"; tableName: "org_entitlement"; dataType: "string"; columnType: "PgTimestampString"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; id: drizzle_orm_pg_core2040.PgColumn<{ name: "id"; tableName: "org_entitlement"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: true; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; organizationId: drizzle_orm_pg_core2040.PgColumn<{ name: "organization_id"; tableName: "org_entitlement"; dataType: "string"; columnType: "PgVarchar"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, { length: 256; }>; resourceType: drizzle_orm_pg_core2040.PgColumn<{ name: "resource_type"; tableName: "org_entitlement"; dataType: "string"; columnType: "PgText"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; maxValue: drizzle_orm_pg_core2040.PgColumn<{ name: "max_value"; tableName: "org_entitlement"; dataType: "number"; columnType: "PgInteger"; data: number; driverParam: string | number; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}, {}>; }; dialect: "pg"; }>; //#endregion export { GenerationType, USAGE_GENERATION_TYPES, account, apiKeys, apps, coPilotRuns, contextCache, conversations, conversationsRelations, datasetRun, datasetRunConversationRelations, deviceCode, evaluationResult, evaluationRun, events, feedback, feedbackRelations, invitation, invitationProjectAssignment, jwks, ledgerArtifacts, ledgerArtifactsRelations, member, messages, messagesRelations, oauthAccessToken, oauthClient, oauthClientAssertion, oauthClientResource, oauthConsent, oauthRefreshToken, oauthResource, orgEntitlement, organization, projectMetadata, runtime_schema_d_exports, scheduledTriggerInvocations, scheduledTriggerUsers, scheduledTriggers, schedulerState, session, ssoProvider, streamChunks, taskRelations, taskRelationsRelations, tasks, tasksRelations, toolApprovalDecisions, triggerInvocations, user, userProfile, userProfileRelations, verification, workAppGitHubInstallations, workAppGitHubInstallationsRelations, workAppGitHubMcpToolAccessMode, workAppGitHubMcpToolRepositoryAccess, workAppGitHubMcpToolRepositoryAccessRelations, workAppGitHubProjectAccessMode, workAppGitHubProjectRepositoryAccess, workAppGitHubProjectRepositoryAccessRelations, workAppGitHubRepositories, workAppGitHubRepositoriesRelations, workAppSlackChannelAgentConfigs, workAppSlackMcpToolAccessConfig, workAppSlackUserMappings, workAppSlackWorkspaces, workflowExecutions };