@axiom-lattice/protocols 4.11.0 → 5.0.0

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
@@ -150,7 +150,6 @@ interface ModelLatticeProtocol extends BaseLatticeProtocol<LLMConfig, BaseChatMo
150
150
  declare enum AgentType {
151
151
  REACT = "react",
152
152
  DEEP_AGENT = "deep_agent",
153
- TEAM = "team",
154
153
  PROCESSING = "processing",
155
154
  /** Remote A2A agent — delegates to an external A2A-compatible server */
156
155
  A2A_REMOTE = "a2a_remote",
@@ -320,45 +319,6 @@ interface ProcessingAgentConfig extends BaseAgentConfig {
320
319
  subAgents?: string[];
321
320
  internalSubAgents?: AgentConfig[];
322
321
  }
323
- /**
324
- * Team teammate configuration -- describes an available teammate.
325
- */
326
- interface TeamTeammateConfig {
327
- /** Unique name for this teammate (used as agent ID) */
328
- name: string;
329
- /** Role category (e.g. "research", "writing", "review") */
330
- role: string;
331
- /** Human-readable description of what this teammate does */
332
- description: string;
333
- /** Tool keys this teammate has access to */
334
- tools?: string[];
335
- /** Custom system prompt for this teammate */
336
- prompt?: string;
337
- /** Model key override for this teammate */
338
- modelKey?: string;
339
- }
340
- /**
341
- * TEAM agent configuration -- a team lead that dynamically creates teammates.
342
- * Teammates are created on-the-fly from create_team tool input (name, role, description).
343
- */
344
- interface TeamAgentConfig extends BaseAgentConfig {
345
- type: AgentType.TEAM;
346
- /** Tool keys available to the team lead */
347
- tools?: string[];
348
- /** Maximum number of teammates running concurrently */
349
- maxConcurrency?: number;
350
- /**
351
- * Schedule lattice key for polling task list / mailbox.
352
- * When set, teammates use ScheduleLattice for periodic polling instead of event-driven wait.
353
- */
354
- scheduleLatticeKey?: string;
355
- /** Poll interval in ms when using schedule lattice (default: 5000) */
356
- pollIntervalMs?: number;
357
- }
358
- /**
359
- * Type guard to check if config is TeamAgentConfig
360
- */
361
- declare function isTeamAgentConfig(config: AgentConfig): config is TeamAgentConfig;
362
322
  interface LocalRuntimeConfig {
363
323
  label?: string;
364
324
  agentCardUrl: string;
@@ -444,11 +404,11 @@ declare function isWorkflowAgentConfig(config: AgentConfig): config is WorkflowA
444
404
  * Agent configuration union type
445
405
  * Different agent types have different configuration options
446
406
  */
447
- type AgentConfig = ReactAgentConfig | DeepAgentConfig | TeamAgentConfig | ProcessingAgentConfig | A2ARemoteAgentConfig | WorkflowAgentConfig;
407
+ type AgentConfig = ReactAgentConfig | DeepAgentConfig | ProcessingAgentConfig | A2ARemoteAgentConfig | WorkflowAgentConfig;
448
408
  /**
449
409
  * Agent configuration with tools property
450
410
  */
451
- type AgentConfigWithTools = ReactAgentConfig | DeepAgentConfig | TeamAgentConfig | ProcessingAgentConfig | A2ARemoteAgentConfig | WorkflowAgentConfig;
411
+ type AgentConfigWithTools = ReactAgentConfig | DeepAgentConfig | ProcessingAgentConfig | A2ARemoteAgentConfig | WorkflowAgentConfig;
452
412
  /**
453
413
  * Type guard to check if config has tools property
454
414
  */
@@ -1244,6 +1204,14 @@ declare const MessageChunkTypes: {
1244
1204
  type MessageChunkType = typeof MessageChunkTypes[keyof typeof MessageChunkTypes];
1245
1205
  interface MessageChunk {
1246
1206
  type: MessageChunkType;
1207
+ /**
1208
+ * Shared append-log cursor for this chunk.
1209
+ *
1210
+ * Set by streaming transports when the chunk is read from a cursor-addressable
1211
+ * log (for example Redis Streams) so reconnects can resume via SSE
1212
+ * `Last-Event-ID`. Omitted by in-memory buffers configured without a log.
1213
+ */
1214
+ cursor?: string;
1247
1215
  data: {
1248
1216
  id: string;
1249
1217
  content?: string;
@@ -1288,6 +1256,22 @@ interface MessageChunk {
1288
1256
  */
1289
1257
  type Message = UserMessage | AssistantMessage | SystemMessage | ToolMessage | DeveloperMessage;
1290
1258
 
1259
+ /**
1260
+ * Normalized human-in-the-loop interrupt exposed by the Agent Server surface.
1261
+ */
1262
+ interface AgentInterrupt {
1263
+ /** Stable id derived from the LangGraph interrupt id or task/index. */
1264
+ interruptId: string;
1265
+ /** Normalized interrupt kind. */
1266
+ type: "clarify" | "task_review" | "custom";
1267
+ /** Thread whose graph is interrupted. */
1268
+ threadId: string;
1269
+ /** Task id that owns the interrupt, when available. */
1270
+ taskId?: string;
1271
+ /** Raw or normalized interrupt payload. */
1272
+ payload: unknown;
1273
+ }
1274
+
1291
1275
  /**
1292
1276
  * ThreadStoreProtocol
1293
1277
  *
@@ -1322,6 +1306,12 @@ interface Thread {
1322
1306
  * Thread last update timestamp
1323
1307
  */
1324
1308
  updatedAt: Date;
1309
+ /**
1310
+ * Optional expiry timestamp used by the thread TTL sweeper.
1311
+ *
1312
+ * @remarks Absent means the thread never expires.
1313
+ */
1314
+ expiresAt?: Date;
1325
1315
  }
1326
1316
  /**
1327
1317
  * Create thread request type
@@ -1331,6 +1321,13 @@ interface CreateThreadRequest {
1331
1321
  * Thread metadata
1332
1322
  */
1333
1323
  metadata?: Record<string, any>;
1324
+ /**
1325
+ * Optional thread expiry timestamp.
1326
+ *
1327
+ * @remarks Routes compute this from `ttlSeconds`/`expiresAt`; the store only
1328
+ * persists it.
1329
+ */
1330
+ expiresAt?: Date;
1334
1331
  }
1335
1332
  /**
1336
1333
  * ThreadStore interface
@@ -1384,6 +1381,14 @@ interface ThreadStore {
1384
1381
  * @returns true if thread exists, false otherwise
1385
1382
  */
1386
1383
  hasThread(tenantId: string, threadId: string): Promise<boolean>;
1384
+ /**
1385
+ * List expired threads across all tenants.
1386
+ *
1387
+ * @param now Current time; threads with `expiresAt <= now` are returned.
1388
+ * @param limit Maximum number of threads to return.
1389
+ * @returns Expired threads ordered by `expiresAt` ascending.
1390
+ */
1391
+ listExpiredThreads(now: Date, limit: number): Promise<Thread[]>;
1387
1392
  }
1388
1393
 
1389
1394
  /**
@@ -5620,6 +5625,16 @@ type MessageMiddleware = (ctx: MessageContext, next: () => Promise<void>) => Pro
5620
5625
  interface ChannelAdapter<TConfig = unknown> {
5621
5626
  readonly channel: string;
5622
5627
  readonly configSchema: z.ZodSchema<TConfig>;
5628
+ /**
5629
+ * Whether `sendReply` is safe to call from any Gateway replica.
5630
+ *
5631
+ * @remarks
5632
+ * Only adapters whose reply transport is stateless/HTTP (for example Lark)
5633
+ * may set this. Connection-bound adapters (WeCom/WeChat/Room) leave it
5634
+ * undefined: their replies depend on process-local sockets or context tokens,
5635
+ * so the durable cross-replica reply path must not claim their jobs.
5636
+ */
5637
+ readonly durableReply?: boolean;
5623
5638
  receive(rawPayload: unknown, installation: ChannelInstallation): Promise<InboundMessage | null>;
5624
5639
  sendReply(replyTarget: ReplyTarget, message: OutboundMessage, installation: ChannelInstallation): Promise<void>;
5625
5640
  /**
@@ -6124,7 +6139,7 @@ interface AgentWebAppInterrupt {
6124
6139
  * `INVALID_REQUEST` covers redacted request-validation failures and
6125
6140
  * `INTERNAL_ERROR` covers redacted unexpected server failures.
6126
6141
  */
6127
- type AgentWebAppErrorCode = "WEB_APP_NOT_FOUND" | "WEB_APP_DISABLED" | "USER_ID_REQUIRED" | "INVALID_USER_ID" | "PROJECT_NOT_ALLOWED" | "PROJECT_SELECTOR_DISABLED" | "MODEL_NOT_ALLOWED" | "FEATURE_DISABLED" | "THREAD_NOT_FOUND" | "STREAM_CONFLICT" | "STREAM_FAILED" | "INVALID_REQUEST" | "INTERNAL_ERROR";
6142
+ type AgentWebAppErrorCode = "WEB_APP_NOT_FOUND" | "WEB_APP_DISABLED" | "USER_ID_REQUIRED" | "INVALID_USER_ID" | "PROJECT_NOT_ALLOWED" | "PROJECT_SELECTOR_DISABLED" | "MODEL_NOT_ALLOWED" | "FEATURE_DISABLED" | "THREAD_NOT_FOUND" | "STREAM_CONFLICT" | "STREAM_FAILED" | "RUN_CANCEL_UNAVAILABLE" | "RUN_CANCEL_STORE_UNAVAILABLE" | "INVALID_REQUEST" | "INTERNAL_ERROR";
6128
6143
  /** Public error payload returned by the Web App runtime. */
6129
6144
  interface AgentWebAppError {
6130
6145
  code: AgentWebAppErrorCode;
@@ -6779,6 +6794,337 @@ interface OutboxStore {
6779
6794
  pruneOlderThan(olderThanMs: number): Promise<number>;
6780
6795
  }
6781
6796
 
6797
+ /**
6798
+ * Checkpoint storage usage for a single thread.
6799
+ *
6800
+ * This is a read-only accounting view over the checkpointer's persisted rows.
6801
+ */
6802
+ interface ThreadCheckpointStorage {
6803
+ /** Thread whose checkpoint rows were measured. */
6804
+ threadId: string;
6805
+ /** Sum of checkpoint, channel-value, and pending-write bytes. */
6806
+ totalBytes: number;
6807
+ /** Persisted checkpoint rows (`checkpoints` table). */
6808
+ checkpoints: {
6809
+ count: number;
6810
+ bytes: number;
6811
+ };
6812
+ /** Persisted channel values (`checkpoint_blobs` table). */
6813
+ channelValues: {
6814
+ count: number;
6815
+ bytes: number;
6816
+ };
6817
+ /** Persisted pending writes (`checkpoint_writes` table). */
6818
+ pendingWrites: {
6819
+ count: number;
6820
+ bytes: number;
6821
+ };
6822
+ }
6823
+ /**
6824
+ * Read-only checkpoint storage accounting.
6825
+ *
6826
+ * Implementations must not create, copy, prune, or mutate checkpoint rows.
6827
+ */
6828
+ interface CheckpointStorage {
6829
+ /**
6830
+ * Measure the checkpoint storage used by one thread.
6831
+ *
6832
+ * @param threadId - Thread id whose checkpoint rows should be measured.
6833
+ * @returns Counts and byte sizes grouped by checkpoint storage category.
6834
+ */
6835
+ get(threadId: string): Promise<ThreadCheckpointStorage>;
6836
+ }
6837
+ /**
6838
+ * Checkpoint maintenance operations over persisted thread checkpoints.
6839
+ *
6840
+ * Implementations copy, delete, and prune raw checkpoint rows for a thread.
6841
+ * Callers must verify thread ownership and refuse to run while the thread is
6842
+ * active.
6843
+ */
6844
+ interface CheckpointMaintenance {
6845
+ /**
6846
+ * Copy every checkpoint row from a source thread to an empty target thread.
6847
+ *
6848
+ * @param sourceThreadId - Thread whose rows are copied.
6849
+ * @param targetThreadId - Empty thread that receives the rows.
6850
+ * @returns Resolves when the copy commits; an empty source is a no-op.
6851
+ * @throws When the target already has checkpoint rows.
6852
+ */
6853
+ copyThread(sourceThreadId: string, targetThreadId: string): Promise<void>;
6854
+ /**
6855
+ * Delete every checkpoint row for a thread.
6856
+ *
6857
+ * @param threadId - Thread whose checkpoint rows are deleted.
6858
+ * @returns Resolves when the deletion commits.
6859
+ */
6860
+ deleteThread(threadId: string): Promise<void>;
6861
+ /**
6862
+ * Delete the checkpoints that descend from a base checkpoint.
6863
+ *
6864
+ * Preserves the base checkpoint and every checkpoint that is not descended
6865
+ * from it. Descendants are discovered by following both same-namespace
6866
+ * `parent_checkpoint_id` edges and cross-namespace `metadata.parents` edges
6867
+ * (the `{ "<parent checkpoint_ns>": "<parent checkpoint id>" }` map that
6868
+ * LangGraph writes for subgraph checkpoints), recursively across all
6869
+ * namespaces. Checkpoint-id ordering is not used. LangGraph keys the first
6870
+ * superstep's writes of a resumed execution to the parent/base checkpoint, so
6871
+ * writes keyed to the base itself belong to the rolled-back run and are
6872
+ * deleted with descendant writes. Channel blobs are removed only when no
6873
+ * retained checkpoint references them.
6874
+ *
6875
+ * @param threadId - Thread whose later checkpoint history is deleted.
6876
+ * @param baseCheckpointId - Checkpoint to retain as the new tip, or `null` to
6877
+ * delete every checkpoint for the thread. An empty string is invalid and must
6878
+ * never be treated as the `null` wildcard.
6879
+ * @returns Resolves when the deletion commits; no descendants is a no-op.
6880
+ * @throws When the base checkpoint does not exist on the thread. Callers must
6881
+ * fail closed rather than deleting an unknown range.
6882
+ * @remarks The operation is transactional and idempotent so rollback recovery
6883
+ * can retry it.
6884
+ */
6885
+ deleteAfter(threadId: string, baseCheckpointId: string | null): Promise<void>;
6886
+ /**
6887
+ * Retain only the latest N checkpoints per checkpoint namespace.
6888
+ *
6889
+ * @param threadId - Thread whose checkpoint history is pruned.
6890
+ * @param options - Retention options.
6891
+ * @param options.keepLatest - Number of latest checkpoints to retain per namespace.
6892
+ * @returns Counts of deleted checkpoint, blob, and write rows.
6893
+ */
6894
+ pruneThread(threadId: string, options: {
6895
+ keepLatest: number;
6896
+ }): Promise<{
6897
+ checkpoints: number;
6898
+ blobs: number;
6899
+ writes: number;
6900
+ }>;
6901
+ }
6902
+
6903
+ /**
6904
+ * A tenant-scoped namespaced key-value item.
6905
+ */
6906
+ interface StoreItem {
6907
+ /** Hierarchical namespace path. */
6908
+ namespace: string[];
6909
+ /** Item key, unique within `(tenantId, namespace)`. */
6910
+ key: string;
6911
+ /** Arbitrary JSON object stored under the key. */
6912
+ value: Record<string, unknown>;
6913
+ /** Creation timestamp. */
6914
+ createdAt: Date;
6915
+ /** Last write timestamp. */
6916
+ updatedAt: Date;
6917
+ /** Optional expiry timestamp; expired items are invisible. */
6918
+ expiresAt?: Date;
6919
+ }
6920
+ /** Input for {@link StoreProtocol.put}. */
6921
+ interface StorePutInput {
6922
+ /** Non-empty namespace path. */
6923
+ namespace: string[];
6924
+ /** Non-empty item key. */
6925
+ key: string;
6926
+ /** JSON object value. */
6927
+ value: Record<string, unknown>;
6928
+ /**
6929
+ * Optional time-to-live in minutes.
6930
+ *
6931
+ * @remarks Positive finite numbers are accepted; stores compute `expiresAt`.
6932
+ */
6933
+ ttlMinutes?: number;
6934
+ /**
6935
+ * Optional index hint accepted for future indexing.
6936
+ *
6937
+ * @remarks No vector index is created in this slice.
6938
+ */
6939
+ index?: boolean | string[];
6940
+ }
6941
+ /** Input for {@link StoreProtocol.search}. */
6942
+ interface StoreSearchInput {
6943
+ /** Only return items whose namespace starts with this path. */
6944
+ namespacePrefix?: string[];
6945
+ /** Deep partial-equality filter over `value`. */
6946
+ filter?: Record<string, unknown>;
6947
+ /** Case-insensitive substring over the serialized value. */
6948
+ query?: string;
6949
+ /** Maximum items to return. */
6950
+ limit?: number;
6951
+ /** Pagination offset. */
6952
+ offset?: number;
6953
+ }
6954
+ /**
6955
+ * Tenant-scoped namespaced key-value store with TTL and simple search.
6956
+ *
6957
+ * @remarks
6958
+ * - Unique identity is `(tenantId, namespace, key)`.
6959
+ * - Expired items are invisible to {@link get} and {@link search}.
6960
+ * - `filter` is deep partial equality over `value`; `query` is a
6961
+ * case-insensitive substring over the serialized value. Semantic/embedding
6962
+ * search is deferred.
6963
+ */
6964
+ interface StoreProtocol {
6965
+ /** Create or replace an item. */
6966
+ put(tenantId: string, input: StorePutInput): Promise<StoreItem>;
6967
+ /** Read an unexpired item. */
6968
+ get(tenantId: string, namespace: string[], key: string): Promise<StoreItem | null>;
6969
+ /** Delete an item regardless of expiry. */
6970
+ delete(tenantId: string, namespace: string[], key: string): Promise<boolean>;
6971
+ /** Search unexpired items. */
6972
+ search(tenantId: string, input: StoreSearchInput): Promise<StoreItem[]>;
6973
+ /** List distinct namespace paths under a prefix. */
6974
+ listNamespaces(tenantId: string, prefix?: string[], limit?: number): Promise<string[][]>;
6975
+ /** Hard-delete expired items across all tenants. */
6976
+ deleteExpired(now: Date, limit: number): Promise<number>;
6977
+ }
6978
+ /** Separator reserved for encoded namespace paths. */
6979
+ declare const STORE_IDENTITY_SEPARATOR = "\u001F";
6980
+ /** Raised when a store namespace/key identity is malformed. */
6981
+ declare class StoreValidationError extends Error {
6982
+ readonly code: "STORE_IDENTITY_INVALID";
6983
+ constructor(message: string);
6984
+ }
6985
+ /**
6986
+ * Assert a non-empty namespace array of non-empty segments without the
6987
+ * reserved separator.
6988
+ *
6989
+ * @param namespace - Candidate namespace path.
6990
+ * @throws {StoreValidationError} When the namespace is malformed.
6991
+ */
6992
+ declare function assertStoreIdentity(namespace: unknown, key: unknown): asserts namespace is string[];
6993
+ /**
6994
+ * Assert a namespace prefix (which may be empty for "all namespaces").
6995
+ *
6996
+ * @param prefix - Candidate prefix path.
6997
+ * @throws {StoreValidationError} When any segment is malformed.
6998
+ */
6999
+ declare function assertStoreNamespacePrefix(prefix: unknown): asserts prefix is string[];
7000
+ /**
7001
+ * Validate and compute an expiry date from `ttlMinutes`.
7002
+ *
7003
+ * @param ttlMinutes - Optional positive finite TTL in minutes.
7004
+ * @param now - Base time (default current time).
7005
+ * @returns The expiry date, or `undefined` when no TTL was supplied.
7006
+ * @throws {StoreValidationError} When the TTL is invalid or out of range.
7007
+ */
7008
+ declare function storeExpiresAt(ttlMinutes: number | undefined, now?: Date): Date | undefined;
7009
+ /**
7010
+ * Validate a non-negative safe-integer pagination value.
7011
+ *
7012
+ * @param value - Candidate limit/offset.
7013
+ * @param fallback - Value used when omitted.
7014
+ * @returns The validated number.
7015
+ * @throws {StoreValidationError} When the value is not a non-negative safe integer.
7016
+ */
7017
+ declare function storePaginationValue(value: number | undefined, fallback: number): number;
7018
+
7019
+ /** Lifecycle of one durable channel reply delivery attempt. */
7020
+ type ChannelReplyJobStatus = "pending" | "delivered" | "failed";
7021
+ /**
7022
+ * A durable, cross-replica channel reply job.
7023
+ *
7024
+ * @remarks
7025
+ * The row is keyed by `runId` but always read/written inside a tenant scope.
7026
+ * Claiming is a lease-based CAS: only a pending, due row with no live lease can
7027
+ * be claimed, and terminal writes must present the current lease owner.
7028
+ */
7029
+ interface ChannelReplyJob {
7030
+ runId: string;
7031
+ tenantId: string;
7032
+ assistantId: string;
7033
+ threadId: string;
7034
+ adapterChannel: string;
7035
+ channelInstallationId: string;
7036
+ replyTarget: Record<string, unknown>;
7037
+ inputMessageId: string;
7038
+ /**
7039
+ * Legacy chunk-buffer cursor captured before the run was created.
7040
+ *
7041
+ * @remarks Retained for schema compatibility. The durable dispatcher now
7042
+ * reads final text from the thread checkpoint and does not use this field.
7043
+ */
7044
+ streamCursor?: string | null;
7045
+ status: ChannelReplyJobStatus;
7046
+ attempts: number;
7047
+ /** Epoch milliseconds. */
7048
+ availableAt: number;
7049
+ leaseOwner: string | null;
7050
+ /** Epoch milliseconds. */
7051
+ leaseExpiresAt: number | null;
7052
+ lastError: string | null;
7053
+ outputMessageId: string | null;
7054
+ /** Epoch milliseconds. */
7055
+ createdAt: number;
7056
+ /** Epoch milliseconds. */
7057
+ updatedAt: number;
7058
+ /** Epoch milliseconds. */
7059
+ deliveredAt: number | null;
7060
+ }
7061
+ /** Fields accepted when enqueuing a reply job. Status/lease/output fields are assigned by the store. */
7062
+ interface CreateChannelReplyJobInput {
7063
+ runId: string;
7064
+ tenantId: string;
7065
+ assistantId: string;
7066
+ threadId: string;
7067
+ adapterChannel: string;
7068
+ channelInstallationId: string;
7069
+ replyTarget: Record<string, unknown>;
7070
+ inputMessageId: string;
7071
+ /**
7072
+ * Legacy chunk-buffer cursor captured before the run was created.
7073
+ *
7074
+ * @remarks Retained for schema compatibility. The durable dispatcher now
7075
+ * reads final text from the thread checkpoint and does not use this field.
7076
+ */
7077
+ streamCursor?: string | null;
7078
+ /** Earliest epoch-ms time the job may be claimed. */
7079
+ availableAt: number;
7080
+ }
7081
+ /** Persistence boundary for durable channel reply jobs. */
7082
+ interface ChannelReplyJobStore {
7083
+ /** Creates a pending job. */
7084
+ create(input: CreateChannelReplyJobInput): Promise<ChannelReplyJob>;
7085
+ /** Reads one job within a tenant scope. */
7086
+ get(tenantId: string, runId: string): Promise<ChannelReplyJob | null>;
7087
+ /** Lists claimable pending jobs that are due at `now`, oldest first. */
7088
+ listPending(now: number, limit?: number): Promise<ChannelReplyJob[]>;
7089
+ /**
7090
+ * Atomically leases a pending, due job that is unleased or has an expired
7091
+ * lease. Returns the claimed job, or `null` when another owner won.
7092
+ */
7093
+ claim(tenantId: string, runId: string, owner: string, leaseMs: number, now?: number): Promise<ChannelReplyJob | null>;
7094
+ /** Marks a job delivered when `owner` still holds the lease. */
7095
+ markDelivered(tenantId: string, runId: string, owner: string, outputMessageId?: string | null, now?: number): Promise<ChannelReplyJob | null>;
7096
+ /** Returns a job to pending with an incremented attempt count. */
7097
+ reschedule(tenantId: string, runId: string, owner: string, error: string, availableAt: number, now?: number): Promise<ChannelReplyJob | null>;
7098
+ /** Marks a job terminally failed. */
7099
+ markFailed(tenantId: string, runId: string, owner: string, error: string, now?: number): Promise<ChannelReplyJob | null>;
7100
+ /** Deletes one job. Returns whether a row was removed. */
7101
+ delete(tenantId: string, runId: string): Promise<boolean>;
7102
+ /**
7103
+ * Deletes up to `limit` terminal (`delivered`/`failed`) jobs whose last update
7104
+ * is strictly older than `before`.
7105
+ *
7106
+ * @param before Epoch milliseconds retention cutoff.
7107
+ * @param limit Maximum rows to prune in this batch (normalized 1..200).
7108
+ * @returns Number of rows removed.
7109
+ */
7110
+ deleteTerminalBefore(before: number, limit?: number): Promise<number>;
7111
+ }
7112
+ /** Smallest accepted page size for {@link ChannelReplyJobStore.listPending}. */
7113
+ declare const CHANNEL_REPLY_JOB_LIST_LIMIT_MIN = 1;
7114
+ /** Largest accepted page size for {@link ChannelReplyJobStore.listPending}. */
7115
+ declare const CHANNEL_REPLY_JOB_LIST_LIMIT_MAX = 200;
7116
+ /** Default page size for {@link ChannelReplyJobStore.listPending}. */
7117
+ declare const CHANNEL_REPLY_JOB_LIST_LIMIT_DEFAULT = 100;
7118
+ /**
7119
+ * Normalizes a caller-supplied page size into the shared 1..200 range.
7120
+ *
7121
+ * @remarks Zero and negative values clamp to 1; non-finite values fall back to
7122
+ * the default. Stores must use this helper so InMemory and PostgreSQL agree.
7123
+ */
7124
+ declare function normalizeChannelReplyJobListLimit(limit?: number): number;
7125
+ /** Rejects missing/blank required fields and malformed create payloads at runtime. */
7126
+ declare function assertValidCreateChannelReplyJobInput(input: CreateChannelReplyJobInput): void;
7127
+
6782
7128
  /** A safely extracted value from an own enumerable data-property descriptor. */
6783
7129
  interface DescriptorDataValue {
6784
7130
  ok: true;
@@ -7777,6 +8123,47 @@ interface RunScope {
7777
8123
  */
7778
8124
  declare function resolveRunScope(runConfig: unknown): RunScope;
7779
8125
 
8126
+ /**
8127
+ * A cancellation signal routed to the current owner of a run.
8128
+ *
8129
+ * `runId` is mandatory: a signal without it cannot unambiguously identify the
8130
+ * execution to stop, so it is rejected rather than applied to the thread.
8131
+ */
8132
+ interface RunCancelSignal {
8133
+ commandId: string;
8134
+ tenantId: string;
8135
+ assistantId: string;
8136
+ threadId: string;
8137
+ runId: string;
8138
+ reason: "abort" | "a2a.cancel" | "shutdown";
8139
+ createdAt: string;
8140
+ }
8141
+ /**
8142
+ * Identity of a human-in-the-loop interrupt answer, used for distributed
8143
+ * dedupe so multiple replicas settle the same answer at most once.
8144
+ */
8145
+ interface InterruptAnswerKey {
8146
+ tenantId: string;
8147
+ assistantId: string;
8148
+ threadId: string;
8149
+ interruptId: string;
8150
+ }
8151
+ /**
8152
+ * Durable A2A event delivery cursor stored with the shared A2A task.
8153
+ * `lastEventId` is the last event already handed to the client.
8154
+ */
8155
+ interface A2AEventCursor {
8156
+ taskId: string;
8157
+ lastEventId: string;
8158
+ updatedAt: string;
8159
+ }
8160
+ /** Strict validator for {@link RunCancelSignal}. */
8161
+ declare const runCancelSignalSchema: z.ZodType<RunCancelSignal>;
8162
+ /** Strict validator for {@link InterruptAnswerKey}. */
8163
+ declare const interruptAnswerKeySchema: z.ZodType<InterruptAnswerKey>;
8164
+ /** Strict validator for {@link A2AEventCursor}. */
8165
+ declare const a2aEventCursorSchema: z.ZodType<A2AEventCursor>;
8166
+
7780
8167
  /**
7781
8168
  * Request header carrying the per-thread affinity key (the thread id).
7782
8169
  *
@@ -7804,4 +8191,4 @@ declare function threadAffinityHeaders(threadId: string | undefined): Record<str
7804
8191
  */
7805
8192
  declare function buildAffinityMissChunk(owner: string, threadId: string): MessageChunk;
7806
8193
 
7807
- export { type A2AApiKeyEntry, type A2AApiKeyRecord, type A2AApiKeyStore, type A2AAuthContext, type A2ARemoteAgentConfig, AFFINITY_ECHO_HEADER, AFFINITY_MISS_CODE, AGENT_AFFINITY_HEADER, type AgentClient, type AgentConfig, type AgentConfigWithTools, type AgentLatticeProtocol, type AgentMenuConfig, type AgentMiddlewareConfig, type AgentRunConfig, AgentType, type AgentWebApp, type AgentWebAppAppearance, type AgentWebAppBootstrap, type AgentWebAppCalloutWidget, type AgentWebAppError, type AgentWebAppErrorCode, type AgentWebAppFeatures, type AgentWebAppGenUIBlock, type AgentWebAppIdentityAssurance, type AgentWebAppIdentityConfig, type AgentWebAppIdentityPolicy, type AgentWebAppInterrupt, type AgentWebAppIssuerConfig, type AgentWebAppQuickPrompt, type AgentWebAppRuntimeMessage, type AgentWebAppRuntimeThread, type AgentWebAppScope, type AgentWebAppStatus, type AgentWebAppStore, type AgentWebAppStorePatch, type AgentWebAppStreamEvent, type AgentWebAppStreamProjectionContext, type AgentWebAppTableWidget, type AgentWebAppThreadMetadata, type AgentWebAppUpdateOptions, type Assistant, type AssistantMessage, type AssistantStore, type Attachment, type AvailableModule, type BaseLatticeProtocol, type BaseMessage, type Binding, type BindingListParams, type BindingMutablePatch, type BindingRegistry, type BootstrapFilesConfig, type BrowserMiddlewareConfig, type Callback, type CapabilityBundle, type CapabilityBundleDeleteResult, type CapabilityBundleStore, type CapabilityBundleUpdateConflict, type CapabilityFieldSource, type CapabilityOverride, type CapabilityPreview, type CapabilityPreviewIssue, type CapabilityRuntime, type ChannelAdapter, type ChannelBindingMigrationConflict, ChannelBindingMigrationConflictError, 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 ConversationRecord, type CreateA2AApiKeyInput, type CreateAgentWebAppInput, type CreateAssistantRequest, type CreateBindingInput, type CreateCapabilityBundleInput, type CreateChannelInstallationInput, type CreateChannelInstallationRequest, type CreateCollectionRequest, type CreateConversationInput, type CreateDatabaseConfigRequest, type CreateEvalCaseRequest, type CreateEvalProjectRequest, type CreateEvalRunRequest, type CreateEvalSuiteRequest, type CreateMcpServerConfigRequest, type CreateMenuItemInput, type CreateMetricsServerConfigRequest, type CreateModelProviderRequest, type CreateProjectRequest, type CreateRunStepRequest, type CreateShareRequest, type CreateSkillRequest, type CreateTaskRequest, type CreateTenantRequest, type CreateThreadRequest, type CreateUserRequest, type CreateUserTenantLinkRequest, type CreateWorkItemIfAbsentRequest, type CreateWorkItemRequest, type CreateWorkflowRunRequest, type CreateWorkspaceRequest, type CustomMenuConfig, type DataSource, type DatabaseConfig, type DatabaseConfigEntry, type DatabaseConfigStore, type DatabaseType, type DeepAgentConfig, type DescriptorDataValue, type DeveloperMessage, type DiscoveredModel, type DispatchResult, DuplicateChannelBindingSubjectError, EXECUTION_RESULT_EVENT_KEY_PATTERN, EXECUTION_RESULT_EVENT_KEY_PATTERN_SOURCE, EXECUTION_RESULT_EVENT_KEY_PREFIX, type EmbeddingsConfig, type EmbeddingsLatticeProtocol, type EvalCase, type EvalProject, type EvalProjectReport, type EvalRun, type EvalRunResult, type EvalStore, type EvalSuite, type ExecuteSqlQueryRequest, type ExecuteSqlQueryResponse, type ExpectedCapabilityBundleRevisions, type FileMenuConfig, type FilterCondition, type GraphBuildOptions, type HtmlMenuConfig, type IConversationStore, type ID, type InboundMessage, type InternalAgentNode, type InternalBaseNode, type InternalCreateCapabilityBundleInput, type InternalDSL, type InternalEdge, type InternalInput, type InternalInputNode, type InternalMapNode, type InternalNode, type InternalNodeConfig, type InternalOutput, type InternalState, type InternalStateField, type InternalTerminalNode, type InternalUpdateCapabilityBundleInput, type InterruptMessage, type InterruptPolicy, InvalidProjectCapabilityBundleConfigError, type LLMConfig, type LarkChannelInstallationConfig, type LatticeError, type LatticeEventBus, type LatticeMessage, type LeaseRecord, type LeaseStore, type LocalA2AProviderId, type LocalA2AProviderState, type LocalA2AProviderStatus, type LocalA2ATemplateDefinition, type LocalRuntimeConfig, type LoggerClient, type LoggerConfig, type LoggerContext, type LoggerLatticeProtocol, LoggerType, MAX_PENDING_EXECUTION_RESULTS_LIMIT, type McpAppMenuConfig, 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 McpUiCsp, type McpUiDisplayMode, type McpUiPermissions, type McpUiRef, type McpUiResourcePayload, 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 ModelDiscoveryResult, type ModelKind, type ModelLatticeProtocol, type ModelProviderApiStyle, type ModelProviderEntry, type ModelProviderErrorCode, type ModelProviderLlmProvider, type ModelProviderModelEntry, type ModelProviderProbeRequest, type ModelProviderProbeResult, type ModelProviderPublicEntry, type ModelProviderStatus, type ModelProviderStore, type ModelProviderUpstreamErrorCode, type ModelProviderWireProtocol, type ModelSelection, type OpenAuditAppendInput, type OpenAuditQuery, type OpenAuditRecord, type OpenAuditStore, type OpenCapabilitySource, type OpenCatalog, type OpenCatalogDomain, type OpenCatalogItem, type OpenCredentialKind, type OpenExecutionContext, type OpenExecutionResult, type OpenGrant, type OutboundMessage, type OutboundStreamChunk, type OutboxEvent, type OutboxStore, PROJECT_ROOM_TASK_DELEGATED_LABEL, PROJECT_ROOM_TASK_DELEGATED_SEPARATOR, PROJECT_ROOM_USER_CHANNEL_PROJECT, PROJECT_TASK_LIFECYCLE_ACTIONS, type PaginatedResult, type PaginationParams, type PinoFileOptions, type Plugin, type PluginConnection, type PluginConnectionFieldSchema, type PluginConnectionTestResult, type PluginContext, type PluginDeployment, type PluginDeploymentMode, type PluginDeploymentStatus, type PluginDeploymentStore, type PluginDiscoveredResource, type PluginMeta, type PluginMetaOutput, type PluginMiddlewareFactory, type PluginSkillDefinition, type PluginSkillResource, type PluginStandardConnectionConfig, type PluginToolMeta, type PluginToolUi, type PluginUiResource, type ProcessingAgentConfig, type Project, type ProjectBotMembership, type ProjectBotMembershipStatus, type ProjectBotMembershipStore, type ProjectBotRole, type ProjectCapabilityConfig, type ProjectFilter, type ProjectHumanRole, type ProjectKind, type ProjectLifecycleEventCursor, type ProjectLifecycleEventQuery, type ProjectMembership, type ProjectMembershipMutationResult, type ProjectMembershipStatus, type ProjectMembershipStore, type ProjectRoom, ProjectRoomBrokerCapacityError, type ProjectRoomBusinessEvent, type ProjectRoomBusinessEventDraft, type ProjectRoomControlEvent, ProjectRoomCursorError, type ProjectRoomEventBrokerProtocol, type ProjectRoomEventId, type ProjectRoomEventOf, type ProjectRoomEventScope, type ProjectRoomEventSubscription, type ProjectRoomMembershipAffectedEvent, type ProjectRoomMembershipChangedEvent, type ProjectRoomMention, type ProjectRoomMessage, type ProjectRoomMessageAuthor, type ProjectRoomMessageCreatedEvent, type ProjectRoomMessageCursor, type ProjectRoomMessageSource, type ProjectRoomMessageStore, type ProjectRoomPublicBotMembership, type ProjectRoomPublicMembership, type ProjectRoomPublicMessage, type ProjectRoomReadChangedEvent, type ProjectRoomReadState, type ProjectRoomReadStateStore, type ProjectRoomRealtimeActor, type ProjectRoomRosterChangedEvent, type ProjectRoomScopedBusinessEvent, type ProjectRoomSseWritable, type ProjectRoomStore, type ProjectRoomTaskChangedEvent, type ProjectRoomThreadMetadata, type ProjectRoomTrustedRunContext, type ProjectStore, type ProjectTaskLifecycleAction, ProjectTaskStoreUnsupportedError, type ProjectTaskThreadMetadata, type ProjectTaskTrustedRunContext, type ProjectTaskWorkItemStore, type ProviderModelInput, type PublicChannelInstallationType, type QueryParams, type QueryResultFormat, type QueryWorkflowRunsOptions, type QueryWorkflowRunsResult, type QueueClient, type QueueConfig, type QueueLatticeProtocol, type QueueResult, QueueType, type QueuedExecutionMode, REPLICA_HEADER, type ReactAgentConfig, type ReplyTarget, type ResourceAddress, type ResourceResolver, type Result, type RunScope, type RunStep, type STTClient, type STTConfig, type STTModelLatticeProtocol, type SandboxMiddlewareConfig, type SandboxPluginConnectionDef, type SandboxPluginDiagnostic, type SandboxPluginManifest, type SandboxPluginToolDef, 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 TaskBeliefDiagnosticCode, type TaskBeliefEntry, type TaskBeliefParseFailure, type TaskBeliefParseResult, type TaskBeliefParseSuccess, type TaskBeliefState, type TaskDependentListQuery, type TaskFileRef, type TaskHandler, type TaskItem, type TaskListFilter, type TaskMutationSnapshot, type TaskStore, type TaskWorkItem, type TaskWorkItemListFilter, type TaskWorkItemStore, type TeamAgentConfig, type TeamTeammateConfig, type Tenant, type TenantModelCatalog, type TenantModelPublicEntry, type TenantStatus, type TenantStore, type TestMcpServerToolsResponse, type Thread, type ThreadStore, type Timestamp, type ToolCall, type ToolCallUi, type ToolConfig, type ToolExecutor, type ToolLatticeProtocol, type ToolMessage, type TopologyEdge, type TranscriptionResult, type TrustedRunContext, type UIComponent, UIComponentType, type UIConfig, type UILatticeProtocol, type UpdateA2AApiKeyInput, type UpdateAgentWebAppInput, type UpdateCapabilityBundleInput, type UpdateChannelInstallationRequest, type UpdateCollectionRequest, type UpdateDatabaseConfigRequest, type UpdateMcpServerConfigRequest, type UpdateMenuItemInput, type UpdateMetricsServerConfigRequest, type UpdateModelProviderRequest, type UpdateProjectCapabilityBundlesResult, type UpdateProjectRequest, type UpdateRunStepRequest, type UpdateTaskRequest, type UpdateTenantRequest, type UpdateUserRequest, type UpdateUserTenantLinkRequest, type UpdateWorkflowRunRequest, type UpdateWorkspaceRequest, type User, type UserMessage, type UserPushSubscription, type UserPushSubscriptionStore, type UserStatus, type UserStore, type UserTenantLink, type UserTenantLinkStore, type UserTenantRole, type VectorStoreConfig, type VectorStoreCreateParams, type VectorStoreLatticeProtocol, type VectorStoreProvider, WORKSPACE_PUBLIC_ROOM_PROJECT_PREFIX, type WechatChannelInstallationConfig, type WecomChannelInstallationConfig, type WorkflowAgentConfig, type WorkflowRun, type WorkflowRunStatus, type WorkflowTrackingStore, type Workspace, type WorkspaceStore, type YamlAgentStep, type YamlMapStep, type YamlParallelBlock, type YamlTopLevelStep, type YamlWorkflow, affinityEchoHeaders, assertGenericProjectConfig, buildAffinityMissChunk, createAgentWebAppStreamProjectionContext, descriptorDataValue, effectiveGrants, firstNonEmptyString, getSubAgentsFromConfig, getToolsFromConfig, hasTools, isA2ARemoteAgentConfig, isDeepAgentConfig, isExecutionResultEventKey, isMcpUiRef, isProcessingAgentConfig, isProjectRoomEventId, isTeamAgentConfig, isWorkflowAgentConfig, isWorkspacePublicRoomProjectId, normalizeTaskMetadataScalar, parseAgentWebAppGenUIBlock, parseMcpUiRef, parseModelKey, parseProjectRoomEventId, parseQueuedExecutionMode, parseTaskBeliefState, parseTrustedRunContext, projectAgentWebAppChunk, projectRoomUserEventScope, replaceTaskBeliefState, requireProjectTaskWorkItemStore, resolveRunScope, snapshotExactArray, snapshotExactRecord, snapshotProjectRoomBotMembershipRealtime, snapshotProjectRoomMembershipRealtime, snapshotProjectRoomMessageRealtime, taskBeliefStatesEqual, threadAffinityHeaders, toModelKey, toProjectRoomPublicBotMembership, toProjectRoomPublicMembership, toProjectRoomPublicMessage };
8194
+ export { type A2AApiKeyEntry, type A2AApiKeyRecord, type A2AApiKeyStore, type A2AAuthContext, type A2AEventCursor, type A2ARemoteAgentConfig, AFFINITY_ECHO_HEADER, AFFINITY_MISS_CODE, AGENT_AFFINITY_HEADER, type AgentClient, type AgentConfig, type AgentConfigWithTools, type AgentInterrupt, type AgentLatticeProtocol, type AgentMenuConfig, type AgentMiddlewareConfig, type AgentRunConfig, AgentType, type AgentWebApp, type AgentWebAppAppearance, type AgentWebAppBootstrap, type AgentWebAppCalloutWidget, type AgentWebAppError, type AgentWebAppErrorCode, type AgentWebAppFeatures, type AgentWebAppGenUIBlock, type AgentWebAppIdentityAssurance, type AgentWebAppIdentityConfig, type AgentWebAppIdentityPolicy, type AgentWebAppInterrupt, type AgentWebAppIssuerConfig, type AgentWebAppQuickPrompt, type AgentWebAppRuntimeMessage, type AgentWebAppRuntimeThread, type AgentWebAppScope, type AgentWebAppStatus, type AgentWebAppStore, type AgentWebAppStorePatch, type AgentWebAppStreamEvent, type AgentWebAppStreamProjectionContext, type AgentWebAppTableWidget, type AgentWebAppThreadMetadata, type AgentWebAppUpdateOptions, type Assistant, type AssistantMessage, type AssistantStore, type Attachment, type AvailableModule, type BaseLatticeProtocol, type BaseMessage, type Binding, type BindingListParams, type BindingMutablePatch, type BindingRegistry, type BootstrapFilesConfig, type BrowserMiddlewareConfig, CHANNEL_REPLY_JOB_LIST_LIMIT_DEFAULT, CHANNEL_REPLY_JOB_LIST_LIMIT_MAX, CHANNEL_REPLY_JOB_LIST_LIMIT_MIN, type Callback, type CapabilityBundle, type CapabilityBundleDeleteResult, type CapabilityBundleStore, type CapabilityBundleUpdateConflict, type CapabilityFieldSource, type CapabilityOverride, type CapabilityPreview, type CapabilityPreviewIssue, type CapabilityRuntime, type ChannelAdapter, type ChannelBindingMigrationConflict, ChannelBindingMigrationConflictError, type ChannelInstallation, type ChannelInstallationStore, type ChannelInstallationType, type ChannelReplyJob, type ChannelReplyJobStatus, type ChannelReplyJobStore, type CheckpointMaintenance, type CheckpointStorage, type ClawMiddlewareConfig, type CodeEvalMiddlewareConfig, type Collection, type CollectionField, type CollectionFieldType, type CollectionMiddlewareConfig, type CollectionSchema, type CollectionStore, type ConnectionEntry, type ConnectionStore, type ConversationRecord, type CreateA2AApiKeyInput, type CreateAgentWebAppInput, type CreateAssistantRequest, type CreateBindingInput, type CreateCapabilityBundleInput, type CreateChannelInstallationInput, type CreateChannelInstallationRequest, type CreateChannelReplyJobInput, type CreateCollectionRequest, type CreateConversationInput, type CreateDatabaseConfigRequest, type CreateEvalCaseRequest, type CreateEvalProjectRequest, type CreateEvalRunRequest, type CreateEvalSuiteRequest, type CreateMcpServerConfigRequest, type CreateMenuItemInput, type CreateMetricsServerConfigRequest, type CreateModelProviderRequest, type CreateProjectRequest, type CreateRunStepRequest, type CreateShareRequest, type CreateSkillRequest, type CreateTaskRequest, type CreateTenantRequest, type CreateThreadRequest, type CreateUserRequest, type CreateUserTenantLinkRequest, type CreateWorkItemIfAbsentRequest, type CreateWorkItemRequest, type CreateWorkflowRunRequest, type CreateWorkspaceRequest, type CustomMenuConfig, type DataSource, type DatabaseConfig, type DatabaseConfigEntry, type DatabaseConfigStore, type DatabaseType, type DeepAgentConfig, type DescriptorDataValue, type DeveloperMessage, type DiscoveredModel, type DispatchResult, DuplicateChannelBindingSubjectError, EXECUTION_RESULT_EVENT_KEY_PATTERN, EXECUTION_RESULT_EVENT_KEY_PATTERN_SOURCE, EXECUTION_RESULT_EVENT_KEY_PREFIX, type EmbeddingsConfig, type EmbeddingsLatticeProtocol, type EvalCase, type EvalProject, type EvalProjectReport, type EvalRun, type EvalRunResult, type EvalStore, type EvalSuite, type ExecuteSqlQueryRequest, type ExecuteSqlQueryResponse, type ExpectedCapabilityBundleRevisions, type FileMenuConfig, type FilterCondition, type GraphBuildOptions, type HtmlMenuConfig, type IConversationStore, type ID, type InboundMessage, type InternalAgentNode, type InternalBaseNode, type InternalCreateCapabilityBundleInput, type InternalDSL, type InternalEdge, type InternalInput, type InternalInputNode, type InternalMapNode, type InternalNode, type InternalNodeConfig, type InternalOutput, type InternalState, type InternalStateField, type InternalTerminalNode, type InternalUpdateCapabilityBundleInput, type InterruptAnswerKey, type InterruptMessage, type InterruptPolicy, InvalidProjectCapabilityBundleConfigError, type LLMConfig, type LarkChannelInstallationConfig, type LatticeError, type LatticeEventBus, type LatticeMessage, type LeaseRecord, type LeaseStore, type LocalA2AProviderId, type LocalA2AProviderState, type LocalA2AProviderStatus, type LocalA2ATemplateDefinition, type LocalRuntimeConfig, type LoggerClient, type LoggerConfig, type LoggerContext, type LoggerLatticeProtocol, LoggerType, MAX_PENDING_EXECUTION_RESULTS_LIMIT, type McpAppMenuConfig, 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 McpUiCsp, type McpUiDisplayMode, type McpUiPermissions, type McpUiRef, type McpUiResourcePayload, 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 ModelDiscoveryResult, type ModelKind, type ModelLatticeProtocol, type ModelProviderApiStyle, type ModelProviderEntry, type ModelProviderErrorCode, type ModelProviderLlmProvider, type ModelProviderModelEntry, type ModelProviderProbeRequest, type ModelProviderProbeResult, type ModelProviderPublicEntry, type ModelProviderStatus, type ModelProviderStore, type ModelProviderUpstreamErrorCode, type ModelProviderWireProtocol, type ModelSelection, type OpenAuditAppendInput, type OpenAuditQuery, type OpenAuditRecord, type OpenAuditStore, type OpenCapabilitySource, type OpenCatalog, type OpenCatalogDomain, type OpenCatalogItem, type OpenCredentialKind, type OpenExecutionContext, type OpenExecutionResult, type OpenGrant, type OutboundMessage, type OutboundStreamChunk, type OutboxEvent, type OutboxStore, PROJECT_ROOM_TASK_DELEGATED_LABEL, PROJECT_ROOM_TASK_DELEGATED_SEPARATOR, PROJECT_ROOM_USER_CHANNEL_PROJECT, PROJECT_TASK_LIFECYCLE_ACTIONS, type PaginatedResult, type PaginationParams, type PinoFileOptions, type Plugin, type PluginConnection, type PluginConnectionFieldSchema, type PluginConnectionTestResult, type PluginContext, type PluginDeployment, type PluginDeploymentMode, type PluginDeploymentStatus, type PluginDeploymentStore, type PluginDiscoveredResource, type PluginMeta, type PluginMetaOutput, type PluginMiddlewareFactory, type PluginSkillDefinition, type PluginSkillResource, type PluginStandardConnectionConfig, type PluginToolMeta, type PluginToolUi, type PluginUiResource, type ProcessingAgentConfig, type Project, type ProjectBotMembership, type ProjectBotMembershipStatus, type ProjectBotMembershipStore, type ProjectBotRole, type ProjectCapabilityConfig, type ProjectFilter, type ProjectHumanRole, type ProjectKind, type ProjectLifecycleEventCursor, type ProjectLifecycleEventQuery, type ProjectMembership, type ProjectMembershipMutationResult, type ProjectMembershipStatus, type ProjectMembershipStore, type ProjectRoom, ProjectRoomBrokerCapacityError, type ProjectRoomBusinessEvent, type ProjectRoomBusinessEventDraft, type ProjectRoomControlEvent, ProjectRoomCursorError, type ProjectRoomEventBrokerProtocol, type ProjectRoomEventId, type ProjectRoomEventOf, type ProjectRoomEventScope, type ProjectRoomEventSubscription, type ProjectRoomMembershipAffectedEvent, type ProjectRoomMembershipChangedEvent, type ProjectRoomMention, type ProjectRoomMessage, type ProjectRoomMessageAuthor, type ProjectRoomMessageCreatedEvent, type ProjectRoomMessageCursor, type ProjectRoomMessageSource, type ProjectRoomMessageStore, type ProjectRoomPublicBotMembership, type ProjectRoomPublicMembership, type ProjectRoomPublicMessage, type ProjectRoomReadChangedEvent, type ProjectRoomReadState, type ProjectRoomReadStateStore, type ProjectRoomRealtimeActor, type ProjectRoomRosterChangedEvent, type ProjectRoomScopedBusinessEvent, type ProjectRoomSseWritable, type ProjectRoomStore, type ProjectRoomTaskChangedEvent, type ProjectRoomThreadMetadata, type ProjectRoomTrustedRunContext, type ProjectStore, type ProjectTaskLifecycleAction, ProjectTaskStoreUnsupportedError, type ProjectTaskThreadMetadata, type ProjectTaskTrustedRunContext, type ProjectTaskWorkItemStore, type ProviderModelInput, type PublicChannelInstallationType, type QueryParams, type QueryResultFormat, type QueryWorkflowRunsOptions, type QueryWorkflowRunsResult, type QueueClient, type QueueConfig, type QueueLatticeProtocol, type QueueResult, QueueType, type QueuedExecutionMode, REPLICA_HEADER, type ReactAgentConfig, type ReplyTarget, type ResourceAddress, type ResourceResolver, type Result, type RunCancelSignal, type RunScope, type RunStep, STORE_IDENTITY_SEPARATOR, type STTClient, type STTConfig, type STTModelLatticeProtocol, type SandboxMiddlewareConfig, type SandboxPluginConnectionDef, type SandboxPluginDiagnostic, type SandboxPluginManifest, type SandboxPluginToolDef, 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 StoreItem, type StoreProtocol, type StorePutInput, type StoreSearchInput, StoreValidationError, type SystemMessage, type TableQueryRequest, type TableQueryResponse, type TaskBeliefDiagnosticCode, type TaskBeliefEntry, type TaskBeliefParseFailure, type TaskBeliefParseResult, type TaskBeliefParseSuccess, type TaskBeliefState, type TaskDependentListQuery, type TaskFileRef, type TaskHandler, type TaskItem, type TaskListFilter, type TaskMutationSnapshot, type TaskStore, type TaskWorkItem, type TaskWorkItemListFilter, type TaskWorkItemStore, type Tenant, type TenantModelCatalog, type TenantModelPublicEntry, type TenantStatus, type TenantStore, type TestMcpServerToolsResponse, type Thread, type ThreadCheckpointStorage, type ThreadStore, type Timestamp, type ToolCall, type ToolCallUi, type ToolConfig, type ToolExecutor, type ToolLatticeProtocol, type ToolMessage, type TopologyEdge, type TranscriptionResult, type TrustedRunContext, type UIComponent, UIComponentType, type UIConfig, type UILatticeProtocol, type UpdateA2AApiKeyInput, type UpdateAgentWebAppInput, type UpdateCapabilityBundleInput, type UpdateChannelInstallationRequest, type UpdateCollectionRequest, type UpdateDatabaseConfigRequest, type UpdateMcpServerConfigRequest, type UpdateMenuItemInput, type UpdateMetricsServerConfigRequest, type UpdateModelProviderRequest, type UpdateProjectCapabilityBundlesResult, type UpdateProjectRequest, type UpdateRunStepRequest, type UpdateTaskRequest, type UpdateTenantRequest, type UpdateUserRequest, type UpdateUserTenantLinkRequest, type UpdateWorkflowRunRequest, type UpdateWorkspaceRequest, type User, type UserMessage, type UserPushSubscription, type UserPushSubscriptionStore, type UserStatus, type UserStore, type UserTenantLink, type UserTenantLinkStore, type UserTenantRole, type VectorStoreConfig, type VectorStoreCreateParams, type VectorStoreLatticeProtocol, type VectorStoreProvider, WORKSPACE_PUBLIC_ROOM_PROJECT_PREFIX, type WechatChannelInstallationConfig, type WecomChannelInstallationConfig, type WorkflowAgentConfig, type WorkflowRun, type WorkflowRunStatus, type WorkflowTrackingStore, type Workspace, type WorkspaceStore, type YamlAgentStep, type YamlMapStep, type YamlParallelBlock, type YamlTopLevelStep, type YamlWorkflow, a2aEventCursorSchema, affinityEchoHeaders, assertGenericProjectConfig, assertStoreIdentity, assertStoreNamespacePrefix, assertValidCreateChannelReplyJobInput, buildAffinityMissChunk, createAgentWebAppStreamProjectionContext, descriptorDataValue, effectiveGrants, firstNonEmptyString, getSubAgentsFromConfig, getToolsFromConfig, hasTools, interruptAnswerKeySchema, isA2ARemoteAgentConfig, isDeepAgentConfig, isExecutionResultEventKey, isMcpUiRef, isProcessingAgentConfig, isProjectRoomEventId, isWorkflowAgentConfig, isWorkspacePublicRoomProjectId, normalizeChannelReplyJobListLimit, normalizeTaskMetadataScalar, parseAgentWebAppGenUIBlock, parseMcpUiRef, parseModelKey, parseProjectRoomEventId, parseQueuedExecutionMode, parseTaskBeliefState, parseTrustedRunContext, projectAgentWebAppChunk, projectRoomUserEventScope, replaceTaskBeliefState, requireProjectTaskWorkItemStore, resolveRunScope, runCancelSignalSchema, snapshotExactArray, snapshotExactRecord, snapshotProjectRoomBotMembershipRealtime, snapshotProjectRoomMembershipRealtime, snapshotProjectRoomMessageRealtime, storeExpiresAt, storePaginationValue, taskBeliefStatesEqual, threadAffinityHeaders, toModelKey, toProjectRoomPublicBotMembership, toProjectRoomPublicMembership, toProjectRoomPublicMessage };