@axiom-lattice/protocols 2.1.48 → 2.1.50

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.
package/dist/index.d.ts CHANGED
@@ -208,14 +208,25 @@ interface MetricsMiddlewareConfig {
208
208
  interface SchedulerMiddlewareConfig {
209
209
  defaultMaxRetries?: number;
210
210
  }
211
- type MiddlewareType = "filesystem" | "code_eval" | "browser" | "sql" | "skill" | "http" | "custom" | "metrics" | "ask_user_to_clarify" | "widget" | "claw" | "date" | "scheduler" | "topology" | "task";
211
+ interface CollectionMiddlewareConfig {
212
+ /** List of configured collection keys */
213
+ collectionKeys: string[];
214
+ /**
215
+ * When true, all collections for the tenant are available.
216
+ * When false or undefined, only collections in collectionKeys are used.
217
+ */
218
+ connectAll?: boolean;
219
+ }
220
+ type MiddlewareType = "filesystem" | "code_eval" | "browser" | "sql" | "skill" | "http" | "custom" | "metrics" | "ask_user_to_clarify" | "widget" | "claw" | "date" | "scheduler" | "topology" | "task" | "collection" | string;
212
221
  interface AgentMiddlewareConfig {
213
222
  id: string;
214
223
  type: MiddlewareType;
215
224
  name: string;
216
225
  description: string;
217
226
  enabled: boolean;
218
- config: SandboxMiddlewareConfig | CodeEvalMiddlewareConfig | BrowserMiddlewareConfig | SqlMiddlewareConfig | MetricsMiddlewareConfig | ClawMiddlewareConfig | SchedulerMiddlewareConfig | Record<string, any>;
227
+ /** 可选:限制该中间件暴露的工具列表。不配置则默认暴露所有工具 */
228
+ allowedTools?: string[];
229
+ config: SandboxMiddlewareConfig | CodeEvalMiddlewareConfig | BrowserMiddlewareConfig | SqlMiddlewareConfig | MetricsMiddlewareConfig | ClawMiddlewareConfig | CollectionMiddlewareConfig | SchedulerMiddlewareConfig | Record<string, any>;
219
230
  }
220
231
  /**
221
232
  * Bootstrap file configuration
@@ -2108,6 +2119,33 @@ interface DatabaseConfigStore {
2108
2119
  hasConfig(tenantId: string, id: string): Promise<boolean>;
2109
2120
  }
2110
2121
 
2122
+ /**
2123
+ * ConnectionStore Protocol
2124
+ *
2125
+ * Generic store for external service connections (databases, APIs, etc.).
2126
+ * Provides tenant-scoped CRUD operations keyed by a unique business key.
2127
+ * The key is scoped to (tenant_id, type) — same tenant, same plugin type
2128
+ * can't use duplicate keys, but different types can share keys (ERP "prod" != CRM "prod").
2129
+ */
2130
+ interface ConnectionEntry {
2131
+ id: string;
2132
+ tenantId: string;
2133
+ type: string;
2134
+ key: string;
2135
+ name: string;
2136
+ description?: string;
2137
+ config: Record<string, unknown>;
2138
+ createdAt: string;
2139
+ updatedAt: string;
2140
+ }
2141
+ interface ConnectionStore {
2142
+ listByType(tenantId: string, type: string): Promise<ConnectionEntry[]>;
2143
+ getByKey(tenantId: string, type: string, key: string): Promise<ConnectionEntry | null>;
2144
+ create(entry: Omit<ConnectionEntry, "id" | "createdAt" | "updatedAt">): Promise<ConnectionEntry>;
2145
+ update(tenantId: string, type: string, key: string, updates: Partial<ConnectionEntry>): Promise<ConnectionEntry | null>;
2146
+ delete(tenantId: string, type: string, key: string): Promise<boolean>;
2147
+ }
2148
+
2111
2149
  type ChannelInstallationType = "lark" | "email" | "slack" | "wechat";
2112
2150
  interface LarkChannelInstallationConfig {
2113
2151
  appId: string;
@@ -3028,6 +3066,175 @@ interface BindingRegistry {
3028
3066
  }): Promise<Binding[]>;
3029
3067
  }
3030
3068
 
3069
+ /**
3070
+ * CollectionStoreProtocol
3071
+ *
3072
+ * Collection store protocol definitions for the Axiom Lattice framework.
3073
+ * Provides standardized interfaces for collection management across all implementations.
3074
+ */
3075
+ /**
3076
+ * Collection field type definition
3077
+ */
3078
+ type CollectionFieldType = 'string' | 'number' | 'enum';
3079
+ /**
3080
+ * Collection field definition
3081
+ */
3082
+ interface CollectionField {
3083
+ /** Field key name, written to metadata[key] */
3084
+ key: string;
3085
+ /** Field data type */
3086
+ type: CollectionFieldType;
3087
+ /** Valid values for enum type */
3088
+ enumValues?: string[];
3089
+ /** Whether the field is required on entry creation */
3090
+ required?: boolean;
3091
+ }
3092
+ /**
3093
+ * Collection schema definition
3094
+ */
3095
+ interface CollectionSchema {
3096
+ /** Custom field definitions */
3097
+ fields: CollectionField[];
3098
+ }
3099
+ /**
3100
+ * Collection type definition
3101
+ */
3102
+ interface Collection {
3103
+ /** Collection unique identifier */
3104
+ id: string;
3105
+ /** Collection name (unique per tenant, corresponds to vector table name) */
3106
+ name: string;
3107
+ /** Tenant identifier */
3108
+ tenantId: string;
3109
+ /** Human-readable display name */
3110
+ label: string;
3111
+ /** Embedding model key (registered in EmbeddingsLatticeManager) */
3112
+ embeddingKey: string;
3113
+ /** Custom field schema */
3114
+ schema: CollectionSchema;
3115
+ /** Creation timestamp */
3116
+ createdAt: Date;
3117
+ /** Last update timestamp */
3118
+ updatedAt: Date;
3119
+ }
3120
+ /**
3121
+ * Create collection request type
3122
+ */
3123
+ interface CreateCollectionRequest {
3124
+ /** Collection name (required) */
3125
+ name: string;
3126
+ /** Human-readable display name (required) */
3127
+ label: string;
3128
+ /** Embedding model key (required) */
3129
+ embeddingKey: string;
3130
+ /** Custom field schema (optional) */
3131
+ schema?: CollectionSchema;
3132
+ }
3133
+ /**
3134
+ * Update collection request type
3135
+ */
3136
+ interface UpdateCollectionRequest {
3137
+ /** Human-readable display name */
3138
+ label?: string;
3139
+ /** Embedding model key */
3140
+ embeddingKey?: string;
3141
+ /** Custom field schema */
3142
+ schema?: CollectionSchema;
3143
+ }
3144
+ /**
3145
+ * CollectionStore interface
3146
+ * Provides CRUD operations for collection metadata
3147
+ */
3148
+ interface CollectionStore {
3149
+ /**
3150
+ * Get all collections for a tenant
3151
+ * @param tenantId Tenant identifier
3152
+ * @returns Array of all collections for the tenant
3153
+ */
3154
+ getAllCollections(tenantId: string): Promise<Collection[]>;
3155
+ /**
3156
+ * Get collection by name
3157
+ * @param tenantId Tenant identifier
3158
+ * @param name Collection name
3159
+ * @returns Collection if found, null otherwise
3160
+ */
3161
+ getCollectionByName(tenantId: string, name: string): Promise<Collection | null>;
3162
+ /**
3163
+ * Create a new collection
3164
+ * @param tenantId Tenant identifier
3165
+ * @param data Collection creation data
3166
+ * @returns Created collection
3167
+ */
3168
+ createCollection(tenantId: string, data: CreateCollectionRequest): Promise<Collection>;
3169
+ /**
3170
+ * Update an existing collection
3171
+ * @param tenantId Tenant identifier
3172
+ * @param name Collection name
3173
+ * @param updates Partial updates
3174
+ * @returns Updated collection if found, null otherwise
3175
+ */
3176
+ updateCollection(tenantId: string, name: string, updates: UpdateCollectionRequest): Promise<Collection | null>;
3177
+ /**
3178
+ * Delete a collection by name
3179
+ * @param tenantId Tenant identifier
3180
+ * @param name Collection name
3181
+ * @returns true if deleted, false otherwise
3182
+ */
3183
+ deleteCollection(tenantId: string, name: string): Promise<boolean>;
3184
+ }
3185
+
3186
+ /**
3187
+ * VectorStoreProviderProtocol
3188
+ *
3189
+ * Provides a pluggable factory for creating VectorStore instances.
3190
+ * Each provider key maps to a backend (memory, pgvector, chroma, etc.).
3191
+ * Follows the same singleton registry pattern as EmbeddingsLatticeManager.
3192
+ */
3193
+
3194
+ /**
3195
+ * Parameters for creating a VectorStore instance.
3196
+ */
3197
+ interface VectorStoreCreateParams {
3198
+ /** Table/collection name for the vector store */
3199
+ tableName: string;
3200
+ /** Embedding model key to use for embedding operations */
3201
+ embeddingKey: string;
3202
+ /** Provider-specific configuration */
3203
+ config?: Record<string, unknown>;
3204
+ }
3205
+ /**
3206
+ * VectorStoreProvider interface.
3207
+ * Implementations create VectorStore instances for a specific backend.
3208
+ */
3209
+ interface VectorStoreProvider {
3210
+ /**
3211
+ * Create a new VectorStore instance.
3212
+ * @param params Creation parameters including table name and embedding key
3213
+ * @returns A LangChain VectorStore instance
3214
+ */
3215
+ create(params: VectorStoreCreateParams): Promise<VectorStore>;
3216
+ /**
3217
+ * Dispose a VectorStore instance (optional cleanup).
3218
+ * @param name The table/collection name
3219
+ */
3220
+ dispose?(name: string): Promise<void>;
3221
+ /**
3222
+ * Get the number of entries in a vector store (optional).
3223
+ * @param tableName The table/collection name
3224
+ */
3225
+ getEntryCount?(tableName: string): Promise<number>;
3226
+ /**
3227
+ * List all entries in a vector store (optional).
3228
+ * @param tableName The table/collection name
3229
+ */
3230
+ listEntries?(tableName: string): Promise<DocumentInterface[]>;
3231
+ /**
3232
+ * Drop/delete the underlying storage for a vector store (optional).
3233
+ * @param tableName The table/collection name
3234
+ */
3235
+ dropTable?(tableName: string): Promise<void>;
3236
+ }
3237
+
3031
3238
  /**
3032
3239
  * MenuProtocol
3033
3240
  *
@@ -3957,7 +4164,7 @@ interface ResourceResolver {
3957
4164
  resolve(address: ResourceAddress): Promise<Buffer>;
3958
4165
  }
3959
4166
  /** Visibility level for resource shares. */
3960
- type ShareVisibility = "public" | "password";
4167
+ type ShareVisibility = "public" | "password" | "internal";
3961
4168
  /** Persisted record of a resource share within a project. */
3962
4169
  interface ShareRecord {
3963
4170
  token: string;
@@ -4003,6 +4210,142 @@ interface SharedResourceStore {
4003
4210
  atomicIncrementAccess(token: string): Promise<boolean>;
4004
4211
  }
4005
4212
 
4213
+ /**
4214
+ * Plugin Connection 字段 schema(驱动前端表单渲染)
4215
+ */
4216
+ interface PluginConnectionFieldSchema {
4217
+ /** 字段 key */
4218
+ key: string;
4219
+ /** 字段类型 */
4220
+ type: "string" | "number" | "boolean" | "password";
4221
+ /** UI 标签 */
4222
+ title: string;
4223
+ /** 前端 widget 类型 */
4224
+ widget?: "input" | "password" | "select" | "numberInput";
4225
+ /** 是否必填 */
4226
+ required?: boolean;
4227
+ /** 默认值 */
4228
+ default?: unknown;
4229
+ /** 如果是 select widget,可选值列表 */
4230
+ enumValues?: string[];
4231
+ /** 帮助文本 */
4232
+ helpText?: string;
4233
+ }
4234
+ /**
4235
+ * 连接测试结果
4236
+ */
4237
+ interface PluginConnectionTestResult {
4238
+ ok: boolean;
4239
+ message: string;
4240
+ /** 可选的附加诊断信息 */
4241
+ details?: Record<string, unknown>;
4242
+ }
4243
+ /**
4244
+ * 资源发现条目
4245
+ */
4246
+ interface PluginDiscoveredResource {
4247
+ id: string;
4248
+ name: string;
4249
+ /** 可选的归组 */
4250
+ group?: string;
4251
+ /** 可选描述 */
4252
+ description?: string;
4253
+ }
4254
+ /**
4255
+ * 插件连接定义(全部可选,存在即生效)
4256
+ *
4257
+ * - fields: 前端渲染表单字段
4258
+ * - test: 连通测试 → API 推导 hasTest
4259
+ * - discover: 资源发现 → API 推导 hasDiscover
4260
+ * - resourceLabel: 资源面板标题
4261
+ */
4262
+ interface PluginConnection {
4263
+ /** 连接表单字段 */
4264
+ fields: PluginConnectionFieldSchema[];
4265
+ /** 连通测试回调(存在即声明 hasTest: true) */
4266
+ test?: (config: Record<string, unknown>) => Promise<PluginConnectionTestResult>;
4267
+ /** 资源发现回调(存在即声明 hasDiscover: true) */
4268
+ discover?: (config: Record<string, unknown>) => Promise<PluginDiscoveredResource[]>;
4269
+ /** 资源发现面板标题 */
4270
+ resourceLabel?: string;
4271
+ }
4272
+ /**
4273
+ * 工具元信息(用于前端 allowedTools 筛选)
4274
+ */
4275
+ interface PluginToolMeta {
4276
+ name: string;
4277
+ description: string;
4278
+ }
4279
+ /**
4280
+ * 插件元数据(开发者声明)
4281
+ *
4282
+ * connectionSchema 不在此类型中——由 serializePluginMeta 自动推导后注入 PluginMetaOutput。
4283
+ */
4284
+ interface PluginMeta {
4285
+ /** 插件唯一标识,如 "erp" */
4286
+ type: string;
4287
+ /** 显示名称 */
4288
+ name: string;
4289
+ /** 描述 */
4290
+ description: string;
4291
+ /** 版本号,为包管理预留 */
4292
+ version?: string;
4293
+ /** 安装来源,如 "npm:my-plugin@1.2.0" */
4294
+ source?: string;
4295
+ /** 图标名称(可选,前端渲染用) */
4296
+ icon?: string;
4297
+ /** 工具清单(可选,middleware 能自动提取时不需要写) */
4298
+ tools?: PluginToolMeta[];
4299
+ /** 中间件配置 schema(用于 agent 配置面板) */
4300
+ configSchema?: Record<string, unknown>;
4301
+ /** 默认配置 */
4302
+ defaultConfig?: Record<string, unknown>;
4303
+ }
4304
+ /**
4305
+ * 插件元数据输出(API 返回格式)
4306
+ *
4307
+ * 在 PluginMeta 基础上增加了由 serializePluginMeta 自动推导的 connectionSchema。
4308
+ */
4309
+ interface PluginMetaOutput extends PluginMeta {
4310
+ /** 连接 schema(由 API 端点从 connection 方法存在性自动注入) */
4311
+ connectionSchema?: {
4312
+ fields: PluginConnectionFieldSchema[];
4313
+ hasTest: boolean;
4314
+ hasDiscover: boolean;
4315
+ resourceLabel?: string;
4316
+ };
4317
+ }
4318
+ /**
4319
+ * 中间件工厂(泛型,不依赖 langchain)
4320
+ */
4321
+ type PluginMiddlewareFactory<T = unknown> = (config: Record<string, unknown>) => T | Promise<T>;
4322
+ /**
4323
+ * Plugin 基类接口
4324
+ *
4325
+ * 一个对象 = 一个完整的插件定义。
4326
+ * meta + connection + middleware 全在一个类里内聚。
4327
+ *
4328
+ * @example
4329
+ * ```ts
4330
+ * const erpPlugin: Plugin = {
4331
+ * meta: { type: "erp", name: "ERP", description: "SAP B1" },
4332
+ * connection: {
4333
+ * fields: [{ key: "baseUrl", type: "string", title: "SAP URL" }],
4334
+ * test: async (config) => ({ ok: true, message: "ok" }),
4335
+ * },
4336
+ * middleware: (config) => createMiddleware({ ... }),
4337
+ * };
4338
+ * ```
4339
+ */
4340
+ interface Plugin {
4341
+ /** 插件元数据 */
4342
+ meta: PluginMeta;
4343
+ /** 连接能力(可选,没有则不暴露连接管理) */
4344
+ connection?: PluginConnection;
4345
+ /** 中间件工厂(可选,没有则不注册任何工具) */
4346
+ middleware?: PluginMiddlewareFactory;
4347
+ }
4348
+
4006
4349
  /**
4007
4350
  * 通用类型定义
4008
4351
  *
@@ -4066,4 +4409,4 @@ type Timestamp = number;
4066
4409
  */
4067
4410
  type Callback<T = any, R = void> = (data: T) => R | Promise<R>;
4068
4411
 
4069
- export { type A2AApiKeyEntry, type A2AApiKeyRecord, type A2AApiKeyStore, type A2AArtifact, type A2AAuthContext, type A2ACapabilities, type A2AConfig, type A2ADataPart, type A2AFilePart, type A2AMessage, type A2APart, type A2AProvider, type A2APushNotification, type A2ARemoteAgentConfig, type A2ASSEEvent, type A2ASkill, type A2ATask, type A2ATaskArtifactUpdatePayload, type A2ATaskSendRequest, type A2ATaskState, type A2ATaskStatus, type A2ATaskUpdatePayload, type A2ATextPart, A2A_DEFAULT_CAPABILITIES, A2A_DEFAULT_INPUT_MODES, A2A_DEFAULT_OUTPUT_MODES, type AgentCard, type AgentClient, type AgentConfig, type AgentConfigWithTools, type AgentLatticeProtocol, type AgentMenuConfig, type AgentMiddlewareConfig, type AgentRunConfig, AgentType, type Assistant, type AssistantMessage, type AssistantStore, type Attachment, type AvailableModule, type BaseLatticeProtocol, type BaseMessage, type Binding, type BindingRegistry, type BootstrapFilesConfig, type BrowserMiddlewareConfig, type Callback, type ChannelAdapter, type ChannelInstallation, type ChannelInstallationStore, type ChannelInstallationType, type ClawMiddlewareConfig, type CodeEvalMiddlewareConfig, type CreateA2AApiKeyInput, type CreateAssistantRequest, type CreateBindingInput, type CreateChannelInstallationRequest, type CreateDatabaseConfigRequest, type CreateEvalCaseRequest, type CreateEvalProjectRequest, type CreateEvalRunRequest, type CreateEvalSuiteRequest, type CreateMcpServerConfigRequest, type CreateMenuItemInput, type CreateMetricsServerConfigRequest, type CreateProjectRequest, type CreateRunStepRequest, type CreateShareRequest, type CreateSkillRequest, type CreateTaskRequest, type CreateTenantRequest, type CreateThreadRequest, type CreateUserRequest, type CreateUserTenantLinkRequest, type CreateWorkflowRunRequest, type CreateWorkspaceRequest, type CustomMenuConfig, type DataSource, type DatabaseConfig, type DatabaseConfigEntry, type DatabaseConfigStore, type DatabaseType, type DeepAgentConfig, type DeveloperMessage, type DispatchResult, type EmbeddingsConfig, type EmbeddingsLatticeProtocol, type EvalCase, type EvalProject, type EvalProjectReport, type EvalRun, type EvalRunResult, type EvalStore, type EvalSuite, type ExecuteSqlQueryRequest, type ExecuteSqlQueryResponse, type FilterCondition, type GraphBuildOptions, type HtmlMenuConfig, type ID, type InboundMessage, type InternalAgentNode, type InternalBaseNode, type InternalDSL, type InternalEdge, type InternalInput, type InternalInputNode, type InternalMapNode, type InternalNode, type InternalNodeConfig, type InternalOutput, type InternalState, type InternalStateField, type InternalTerminalNode, type InterruptMessage, type LLMConfig, type LarkChannelInstallationConfig, type LatticeError, type LatticeEventBus, type LatticeMessage, type LoggerClient, type LoggerConfig, type LoggerContext, type LoggerLatticeProtocol, LoggerType, type McpClient, type McpClientOptions, type McpConnectionStatus, type McpLatticeMessage, type McpLatticeProtocol, McpMessageType, type McpServerConfig, type McpServerConfigEntry, type McpServerConfigStore, type McpStats, type McpTool, type McpToolResult, type McpTransportType, type MemoryClient, type MemoryConfig, type MemoryLatticeProtocol, MemoryType, type MenuContentConfig, type MenuContentType, type MenuItem, type MenuRegistry, type MenuTarget, type Message, type MessageChunk, type MessageChunkType, MessageChunkTypes, type MessageContext, type MessageMiddleware, type MetricColumn, type MetricDataPoint, type MetricMeta, type MetricQueryResult, type MetricsMiddlewareConfig, type MetricsServerConfig, type MetricsServerConfigEntry, type MetricsServerConfigStore, type MetricsServerType, type MiddlewareType, type ModelLatticeProtocol, type OutboundMessage, type PaginatedResult, type PaginationParams, type PinoFileOptions, type ProcessingAgentConfig, type Project, type ProjectStore, type QueryParams, type QueryResultFormat, type QueueClient, type QueueConfig, type QueueLatticeProtocol, type QueueResult, QueueType, type ReactAgentConfig, type ReplyTarget, type ResourceAddress, type ResourceResolver, type Result, type RunStep, type SandboxMiddlewareConfig, type ScheduleClient, type ScheduleConfig, type ScheduleCronOptions, ScheduleExecutionType, type ScheduleLatticeProtocol, type ScheduleOnceOptions, type ScheduleStorage, ScheduleType, type ScheduledTaskDefinition, ScheduledTaskStatus, type SchedulerMiddlewareConfig, type SemanticMetricsFilter, type SemanticMetricsQueryRequest, type SemanticMetricsQueryResponse, type SemanticMetricsServerConfig, type ShareRecord, type ShareResult, type ShareVisibility, type SharedResourceStore, type Skill, type SkillClient, type SkillClientType, type SkillConfig, type SkillLatticeProtocol, type SkillStore, type SkillStoreContext, type SqlMiddlewareConfig, type StepStatus, type StepType, type StorageType, type SystemMessage, type TableQueryRequest, type TableQueryResponse, type TaskHandler, type TaskItem, type TaskListFilter, type TaskStore, type TeamAgentConfig, type TeamTeammateConfig, type Tenant, type TenantStatus, type TenantStore, type TestMcpServerToolsResponse, type Thread, type ThreadStore, type Timestamp, type ToolCall, type ToolConfig, type ToolExecutor, type ToolLatticeProtocol, type ToolMessage, type TopologyEdge, type UIComponent, UIComponentType, type UIConfig, type UILatticeProtocol, type UpdateChannelInstallationRequest, type UpdateDatabaseConfigRequest, type UpdateMcpServerConfigRequest, type UpdateMenuItemInput, type UpdateMetricsServerConfigRequest, type UpdateProjectRequest, type UpdateRunStepRequest, type UpdateTaskRequest, type UpdateTenantRequest, type UpdateUserRequest, type UpdateUserTenantLinkRequest, type UpdateWorkflowRunRequest, type UpdateWorkspaceRequest, type User, type UserMessage, type UserStatus, type UserStore, type UserTenantLink, type UserTenantLinkStore, type UserTenantRole, type VectorStoreConfig, type VectorStoreLatticeProtocol, type WechatChannelInstallationConfig, type WorkflowAgentConfig, type WorkflowRun, type WorkflowRunStatus, type WorkflowTrackingStore, type Workspace, type WorkspaceStore, type YamlAgentStep, type YamlMapStep, type YamlParallelBlock, type YamlTopLevelStep, type YamlWorkflow, getSubAgentsFromConfig, getToolsFromConfig, hasTools, isA2ARemoteAgentConfig, isDeepAgentConfig, isProcessingAgentConfig, isTeamAgentConfig, isWorkflowAgentConfig };
4412
+ export { type A2AApiKeyEntry, type A2AApiKeyRecord, type A2AApiKeyStore, type A2AArtifact, type A2AAuthContext, type A2ACapabilities, type A2AConfig, type A2ADataPart, type A2AFilePart, type A2AMessage, type A2APart, type A2AProvider, type A2APushNotification, type A2ARemoteAgentConfig, type A2ASSEEvent, type A2ASkill, type A2ATask, type A2ATaskArtifactUpdatePayload, type A2ATaskSendRequest, type A2ATaskState, type A2ATaskStatus, type A2ATaskUpdatePayload, type A2ATextPart, A2A_DEFAULT_CAPABILITIES, A2A_DEFAULT_INPUT_MODES, A2A_DEFAULT_OUTPUT_MODES, type AgentCard, type AgentClient, type AgentConfig, type AgentConfigWithTools, type AgentLatticeProtocol, type AgentMenuConfig, type AgentMiddlewareConfig, type AgentRunConfig, AgentType, type Assistant, type AssistantMessage, type AssistantStore, type Attachment, type AvailableModule, type BaseLatticeProtocol, type BaseMessage, type Binding, type BindingRegistry, type BootstrapFilesConfig, type BrowserMiddlewareConfig, type Callback, type ChannelAdapter, type ChannelInstallation, type ChannelInstallationStore, type ChannelInstallationType, type ClawMiddlewareConfig, type CodeEvalMiddlewareConfig, type Collection, type CollectionField, type CollectionFieldType, type CollectionMiddlewareConfig, type CollectionSchema, type CollectionStore, type ConnectionEntry, type ConnectionStore, type CreateA2AApiKeyInput, type CreateAssistantRequest, type CreateBindingInput, type CreateChannelInstallationRequest, type CreateCollectionRequest, type CreateDatabaseConfigRequest, type CreateEvalCaseRequest, type CreateEvalProjectRequest, type CreateEvalRunRequest, type CreateEvalSuiteRequest, type CreateMcpServerConfigRequest, type CreateMenuItemInput, type CreateMetricsServerConfigRequest, type CreateProjectRequest, type CreateRunStepRequest, type CreateShareRequest, type CreateSkillRequest, type CreateTaskRequest, type CreateTenantRequest, type CreateThreadRequest, type CreateUserRequest, type CreateUserTenantLinkRequest, type CreateWorkflowRunRequest, type CreateWorkspaceRequest, type CustomMenuConfig, type DataSource, type DatabaseConfig, type DatabaseConfigEntry, type DatabaseConfigStore, type DatabaseType, type DeepAgentConfig, type DeveloperMessage, type DispatchResult, type EmbeddingsConfig, type EmbeddingsLatticeProtocol, type EvalCase, type EvalProject, type EvalProjectReport, type EvalRun, type EvalRunResult, type EvalStore, type EvalSuite, type ExecuteSqlQueryRequest, type ExecuteSqlQueryResponse, type FilterCondition, type GraphBuildOptions, type HtmlMenuConfig, type ID, type InboundMessage, type InternalAgentNode, type InternalBaseNode, type InternalDSL, type InternalEdge, type InternalInput, type InternalInputNode, type InternalMapNode, type InternalNode, type InternalNodeConfig, type InternalOutput, type InternalState, type InternalStateField, type InternalTerminalNode, type InterruptMessage, type LLMConfig, type LarkChannelInstallationConfig, type LatticeError, type LatticeEventBus, type LatticeMessage, type LoggerClient, type LoggerConfig, type LoggerContext, type LoggerLatticeProtocol, LoggerType, type McpClient, type McpClientOptions, type McpConnectionStatus, type McpLatticeMessage, type McpLatticeProtocol, McpMessageType, type McpServerConfig, type McpServerConfigEntry, type McpServerConfigStore, type McpStats, type McpTool, type McpToolResult, type McpTransportType, type MemoryClient, type MemoryConfig, type MemoryLatticeProtocol, MemoryType, type MenuContentConfig, type MenuContentType, type MenuItem, type MenuRegistry, type MenuTarget, type Message, type MessageChunk, type MessageChunkType, MessageChunkTypes, type MessageContext, type MessageMiddleware, type MetricColumn, type MetricDataPoint, type MetricMeta, type MetricQueryResult, type MetricsMiddlewareConfig, type MetricsServerConfig, type MetricsServerConfigEntry, type MetricsServerConfigStore, type MetricsServerType, type MiddlewareType, type ModelLatticeProtocol, type OutboundMessage, type PaginatedResult, type PaginationParams, type PinoFileOptions, type Plugin, type PluginConnection, type PluginConnectionFieldSchema, type PluginConnectionTestResult, type PluginDiscoveredResource, type PluginMeta, type PluginMetaOutput, type PluginMiddlewareFactory, type PluginToolMeta, type ProcessingAgentConfig, type Project, type ProjectStore, type QueryParams, type QueryResultFormat, type QueueClient, type QueueConfig, type QueueLatticeProtocol, type QueueResult, QueueType, type ReactAgentConfig, type ReplyTarget, type ResourceAddress, type ResourceResolver, type Result, type RunStep, type SandboxMiddlewareConfig, type ScheduleClient, type ScheduleConfig, type ScheduleCronOptions, ScheduleExecutionType, type ScheduleLatticeProtocol, type ScheduleOnceOptions, type ScheduleStorage, ScheduleType, type ScheduledTaskDefinition, ScheduledTaskStatus, type SchedulerMiddlewareConfig, type SemanticMetricsFilter, type SemanticMetricsQueryRequest, type SemanticMetricsQueryResponse, type SemanticMetricsServerConfig, type ShareRecord, type ShareResult, type ShareVisibility, type SharedResourceStore, type Skill, type SkillClient, type SkillClientType, type SkillConfig, type SkillLatticeProtocol, type SkillStore, type SkillStoreContext, type SqlMiddlewareConfig, type StepStatus, type StepType, type StorageType, type SystemMessage, type TableQueryRequest, type TableQueryResponse, type TaskHandler, type TaskItem, type TaskListFilter, type TaskStore, type TeamAgentConfig, type TeamTeammateConfig, type Tenant, type TenantStatus, type TenantStore, type TestMcpServerToolsResponse, type Thread, type ThreadStore, type Timestamp, type ToolCall, type ToolConfig, type ToolExecutor, type ToolLatticeProtocol, type ToolMessage, type TopologyEdge, type UIComponent, UIComponentType, type UIConfig, type UILatticeProtocol, type UpdateChannelInstallationRequest, type UpdateCollectionRequest, type UpdateDatabaseConfigRequest, type UpdateMcpServerConfigRequest, type UpdateMenuItemInput, type UpdateMetricsServerConfigRequest, type UpdateProjectRequest, type UpdateRunStepRequest, type UpdateTaskRequest, type UpdateTenantRequest, type UpdateUserRequest, type UpdateUserTenantLinkRequest, type UpdateWorkflowRunRequest, type UpdateWorkspaceRequest, type User, type UserMessage, type UserStatus, type UserStore, type UserTenantLink, type UserTenantLinkStore, type UserTenantRole, type VectorStoreConfig, type VectorStoreCreateParams, type VectorStoreLatticeProtocol, type VectorStoreProvider, type WechatChannelInstallationConfig, type WorkflowAgentConfig, type WorkflowRun, type WorkflowRunStatus, type WorkflowTrackingStore, type Workspace, type WorkspaceStore, type YamlAgentStep, type YamlMapStep, type YamlParallelBlock, type YamlTopLevelStep, type YamlWorkflow, getSubAgentsFromConfig, getToolsFromConfig, hasTools, isA2ARemoteAgentConfig, isDeepAgentConfig, isProcessingAgentConfig, isTeamAgentConfig, isWorkflowAgentConfig };