@axiom-lattice/pg-stores 3.0.2 → 3.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
 
2
- > @axiom-lattice/pg-stores@3.0.2 build /home/runner/work/agentic/agentic/packages/pg-stores
2
+ > @axiom-lattice/pg-stores@3.1.1 build /home/runner/work/agentic/agentic/packages/pg-stores
3
3
  > tsup src/index.ts --format cjs,esm --dts --sourcemap
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -8,13 +8,13 @@
8
8
  CLI Target: es2020
9
9
  CJS Build start
10
10
  ESM Build start
11
- CJS dist/index.js 307.76 KB
12
- CJS dist/index.js.map 570.33 KB
13
- CJS ⚡️ Build success in 811ms
14
- ESM dist/index.mjs 300.95 KB
15
- ESM dist/index.mjs.map 570.04 KB
16
- ESM ⚡️ Build success in 812ms
11
+ ESM dist/index.mjs 323.12 KB
12
+ ESM dist/index.mjs.map 608.59 KB
13
+ ESM ⚡️ Build success in 787ms
14
+ CJS dist/index.js 330.16 KB
15
+ CJS dist/index.js.map 608.90 KB
16
+ CJS ⚡️ Build success in 787ms
17
17
  DTS Build start
18
- DTS ⚡️ Build success in 12605ms
19
- DTS dist/index.d.ts 65.28 KB
20
- DTS dist/index.d.mts 65.28 KB
18
+ DTS ⚡️ Build success in 18255ms
19
+ DTS dist/index.d.ts 69.14 KB
20
+ DTS dist/index.d.mts 69.14 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # @axiom-lattice/pg-stores
2
2
 
3
+ ## 3.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 8db9937: huge enhance
8
+ - Updated dependencies [8db9937]
9
+ - @axiom-lattice/core@4.2.1
10
+ - @axiom-lattice/protocols@4.1.1
11
+
12
+ ## 3.1.0
13
+
14
+ ### Minor Changes
15
+
16
+ - eb3173b: up
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies [eb3173b]
21
+ - @axiom-lattice/core@4.2.0
22
+ - @axiom-lattice/protocols@4.1.0
23
+
3
24
  ## 3.0.2
4
25
 
5
26
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { Pool, PoolConfig, PoolClient } from 'pg';
2
2
  export { Pool, PoolConfig } from 'pg';
3
- import { ThreadStore, Thread, CreateThreadRequest, AssistantStore, Assistant, CreateAssistantRequest, DatabaseConfigStore, DatabaseConfigEntry, CreateDatabaseConfigRequest, UpdateDatabaseConfigRequest, ConnectionStore, ConnectionEntry, MetricsServerConfigStore, MetricsServerConfigEntry, CreateMetricsServerConfigRequest, UpdateMetricsServerConfigRequest, McpServerConfigStore, McpServerConfigEntry, CreateMcpServerConfigRequest, UpdateMcpServerConfigRequest, WorkspaceStore, Workspace, CreateWorkspaceRequest, UpdateWorkspaceRequest, ProjectStore, ProjectFilter, Project, CreateProjectRequest, UpdateProjectRequest, UserStore, User, CreateUserRequest, UpdateUserRequest, TenantStore, Tenant, CreateTenantRequest, UpdateTenantRequest, UserTenantLinkStore, UserTenantLink, CreateUserTenantLinkRequest, UpdateUserTenantLinkRequest, WorkflowTrackingStore, CreateWorkflowRunRequest, WorkflowRun, UpdateWorkflowRunRequest, QueryWorkflowRunsOptions, QueryWorkflowRunsResult, CreateRunStepRequest, RunStep, UpdateRunStepRequest, StepType, EvalStore, EvalProject, CreateEvalProjectRequest, EvalSuite, CreateEvalSuiteRequest, EvalCase, CreateEvalCaseRequest, EvalRun, CreateEvalRunRequest, EvalRunResult, EvalProjectReport, BindingRegistry, Binding, CreateBindingInput, ChannelInstallationStore, ChannelInstallation, ChannelInstallationType, CreateChannelInstallationRequest, UpdateChannelInstallationRequest, A2AApiKeyStore, A2AApiKeyRecord, CreateA2AApiKeyInput, A2AApiKeyEntry, AgentWebAppStore, AgentWebApp, CreateAgentWebAppInput, AgentWebAppStorePatch, AgentWebAppUpdateOptions, ScheduleStorage, ScheduledTaskDefinition, ScheduledTaskStatus, ScheduleExecutionType, TaskStore, CreateTaskRequest, TaskItem, TaskListFilter, UpdateTaskRequest, TaskWorkItemStore, CreateWorkItemRequest, TaskWorkItem, CreateWorkItemIfAbsentRequest, TaskWorkItemListFilter, MenuRegistry, MenuItem, CreateMenuItemInput, UpdateMenuItemInput, SharedResourceStore, ShareRecord, CollectionStore, Collection, CreateCollectionRequest, UpdateCollectionRequest, VectorStoreProvider, VectorStoreCreateParams, SkillStore, Skill, CreateSkillRequest } from '@axiom-lattice/protocols';
4
- export { AgentWebApp, AgentWebAppAppearance, AgentWebAppFeatures, AgentWebAppScope, AgentWebAppStatus, AgentWebAppStore, Assistant, AssistantStore, Binding, BindingRegistry, ChannelInstallation, ChannelInstallationStore, ConnectionEntry, ConnectionStore, CreateAgentWebAppInput, CreateAssistantRequest, CreateBindingInput, CreateChannelInstallationRequest, CreateDatabaseConfigRequest, CreateEvalCaseRequest, CreateEvalProjectRequest, CreateEvalRunRequest, CreateEvalSuiteRequest, CreateMcpServerConfigRequest, CreateMenuItemInput, CreateMetricsServerConfigRequest, CreateProjectRequest, CreateRunStepRequest, CreateShareRequest, CreateSkillRequest, CreateTenantRequest, CreateThreadRequest, CreateUserRequest, CreateUserTenantLinkRequest, CreateWorkflowRunRequest, CreateWorkspaceRequest, DatabaseConfig, DatabaseConfigEntry, DatabaseConfigStore, DatabaseType, EvalCase, EvalProject, EvalProjectReport, EvalRun, EvalRunResult, EvalStore, EvalSuite, LarkChannelInstallationConfig, McpServerConfigEntry, McpServerConfigStore, MenuItem, MenuRegistry, MetricsServerConfig, MetricsServerConfigEntry, MetricsServerConfigStore, Project, ProjectStore, ResourceAddress, RunStep, ScheduleExecutionType, ScheduleStorage, ScheduledTaskDefinition, ScheduledTaskStatus, ShareRecord, ShareResult, ShareVisibility, SharedResourceStore, Skill, SkillStore, StorageType, Tenant, TenantStatus, TenantStore, Thread, ThreadStore, UpdateAgentWebAppInput, UpdateChannelInstallationRequest, UpdateDatabaseConfigRequest, UpdateMcpServerConfigRequest, UpdateMetricsServerConfigRequest, UpdateProjectRequest, UpdateRunStepRequest, UpdateTenantRequest, UpdateUserRequest, UpdateUserTenantLinkRequest, UpdateWorkflowRunRequest, UpdateWorkspaceRequest, User, UserStore, UserTenantLink, UserTenantLinkStore, UserTenantRole, WorkflowRun, WorkflowTrackingStore, Workspace, WorkspaceStore } from '@axiom-lattice/protocols';
5
- import { IMessageQueueStore, AddMessageParams, PendingMessage, ThreadInfo } from '@axiom-lattice/core';
3
+ import { ThreadStore, Thread, CreateThreadRequest, AssistantStore, Assistant, CreateAssistantRequest, DatabaseConfigStore, DatabaseConfigEntry, CreateDatabaseConfigRequest, UpdateDatabaseConfigRequest, ConnectionStore, ConnectionEntry, MetricsServerConfigStore, MetricsServerConfigEntry, CreateMetricsServerConfigRequest, UpdateMetricsServerConfigRequest, McpServerConfigStore, McpServerConfigEntry, CreateMcpServerConfigRequest, UpdateMcpServerConfigRequest, WorkspaceStore, Workspace, CreateWorkspaceRequest, UpdateWorkspaceRequest, ProjectStore, ProjectFilter, Project, CreateProjectRequest, UpdateProjectRequest, UpdateProjectCapabilityBundlesResult, UserStore, User, CreateUserRequest, UpdateUserRequest, TenantStore, Tenant, CreateTenantRequest, UpdateTenantRequest, UserTenantLinkStore, UserTenantLink, CreateUserTenantLinkRequest, UpdateUserTenantLinkRequest, WorkflowTrackingStore, CreateWorkflowRunRequest, WorkflowRun, UpdateWorkflowRunRequest, QueryWorkflowRunsOptions, QueryWorkflowRunsResult, CreateRunStepRequest, RunStep, UpdateRunStepRequest, StepType, EvalStore, EvalProject, CreateEvalProjectRequest, EvalSuite, CreateEvalSuiteRequest, EvalCase, CreateEvalCaseRequest, EvalRun, CreateEvalRunRequest, EvalRunResult, EvalProjectReport, BindingRegistry, Binding, CreateBindingInput, ChannelInstallationStore, ChannelInstallation, ChannelInstallationType, CreateChannelInstallationRequest, UpdateChannelInstallationRequest, A2AApiKeyStore, A2AApiKeyRecord, CreateA2AApiKeyInput, A2AApiKeyEntry, AgentWebAppStore, AgentWebApp, CreateAgentWebAppInput, AgentWebAppStorePatch, AgentWebAppUpdateOptions, ScheduleStorage, ScheduledTaskDefinition, ScheduledTaskStatus, ScheduleExecutionType, TaskStore, CreateTaskRequest, TaskItem, TaskListFilter, UpdateTaskRequest, TaskWorkItemStore, CreateWorkItemRequest, TaskWorkItem, CreateWorkItemIfAbsentRequest, TaskWorkItemListFilter, MenuRegistry, MenuItem, CreateMenuItemInput, UpdateMenuItemInput, SharedResourceStore, ShareRecord, CollectionStore, Collection, CreateCollectionRequest, UpdateCollectionRequest, VectorStoreProvider, VectorStoreCreateParams, CapabilityBundleStore, CapabilityBundle, InternalCreateCapabilityBundleInput, InternalUpdateCapabilityBundleInput, CapabilityBundleDeleteResult, SkillStore, Skill, CreateSkillRequest } from '@axiom-lattice/protocols';
4
+ export { AgentWebApp, AgentWebAppAppearance, AgentWebAppFeatures, AgentWebAppScope, AgentWebAppStatus, AgentWebAppStore, Assistant, AssistantStore, Binding, BindingRegistry, CapabilityBundle, CapabilityBundleStore, ChannelInstallation, ChannelInstallationStore, ConnectionEntry, ConnectionStore, CreateAgentWebAppInput, CreateAssistantRequest, CreateBindingInput, CreateCapabilityBundleInput, CreateChannelInstallationRequest, CreateDatabaseConfigRequest, CreateEvalCaseRequest, CreateEvalProjectRequest, CreateEvalRunRequest, CreateEvalSuiteRequest, CreateMcpServerConfigRequest, CreateMenuItemInput, CreateMetricsServerConfigRequest, CreateProjectRequest, CreateRunStepRequest, CreateShareRequest, CreateSkillRequest, CreateTenantRequest, CreateThreadRequest, CreateUserRequest, CreateUserTenantLinkRequest, CreateWorkflowRunRequest, CreateWorkspaceRequest, DatabaseConfig, DatabaseConfigEntry, DatabaseConfigStore, DatabaseType, EvalCase, EvalProject, EvalProjectReport, EvalRun, EvalRunResult, EvalStore, EvalSuite, LarkChannelInstallationConfig, McpServerConfigEntry, McpServerConfigStore, MenuItem, MenuRegistry, MetricsServerConfig, MetricsServerConfigEntry, MetricsServerConfigStore, Project, ProjectStore, ResourceAddress, RunStep, ScheduleExecutionType, ScheduleStorage, ScheduledTaskDefinition, ScheduledTaskStatus, ShareRecord, ShareResult, ShareVisibility, SharedResourceStore, Skill, SkillStore, StorageType, Tenant, TenantStatus, TenantStore, Thread, ThreadStore, UpdateAgentWebAppInput, UpdateCapabilityBundleInput, UpdateChannelInstallationRequest, UpdateDatabaseConfigRequest, UpdateMcpServerConfigRequest, UpdateMetricsServerConfigRequest, UpdateProjectRequest, UpdateRunStepRequest, UpdateTenantRequest, UpdateUserRequest, UpdateUserTenantLinkRequest, UpdateWorkflowRunRequest, UpdateWorkspaceRequest, User, UserStore, UserTenantLink, UserTenantLinkStore, UserTenantRole, WorkflowRun, WorkflowTrackingStore, Workspace, WorkspaceStore } from '@axiom-lattice/protocols';
5
+ import { IMessageQueueStore, AddMessageParams, PendingMessage, QueueScope, ThreadInfo } from '@axiom-lattice/core';
6
6
  export { AddMessageParams, PendingMessage, ThreadInfo } from '@axiom-lattice/core';
7
7
  import { PostgresSaver } from '@langchain/langgraph-checkpoint-postgres';
8
8
  import { DocumentInterface } from '@langchain/core/documents';
@@ -620,6 +620,8 @@ declare class PostgreSQLProjectStore implements ProjectStore {
620
620
  * Delete a project by ID
621
621
  */
622
622
  deleteProject(tenantId: string, id: string): Promise<boolean>;
623
+ updateCapabilityBundleIds(tenantId: string, projectId: string, bundleIds: string[], expectedRevisions?: Record<string, string>): Promise<UpdateProjectCapabilityBundlesResult>;
624
+ isCapabilityBundleReferenced(tenantId: string, bundleId: string): Promise<boolean>;
623
625
  }
624
626
 
625
627
  interface PostgreSQLUserStoreOptions {
@@ -913,6 +915,7 @@ declare class ThreadMessageQueueStore implements IMessageQueueStore {
913
915
  * Add message to queue
914
916
  */
915
917
  addMessage(params: AddMessageParams): Promise<PendingMessage>;
918
+ addMessageIfCapacity(params: AddMessageParams, maxSize: number): Promise<boolean>;
916
919
  /**
917
920
  * Add message at head of queue (high priority, e.g., STEER/Command messages)
918
921
  * Uses priority=100 to ensure message is processed first
@@ -921,15 +924,15 @@ declare class ThreadMessageQueueStore implements IMessageQueueStore {
921
924
  /**
922
925
  * Get pending messages for thread
923
926
  */
924
- getPendingMessages(threadId: string): Promise<PendingMessage[]>;
927
+ getPendingMessages(threadId: string, scope?: QueueScope): Promise<PendingMessage[]>;
925
928
  /**
926
929
  * Get processing messages for a thread
927
930
  */
928
- getProcessingMessages(threadId: string): Promise<PendingMessage[]>;
931
+ getProcessingMessages(threadId: string, scope?: QueueScope): Promise<PendingMessage[]>;
929
932
  /**
930
933
  * Get queue size
931
934
  */
932
- getQueueSize(threadId: string): Promise<number>;
935
+ getQueueSize(threadId: string, scope?: QueueScope): Promise<number>;
933
936
  /**
934
937
  * Get all threads with pending or processing messages
935
938
  */
@@ -937,20 +940,20 @@ declare class ThreadMessageQueueStore implements IMessageQueueStore {
937
940
  /**
938
941
  * Remove message
939
942
  */
940
- removeMessage(messageId: string): Promise<boolean>;
943
+ removeMessage(messageId: string, scope?: QueueScope): Promise<boolean>;
941
944
  /**
942
945
  * Clear all messages for thread
943
946
  */
944
- clearMessages(threadId: string): Promise<void>;
947
+ clearMessages(threadId: string, scope?: QueueScope): Promise<void>;
945
948
  /**
946
949
  * Mark message as processing
947
950
  */
948
- markProcessing(messageId: string): Promise<void>;
951
+ markProcessing(messageId: string, customRunConfig?: unknown, scope?: QueueScope): Promise<void>;
949
952
  /**
950
953
  * Reset all processing messages to pending state for a thread
951
954
  * Returns the number of messages reset
952
955
  */
953
- resetProcessingToPending(threadId: string): Promise<number>;
956
+ resetProcessingToPending(threadId: string, scope?: QueueScope): Promise<number>;
954
957
  private rowToMessage;
955
958
  }
956
959
 
@@ -1250,6 +1253,12 @@ declare class PostgreSQLTaskWorkItemStore implements TaskWorkItemStore {
1250
1253
  /** Atomically return an existing event or create it once. */
1251
1254
  createIfAbsentByEventKey(params: CreateWorkItemIfAbsentRequest): Promise<TaskWorkItem>;
1252
1255
  list(filter: TaskWorkItemListFilter): Promise<TaskWorkItem[]>;
1256
+ /** List pending execution results using one bounded PostgreSQL anti-join query. */
1257
+ listPendingExecutionResults(params: {
1258
+ tenantId: string;
1259
+ taskId: string;
1260
+ limit: number;
1261
+ }): Promise<TaskWorkItem[]>;
1253
1262
  private rowToItem;
1254
1263
  }
1255
1264
 
@@ -1360,6 +1369,73 @@ declare function createPGVectorStoreProvider(connectionString: string): {
1360
1369
  pool: Pool;
1361
1370
  };
1362
1371
 
1372
+ /**
1373
+ * Configures PostgreSQL connectivity and migration behavior for capability bundles.
1374
+ *
1375
+ * @remarks
1376
+ * An injected `pool` is externally managed and assumed to have migrations applied.
1377
+ * When `poolConfig` is used, the store owns the pool and runs migrations eagerly
1378
+ * unless `autoMigrate` is false. Call `initialize()` before use in that case.
1379
+ */
1380
+ interface PostgreSQLCapabilityBundleStoreOptions {
1381
+ /** Externally managed PostgreSQL pool. */
1382
+ pool?: Pool;
1383
+ /** Connection string or pool configuration used to create an owned pool. */
1384
+ poolConfig?: string | PoolConfig;
1385
+ /** Whether an owned pool should run migrations during construction. @default true */
1386
+ autoMigrate?: boolean;
1387
+ }
1388
+ /**
1389
+ * Persists tenant-scoped capability bundles in PostgreSQL.
1390
+ *
1391
+ * @example
1392
+ * ```ts
1393
+ * const store = new PostgreSQLCapabilityBundleStore({ poolConfig: connectionString });
1394
+ * await store.initialize();
1395
+ * const bundles = await store.listByTenant("tenant-1");
1396
+ * await store.dispose();
1397
+ * ```
1398
+ *
1399
+ * @remarks
1400
+ * Stores created from `poolConfig` own their pool and must be disposed. Stores
1401
+ * created with an injected pool neither migrate nor close that pool.
1402
+ */
1403
+ declare class PostgreSQLCapabilityBundleStore implements CapabilityBundleStore {
1404
+ private readonly pool;
1405
+ private migrationManager;
1406
+ private initialized;
1407
+ private ownsPool;
1408
+ private initPromise;
1409
+ /**
1410
+ * Creates a PostgreSQL capability bundle store.
1411
+ *
1412
+ * @param options - Pool ownership, connection, and migration options.
1413
+ */
1414
+ constructor(options: PostgreSQLCapabilityBundleStoreOptions);
1415
+ /**
1416
+ * Applies pending migrations for an internally managed pool.
1417
+ *
1418
+ * @returns A shared promise that resolves when initialization completes.
1419
+ */
1420
+ initialize(): Promise<void>;
1421
+ private startInitialization;
1422
+ /**
1423
+ * Closes the pool when it was created by this store.
1424
+ *
1425
+ * @returns A promise that resolves after owned resources are released.
1426
+ */
1427
+ dispose(): Promise<void>;
1428
+ private ready;
1429
+ listByTenant(tenantId: string): Promise<CapabilityBundle[]>;
1430
+ getById(tenantId: string, id: string): Promise<CapabilityBundle | null>;
1431
+ getManyByIds(tenantId: string, ids: string[]): Promise<CapabilityBundle[]>;
1432
+ create(tenantId: string, input: InternalCreateCapabilityBundleInput): Promise<CapabilityBundle>;
1433
+ update(tenantId: string, id: string, input: InternalUpdateCapabilityBundleInput): Promise<CapabilityBundle | {
1434
+ status: "conflict";
1435
+ } | null>;
1436
+ deleteIfUnreferenced(tenantId: string, id: string): Promise<CapabilityBundleDeleteResult>;
1437
+ }
1438
+
1363
1439
  declare function createPgStoreConfig(connectionString: string): Promise<{
1364
1440
  workspace: PostgreSQLWorkspaceStore;
1365
1441
  project: PostgreSQLProjectStore;
@@ -1381,6 +1457,7 @@ declare function createPgStoreConfig(connectionString: string): Promise<{
1381
1457
  taskWorkItem: PostgreSQLTaskWorkItemStore;
1382
1458
  a2aApiKey: PostgreSQLA2AApiKeyStore;
1383
1459
  agentWebApp: PostgreSQLAgentWebAppStore;
1460
+ capabilityBundle: PostgreSQLCapabilityBundleStore;
1384
1461
  schedule: PostgreSQLScheduleStorage;
1385
1462
  menu: MenuStore;
1386
1463
  sharedResource: PostgresSharedResourceStore;
@@ -1828,6 +1905,9 @@ declare class ChannelIdentityMappingStore {
1828
1905
  private ensureInitialized;
1829
1906
  }
1830
1907
 
1908
+ /** Creates the tenant-scoped capability bundle table. */
1909
+ declare const createCapabilityBundlesTable: Migration;
1910
+
1831
1911
  /**
1832
1912
  * Eval table migrations
1833
1913
  */
@@ -1867,4 +1947,4 @@ declare const addFileContentType: Migration;
1867
1947
 
1868
1948
  declare const createCollectionsTable: Migration;
1869
1949
 
1870
- export { ChannelBindingStore, type ChannelBindingStoreOptions, type ChannelIdentityMapping, ChannelIdentityMappingStore, type ChannelIdentityMappingStoreOptions, type CreateChannelIdentityMappingInput, MenuStore, type MenuStoreOptions, type Migration, MigrationManager, PGVectorStoreProvider, PostgreSQLA2AApiKeyStore, type PostgreSQLA2AApiKeyStoreOptions, PostgreSQLAgentWebAppStore, type PostgreSQLAgentWebAppStoreOptions, PostgreSQLAssistantStore, type PostgreSQLAssistantStoreOptions, PostgreSQLChannelInstallationStore, type PostgreSQLChannelInstallationStoreOptions, PostgreSQLCollectionStore, type PostgreSQLCollectionStoreOptions, PostgreSQLConnectionStore, PostgreSQLDatabaseConfigStore, type PostgreSQLDatabaseConfigStoreOptions, PostgreSQLEvalStore, type PostgreSQLEvalStoreOptions, PostgreSQLMcpServerConfigStore, type PostgreSQLMcpServerConfigStoreOptions, PostgreSQLMetricsServerConfigStore, type PostgreSQLMetricsServerConfigStoreOptions, PostgreSQLProjectStore, type PostgreSQLProjectStoreOptions, PostgreSQLScheduleStorage, type PostgreSQLScheduleStorageOptions, PostgreSQLSkillStore, type PostgreSQLSkillStoreOptions, PostgreSQLTenantStore, type PostgreSQLTenantStoreOptions, type PostgreSQLThreadMessageQueueStoreOptions, PostgreSQLThreadStore, type PostgreSQLThreadStoreOptions, PostgreSQLUserStore, type PostgreSQLUserStoreOptions, PostgreSQLUserTenantLinkStore, type PostgreSQLUserTenantLinkStoreOptions, PostgreSQLWorkflowTrackingStore, type PostgreSQLWorkflowTrackingStoreOptions, PostgreSQLWorkspaceStore, type PostgreSQLWorkspaceStoreOptions, PostgresSharedResourceStore, type PostgresSharedResourceStoreOptions, ThreadMessageQueueStore, addAssistantTenantId, addEnvToEvalRuns, addFileContentType, addHoldoutToEvalRuns, addInterruptColumnsToEval, addInterruptPolicyToEvalCases, addProjectConfigColumn, addScheduleTenantId, addSkillTenantId, addStepThreadId, addTaskIdToEvalRuns, addThreadTenantId, addWorkflowRunsTenantStatusUpdatedIndex, alterChannelInstallationsTable, changeAssistantPrimaryKey, changeSkillPrimaryKey, changeThreadPrimaryKey, createA2AApiKeysTable, createAgentWebAppsTable, createAssistantsTable, createChannelBindingsTable, createChannelIdentityMappingTables, createChannelInstallationsTable, createCollectionsTable, createDatabaseConfigsTable, createEvalCasesTable, createEvalProjectsTable, createEvalRunResultsTable, createEvalRunsTable, createEvalSuitesTable, createMcpServerConfigsTable, createMenuItemsTable, createMetricsConfigsTable, createPGVectorStoreProvider, createPgStoreConfig, createProjectsTable, createScheduledTasksTable, createSharedResourcesTable, createSkillsTable, createTenantsTable, createThreadMessageQueueTable, createThreadsTable, createUsersTable, createWorkflowTrackingTables, createWorkspacesTable, enforceUniqueEvalProjectName, evalMigrations, mapRowToRunStep, mapRowToWorkflowRun, safeParse };
1950
+ export { ChannelBindingStore, type ChannelBindingStoreOptions, type ChannelIdentityMapping, ChannelIdentityMappingStore, type ChannelIdentityMappingStoreOptions, type CreateChannelIdentityMappingInput, MenuStore, type MenuStoreOptions, type Migration, MigrationManager, PGVectorStoreProvider, PostgreSQLA2AApiKeyStore, type PostgreSQLA2AApiKeyStoreOptions, PostgreSQLAgentWebAppStore, type PostgreSQLAgentWebAppStoreOptions, PostgreSQLAssistantStore, type PostgreSQLAssistantStoreOptions, PostgreSQLCapabilityBundleStore, type PostgreSQLCapabilityBundleStoreOptions, PostgreSQLChannelInstallationStore, type PostgreSQLChannelInstallationStoreOptions, PostgreSQLCollectionStore, type PostgreSQLCollectionStoreOptions, PostgreSQLConnectionStore, PostgreSQLDatabaseConfigStore, type PostgreSQLDatabaseConfigStoreOptions, PostgreSQLEvalStore, type PostgreSQLEvalStoreOptions, PostgreSQLMcpServerConfigStore, type PostgreSQLMcpServerConfigStoreOptions, PostgreSQLMetricsServerConfigStore, type PostgreSQLMetricsServerConfigStoreOptions, PostgreSQLProjectStore, type PostgreSQLProjectStoreOptions, PostgreSQLScheduleStorage, type PostgreSQLScheduleStorageOptions, PostgreSQLSkillStore, type PostgreSQLSkillStoreOptions, PostgreSQLTenantStore, type PostgreSQLTenantStoreOptions, type PostgreSQLThreadMessageQueueStoreOptions, PostgreSQLThreadStore, type PostgreSQLThreadStoreOptions, PostgreSQLUserStore, type PostgreSQLUserStoreOptions, PostgreSQLUserTenantLinkStore, type PostgreSQLUserTenantLinkStoreOptions, PostgreSQLWorkflowTrackingStore, type PostgreSQLWorkflowTrackingStoreOptions, PostgreSQLWorkspaceStore, type PostgreSQLWorkspaceStoreOptions, PostgresSharedResourceStore, type PostgresSharedResourceStoreOptions, ThreadMessageQueueStore, addAssistantTenantId, addEnvToEvalRuns, addFileContentType, addHoldoutToEvalRuns, addInterruptColumnsToEval, addInterruptPolicyToEvalCases, addProjectConfigColumn, addScheduleTenantId, addSkillTenantId, addStepThreadId, addTaskIdToEvalRuns, addThreadTenantId, addWorkflowRunsTenantStatusUpdatedIndex, alterChannelInstallationsTable, changeAssistantPrimaryKey, changeSkillPrimaryKey, changeThreadPrimaryKey, createA2AApiKeysTable, createAgentWebAppsTable, createAssistantsTable, createCapabilityBundlesTable, createChannelBindingsTable, createChannelIdentityMappingTables, createChannelInstallationsTable, createCollectionsTable, createDatabaseConfigsTable, createEvalCasesTable, createEvalProjectsTable, createEvalRunResultsTable, createEvalRunsTable, createEvalSuitesTable, createMcpServerConfigsTable, createMenuItemsTable, createMetricsConfigsTable, createPGVectorStoreProvider, createPgStoreConfig, createProjectsTable, createScheduledTasksTable, createSharedResourcesTable, createSkillsTable, createTenantsTable, createThreadMessageQueueTable, createThreadsTable, createUsersTable, createWorkflowTrackingTables, createWorkspacesTable, enforceUniqueEvalProjectName, evalMigrations, mapRowToRunStep, mapRowToWorkflowRun, safeParse };
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { Pool, PoolConfig, PoolClient } from 'pg';
2
2
  export { Pool, PoolConfig } from 'pg';
3
- import { ThreadStore, Thread, CreateThreadRequest, AssistantStore, Assistant, CreateAssistantRequest, DatabaseConfigStore, DatabaseConfigEntry, CreateDatabaseConfigRequest, UpdateDatabaseConfigRequest, ConnectionStore, ConnectionEntry, MetricsServerConfigStore, MetricsServerConfigEntry, CreateMetricsServerConfigRequest, UpdateMetricsServerConfigRequest, McpServerConfigStore, McpServerConfigEntry, CreateMcpServerConfigRequest, UpdateMcpServerConfigRequest, WorkspaceStore, Workspace, CreateWorkspaceRequest, UpdateWorkspaceRequest, ProjectStore, ProjectFilter, Project, CreateProjectRequest, UpdateProjectRequest, UserStore, User, CreateUserRequest, UpdateUserRequest, TenantStore, Tenant, CreateTenantRequest, UpdateTenantRequest, UserTenantLinkStore, UserTenantLink, CreateUserTenantLinkRequest, UpdateUserTenantLinkRequest, WorkflowTrackingStore, CreateWorkflowRunRequest, WorkflowRun, UpdateWorkflowRunRequest, QueryWorkflowRunsOptions, QueryWorkflowRunsResult, CreateRunStepRequest, RunStep, UpdateRunStepRequest, StepType, EvalStore, EvalProject, CreateEvalProjectRequest, EvalSuite, CreateEvalSuiteRequest, EvalCase, CreateEvalCaseRequest, EvalRun, CreateEvalRunRequest, EvalRunResult, EvalProjectReport, BindingRegistry, Binding, CreateBindingInput, ChannelInstallationStore, ChannelInstallation, ChannelInstallationType, CreateChannelInstallationRequest, UpdateChannelInstallationRequest, A2AApiKeyStore, A2AApiKeyRecord, CreateA2AApiKeyInput, A2AApiKeyEntry, AgentWebAppStore, AgentWebApp, CreateAgentWebAppInput, AgentWebAppStorePatch, AgentWebAppUpdateOptions, ScheduleStorage, ScheduledTaskDefinition, ScheduledTaskStatus, ScheduleExecutionType, TaskStore, CreateTaskRequest, TaskItem, TaskListFilter, UpdateTaskRequest, TaskWorkItemStore, CreateWorkItemRequest, TaskWorkItem, CreateWorkItemIfAbsentRequest, TaskWorkItemListFilter, MenuRegistry, MenuItem, CreateMenuItemInput, UpdateMenuItemInput, SharedResourceStore, ShareRecord, CollectionStore, Collection, CreateCollectionRequest, UpdateCollectionRequest, VectorStoreProvider, VectorStoreCreateParams, SkillStore, Skill, CreateSkillRequest } from '@axiom-lattice/protocols';
4
- export { AgentWebApp, AgentWebAppAppearance, AgentWebAppFeatures, AgentWebAppScope, AgentWebAppStatus, AgentWebAppStore, Assistant, AssistantStore, Binding, BindingRegistry, ChannelInstallation, ChannelInstallationStore, ConnectionEntry, ConnectionStore, CreateAgentWebAppInput, CreateAssistantRequest, CreateBindingInput, CreateChannelInstallationRequest, CreateDatabaseConfigRequest, CreateEvalCaseRequest, CreateEvalProjectRequest, CreateEvalRunRequest, CreateEvalSuiteRequest, CreateMcpServerConfigRequest, CreateMenuItemInput, CreateMetricsServerConfigRequest, CreateProjectRequest, CreateRunStepRequest, CreateShareRequest, CreateSkillRequest, CreateTenantRequest, CreateThreadRequest, CreateUserRequest, CreateUserTenantLinkRequest, CreateWorkflowRunRequest, CreateWorkspaceRequest, DatabaseConfig, DatabaseConfigEntry, DatabaseConfigStore, DatabaseType, EvalCase, EvalProject, EvalProjectReport, EvalRun, EvalRunResult, EvalStore, EvalSuite, LarkChannelInstallationConfig, McpServerConfigEntry, McpServerConfigStore, MenuItem, MenuRegistry, MetricsServerConfig, MetricsServerConfigEntry, MetricsServerConfigStore, Project, ProjectStore, ResourceAddress, RunStep, ScheduleExecutionType, ScheduleStorage, ScheduledTaskDefinition, ScheduledTaskStatus, ShareRecord, ShareResult, ShareVisibility, SharedResourceStore, Skill, SkillStore, StorageType, Tenant, TenantStatus, TenantStore, Thread, ThreadStore, UpdateAgentWebAppInput, UpdateChannelInstallationRequest, UpdateDatabaseConfigRequest, UpdateMcpServerConfigRequest, UpdateMetricsServerConfigRequest, UpdateProjectRequest, UpdateRunStepRequest, UpdateTenantRequest, UpdateUserRequest, UpdateUserTenantLinkRequest, UpdateWorkflowRunRequest, UpdateWorkspaceRequest, User, UserStore, UserTenantLink, UserTenantLinkStore, UserTenantRole, WorkflowRun, WorkflowTrackingStore, Workspace, WorkspaceStore } from '@axiom-lattice/protocols';
5
- import { IMessageQueueStore, AddMessageParams, PendingMessage, ThreadInfo } from '@axiom-lattice/core';
3
+ import { ThreadStore, Thread, CreateThreadRequest, AssistantStore, Assistant, CreateAssistantRequest, DatabaseConfigStore, DatabaseConfigEntry, CreateDatabaseConfigRequest, UpdateDatabaseConfigRequest, ConnectionStore, ConnectionEntry, MetricsServerConfigStore, MetricsServerConfigEntry, CreateMetricsServerConfigRequest, UpdateMetricsServerConfigRequest, McpServerConfigStore, McpServerConfigEntry, CreateMcpServerConfigRequest, UpdateMcpServerConfigRequest, WorkspaceStore, Workspace, CreateWorkspaceRequest, UpdateWorkspaceRequest, ProjectStore, ProjectFilter, Project, CreateProjectRequest, UpdateProjectRequest, UpdateProjectCapabilityBundlesResult, UserStore, User, CreateUserRequest, UpdateUserRequest, TenantStore, Tenant, CreateTenantRequest, UpdateTenantRequest, UserTenantLinkStore, UserTenantLink, CreateUserTenantLinkRequest, UpdateUserTenantLinkRequest, WorkflowTrackingStore, CreateWorkflowRunRequest, WorkflowRun, UpdateWorkflowRunRequest, QueryWorkflowRunsOptions, QueryWorkflowRunsResult, CreateRunStepRequest, RunStep, UpdateRunStepRequest, StepType, EvalStore, EvalProject, CreateEvalProjectRequest, EvalSuite, CreateEvalSuiteRequest, EvalCase, CreateEvalCaseRequest, EvalRun, CreateEvalRunRequest, EvalRunResult, EvalProjectReport, BindingRegistry, Binding, CreateBindingInput, ChannelInstallationStore, ChannelInstallation, ChannelInstallationType, CreateChannelInstallationRequest, UpdateChannelInstallationRequest, A2AApiKeyStore, A2AApiKeyRecord, CreateA2AApiKeyInput, A2AApiKeyEntry, AgentWebAppStore, AgentWebApp, CreateAgentWebAppInput, AgentWebAppStorePatch, AgentWebAppUpdateOptions, ScheduleStorage, ScheduledTaskDefinition, ScheduledTaskStatus, ScheduleExecutionType, TaskStore, CreateTaskRequest, TaskItem, TaskListFilter, UpdateTaskRequest, TaskWorkItemStore, CreateWorkItemRequest, TaskWorkItem, CreateWorkItemIfAbsentRequest, TaskWorkItemListFilter, MenuRegistry, MenuItem, CreateMenuItemInput, UpdateMenuItemInput, SharedResourceStore, ShareRecord, CollectionStore, Collection, CreateCollectionRequest, UpdateCollectionRequest, VectorStoreProvider, VectorStoreCreateParams, CapabilityBundleStore, CapabilityBundle, InternalCreateCapabilityBundleInput, InternalUpdateCapabilityBundleInput, CapabilityBundleDeleteResult, SkillStore, Skill, CreateSkillRequest } from '@axiom-lattice/protocols';
4
+ export { AgentWebApp, AgentWebAppAppearance, AgentWebAppFeatures, AgentWebAppScope, AgentWebAppStatus, AgentWebAppStore, Assistant, AssistantStore, Binding, BindingRegistry, CapabilityBundle, CapabilityBundleStore, ChannelInstallation, ChannelInstallationStore, ConnectionEntry, ConnectionStore, CreateAgentWebAppInput, CreateAssistantRequest, CreateBindingInput, CreateCapabilityBundleInput, CreateChannelInstallationRequest, CreateDatabaseConfigRequest, CreateEvalCaseRequest, CreateEvalProjectRequest, CreateEvalRunRequest, CreateEvalSuiteRequest, CreateMcpServerConfigRequest, CreateMenuItemInput, CreateMetricsServerConfigRequest, CreateProjectRequest, CreateRunStepRequest, CreateShareRequest, CreateSkillRequest, CreateTenantRequest, CreateThreadRequest, CreateUserRequest, CreateUserTenantLinkRequest, CreateWorkflowRunRequest, CreateWorkspaceRequest, DatabaseConfig, DatabaseConfigEntry, DatabaseConfigStore, DatabaseType, EvalCase, EvalProject, EvalProjectReport, EvalRun, EvalRunResult, EvalStore, EvalSuite, LarkChannelInstallationConfig, McpServerConfigEntry, McpServerConfigStore, MenuItem, MenuRegistry, MetricsServerConfig, MetricsServerConfigEntry, MetricsServerConfigStore, Project, ProjectStore, ResourceAddress, RunStep, ScheduleExecutionType, ScheduleStorage, ScheduledTaskDefinition, ScheduledTaskStatus, ShareRecord, ShareResult, ShareVisibility, SharedResourceStore, Skill, SkillStore, StorageType, Tenant, TenantStatus, TenantStore, Thread, ThreadStore, UpdateAgentWebAppInput, UpdateCapabilityBundleInput, UpdateChannelInstallationRequest, UpdateDatabaseConfigRequest, UpdateMcpServerConfigRequest, UpdateMetricsServerConfigRequest, UpdateProjectRequest, UpdateRunStepRequest, UpdateTenantRequest, UpdateUserRequest, UpdateUserTenantLinkRequest, UpdateWorkflowRunRequest, UpdateWorkspaceRequest, User, UserStore, UserTenantLink, UserTenantLinkStore, UserTenantRole, WorkflowRun, WorkflowTrackingStore, Workspace, WorkspaceStore } from '@axiom-lattice/protocols';
5
+ import { IMessageQueueStore, AddMessageParams, PendingMessage, QueueScope, ThreadInfo } from '@axiom-lattice/core';
6
6
  export { AddMessageParams, PendingMessage, ThreadInfo } from '@axiom-lattice/core';
7
7
  import { PostgresSaver } from '@langchain/langgraph-checkpoint-postgres';
8
8
  import { DocumentInterface } from '@langchain/core/documents';
@@ -620,6 +620,8 @@ declare class PostgreSQLProjectStore implements ProjectStore {
620
620
  * Delete a project by ID
621
621
  */
622
622
  deleteProject(tenantId: string, id: string): Promise<boolean>;
623
+ updateCapabilityBundleIds(tenantId: string, projectId: string, bundleIds: string[], expectedRevisions?: Record<string, string>): Promise<UpdateProjectCapabilityBundlesResult>;
624
+ isCapabilityBundleReferenced(tenantId: string, bundleId: string): Promise<boolean>;
623
625
  }
624
626
 
625
627
  interface PostgreSQLUserStoreOptions {
@@ -913,6 +915,7 @@ declare class ThreadMessageQueueStore implements IMessageQueueStore {
913
915
  * Add message to queue
914
916
  */
915
917
  addMessage(params: AddMessageParams): Promise<PendingMessage>;
918
+ addMessageIfCapacity(params: AddMessageParams, maxSize: number): Promise<boolean>;
916
919
  /**
917
920
  * Add message at head of queue (high priority, e.g., STEER/Command messages)
918
921
  * Uses priority=100 to ensure message is processed first
@@ -921,15 +924,15 @@ declare class ThreadMessageQueueStore implements IMessageQueueStore {
921
924
  /**
922
925
  * Get pending messages for thread
923
926
  */
924
- getPendingMessages(threadId: string): Promise<PendingMessage[]>;
927
+ getPendingMessages(threadId: string, scope?: QueueScope): Promise<PendingMessage[]>;
925
928
  /**
926
929
  * Get processing messages for a thread
927
930
  */
928
- getProcessingMessages(threadId: string): Promise<PendingMessage[]>;
931
+ getProcessingMessages(threadId: string, scope?: QueueScope): Promise<PendingMessage[]>;
929
932
  /**
930
933
  * Get queue size
931
934
  */
932
- getQueueSize(threadId: string): Promise<number>;
935
+ getQueueSize(threadId: string, scope?: QueueScope): Promise<number>;
933
936
  /**
934
937
  * Get all threads with pending or processing messages
935
938
  */
@@ -937,20 +940,20 @@ declare class ThreadMessageQueueStore implements IMessageQueueStore {
937
940
  /**
938
941
  * Remove message
939
942
  */
940
- removeMessage(messageId: string): Promise<boolean>;
943
+ removeMessage(messageId: string, scope?: QueueScope): Promise<boolean>;
941
944
  /**
942
945
  * Clear all messages for thread
943
946
  */
944
- clearMessages(threadId: string): Promise<void>;
947
+ clearMessages(threadId: string, scope?: QueueScope): Promise<void>;
945
948
  /**
946
949
  * Mark message as processing
947
950
  */
948
- markProcessing(messageId: string): Promise<void>;
951
+ markProcessing(messageId: string, customRunConfig?: unknown, scope?: QueueScope): Promise<void>;
949
952
  /**
950
953
  * Reset all processing messages to pending state for a thread
951
954
  * Returns the number of messages reset
952
955
  */
953
- resetProcessingToPending(threadId: string): Promise<number>;
956
+ resetProcessingToPending(threadId: string, scope?: QueueScope): Promise<number>;
954
957
  private rowToMessage;
955
958
  }
956
959
 
@@ -1250,6 +1253,12 @@ declare class PostgreSQLTaskWorkItemStore implements TaskWorkItemStore {
1250
1253
  /** Atomically return an existing event or create it once. */
1251
1254
  createIfAbsentByEventKey(params: CreateWorkItemIfAbsentRequest): Promise<TaskWorkItem>;
1252
1255
  list(filter: TaskWorkItemListFilter): Promise<TaskWorkItem[]>;
1256
+ /** List pending execution results using one bounded PostgreSQL anti-join query. */
1257
+ listPendingExecutionResults(params: {
1258
+ tenantId: string;
1259
+ taskId: string;
1260
+ limit: number;
1261
+ }): Promise<TaskWorkItem[]>;
1253
1262
  private rowToItem;
1254
1263
  }
1255
1264
 
@@ -1360,6 +1369,73 @@ declare function createPGVectorStoreProvider(connectionString: string): {
1360
1369
  pool: Pool;
1361
1370
  };
1362
1371
 
1372
+ /**
1373
+ * Configures PostgreSQL connectivity and migration behavior for capability bundles.
1374
+ *
1375
+ * @remarks
1376
+ * An injected `pool` is externally managed and assumed to have migrations applied.
1377
+ * When `poolConfig` is used, the store owns the pool and runs migrations eagerly
1378
+ * unless `autoMigrate` is false. Call `initialize()` before use in that case.
1379
+ */
1380
+ interface PostgreSQLCapabilityBundleStoreOptions {
1381
+ /** Externally managed PostgreSQL pool. */
1382
+ pool?: Pool;
1383
+ /** Connection string or pool configuration used to create an owned pool. */
1384
+ poolConfig?: string | PoolConfig;
1385
+ /** Whether an owned pool should run migrations during construction. @default true */
1386
+ autoMigrate?: boolean;
1387
+ }
1388
+ /**
1389
+ * Persists tenant-scoped capability bundles in PostgreSQL.
1390
+ *
1391
+ * @example
1392
+ * ```ts
1393
+ * const store = new PostgreSQLCapabilityBundleStore({ poolConfig: connectionString });
1394
+ * await store.initialize();
1395
+ * const bundles = await store.listByTenant("tenant-1");
1396
+ * await store.dispose();
1397
+ * ```
1398
+ *
1399
+ * @remarks
1400
+ * Stores created from `poolConfig` own their pool and must be disposed. Stores
1401
+ * created with an injected pool neither migrate nor close that pool.
1402
+ */
1403
+ declare class PostgreSQLCapabilityBundleStore implements CapabilityBundleStore {
1404
+ private readonly pool;
1405
+ private migrationManager;
1406
+ private initialized;
1407
+ private ownsPool;
1408
+ private initPromise;
1409
+ /**
1410
+ * Creates a PostgreSQL capability bundle store.
1411
+ *
1412
+ * @param options - Pool ownership, connection, and migration options.
1413
+ */
1414
+ constructor(options: PostgreSQLCapabilityBundleStoreOptions);
1415
+ /**
1416
+ * Applies pending migrations for an internally managed pool.
1417
+ *
1418
+ * @returns A shared promise that resolves when initialization completes.
1419
+ */
1420
+ initialize(): Promise<void>;
1421
+ private startInitialization;
1422
+ /**
1423
+ * Closes the pool when it was created by this store.
1424
+ *
1425
+ * @returns A promise that resolves after owned resources are released.
1426
+ */
1427
+ dispose(): Promise<void>;
1428
+ private ready;
1429
+ listByTenant(tenantId: string): Promise<CapabilityBundle[]>;
1430
+ getById(tenantId: string, id: string): Promise<CapabilityBundle | null>;
1431
+ getManyByIds(tenantId: string, ids: string[]): Promise<CapabilityBundle[]>;
1432
+ create(tenantId: string, input: InternalCreateCapabilityBundleInput): Promise<CapabilityBundle>;
1433
+ update(tenantId: string, id: string, input: InternalUpdateCapabilityBundleInput): Promise<CapabilityBundle | {
1434
+ status: "conflict";
1435
+ } | null>;
1436
+ deleteIfUnreferenced(tenantId: string, id: string): Promise<CapabilityBundleDeleteResult>;
1437
+ }
1438
+
1363
1439
  declare function createPgStoreConfig(connectionString: string): Promise<{
1364
1440
  workspace: PostgreSQLWorkspaceStore;
1365
1441
  project: PostgreSQLProjectStore;
@@ -1381,6 +1457,7 @@ declare function createPgStoreConfig(connectionString: string): Promise<{
1381
1457
  taskWorkItem: PostgreSQLTaskWorkItemStore;
1382
1458
  a2aApiKey: PostgreSQLA2AApiKeyStore;
1383
1459
  agentWebApp: PostgreSQLAgentWebAppStore;
1460
+ capabilityBundle: PostgreSQLCapabilityBundleStore;
1384
1461
  schedule: PostgreSQLScheduleStorage;
1385
1462
  menu: MenuStore;
1386
1463
  sharedResource: PostgresSharedResourceStore;
@@ -1828,6 +1905,9 @@ declare class ChannelIdentityMappingStore {
1828
1905
  private ensureInitialized;
1829
1906
  }
1830
1907
 
1908
+ /** Creates the tenant-scoped capability bundle table. */
1909
+ declare const createCapabilityBundlesTable: Migration;
1910
+
1831
1911
  /**
1832
1912
  * Eval table migrations
1833
1913
  */
@@ -1867,4 +1947,4 @@ declare const addFileContentType: Migration;
1867
1947
 
1868
1948
  declare const createCollectionsTable: Migration;
1869
1949
 
1870
- export { ChannelBindingStore, type ChannelBindingStoreOptions, type ChannelIdentityMapping, ChannelIdentityMappingStore, type ChannelIdentityMappingStoreOptions, type CreateChannelIdentityMappingInput, MenuStore, type MenuStoreOptions, type Migration, MigrationManager, PGVectorStoreProvider, PostgreSQLA2AApiKeyStore, type PostgreSQLA2AApiKeyStoreOptions, PostgreSQLAgentWebAppStore, type PostgreSQLAgentWebAppStoreOptions, PostgreSQLAssistantStore, type PostgreSQLAssistantStoreOptions, PostgreSQLChannelInstallationStore, type PostgreSQLChannelInstallationStoreOptions, PostgreSQLCollectionStore, type PostgreSQLCollectionStoreOptions, PostgreSQLConnectionStore, PostgreSQLDatabaseConfigStore, type PostgreSQLDatabaseConfigStoreOptions, PostgreSQLEvalStore, type PostgreSQLEvalStoreOptions, PostgreSQLMcpServerConfigStore, type PostgreSQLMcpServerConfigStoreOptions, PostgreSQLMetricsServerConfigStore, type PostgreSQLMetricsServerConfigStoreOptions, PostgreSQLProjectStore, type PostgreSQLProjectStoreOptions, PostgreSQLScheduleStorage, type PostgreSQLScheduleStorageOptions, PostgreSQLSkillStore, type PostgreSQLSkillStoreOptions, PostgreSQLTenantStore, type PostgreSQLTenantStoreOptions, type PostgreSQLThreadMessageQueueStoreOptions, PostgreSQLThreadStore, type PostgreSQLThreadStoreOptions, PostgreSQLUserStore, type PostgreSQLUserStoreOptions, PostgreSQLUserTenantLinkStore, type PostgreSQLUserTenantLinkStoreOptions, PostgreSQLWorkflowTrackingStore, type PostgreSQLWorkflowTrackingStoreOptions, PostgreSQLWorkspaceStore, type PostgreSQLWorkspaceStoreOptions, PostgresSharedResourceStore, type PostgresSharedResourceStoreOptions, ThreadMessageQueueStore, addAssistantTenantId, addEnvToEvalRuns, addFileContentType, addHoldoutToEvalRuns, addInterruptColumnsToEval, addInterruptPolicyToEvalCases, addProjectConfigColumn, addScheduleTenantId, addSkillTenantId, addStepThreadId, addTaskIdToEvalRuns, addThreadTenantId, addWorkflowRunsTenantStatusUpdatedIndex, alterChannelInstallationsTable, changeAssistantPrimaryKey, changeSkillPrimaryKey, changeThreadPrimaryKey, createA2AApiKeysTable, createAgentWebAppsTable, createAssistantsTable, createChannelBindingsTable, createChannelIdentityMappingTables, createChannelInstallationsTable, createCollectionsTable, createDatabaseConfigsTable, createEvalCasesTable, createEvalProjectsTable, createEvalRunResultsTable, createEvalRunsTable, createEvalSuitesTable, createMcpServerConfigsTable, createMenuItemsTable, createMetricsConfigsTable, createPGVectorStoreProvider, createPgStoreConfig, createProjectsTable, createScheduledTasksTable, createSharedResourcesTable, createSkillsTable, createTenantsTable, createThreadMessageQueueTable, createThreadsTable, createUsersTable, createWorkflowTrackingTables, createWorkspacesTable, enforceUniqueEvalProjectName, evalMigrations, mapRowToRunStep, mapRowToWorkflowRun, safeParse };
1950
+ export { ChannelBindingStore, type ChannelBindingStoreOptions, type ChannelIdentityMapping, ChannelIdentityMappingStore, type ChannelIdentityMappingStoreOptions, type CreateChannelIdentityMappingInput, MenuStore, type MenuStoreOptions, type Migration, MigrationManager, PGVectorStoreProvider, PostgreSQLA2AApiKeyStore, type PostgreSQLA2AApiKeyStoreOptions, PostgreSQLAgentWebAppStore, type PostgreSQLAgentWebAppStoreOptions, PostgreSQLAssistantStore, type PostgreSQLAssistantStoreOptions, PostgreSQLCapabilityBundleStore, type PostgreSQLCapabilityBundleStoreOptions, PostgreSQLChannelInstallationStore, type PostgreSQLChannelInstallationStoreOptions, PostgreSQLCollectionStore, type PostgreSQLCollectionStoreOptions, PostgreSQLConnectionStore, PostgreSQLDatabaseConfigStore, type PostgreSQLDatabaseConfigStoreOptions, PostgreSQLEvalStore, type PostgreSQLEvalStoreOptions, PostgreSQLMcpServerConfigStore, type PostgreSQLMcpServerConfigStoreOptions, PostgreSQLMetricsServerConfigStore, type PostgreSQLMetricsServerConfigStoreOptions, PostgreSQLProjectStore, type PostgreSQLProjectStoreOptions, PostgreSQLScheduleStorage, type PostgreSQLScheduleStorageOptions, PostgreSQLSkillStore, type PostgreSQLSkillStoreOptions, PostgreSQLTenantStore, type PostgreSQLTenantStoreOptions, type PostgreSQLThreadMessageQueueStoreOptions, PostgreSQLThreadStore, type PostgreSQLThreadStoreOptions, PostgreSQLUserStore, type PostgreSQLUserStoreOptions, PostgreSQLUserTenantLinkStore, type PostgreSQLUserTenantLinkStoreOptions, PostgreSQLWorkflowTrackingStore, type PostgreSQLWorkflowTrackingStoreOptions, PostgreSQLWorkspaceStore, type PostgreSQLWorkspaceStoreOptions, PostgresSharedResourceStore, type PostgresSharedResourceStoreOptions, ThreadMessageQueueStore, addAssistantTenantId, addEnvToEvalRuns, addFileContentType, addHoldoutToEvalRuns, addInterruptColumnsToEval, addInterruptPolicyToEvalCases, addProjectConfigColumn, addScheduleTenantId, addSkillTenantId, addStepThreadId, addTaskIdToEvalRuns, addThreadTenantId, addWorkflowRunsTenantStatusUpdatedIndex, alterChannelInstallationsTable, changeAssistantPrimaryKey, changeSkillPrimaryKey, changeThreadPrimaryKey, createA2AApiKeysTable, createAgentWebAppsTable, createAssistantsTable, createCapabilityBundlesTable, createChannelBindingsTable, createChannelIdentityMappingTables, createChannelInstallationsTable, createCollectionsTable, createDatabaseConfigsTable, createEvalCasesTable, createEvalProjectsTable, createEvalRunResultsTable, createEvalRunsTable, createEvalSuitesTable, createMcpServerConfigsTable, createMenuItemsTable, createMetricsConfigsTable, createPGVectorStoreProvider, createPgStoreConfig, createProjectsTable, createScheduledTasksTable, createSharedResourcesTable, createSkillsTable, createTenantsTable, createThreadMessageQueueTable, createThreadsTable, createUsersTable, createWorkflowTrackingTables, createWorkspacesTable, enforceUniqueEvalProjectName, evalMigrations, mapRowToRunStep, mapRowToWorkflowRun, safeParse };