@axiom-lattice/protocols 7.0.1 → 7.2.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
@@ -3307,7 +3307,7 @@ type ModelProviderUpstreamErrorCode = "UPSTREAM_UNREACHABLE" | "UPSTREAM_AUTH_FA
3307
3307
  * receive and switch over it exhaustively. A console that re-types the list as
3308
3308
  * bare strings cannot be told when the server adds or renames one.
3309
3309
  */
3310
- type ModelProviderErrorCode = "UNAUTHENTICATED" | "TENANT_ACCESS_DENIED" | "FORBIDDEN_ROLE" | "INVALID_INPUT" | "INVALID_BASE_URL" | "UNSUPPORTED_PROTOCOL" | "PROVIDER_NOT_FOUND" | "PROVIDER_DISABLED" | "PROVIDER_NAME_CONFLICT" | "MODEL_KEY_CONFLICT" | "UPSTREAM_UNREACHABLE" | "UPSTREAM_AUTH_FAILED" | "UPSTREAM_REDIRECT_BLOCKED" | "UPSTREAM_INVALID_RESPONSE" | "UPSTREAM_RATE_LIMITED" | "UPSTREAM_TIMEOUT" | "INTERNAL_ERROR";
3310
+ type ModelProviderErrorCode = "UNAUTHENTICATED" | "TENANT_ACCESS_DENIED" | "FORBIDDEN_ROLE" | "INVALID_INPUT" | "INVALID_BASE_URL" | "UNSUPPORTED_PROTOCOL" | "PROVIDER_NOT_FOUND" | "PROVIDER_DISABLED" | "PROVIDER_NAME_CONFLICT" | "LAST_PROVIDER_NOT_DELETABLE" | "MODEL_KEY_CONFLICT" | "UPSTREAM_UNREACHABLE" | "UPSTREAM_AUTH_FAILED" | "UPSTREAM_REDIRECT_BLOCKED" | "UPSTREAM_INVALID_RESPONSE" | "UPSTREAM_RATE_LIMITED" | "UPSTREAM_TIMEOUT" | "INTERNAL_ERROR";
3311
3311
  /**
3312
3312
  * A tenant-scoped model provider configuration.
3313
3313
  *
@@ -4109,6 +4109,115 @@ interface UserTenantLinkStore {
4109
4109
  hasLink(userId: string, tenantId: string): Promise<boolean>;
4110
4110
  }
4111
4111
 
4112
+ /** Interactive login surface. Machine credentials are not part of this extension point. */
4113
+ type LoginSurface = "console";
4114
+ /** One selectable sign-in method for a UI. */
4115
+ interface AuthProviderDescriptor {
4116
+ id: string;
4117
+ displayName: string;
4118
+ interaction: "form" | "redirect" | "none";
4119
+ surfaces: LoginSurface[];
4120
+ /**
4121
+ * True when the form provider is only an emergency local account and normal
4122
+ * password sign-in is disabled. UIs should label it instead of treating it as
4123
+ * the default sign-in method.
4124
+ */
4125
+ breakGlassOnly?: boolean;
4126
+ }
4127
+ /** Authenticated external identity. Contains no tenant or authorization data. */
4128
+ interface Principal {
4129
+ subject: string;
4130
+ method: string;
4131
+ email?: string;
4132
+ emailVerified?: boolean;
4133
+ name?: string;
4134
+ /** IdP-provided avatar URL (OIDC `picture`); validated only at render time. */
4135
+ picture?: string;
4136
+ tenantHint?: string;
4137
+ claims?: Record<string, unknown>;
4138
+ }
4139
+ /** A cookie a provider asks the route layer to set. */
4140
+ interface AuthCookie {
4141
+ name: string;
4142
+ value: string;
4143
+ options: {
4144
+ httpOnly?: boolean;
4145
+ secure?: boolean;
4146
+ sameSite?: "lax" | "strict" | "none";
4147
+ path?: string;
4148
+ maxAge?: number;
4149
+ };
4150
+ }
4151
+ type AuthChallenge = {
4152
+ kind: "redirect";
4153
+ url: string;
4154
+ cookies?: AuthCookie[];
4155
+ } | {
4156
+ kind: "form";
4157
+ fields: Array<{
4158
+ name: string;
4159
+ label: string;
4160
+ secret?: boolean;
4161
+ }>;
4162
+ } | {
4163
+ kind: "none";
4164
+ };
4165
+ interface AuthRequestContext {
4166
+ surface: LoginSurface;
4167
+ tenantId?: string;
4168
+ params?: Record<string, string>;
4169
+ cookies?: Record<string, string>;
4170
+ }
4171
+ interface AuthProvider {
4172
+ readonly descriptor: AuthProviderDescriptor;
4173
+ begin?(ctx: AuthRequestContext): Promise<AuthChallenge>;
4174
+ callback?(ctx: AuthRequestContext): Promise<Principal>;
4175
+ verify?(ctx: AuthRequestContext & {
4176
+ credential: unknown;
4177
+ }): Promise<Principal>;
4178
+ }
4179
+ type AuthErrorCode = "INVALID_CREDENTIALS" | "PROVIDER_ERROR" | "TENANT_UNAVAILABLE" | "INVALID_STATE" | "EMAIL_REQUIRED" | "NOT_PROVISIONED";
4180
+ declare class AuthError extends Error {
4181
+ readonly code: AuthErrorCode;
4182
+ readonly status: 400 | 401 | 502;
4183
+ constructor(code: AuthErrorCode, status: 400 | 401 | 502, message: string);
4184
+ }
4185
+
4186
+ interface UserExternalIdentity {
4187
+ userId: string;
4188
+ providerId: string;
4189
+ /** OIDC issuer (or derived provider key); prevents cross-IdP subject collisions. */
4190
+ issuer: string;
4191
+ subject: string;
4192
+ email?: string;
4193
+ linkedAt: Date;
4194
+ }
4195
+ declare class ExternalIdentityConflictError extends Error {
4196
+ readonly providerId: string;
4197
+ readonly issuer: string;
4198
+ readonly subject: string;
4199
+ readonly code = "EXTERNAL_IDENTITY_CONFLICT";
4200
+ constructor(providerId: string, issuer: string, subject: string);
4201
+ }
4202
+ /**
4203
+ * Raised when a store cannot read back an external identity immediately after a
4204
+ * successful write, which indicates a persistence invariant failure rather than a
4205
+ * user-facing conflict.
4206
+ */
4207
+ declare class ExternalIdentityPersistError extends Error {
4208
+ readonly providerId: string;
4209
+ readonly issuer: string;
4210
+ readonly subject: string;
4211
+ readonly code = "EXTERNAL_IDENTITY_PERSIST_FAILED";
4212
+ constructor(providerId: string, issuer: string, subject: string);
4213
+ }
4214
+ interface UserExternalIdentityStore {
4215
+ getByProviderSubject(providerId: string, issuer: string, subject: string): Promise<UserExternalIdentity | null>;
4216
+ listByUser(userId: string): Promise<UserExternalIdentity[]>;
4217
+ link(identity: UserExternalIdentity): Promise<void>;
4218
+ unlink(providerId: string, issuer: string, subject: string): Promise<void>;
4219
+ }
4220
+
4112
4221
  /**
4113
4222
  * WorkflowTrackingStoreProtocol
4114
4223
  *
@@ -6784,6 +6893,290 @@ interface UserPushSubscriptionStore {
6784
6893
  delete(tenantId: string, userId: string, endpoint: string): Promise<boolean>;
6785
6894
  }
6786
6895
 
6896
+ interface OidcProviderConfig {
6897
+ id: string;
6898
+ displayName: string;
6899
+ issuer: string;
6900
+ clientId: string;
6901
+ clientSecret: string;
6902
+ scopes: string;
6903
+ enabled: boolean;
6904
+ jitProvisioning: boolean;
6905
+ autoLinkEmail: boolean;
6906
+ defaultTenantId?: string;
6907
+ /**
6908
+ * Exact hostnames allowed to resolve to a private address for this provider.
6909
+ *
6910
+ * `undefined` falls back to the deployment allowlist; an explicit empty array
6911
+ * denies all private-network issuers for this provider.
6912
+ */
6913
+ allowedPrivateHosts?: string[];
6914
+ createdAt: Date;
6915
+ updatedAt: Date;
6916
+ }
6917
+ interface CreateOidcProviderConfigInput {
6918
+ displayName: string;
6919
+ issuer: string;
6920
+ clientId: string;
6921
+ clientSecret: string;
6922
+ scopes: string;
6923
+ enabled: boolean;
6924
+ jitProvisioning: boolean;
6925
+ autoLinkEmail: boolean;
6926
+ defaultTenantId?: string;
6927
+ allowedPrivateHosts?: string[];
6928
+ }
6929
+ interface UpdateOidcProviderConfigInput {
6930
+ displayName?: string;
6931
+ issuer?: string;
6932
+ clientId?: string;
6933
+ clientSecret?: string;
6934
+ scopes?: string;
6935
+ enabled?: boolean;
6936
+ jitProvisioning?: boolean;
6937
+ autoLinkEmail?: boolean;
6938
+ defaultTenantId?: string | null;
6939
+ allowedPrivateHosts?: string[];
6940
+ }
6941
+ /**
6942
+ * Normalizes an allowed-private-hosts list by trimming and lowercasing each
6943
+ * entry and removing duplicates. Empty entries are preserved; callers that
6944
+ * accept user input must reject them before calling this helper.
6945
+ *
6946
+ * @param values - Raw hostname entries.
6947
+ * @returns Deduplicated, normalized hostname entries.
6948
+ */
6949
+ declare function normalizeAllowedPrivateHosts(values: readonly string[]): string[];
6950
+ declare class OidcProviderConfigConflictError extends Error {
6951
+ readonly id: string;
6952
+ readonly code = "OIDC_PROVIDER_CONFIG_CONFLICT";
6953
+ constructor(id: string);
6954
+ }
6955
+ interface OidcProviderConfigStore {
6956
+ list(): Promise<OidcProviderConfig[]>;
6957
+ get(id: string): Promise<OidcProviderConfig | null>;
6958
+ create(id: string, input: CreateOidcProviderConfigInput): Promise<OidcProviderConfig>;
6959
+ update(id: string, updates: UpdateOidcProviderConfigInput): Promise<OidcProviderConfig | null>;
6960
+ delete(id: string): Promise<boolean>;
6961
+ }
6962
+
6963
+ /** Platform-level role, independent of any tenant role. */
6964
+ type PlatformRole = "owner" | "admin" | "auditor";
6965
+ /** Durable platform grant for a single user. */
6966
+ interface PlatformMember {
6967
+ userId: string;
6968
+ role: PlatformRole;
6969
+ grantedBy?: string;
6970
+ grantedAt: Date;
6971
+ updatedAt: Date;
6972
+ }
6973
+ /** Persistence operations for platform members. */
6974
+ interface PlatformMemberStore {
6975
+ /** Lists every platform member. */
6976
+ list(): Promise<PlatformMember[]>;
6977
+ /** Returns the platform member for a user, or null. */
6978
+ get(userId: string): Promise<PlatformMember | null>;
6979
+ /** Inserts or replaces a member keyed by user id (last write wins). */
6980
+ upsert(member: PlatformMember): Promise<PlatformMember>;
6981
+ /** Deletes a member. Returns whether a row was removed. */
6982
+ delete(userId: string): Promise<boolean>;
6983
+ }
6984
+
6985
+ /**
6986
+ * Normalizes a platform invitation email for storage and lookup.
6987
+ *
6988
+ * Emails are trimmed and lower-cased so the same address maps to a single
6989
+ * invitation regardless of caller formatting.
6990
+ *
6991
+ * @param email Raw email address supplied by a caller.
6992
+ * @returns The normalized email address.
6993
+ */
6994
+ declare function normalizePlatformInvitationEmail(email: string): string;
6995
+ /** Durable invitation for a platform-level role, keyed by normalized email. */
6996
+ interface PlatformInvitation {
6997
+ /** Normalized (trimmed, lower-cased) invitee email. */
6998
+ email: string;
6999
+ /** Platform role granted when the invitation is consumed. */
7000
+ role: PlatformRole;
7001
+ /** User id of the platform owner/admin who created the invitation. */
7002
+ invitedBy?: string;
7003
+ /** When the invitation was created. */
7004
+ createdAt: Date;
7005
+ /** Optional expiry; invitations at or after this instant cannot be consumed. */
7006
+ expiresAt?: Date;
7007
+ /** When the invitation was consumed, or omitted while pending. */
7008
+ consumedAt?: Date;
7009
+ }
7010
+ /**
7011
+ * Persistence operations for platform invitations.
7012
+ *
7013
+ * Implementations normalize emails on every write and lookup. All operations
7014
+ * are idempotent with respect to normalization.
7015
+ */
7016
+ interface PlatformInvitationStore {
7017
+ /** Lists every invitation, ordered by normalized email. */
7018
+ list(): Promise<PlatformInvitation[]>;
7019
+ /** Returns the invitation for an email, or null. */
7020
+ get(email: string): Promise<PlatformInvitation | null>;
7021
+ /**
7022
+ * Inserts or replaces an invitation keyed by normalized email.
7023
+ *
7024
+ * The supplied invitation replaces any existing row in full (last write wins),
7025
+ * including `expiresAt` and `consumedAt`.
7026
+ */
7027
+ upsert(invitation: PlatformInvitation): Promise<PlatformInvitation>;
7028
+ /** Deletes an invitation. Returns whether a row was removed. */
7029
+ delete(email: string): Promise<boolean>;
7030
+ /**
7031
+ * Atomically consumes a pending, unexpired invitation.
7032
+ *
7033
+ * A row is consumable only when `consumedAt` is unset and `expiresAt` is
7034
+ * unset or strictly after `at`. Returns the consumed invitation, or null
7035
+ * when the row is missing, already consumed, or expired.
7036
+ */
7037
+ consume(email: string, at: Date): Promise<PlatformInvitation | null>;
7038
+ }
7039
+
7040
+ /**
7041
+ * Pending SSO identity claims.
7042
+ *
7043
+ * A claim is created when an enterprise IdP authenticates a user without an
7044
+ * email. It deliberately does not create a user or link an external identity
7045
+ * until a platform administrator reviews it. This keeps unverified,
7046
+ * user-entered email separate from local accounts and lets an admin either
7047
+ * create a new user or explicitly link the SSO identity to an existing one.
7048
+ */
7049
+ type OidcIdentityClaimStatus = "pending" | "approved" | "rejected" | "expired";
7050
+ interface OidcIdentityClaim {
7051
+ id: string;
7052
+ providerId: string;
7053
+ issuer: string;
7054
+ subject: string;
7055
+ email: string;
7056
+ name?: string;
7057
+ picture?: string;
7058
+ status: OidcIdentityClaimStatus;
7059
+ createdAt: Date;
7060
+ updatedAt: Date;
7061
+ expiresAt: Date;
7062
+ reviewedBy?: string;
7063
+ reviewedAt?: Date;
7064
+ linkedUserId?: string;
7065
+ /** Where the request came from; omitted for legacy email-completion claims. */
7066
+ source?: "email_completion" | "invite_link";
7067
+ inviteLinkId?: string;
7068
+ /** Existing user the request is about, for invite links. */
7069
+ requestedUserId?: string;
7070
+ requestedPlatformRole?: PlatformRole;
7071
+ requestedTenantId?: string;
7072
+ requestedTenantRole?: UserTenantRole;
7073
+ }
7074
+ interface CreateOidcIdentityClaimInput {
7075
+ id: string;
7076
+ providerId: string;
7077
+ issuer: string;
7078
+ subject: string;
7079
+ email: string;
7080
+ name?: string;
7081
+ picture?: string;
7082
+ expiresAt: Date;
7083
+ source?: "email_completion" | "invite_link";
7084
+ inviteLinkId?: string;
7085
+ requestedUserId?: string;
7086
+ requestedPlatformRole?: PlatformRole;
7087
+ requestedTenantId?: string;
7088
+ requestedTenantRole?: UserTenantRole;
7089
+ }
7090
+ interface UpdateOidcIdentityClaimInput {
7091
+ email?: string;
7092
+ name?: string;
7093
+ picture?: string;
7094
+ }
7095
+ interface OidcIdentityClaimApproval {
7096
+ reviewedBy: string;
7097
+ linkedUserId: string;
7098
+ }
7099
+ interface OidcIdentityClaimStore {
7100
+ /** Lists claims in a stable order, optionally filtered by status. */
7101
+ list(status?: OidcIdentityClaimStatus): Promise<OidcIdentityClaim[]>;
7102
+ get(id: string): Promise<OidcIdentityClaim | null>;
7103
+ /** Returns the live pending claim for a subject, or null. */
7104
+ getPendingBySubject(providerId: string, issuer: string, subject: string, now: Date): Promise<OidcIdentityClaim | null>;
7105
+ /**
7106
+ * Creates a pending claim.
7107
+ *
7108
+ * Expired pending claims for the same subject are marked `expired` rather
7109
+ * than blocking a retry. A live pending claim raises
7110
+ * {@link OidcIdentityClaimConflictError}.
7111
+ */
7112
+ create(input: CreateOidcIdentityClaimInput): Promise<OidcIdentityClaim>;
7113
+ /** Updates the requested profile of a live pending claim. */
7114
+ updatePending(id: string, updates: UpdateOidcIdentityClaimInput, now: Date): Promise<OidcIdentityClaim | null>;
7115
+ /** Approves a live pending claim with CAS semantics. */
7116
+ approve(id: string, approval: OidcIdentityClaimApproval, now: Date): Promise<OidcIdentityClaim | null>;
7117
+ /** Rejects a live pending claim with CAS semantics. */
7118
+ reject(id: string, reviewedBy: string, now: Date): Promise<OidcIdentityClaim | null>;
7119
+ delete(id: string): Promise<boolean>;
7120
+ }
7121
+ declare class OidcIdentityClaimConflictError extends Error {
7122
+ readonly providerId: string;
7123
+ readonly issuer: string;
7124
+ readonly subject: string;
7125
+ constructor(providerId: string, issuer: string, subject: string);
7126
+ }
7127
+ declare function normalizeOidcIdentityEmail(email: string): string;
7128
+
7129
+ type InviteLinkScope = "platform" | "tenant";
7130
+ /**
7131
+ * A bearer invitation link. The token is stored encrypted at rest and also
7132
+ * hashed for lookup; the plaintext token is only returned to platform admins
7133
+ * who are allowed to manage the link.
7134
+ */
7135
+ interface InviteLink {
7136
+ id: string;
7137
+ scope: InviteLinkScope;
7138
+ token: string;
7139
+ tokenHash: string;
7140
+ email?: string;
7141
+ platformRole?: PlatformRole;
7142
+ tenantId?: string;
7143
+ tenantRole?: UserTenantRole;
7144
+ createdBy?: string;
7145
+ createdAt: Date;
7146
+ updatedAt: Date;
7147
+ expiresAt: Date;
7148
+ maxUses: number;
7149
+ usedCount: number;
7150
+ revokedAt?: Date;
7151
+ }
7152
+ interface CreateInviteLinkInput {
7153
+ id: string;
7154
+ scope: InviteLinkScope;
7155
+ token: string;
7156
+ tokenHash: string;
7157
+ email?: string;
7158
+ platformRole?: PlatformRole;
7159
+ tenantId?: string;
7160
+ tenantRole?: UserTenantRole;
7161
+ createdBy?: string;
7162
+ expiresAt: Date;
7163
+ maxUses: number;
7164
+ }
7165
+ interface InviteLinkStore {
7166
+ list(): Promise<InviteLink[]>;
7167
+ get(id: string): Promise<InviteLink | null>;
7168
+ getByTokenHash(tokenHash: string): Promise<InviteLink | null>;
7169
+ create(input: CreateInviteLinkInput): Promise<InviteLink>;
7170
+ /**
7171
+ * Atomically consumes one use of a live link.
7172
+ *
7173
+ * Returns null when the link is missing, revoked, expired, or exhausted.
7174
+ */
7175
+ consume(tokenHash: string, now: Date): Promise<InviteLink | null>;
7176
+ revoke(id: string, now: Date): Promise<InviteLink | null>;
7177
+ }
7178
+ declare function normalizeInviteLinkEmail(email: string): string;
7179
+
6787
7180
  /** Lifecycle states of a published plugin's resident service. */
6788
7181
  type PluginDeploymentStatus = "requested" | "provisioning" | "running" | "paused" | "stopping" | "stopped" | "failed";
6789
7182
  /** Lifecycle strategy: lazily paused vs. permanently resident. */
@@ -8134,7 +8527,7 @@ interface SandboxPluginConnectionDef {
8134
8527
  }
8135
8528
  /**
8136
8529
  * Authoritative declarative definition of a tenant plugin, stored at
8137
- * `/root/.agents/plugins/<type>/plugin.json`.
8530
+ * the configured agents root `/plugins/<type>/plugin.json`.
8138
8531
  */
8139
8532
  interface SandboxPluginManifest {
8140
8533
  schemaVersion: 1;
@@ -8552,4 +8945,135 @@ interface LangfuseObservabilityDashboardPayload {
8552
8945
  tools: LangfuseToolBreakdownRow[];
8553
8946
  }
8554
8947
 
8555
- export { type A2AApiKeyEntry, type A2AApiKeyRecord, type A2AApiKeyStore, type A2AAuthContext, type A2AEventCursor, type A2ARemoteAgentConfig, AFFINITY_ECHO_HEADER, AFFINITY_MISS_CODE, AGENT_AFFINITY_HEADER, ASR_DEFAULT_KEY, 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 CreateFileShareRequest, type CreateMcpAppShareRequest, type CreateMcpServerConfigRequest, type CreateMenuItemInput, type CreateMetricsServerConfigRequest, type CreateModelProviderRequest, type CreateProjectRequest, type CreateRunStepRequest, type CreateShareRecord, type CreateShareRequest, type CreateSkillRequest, type CreateTaskRequest, type CreateTenantRequest, type CreateThreadRequest, type CreateUserRequest, type CreateUserTenantLinkRequest, type CreateWorkItemIfAbsentRequest, type CreateWorkItemRequest, type CreateWorkflowRunRequest, type CreateWorkspaceRequest, type CustomMenuConfig, DEFAULT_MODEL_KEY, type DataSource, type DatabaseConfig, type DatabaseConfigEntry, type DatabaseConfigStore, type DatabaseType, type DeepAgentConfig, type DescriptorDataValue, type DeveloperMessage, type DiscoveredModel, type DispatchResult, DuplicateChannelBindingSubjectError, EMBEDDING_DEFAULT_KEY, 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 FileShareRecord, 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, LANGFUSE_OBSERVABILITY_DASHBOARD_VERSION, type LLMConfig, type LangfuseAgentBreakdownRow, type LangfuseModelBreakdownRow, type LangfuseModelCostSeries, type LangfuseObservabilityDashboardPayload, type LangfuseObservabilitySeriesPoint, type LangfuseToolBreakdownRow, 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 McpAppShareApp, type McpAppShareBootstrap, type McpAppShareRecord, type McpAppShareTarget, type McpClient, type McpClientOptions, type McpConnectionStatus, type McpLatticeMessage, type McpLatticeProtocol, McpMessageType, type McpProtocolMode, 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, OBSERVABILITY_DASHBOARD_ELEMENT_KEY_PREFIX, type ObservabilityDashboardEnvelope, type ObservabilityDashboardInput, type ObservabilityDashboardRange, type ObservabilityDashboardResult, type OpenAuditAppendInput, type OpenAuditQuery, type OpenAuditRecord, type OpenAuditStore, type OpenCapabilitySource, type OpenCatalog, type OpenCatalogConnection, type OpenCatalogDomain, type OpenCatalogItem, type OpenCredentialKind, type OpenExecutionContext, type OpenExecutionResult, type OpenGrant, type OpenGrantSelector, 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 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 ShareCardData, type ShareKind, type ShareRecord, type ShareRecordPatch, type ShareResult, type ShareTarget, 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, isProjectRoomEventId, isWorkflowAgentConfig, isWorkspacePublicRoomProjectId, normalizeChannelReplyJobListLimit, normalizeTaskMetadataScalar, observabilityDashboardElementKey, 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 };
8948
+ /** Source that produced an effective platform setting value. */
8949
+ type PlatformSettingSource = "default" | "env" | "platform";
8950
+ /** Branding fields applied to the console and public surfaces. */
8951
+ interface PlatformBranding {
8952
+ brandName?: string;
8953
+ logoUrl?: string;
8954
+ faviconUrl?: string;
8955
+ primaryColor?: string;
8956
+ backgroundColor?: string;
8957
+ loginTitle?: string;
8958
+ loginSubtitle?: string;
8959
+ }
8960
+ /** Host-scoped branding and public endpoint overrides. */
8961
+ interface BrandingDomain {
8962
+ host: string;
8963
+ status?: "active" | "pending";
8964
+ publicGatewayUrl?: string;
8965
+ publicConsoleUrl?: string;
8966
+ branding?: PlatformBranding;
8967
+ }
8968
+ /** Platform default branding plus host-specific overrides. */
8969
+ interface PlatformBrandingSettings {
8970
+ default?: PlatformBranding;
8971
+ domains?: BrandingDomain[];
8972
+ }
8973
+ /** Branding resolved for a request host. */
8974
+ interface ResolvedPlatformBranding {
8975
+ branding: PlatformBranding;
8976
+ source: "domain" | "default";
8977
+ host?: string;
8978
+ publicGatewayUrl?: string;
8979
+ publicConsoleUrl?: string;
8980
+ }
8981
+ /** Persisted, partial platform settings document managed by platform admins. */
8982
+ interface PlatformSettingsDocument {
8983
+ auth?: {
8984
+ emailCompletionEnabled?: boolean;
8985
+ };
8986
+ invite?: {
8987
+ defaultExpiresInHours?: number;
8988
+ defaultMaxUses?: number;
8989
+ };
8990
+ rateLimits?: {
8991
+ openApiPerMinute?: number;
8992
+ openAgentPerMinute?: number;
8993
+ a2aJsonRpcPerMinute?: number;
8994
+ a2aJsonRpcIpPerMinute?: number;
8995
+ maxActiveRunTasksPerTenant?: number | null;
8996
+ };
8997
+ branding?: PlatformBrandingSettings;
8998
+ }
8999
+ /** Stored platform settings record with version and audit metadata. */
9000
+ interface PlatformSettingsRecord extends PlatformSettingsDocument {
9001
+ version: number;
9002
+ updatedBy?: string;
9003
+ updatedAt: Date;
9004
+ }
9005
+ /** Fully-resolved platform settings (no optional fields). */
9006
+ interface EffectivePlatformSettings {
9007
+ auth: {
9008
+ emailCompletionEnabled: boolean;
9009
+ };
9010
+ invite: {
9011
+ defaultExpiresInHours: number;
9012
+ defaultMaxUses: number;
9013
+ };
9014
+ rateLimits: {
9015
+ openApiPerMinute: number;
9016
+ openAgentPerMinute: number;
9017
+ a2aJsonRpcPerMinute: number;
9018
+ a2aJsonRpcIpPerMinute: number;
9019
+ maxActiveRunTasksPerTenant: number | null;
9020
+ };
9021
+ }
9022
+ /** Read-only snapshot of effective settings, provenance, and fallbacks. */
9023
+ interface PlatformSettingsSnapshot {
9024
+ version: number;
9025
+ effective: EffectivePlatformSettings;
9026
+ sources: Record<string, PlatformSettingSource>;
9027
+ fallbacks: EffectivePlatformSettings;
9028
+ updatedBy?: string;
9029
+ updatedAt?: Date;
9030
+ /** Time this snapshot was last loaded or applied from the store. */
9031
+ refreshedAt?: Date;
9032
+ }
9033
+ /** Read-only accessor for effective platform settings. */
9034
+ interface PlatformSettingsProvider {
9035
+ getSnapshot(): PlatformSettingsSnapshot;
9036
+ getEffective(): EffectivePlatformSettings;
9037
+ getInviteDefaults(): EffectivePlatformSettings["invite"];
9038
+ getRateLimits(): EffectivePlatformSettings["rateLimits"];
9039
+ }
9040
+ /** Persistence operations for platform settings with version CAS. */
9041
+ interface PlatformSettingsStore {
9042
+ get(): Promise<PlatformSettingsRecord | null>;
9043
+ save(document: PlatformSettingsDocument, expectedVersion: number, updatedBy?: string): Promise<PlatformSettingsRecord>;
9044
+ }
9045
+ /** Thrown when a save is attempted against a stale settings version. */
9046
+ declare class PlatformSettingsVersionConflictError extends Error {
9047
+ readonly expectedVersion: number;
9048
+ readonly actualVersion?: number | undefined;
9049
+ readonly code = "PLATFORM_SETTINGS_VERSION_CONFLICT";
9050
+ constructor(expectedVersion: number, actualVersion?: number | undefined);
9051
+ }
9052
+ /** Built-in fallback values used when neither platform nor env set a value. */
9053
+ declare const PLATFORM_SETTINGS_DEFAULTS: {
9054
+ readonly auth: {
9055
+ readonly emailCompletionEnabled: false;
9056
+ };
9057
+ readonly invite: {
9058
+ readonly defaultExpiresInHours: 168;
9059
+ readonly defaultMaxUses: 1;
9060
+ };
9061
+ readonly rateLimits: {
9062
+ readonly openApiPerMinute: 60000;
9063
+ readonly openAgentPerMinute: 2000;
9064
+ readonly a2aJsonRpcPerMinute: 600;
9065
+ readonly a2aJsonRpcIpPerMinute: 300;
9066
+ readonly maxActiveRunTasksPerTenant: null;
9067
+ };
9068
+ };
9069
+ /** Branding used when neither the platform default nor a domain overrides it. */
9070
+ declare const DEFAULT_PLATFORM_BRANDING: PlatformBranding;
9071
+ /**
9072
+ * Canonicalizes a request or configured host for matching.
9073
+ *
9074
+ * Lowercases the value, strips an optional port, unwraps bracketed IPv6
9075
+ * literals, and removes trailing dots.
9076
+ */
9077
+ declare function normalizeBrandingHost(raw: string): string;
9078
+
9079
+ export { type A2AApiKeyEntry, type A2AApiKeyRecord, type A2AApiKeyStore, type A2AAuthContext, type A2AEventCursor, type A2ARemoteAgentConfig, AFFINITY_ECHO_HEADER, AFFINITY_MISS_CODE, AGENT_AFFINITY_HEADER, ASR_DEFAULT_KEY, 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 AuthChallenge, type AuthCookie, AuthError, type AuthErrorCode, type AuthProvider, type AuthProviderDescriptor, type AuthRequestContext, type AvailableModule, type BaseLatticeProtocol, type BaseMessage, type Binding, type BindingListParams, type BindingMutablePatch, type BindingRegistry, type BootstrapFilesConfig, type BrandingDomain, 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 CreateFileShareRequest, type CreateInviteLinkInput, type CreateMcpAppShareRequest, type CreateMcpServerConfigRequest, type CreateMenuItemInput, type CreateMetricsServerConfigRequest, type CreateModelProviderRequest, type CreateOidcIdentityClaimInput, type CreateOidcProviderConfigInput, type CreateProjectRequest, type CreateRunStepRequest, type CreateShareRecord, type CreateShareRequest, type CreateSkillRequest, type CreateTaskRequest, type CreateTenantRequest, type CreateThreadRequest, type CreateUserRequest, type CreateUserTenantLinkRequest, type CreateWorkItemIfAbsentRequest, type CreateWorkItemRequest, type CreateWorkflowRunRequest, type CreateWorkspaceRequest, type CustomMenuConfig, DEFAULT_MODEL_KEY, DEFAULT_PLATFORM_BRANDING, type DataSource, type DatabaseConfig, type DatabaseConfigEntry, type DatabaseConfigStore, type DatabaseType, type DeepAgentConfig, type DescriptorDataValue, type DeveloperMessage, type DiscoveredModel, type DispatchResult, DuplicateChannelBindingSubjectError, EMBEDDING_DEFAULT_KEY, EXECUTION_RESULT_EVENT_KEY_PATTERN, EXECUTION_RESULT_EVENT_KEY_PATTERN_SOURCE, EXECUTION_RESULT_EVENT_KEY_PREFIX, type EffectivePlatformSettings, type EmbeddingsConfig, type EmbeddingsLatticeProtocol, type EvalCase, type EvalProject, type EvalProjectReport, type EvalRun, type EvalRunResult, type EvalStore, type EvalSuite, type ExecuteSqlQueryRequest, type ExecuteSqlQueryResponse, type ExpectedCapabilityBundleRevisions, ExternalIdentityConflictError, ExternalIdentityPersistError, type FileMenuConfig, type FileShareRecord, 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 InviteLink, type InviteLinkScope, type InviteLinkStore, LANGFUSE_OBSERVABILITY_DASHBOARD_VERSION, type LLMConfig, type LangfuseAgentBreakdownRow, type LangfuseModelBreakdownRow, type LangfuseModelCostSeries, type LangfuseObservabilityDashboardPayload, type LangfuseObservabilitySeriesPoint, type LangfuseToolBreakdownRow, 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, type LoginSurface, MAX_PENDING_EXECUTION_RESULTS_LIMIT, type McpAppMenuConfig, type McpAppShareApp, type McpAppShareBootstrap, type McpAppShareRecord, type McpAppShareTarget, type McpClient, type McpClientOptions, type McpConnectionStatus, type McpLatticeMessage, type McpLatticeProtocol, McpMessageType, type McpProtocolMode, 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, OBSERVABILITY_DASHBOARD_ELEMENT_KEY_PREFIX, type ObservabilityDashboardEnvelope, type ObservabilityDashboardInput, type ObservabilityDashboardRange, type ObservabilityDashboardResult, type OidcIdentityClaim, type OidcIdentityClaimApproval, OidcIdentityClaimConflictError, type OidcIdentityClaimStatus, type OidcIdentityClaimStore, type OidcProviderConfig, OidcProviderConfigConflictError, type OidcProviderConfigStore, type OpenAuditAppendInput, type OpenAuditQuery, type OpenAuditRecord, type OpenAuditStore, type OpenCapabilitySource, type OpenCatalog, type OpenCatalogConnection, type OpenCatalogDomain, type OpenCatalogItem, type OpenCredentialKind, type OpenExecutionContext, type OpenExecutionResult, type OpenGrant, type OpenGrantSelector, type OutboundMessage, type OutboundStreamChunk, type OutboxEvent, type OutboxStore, PLATFORM_SETTINGS_DEFAULTS, 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 PlatformBranding, type PlatformBrandingSettings, type PlatformInvitation, type PlatformInvitationStore, type PlatformMember, type PlatformMemberStore, type PlatformRole, type PlatformSettingSource, type PlatformSettingsDocument, type PlatformSettingsProvider, type PlatformSettingsRecord, type PlatformSettingsSnapshot, type PlatformSettingsStore, PlatformSettingsVersionConflictError, 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 Principal, 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 ResolvedPlatformBranding, 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 ShareCardData, type ShareKind, type ShareRecord, type ShareRecordPatch, type ShareResult, type ShareTarget, 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 UpdateOidcIdentityClaimInput, type UpdateOidcProviderConfigInput, type UpdateProjectCapabilityBundlesResult, type UpdateProjectRequest, type UpdateRunStepRequest, type UpdateTaskRequest, type UpdateTenantRequest, type UpdateUserRequest, type UpdateUserTenantLinkRequest, type UpdateWorkflowRunRequest, type UpdateWorkspaceRequest, type User, type UserExternalIdentity, type UserExternalIdentityStore, 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, isProjectRoomEventId, isWorkflowAgentConfig, isWorkspacePublicRoomProjectId, normalizeAllowedPrivateHosts, normalizeBrandingHost, normalizeChannelReplyJobListLimit, normalizeInviteLinkEmail, normalizeOidcIdentityEmail, normalizePlatformInvitationEmail, normalizeTaskMetadataScalar, observabilityDashboardElementKey, 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 };