@axiom-lattice/protocols 7.7.0 → 7.8.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @axiom-lattice/protocols@7.7.0 build /home/runner/work/agentic/agentic/packages/protocols
2
+ > @axiom-lattice/protocols@7.8.0 build /home/runner/work/agentic/agentic/packages/protocols
3
3
  > tsup src/index.ts --format cjs,esm --dts --sourcemap
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -8,13 +8,13 @@
8
8
  CLI Target: es2020
9
9
  CJS Build start
10
10
  ESM Build start
11
- CJS dist/index.js 115.48 KB
12
- CJS dist/index.js.map 360.89 KB
13
- CJS ⚡️ Build success in 844ms
14
- ESM dist/index.mjs 105.61 KB
15
- ESM dist/index.mjs.map 355.62 KB
16
- ESM ⚡️ Build success in 865ms
11
+ CJS dist/index.js 116.68 KB
12
+ CJS dist/index.js.map 366.97 KB
13
+ CJS ⚡️ Build success in 635ms
14
+ ESM dist/index.mjs 106.58 KB
15
+ ESM dist/index.mjs.map 361.65 KB
16
+ ESM ⚡️ Build success in 666ms
17
17
  DTS Build start
18
- DTS ⚡️ Build success in 21035ms
19
- DTS dist/index.d.ts 389.09 KB
20
- DTS dist/index.d.mts 389.09 KB
18
+ DTS ⚡️ Build success in 16771ms
19
+ DTS dist/index.d.ts 392.22 KB
20
+ DTS dist/index.d.mts 392.22 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @axiom-lattice/protocols
2
2
 
3
+ ## 7.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - db8118a: ## Re-authentication: rotating refresh sessions and user epoch
8
+
9
+ ### Server
10
+
11
+ - Add a `SessionStore` protocol with in-memory, local SQLite, and PostgreSQL implementations; refresh tokens are opaque, hashed at rest, and delivered as an httpOnly `SameSite=Lax` cookie scoped to `/api/auth`.
12
+ - Access tokens stay stateless and now carry an optional `authEpoch` claim. The console auth hook compares it with the user record using a 30–60s cache; a missing store is treated as legacy, and a store failure returns `503 AUTH_STATE_UNAVAILABLE` rather than 401.
13
+ - Add `POST /api/auth/refresh|logout|logout-all`. Refresh rotates with reuse grace and validates revocation, idle/absolute expiry, user status, session epoch, and an optional membership-validated tenant hint (`select-tenant` no longer mutates the shared session row).
14
+ - Disable and password change write status/password + a fresh epoch in one user write, then revoke all families. Single-browser logout revokes only that family; cross-tab logout is broadcast by the client.
15
+ - Session policy (refresh toggle, access TTL, idle/absolute limits, reuse grace) is runtime-configurable in Platform Admin via `PlatformSettings`.
16
+ - Credentialed CORS now reflects `Access-Control-Request-Headers` instead of a literal `*`, fixing credentialed login/refresh from a cross-port console.
17
+ - Bound `generateAgentId` slug collision probing (1000 attempts) so a pathological store returns a clear error instead of looping.
18
+
19
+ ### Clients
20
+
21
+ - Add stable `SESSION_INVALID` / `INVALID_PASSWORD` / `INVALID_CREDENTIALS` codes and carry the code on `AuthenticationError`; wrong current passwords no longer trigger a logout.
22
+ - `client-sdk` reads the live access token per request and SSE connection, performs a single-flight refresh on `SESSION_INVALID`, and replays the request once.
23
+ - `react-sdk` validates the restored session before declaring ready, renews proactively and on focus, broadcasts logout across tabs, and lets `ThreadStream` refresh-then-retry once on a 401.
24
+
3
25
  ## 7.7.0
4
26
 
5
27
  ### Minor Changes
package/dist/index.d.mts CHANGED
@@ -2557,6 +2557,20 @@ interface ConnectionStore {
2557
2557
 
2558
2558
  /** Channel types persisted by the installation store, including internal-only channels. */
2559
2559
  type ChannelInstallationType = "lark" | "email" | "slack" | "wechat" | "wecom" | "room";
2560
+ /**
2561
+ * Installation config fields that must never be returned in plaintext from public
2562
+ * installation APIs. Reads replace non-empty values with {@link CHANNEL_INSTALLATION_SECRET_MASK};
2563
+ * writes treat the mask as "keep the stored value".
2564
+ */
2565
+ declare const CHANNEL_INSTALLATION_SECRET_FIELDS: readonly ["appSecret", "verificationToken", "encryptKey", "botToken", "secret"];
2566
+ /** Placeholder returned in place of a stored channel secret. */
2567
+ declare const CHANNEL_INSTALLATION_SECRET_MASK = "********";
2568
+ /**
2569
+ * Return a copy of an installation with every non-empty secret replaced by
2570
+ * {@link CHANNEL_INSTALLATION_SECRET_MASK}. Safe for public read surfaces and
2571
+ * agent tools; the stored record is never mutated.
2572
+ */
2573
+ declare function maskChannelInstallationSecrets<TConfig>(installation: ChannelInstallation<TConfig>): ChannelInstallation<TConfig>;
2560
2574
  /** Channel types exposed by the public installation management API. */
2561
2575
  type PublicChannelInstallationType = Exclude<ChannelInstallationType, "room">;
2562
2576
  /** Credentials and routing configuration for a Lark installation. */
@@ -4128,6 +4142,8 @@ interface User {
4128
4142
  email: string;
4129
4143
  name: string;
4130
4144
  status: UserStatus;
4145
+ /** Bumped on disable/password-change/logout-all to revoke outstanding access tokens. */
4146
+ authEpoch?: string;
4131
4147
  metadata?: Record<string, any>;
4132
4148
  createdAt: Date;
4133
4149
  updatedAt: Date;
@@ -4142,6 +4158,7 @@ interface UpdateUserRequest {
4142
4158
  email?: string;
4143
4159
  name?: string;
4144
4160
  status?: UserStatus;
4161
+ authEpoch?: string;
4145
4162
  metadata?: Record<string, any>;
4146
4163
  }
4147
4164
  interface UserStore {
@@ -4153,6 +4170,45 @@ interface UserStore {
4153
4170
  deleteUser(id: string): Promise<boolean>;
4154
4171
  }
4155
4172
 
4173
+ /**
4174
+ * Server-side refresh sessions.
4175
+ *
4176
+ * A session family is created at login and rotated on every refresh. Access
4177
+ * tokens remain stateless and carry a user-level `epoch`; this store backs
4178
+ * refresh rotation, single-session logout, reuse detection, and device listing.
4179
+ */
4180
+ interface SessionRecord {
4181
+ id: string;
4182
+ familyId: string;
4183
+ userId: string;
4184
+ tenantId?: string;
4185
+ /** Snapshot of `user.authEpoch` at creation/rotation; refresh must match. */
4186
+ authEpoch: string;
4187
+ refreshTokenHash: string;
4188
+ createdAt: Date;
4189
+ lastUsedAt: Date;
4190
+ idleExpiresAt: Date;
4191
+ absoluteExpiresAt: Date;
4192
+ revokedAt?: Date;
4193
+ replacedBy?: string;
4194
+ ip?: string;
4195
+ userAgent?: string;
4196
+ providerId: "local" | `oidc:${string}`;
4197
+ /** Encrypted IdP refresh token (Phase 2). */
4198
+ idpRefreshTokenEnc?: string;
4199
+ idpRefreshExpiresAt?: Date;
4200
+ }
4201
+ interface SessionStore {
4202
+ create(record: SessionRecord): Promise<void>;
4203
+ findByRefreshTokenHash(hash: string): Promise<SessionRecord | null>;
4204
+ findByFamilyId(familyId: string): Promise<SessionRecord | null>;
4205
+ rotate(oldId: string, next: SessionRecord): Promise<void>;
4206
+ revokeFamily(familyId: string, reason: string): Promise<void>;
4207
+ revokeAllForUser(userId: string, reason: string): Promise<void>;
4208
+ touch(id: string, lastUsedAt: Date): Promise<void>;
4209
+ listForUser(userId: string): Promise<SessionRecord[]>;
4210
+ }
4211
+
4156
4212
  /**
4157
4213
  * UserTenantLinkProtocol
4158
4214
  *
@@ -10271,10 +10327,19 @@ interface PlatformRateLimitPolicyOverride {
10271
10327
  /** Set false to disable this policy. Omitted keeps the deployment state. */
10272
10328
  enabled?: boolean;
10273
10329
  }
10330
+ /** Runtime session policy shared by the gateway and the console. */
10331
+ interface PlatformSessionSettings {
10332
+ refreshEnabled: boolean;
10333
+ accessTtlSeconds: number;
10334
+ refreshIdleSeconds: number;
10335
+ refreshAbsoluteSeconds: number;
10336
+ refreshReuseGraceSeconds: number;
10337
+ }
10274
10338
  /** Persisted, partial platform settings document managed by platform admins. */
10275
10339
  interface PlatformSettingsDocument {
10276
10340
  auth?: {
10277
10341
  emailCompletionEnabled?: boolean;
10342
+ session?: Partial<PlatformSessionSettings>;
10278
10343
  };
10279
10344
  invite?: {
10280
10345
  defaultExpiresInHours?: number;
@@ -10299,6 +10364,7 @@ interface PlatformSettingsRecord extends PlatformSettingsDocument {
10299
10364
  interface EffectivePlatformSettings {
10300
10365
  auth: {
10301
10366
  emailCompletionEnabled: boolean;
10367
+ session: PlatformSessionSettings;
10302
10368
  };
10303
10369
  invite: {
10304
10370
  defaultExpiresInHours: number;
@@ -10348,6 +10414,13 @@ declare class PlatformSettingsVersionConflictError extends Error {
10348
10414
  declare const PLATFORM_SETTINGS_DEFAULTS: {
10349
10415
  readonly auth: {
10350
10416
  readonly emailCompletionEnabled: false;
10417
+ readonly session: {
10418
+ readonly refreshEnabled: true;
10419
+ readonly accessTtlSeconds: 86400;
10420
+ readonly refreshIdleSeconds: 604800;
10421
+ readonly refreshAbsoluteSeconds: 2592000;
10422
+ readonly refreshReuseGraceSeconds: 20;
10423
+ };
10351
10424
  };
10352
10425
  readonly invite: {
10353
10426
  readonly defaultExpiresInHours: 168;
@@ -10520,4 +10593,4 @@ declare const PLATFORM_OPS_PROJECT_ID = "platform-ops";
10520
10593
  /** High-risk Ops playbook discriminator executed by the playbook executor. */
10521
10594
  type PlatformOpsPlaybookKind = "transfer_owner" | "offboard_member" | "delete_tenant" | "delete_oidc_provider" | "rotate_oidc_provider" | "reset_settings";
10522
10595
 
10523
- 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, AUTH_BRANDING_ASSET_BASE, AUTH_BRANDING_CASES, AUTH_BRANDING_CASE_IDS, AUTH_BRANDING_PRESETS, AUTH_BRANDING_PRESET_IDS, AUTH_BRANDING_PRESET_RESET_FIELDS, AUTH_CSS_CONTRACT_PARTS, AUTH_CSS_CONTRACT_VARIABLES, AUTH_FONT_FAMILIES, AUTH_FONT_FAMILY_IDS, AUTH_SLOT_IDS, AUTH_SLOT_REGISTRY, AUTH_SURFACE_KINDS, 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 AuthBrandingCase, type AuthBrandingPreset, type AuthChallenge, type AuthCookie, AuthError, type AuthErrorCode, type AuthFontFamilyDefinition, type AuthFontFamilyId, type AuthProvider, type AuthProviderDescriptor, type AuthRequestContext, type AuthSlotDefinition, type AuthSlotId, type AuthSurfaceKind, type AvailableModule, BRANDING_ASSET_URL_KEYS, BRANDING_COLOR_KEYS, BRANDING_CSS_KEYS, BRANDING_ENUM_KEYS, BRANDING_INTEGER_KEYS, BRANDING_PERCENT_KEYS, BRANDING_TEXT_KEYS, BRANDING_VIDEO_URL_KEYS, 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, COLLECTION_ENTRY_BATCH_MAX, 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 CustomCssValidation, type CustomMenuConfig, DEFAULT_LOGIN_LAYOUT, 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, LOGIN_LAYOUTS, LOGIN_LAYOUT_IDS, 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 LoginLayoutDefinition, type LoginLayoutId, type LoginSurface, MAX_CUSTOM_CSS_LENGTH, MAX_PENDING_EXECUTION_RESULTS_LIMIT, type McpAppMenuConfig, type McpAppShareApp, type McpAppShareBootstrap, type McpAppShareRecord, type McpAppShareTarget, type McpClient, type McpClientOptions, type McpConfigStoreWithPersonal, 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_BRANDING_FIELDS, PLATFORM_BRANDING_FIELD_GROUPS, PLATFORM_BRANDING_FIELD_GROUP_ORDER, PLATFORM_BRANDING_FIELD_KEYS, PLATFORM_MODEL_TENANT_ID, PLATFORM_OPS_AGENT_ID, PLATFORM_OPS_PROJECT_ID, PLATFORM_OPS_WORKSPACE_ID, PLATFORM_SETTINGS_DEFAULTS, PLATFORM_TENANT_ID, PLATFORM_TENANT_PROTECTED_ERROR, PROJECT_ROOM_TASK_DELEGATED_LABEL, PROJECT_ROOM_TASK_DELEGATED_SEPARATOR, PROJECT_ROOM_USER_CHANNEL_PROJECT, PROJECT_TASK_LIFECYCLE_ACTIONS, type PaginatedResult, type PaginationParams, type PersonalMcpServerConfigEntry, type PersonalMcpServerConfigStore, type PinoFileOptions, type PlatformAuditAction, type PlatformAuditAppendInput, type PlatformAuditExecutor, type PlatformAuditInitiator, type PlatformAuditQuery, type PlatformAuditRecord, type PlatformAuditSource, type PlatformAuditStatus, type PlatformAuditStore, type PlatformBranding, type PlatformBrandingField, type PlatformBrandingFieldDefinition, type PlatformBrandingFieldGroup, type PlatformBrandingFieldKind, type PlatformBrandingSettings, type PlatformInvitation, type PlatformInvitationStore, type PlatformMember, type PlatformMemberStore, type PlatformOpsPlaybookKind, type PlatformRateLimitPolicyOverride, type PlatformRole, type PlatformSettingSource, type PlatformSettingsDocument, type PlatformSettingsProvider, type PlatformSettingsRecord, type PlatformSettingsSnapshot, type PlatformSettingsStore, PlatformSettingsVersionConflictError, PlatformTenantProtectedError, 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 ThreadMonitorKind, type ThreadMonitorQuery, type ThreadMonitorRecord, 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, assertNotPlatformTenant, assertStoreIdentity, assertStoreNamespacePrefix, assertValidCreateChannelReplyJobInput, authBrandingAsset, buildAffinityMissChunk, classifyThreadMetadata, createAgentWebAppStreamProjectionContext, descriptorDataValue, effectiveGrants, firstNonEmptyString, getSubAgentsFromConfig, getToolsFromConfig, hasCssImport, hasStyleBreakout, hasTools, interruptAnswerKeySchema, isA2ARemoteAgentConfig, isAuthFontFamilyId, isDeepAgentConfig, isExecutionResultEventKey, isLoginLayoutId, isMcpUiRef, isPersonalMcpServerConfigStore, isPlatformTenantId, isProjectRoomEventId, isWorkflowAgentConfig, isWorkspacePublicRoomProjectId, layoutSpecificFields, layoutSupportsSurface, normalizeAllowedPrivateHosts, normalizeBrandingHost, normalizeChannelReplyJobListLimit, normalizeInviteLinkEmail, normalizeOidcIdentityEmail, normalizePlatformInvitationEmail, normalizeTaskMetadataScalar, observabilityDashboardElementKey, parseAgentWebAppGenUIBlock, parseMcpUiRef, parseModelKey, parseProjectRoomEventId, parseQueuedExecutionMode, parseTaskBeliefState, parseTrustedRunContext, projectAgentWebAppChunk, projectRoomUserEventScope, replaceTaskBeliefState, requireProjectTaskWorkItemStore, resolveLoginLayout, resolveRunScope, runCancelSignalSchema, snapshotExactArray, snapshotExactRecord, snapshotProjectRoomBotMembershipRealtime, snapshotProjectRoomMembershipRealtime, snapshotProjectRoomMessageRealtime, storeExpiresAt, storePaginationValue, taskBeliefStatesEqual, threadAffinityHeaders, toModelKey, toProjectRoomPublicBotMembership, toProjectRoomPublicMembership, toProjectRoomPublicMessage, toThreadMonitorRecord, validateCustomCss };
10596
+ 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, AUTH_BRANDING_ASSET_BASE, AUTH_BRANDING_CASES, AUTH_BRANDING_CASE_IDS, AUTH_BRANDING_PRESETS, AUTH_BRANDING_PRESET_IDS, AUTH_BRANDING_PRESET_RESET_FIELDS, AUTH_CSS_CONTRACT_PARTS, AUTH_CSS_CONTRACT_VARIABLES, AUTH_FONT_FAMILIES, AUTH_FONT_FAMILY_IDS, AUTH_SLOT_IDS, AUTH_SLOT_REGISTRY, AUTH_SURFACE_KINDS, 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 AuthBrandingCase, type AuthBrandingPreset, type AuthChallenge, type AuthCookie, AuthError, type AuthErrorCode, type AuthFontFamilyDefinition, type AuthFontFamilyId, type AuthProvider, type AuthProviderDescriptor, type AuthRequestContext, type AuthSlotDefinition, type AuthSlotId, type AuthSurfaceKind, type AvailableModule, BRANDING_ASSET_URL_KEYS, BRANDING_COLOR_KEYS, BRANDING_CSS_KEYS, BRANDING_ENUM_KEYS, BRANDING_INTEGER_KEYS, BRANDING_PERCENT_KEYS, BRANDING_TEXT_KEYS, BRANDING_VIDEO_URL_KEYS, type BaseLatticeProtocol, type BaseMessage, type Binding, type BindingListParams, type BindingMutablePatch, type BindingRegistry, type BootstrapFilesConfig, type BrandingDomain, type BrowserMiddlewareConfig, CHANNEL_INSTALLATION_SECRET_FIELDS, CHANNEL_INSTALLATION_SECRET_MASK, CHANNEL_REPLY_JOB_LIST_LIMIT_DEFAULT, CHANNEL_REPLY_JOB_LIST_LIMIT_MAX, CHANNEL_REPLY_JOB_LIST_LIMIT_MIN, COLLECTION_ENTRY_BATCH_MAX, 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 CustomCssValidation, type CustomMenuConfig, DEFAULT_LOGIN_LAYOUT, 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, LOGIN_LAYOUTS, LOGIN_LAYOUT_IDS, 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 LoginLayoutDefinition, type LoginLayoutId, type LoginSurface, MAX_CUSTOM_CSS_LENGTH, MAX_PENDING_EXECUTION_RESULTS_LIMIT, type McpAppMenuConfig, type McpAppShareApp, type McpAppShareBootstrap, type McpAppShareRecord, type McpAppShareTarget, type McpClient, type McpClientOptions, type McpConfigStoreWithPersonal, 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_BRANDING_FIELDS, PLATFORM_BRANDING_FIELD_GROUPS, PLATFORM_BRANDING_FIELD_GROUP_ORDER, PLATFORM_BRANDING_FIELD_KEYS, PLATFORM_MODEL_TENANT_ID, PLATFORM_OPS_AGENT_ID, PLATFORM_OPS_PROJECT_ID, PLATFORM_OPS_WORKSPACE_ID, PLATFORM_SETTINGS_DEFAULTS, PLATFORM_TENANT_ID, PLATFORM_TENANT_PROTECTED_ERROR, PROJECT_ROOM_TASK_DELEGATED_LABEL, PROJECT_ROOM_TASK_DELEGATED_SEPARATOR, PROJECT_ROOM_USER_CHANNEL_PROJECT, PROJECT_TASK_LIFECYCLE_ACTIONS, type PaginatedResult, type PaginationParams, type PersonalMcpServerConfigEntry, type PersonalMcpServerConfigStore, type PinoFileOptions, type PlatformAuditAction, type PlatformAuditAppendInput, type PlatformAuditExecutor, type PlatformAuditInitiator, type PlatformAuditQuery, type PlatformAuditRecord, type PlatformAuditSource, type PlatformAuditStatus, type PlatformAuditStore, type PlatformBranding, type PlatformBrandingField, type PlatformBrandingFieldDefinition, type PlatformBrandingFieldGroup, type PlatformBrandingFieldKind, type PlatformBrandingSettings, type PlatformInvitation, type PlatformInvitationStore, type PlatformMember, type PlatformMemberStore, type PlatformOpsPlaybookKind, type PlatformRateLimitPolicyOverride, type PlatformRole, type PlatformSessionSettings, type PlatformSettingSource, type PlatformSettingsDocument, type PlatformSettingsProvider, type PlatformSettingsRecord, type PlatformSettingsSnapshot, type PlatformSettingsStore, PlatformSettingsVersionConflictError, PlatformTenantProtectedError, 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 SessionRecord, type SessionStore, 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 ThreadMonitorKind, type ThreadMonitorQuery, type ThreadMonitorRecord, 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, assertNotPlatformTenant, assertStoreIdentity, assertStoreNamespacePrefix, assertValidCreateChannelReplyJobInput, authBrandingAsset, buildAffinityMissChunk, classifyThreadMetadata, createAgentWebAppStreamProjectionContext, descriptorDataValue, effectiveGrants, firstNonEmptyString, getSubAgentsFromConfig, getToolsFromConfig, hasCssImport, hasStyleBreakout, hasTools, interruptAnswerKeySchema, isA2ARemoteAgentConfig, isAuthFontFamilyId, isDeepAgentConfig, isExecutionResultEventKey, isLoginLayoutId, isMcpUiRef, isPersonalMcpServerConfigStore, isPlatformTenantId, isProjectRoomEventId, isWorkflowAgentConfig, isWorkspacePublicRoomProjectId, layoutSpecificFields, layoutSupportsSurface, maskChannelInstallationSecrets, normalizeAllowedPrivateHosts, normalizeBrandingHost, normalizeChannelReplyJobListLimit, normalizeInviteLinkEmail, normalizeOidcIdentityEmail, normalizePlatformInvitationEmail, normalizeTaskMetadataScalar, observabilityDashboardElementKey, parseAgentWebAppGenUIBlock, parseMcpUiRef, parseModelKey, parseProjectRoomEventId, parseQueuedExecutionMode, parseTaskBeliefState, parseTrustedRunContext, projectAgentWebAppChunk, projectRoomUserEventScope, replaceTaskBeliefState, requireProjectTaskWorkItemStore, resolveLoginLayout, resolveRunScope, runCancelSignalSchema, snapshotExactArray, snapshotExactRecord, snapshotProjectRoomBotMembershipRealtime, snapshotProjectRoomMembershipRealtime, snapshotProjectRoomMessageRealtime, storeExpiresAt, storePaginationValue, taskBeliefStatesEqual, threadAffinityHeaders, toModelKey, toProjectRoomPublicBotMembership, toProjectRoomPublicMembership, toProjectRoomPublicMessage, toThreadMonitorRecord, validateCustomCss };
package/dist/index.d.ts CHANGED
@@ -2557,6 +2557,20 @@ interface ConnectionStore {
2557
2557
 
2558
2558
  /** Channel types persisted by the installation store, including internal-only channels. */
2559
2559
  type ChannelInstallationType = "lark" | "email" | "slack" | "wechat" | "wecom" | "room";
2560
+ /**
2561
+ * Installation config fields that must never be returned in plaintext from public
2562
+ * installation APIs. Reads replace non-empty values with {@link CHANNEL_INSTALLATION_SECRET_MASK};
2563
+ * writes treat the mask as "keep the stored value".
2564
+ */
2565
+ declare const CHANNEL_INSTALLATION_SECRET_FIELDS: readonly ["appSecret", "verificationToken", "encryptKey", "botToken", "secret"];
2566
+ /** Placeholder returned in place of a stored channel secret. */
2567
+ declare const CHANNEL_INSTALLATION_SECRET_MASK = "********";
2568
+ /**
2569
+ * Return a copy of an installation with every non-empty secret replaced by
2570
+ * {@link CHANNEL_INSTALLATION_SECRET_MASK}. Safe for public read surfaces and
2571
+ * agent tools; the stored record is never mutated.
2572
+ */
2573
+ declare function maskChannelInstallationSecrets<TConfig>(installation: ChannelInstallation<TConfig>): ChannelInstallation<TConfig>;
2560
2574
  /** Channel types exposed by the public installation management API. */
2561
2575
  type PublicChannelInstallationType = Exclude<ChannelInstallationType, "room">;
2562
2576
  /** Credentials and routing configuration for a Lark installation. */
@@ -4128,6 +4142,8 @@ interface User {
4128
4142
  email: string;
4129
4143
  name: string;
4130
4144
  status: UserStatus;
4145
+ /** Bumped on disable/password-change/logout-all to revoke outstanding access tokens. */
4146
+ authEpoch?: string;
4131
4147
  metadata?: Record<string, any>;
4132
4148
  createdAt: Date;
4133
4149
  updatedAt: Date;
@@ -4142,6 +4158,7 @@ interface UpdateUserRequest {
4142
4158
  email?: string;
4143
4159
  name?: string;
4144
4160
  status?: UserStatus;
4161
+ authEpoch?: string;
4145
4162
  metadata?: Record<string, any>;
4146
4163
  }
4147
4164
  interface UserStore {
@@ -4153,6 +4170,45 @@ interface UserStore {
4153
4170
  deleteUser(id: string): Promise<boolean>;
4154
4171
  }
4155
4172
 
4173
+ /**
4174
+ * Server-side refresh sessions.
4175
+ *
4176
+ * A session family is created at login and rotated on every refresh. Access
4177
+ * tokens remain stateless and carry a user-level `epoch`; this store backs
4178
+ * refresh rotation, single-session logout, reuse detection, and device listing.
4179
+ */
4180
+ interface SessionRecord {
4181
+ id: string;
4182
+ familyId: string;
4183
+ userId: string;
4184
+ tenantId?: string;
4185
+ /** Snapshot of `user.authEpoch` at creation/rotation; refresh must match. */
4186
+ authEpoch: string;
4187
+ refreshTokenHash: string;
4188
+ createdAt: Date;
4189
+ lastUsedAt: Date;
4190
+ idleExpiresAt: Date;
4191
+ absoluteExpiresAt: Date;
4192
+ revokedAt?: Date;
4193
+ replacedBy?: string;
4194
+ ip?: string;
4195
+ userAgent?: string;
4196
+ providerId: "local" | `oidc:${string}`;
4197
+ /** Encrypted IdP refresh token (Phase 2). */
4198
+ idpRefreshTokenEnc?: string;
4199
+ idpRefreshExpiresAt?: Date;
4200
+ }
4201
+ interface SessionStore {
4202
+ create(record: SessionRecord): Promise<void>;
4203
+ findByRefreshTokenHash(hash: string): Promise<SessionRecord | null>;
4204
+ findByFamilyId(familyId: string): Promise<SessionRecord | null>;
4205
+ rotate(oldId: string, next: SessionRecord): Promise<void>;
4206
+ revokeFamily(familyId: string, reason: string): Promise<void>;
4207
+ revokeAllForUser(userId: string, reason: string): Promise<void>;
4208
+ touch(id: string, lastUsedAt: Date): Promise<void>;
4209
+ listForUser(userId: string): Promise<SessionRecord[]>;
4210
+ }
4211
+
4156
4212
  /**
4157
4213
  * UserTenantLinkProtocol
4158
4214
  *
@@ -10271,10 +10327,19 @@ interface PlatformRateLimitPolicyOverride {
10271
10327
  /** Set false to disable this policy. Omitted keeps the deployment state. */
10272
10328
  enabled?: boolean;
10273
10329
  }
10330
+ /** Runtime session policy shared by the gateway and the console. */
10331
+ interface PlatformSessionSettings {
10332
+ refreshEnabled: boolean;
10333
+ accessTtlSeconds: number;
10334
+ refreshIdleSeconds: number;
10335
+ refreshAbsoluteSeconds: number;
10336
+ refreshReuseGraceSeconds: number;
10337
+ }
10274
10338
  /** Persisted, partial platform settings document managed by platform admins. */
10275
10339
  interface PlatformSettingsDocument {
10276
10340
  auth?: {
10277
10341
  emailCompletionEnabled?: boolean;
10342
+ session?: Partial<PlatformSessionSettings>;
10278
10343
  };
10279
10344
  invite?: {
10280
10345
  defaultExpiresInHours?: number;
@@ -10299,6 +10364,7 @@ interface PlatformSettingsRecord extends PlatformSettingsDocument {
10299
10364
  interface EffectivePlatformSettings {
10300
10365
  auth: {
10301
10366
  emailCompletionEnabled: boolean;
10367
+ session: PlatformSessionSettings;
10302
10368
  };
10303
10369
  invite: {
10304
10370
  defaultExpiresInHours: number;
@@ -10348,6 +10414,13 @@ declare class PlatformSettingsVersionConflictError extends Error {
10348
10414
  declare const PLATFORM_SETTINGS_DEFAULTS: {
10349
10415
  readonly auth: {
10350
10416
  readonly emailCompletionEnabled: false;
10417
+ readonly session: {
10418
+ readonly refreshEnabled: true;
10419
+ readonly accessTtlSeconds: 86400;
10420
+ readonly refreshIdleSeconds: 604800;
10421
+ readonly refreshAbsoluteSeconds: 2592000;
10422
+ readonly refreshReuseGraceSeconds: 20;
10423
+ };
10351
10424
  };
10352
10425
  readonly invite: {
10353
10426
  readonly defaultExpiresInHours: 168;
@@ -10520,4 +10593,4 @@ declare const PLATFORM_OPS_PROJECT_ID = "platform-ops";
10520
10593
  /** High-risk Ops playbook discriminator executed by the playbook executor. */
10521
10594
  type PlatformOpsPlaybookKind = "transfer_owner" | "offboard_member" | "delete_tenant" | "delete_oidc_provider" | "rotate_oidc_provider" | "reset_settings";
10522
10595
 
10523
- 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, AUTH_BRANDING_ASSET_BASE, AUTH_BRANDING_CASES, AUTH_BRANDING_CASE_IDS, AUTH_BRANDING_PRESETS, AUTH_BRANDING_PRESET_IDS, AUTH_BRANDING_PRESET_RESET_FIELDS, AUTH_CSS_CONTRACT_PARTS, AUTH_CSS_CONTRACT_VARIABLES, AUTH_FONT_FAMILIES, AUTH_FONT_FAMILY_IDS, AUTH_SLOT_IDS, AUTH_SLOT_REGISTRY, AUTH_SURFACE_KINDS, 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 AuthBrandingCase, type AuthBrandingPreset, type AuthChallenge, type AuthCookie, AuthError, type AuthErrorCode, type AuthFontFamilyDefinition, type AuthFontFamilyId, type AuthProvider, type AuthProviderDescriptor, type AuthRequestContext, type AuthSlotDefinition, type AuthSlotId, type AuthSurfaceKind, type AvailableModule, BRANDING_ASSET_URL_KEYS, BRANDING_COLOR_KEYS, BRANDING_CSS_KEYS, BRANDING_ENUM_KEYS, BRANDING_INTEGER_KEYS, BRANDING_PERCENT_KEYS, BRANDING_TEXT_KEYS, BRANDING_VIDEO_URL_KEYS, 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, COLLECTION_ENTRY_BATCH_MAX, 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 CustomCssValidation, type CustomMenuConfig, DEFAULT_LOGIN_LAYOUT, 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, LOGIN_LAYOUTS, LOGIN_LAYOUT_IDS, 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 LoginLayoutDefinition, type LoginLayoutId, type LoginSurface, MAX_CUSTOM_CSS_LENGTH, MAX_PENDING_EXECUTION_RESULTS_LIMIT, type McpAppMenuConfig, type McpAppShareApp, type McpAppShareBootstrap, type McpAppShareRecord, type McpAppShareTarget, type McpClient, type McpClientOptions, type McpConfigStoreWithPersonal, 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_BRANDING_FIELDS, PLATFORM_BRANDING_FIELD_GROUPS, PLATFORM_BRANDING_FIELD_GROUP_ORDER, PLATFORM_BRANDING_FIELD_KEYS, PLATFORM_MODEL_TENANT_ID, PLATFORM_OPS_AGENT_ID, PLATFORM_OPS_PROJECT_ID, PLATFORM_OPS_WORKSPACE_ID, PLATFORM_SETTINGS_DEFAULTS, PLATFORM_TENANT_ID, PLATFORM_TENANT_PROTECTED_ERROR, PROJECT_ROOM_TASK_DELEGATED_LABEL, PROJECT_ROOM_TASK_DELEGATED_SEPARATOR, PROJECT_ROOM_USER_CHANNEL_PROJECT, PROJECT_TASK_LIFECYCLE_ACTIONS, type PaginatedResult, type PaginationParams, type PersonalMcpServerConfigEntry, type PersonalMcpServerConfigStore, type PinoFileOptions, type PlatformAuditAction, type PlatformAuditAppendInput, type PlatformAuditExecutor, type PlatformAuditInitiator, type PlatformAuditQuery, type PlatformAuditRecord, type PlatformAuditSource, type PlatformAuditStatus, type PlatformAuditStore, type PlatformBranding, type PlatformBrandingField, type PlatformBrandingFieldDefinition, type PlatformBrandingFieldGroup, type PlatformBrandingFieldKind, type PlatformBrandingSettings, type PlatformInvitation, type PlatformInvitationStore, type PlatformMember, type PlatformMemberStore, type PlatformOpsPlaybookKind, type PlatformRateLimitPolicyOverride, type PlatformRole, type PlatformSettingSource, type PlatformSettingsDocument, type PlatformSettingsProvider, type PlatformSettingsRecord, type PlatformSettingsSnapshot, type PlatformSettingsStore, PlatformSettingsVersionConflictError, PlatformTenantProtectedError, 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 ThreadMonitorKind, type ThreadMonitorQuery, type ThreadMonitorRecord, 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, assertNotPlatformTenant, assertStoreIdentity, assertStoreNamespacePrefix, assertValidCreateChannelReplyJobInput, authBrandingAsset, buildAffinityMissChunk, classifyThreadMetadata, createAgentWebAppStreamProjectionContext, descriptorDataValue, effectiveGrants, firstNonEmptyString, getSubAgentsFromConfig, getToolsFromConfig, hasCssImport, hasStyleBreakout, hasTools, interruptAnswerKeySchema, isA2ARemoteAgentConfig, isAuthFontFamilyId, isDeepAgentConfig, isExecutionResultEventKey, isLoginLayoutId, isMcpUiRef, isPersonalMcpServerConfigStore, isPlatformTenantId, isProjectRoomEventId, isWorkflowAgentConfig, isWorkspacePublicRoomProjectId, layoutSpecificFields, layoutSupportsSurface, normalizeAllowedPrivateHosts, normalizeBrandingHost, normalizeChannelReplyJobListLimit, normalizeInviteLinkEmail, normalizeOidcIdentityEmail, normalizePlatformInvitationEmail, normalizeTaskMetadataScalar, observabilityDashboardElementKey, parseAgentWebAppGenUIBlock, parseMcpUiRef, parseModelKey, parseProjectRoomEventId, parseQueuedExecutionMode, parseTaskBeliefState, parseTrustedRunContext, projectAgentWebAppChunk, projectRoomUserEventScope, replaceTaskBeliefState, requireProjectTaskWorkItemStore, resolveLoginLayout, resolveRunScope, runCancelSignalSchema, snapshotExactArray, snapshotExactRecord, snapshotProjectRoomBotMembershipRealtime, snapshotProjectRoomMembershipRealtime, snapshotProjectRoomMessageRealtime, storeExpiresAt, storePaginationValue, taskBeliefStatesEqual, threadAffinityHeaders, toModelKey, toProjectRoomPublicBotMembership, toProjectRoomPublicMembership, toProjectRoomPublicMessage, toThreadMonitorRecord, validateCustomCss };
10596
+ 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, AUTH_BRANDING_ASSET_BASE, AUTH_BRANDING_CASES, AUTH_BRANDING_CASE_IDS, AUTH_BRANDING_PRESETS, AUTH_BRANDING_PRESET_IDS, AUTH_BRANDING_PRESET_RESET_FIELDS, AUTH_CSS_CONTRACT_PARTS, AUTH_CSS_CONTRACT_VARIABLES, AUTH_FONT_FAMILIES, AUTH_FONT_FAMILY_IDS, AUTH_SLOT_IDS, AUTH_SLOT_REGISTRY, AUTH_SURFACE_KINDS, 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 AuthBrandingCase, type AuthBrandingPreset, type AuthChallenge, type AuthCookie, AuthError, type AuthErrorCode, type AuthFontFamilyDefinition, type AuthFontFamilyId, type AuthProvider, type AuthProviderDescriptor, type AuthRequestContext, type AuthSlotDefinition, type AuthSlotId, type AuthSurfaceKind, type AvailableModule, BRANDING_ASSET_URL_KEYS, BRANDING_COLOR_KEYS, BRANDING_CSS_KEYS, BRANDING_ENUM_KEYS, BRANDING_INTEGER_KEYS, BRANDING_PERCENT_KEYS, BRANDING_TEXT_KEYS, BRANDING_VIDEO_URL_KEYS, type BaseLatticeProtocol, type BaseMessage, type Binding, type BindingListParams, type BindingMutablePatch, type BindingRegistry, type BootstrapFilesConfig, type BrandingDomain, type BrowserMiddlewareConfig, CHANNEL_INSTALLATION_SECRET_FIELDS, CHANNEL_INSTALLATION_SECRET_MASK, CHANNEL_REPLY_JOB_LIST_LIMIT_DEFAULT, CHANNEL_REPLY_JOB_LIST_LIMIT_MAX, CHANNEL_REPLY_JOB_LIST_LIMIT_MIN, COLLECTION_ENTRY_BATCH_MAX, 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 CustomCssValidation, type CustomMenuConfig, DEFAULT_LOGIN_LAYOUT, 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, LOGIN_LAYOUTS, LOGIN_LAYOUT_IDS, 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 LoginLayoutDefinition, type LoginLayoutId, type LoginSurface, MAX_CUSTOM_CSS_LENGTH, MAX_PENDING_EXECUTION_RESULTS_LIMIT, type McpAppMenuConfig, type McpAppShareApp, type McpAppShareBootstrap, type McpAppShareRecord, type McpAppShareTarget, type McpClient, type McpClientOptions, type McpConfigStoreWithPersonal, 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_BRANDING_FIELDS, PLATFORM_BRANDING_FIELD_GROUPS, PLATFORM_BRANDING_FIELD_GROUP_ORDER, PLATFORM_BRANDING_FIELD_KEYS, PLATFORM_MODEL_TENANT_ID, PLATFORM_OPS_AGENT_ID, PLATFORM_OPS_PROJECT_ID, PLATFORM_OPS_WORKSPACE_ID, PLATFORM_SETTINGS_DEFAULTS, PLATFORM_TENANT_ID, PLATFORM_TENANT_PROTECTED_ERROR, PROJECT_ROOM_TASK_DELEGATED_LABEL, PROJECT_ROOM_TASK_DELEGATED_SEPARATOR, PROJECT_ROOM_USER_CHANNEL_PROJECT, PROJECT_TASK_LIFECYCLE_ACTIONS, type PaginatedResult, type PaginationParams, type PersonalMcpServerConfigEntry, type PersonalMcpServerConfigStore, type PinoFileOptions, type PlatformAuditAction, type PlatformAuditAppendInput, type PlatformAuditExecutor, type PlatformAuditInitiator, type PlatformAuditQuery, type PlatformAuditRecord, type PlatformAuditSource, type PlatformAuditStatus, type PlatformAuditStore, type PlatformBranding, type PlatformBrandingField, type PlatformBrandingFieldDefinition, type PlatformBrandingFieldGroup, type PlatformBrandingFieldKind, type PlatformBrandingSettings, type PlatformInvitation, type PlatformInvitationStore, type PlatformMember, type PlatformMemberStore, type PlatformOpsPlaybookKind, type PlatformRateLimitPolicyOverride, type PlatformRole, type PlatformSessionSettings, type PlatformSettingSource, type PlatformSettingsDocument, type PlatformSettingsProvider, type PlatformSettingsRecord, type PlatformSettingsSnapshot, type PlatformSettingsStore, PlatformSettingsVersionConflictError, PlatformTenantProtectedError, 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 SessionRecord, type SessionStore, 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 ThreadMonitorKind, type ThreadMonitorQuery, type ThreadMonitorRecord, 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, assertNotPlatformTenant, assertStoreIdentity, assertStoreNamespacePrefix, assertValidCreateChannelReplyJobInput, authBrandingAsset, buildAffinityMissChunk, classifyThreadMetadata, createAgentWebAppStreamProjectionContext, descriptorDataValue, effectiveGrants, firstNonEmptyString, getSubAgentsFromConfig, getToolsFromConfig, hasCssImport, hasStyleBreakout, hasTools, interruptAnswerKeySchema, isA2ARemoteAgentConfig, isAuthFontFamilyId, isDeepAgentConfig, isExecutionResultEventKey, isLoginLayoutId, isMcpUiRef, isPersonalMcpServerConfigStore, isPlatformTenantId, isProjectRoomEventId, isWorkflowAgentConfig, isWorkspacePublicRoomProjectId, layoutSpecificFields, layoutSupportsSurface, maskChannelInstallationSecrets, normalizeAllowedPrivateHosts, normalizeBrandingHost, normalizeChannelReplyJobListLimit, normalizeInviteLinkEmail, normalizeOidcIdentityEmail, normalizePlatformInvitationEmail, normalizeTaskMetadataScalar, observabilityDashboardElementKey, parseAgentWebAppGenUIBlock, parseMcpUiRef, parseModelKey, parseProjectRoomEventId, parseQueuedExecutionMode, parseTaskBeliefState, parseTrustedRunContext, projectAgentWebAppChunk, projectRoomUserEventScope, replaceTaskBeliefState, requireProjectTaskWorkItemStore, resolveLoginLayout, resolveRunScope, runCancelSignalSchema, snapshotExactArray, snapshotExactRecord, snapshotProjectRoomBotMembershipRealtime, snapshotProjectRoomMembershipRealtime, snapshotProjectRoomMessageRealtime, storeExpiresAt, storePaginationValue, taskBeliefStatesEqual, threadAffinityHeaders, toModelKey, toProjectRoomPublicBotMembership, toProjectRoomPublicMembership, toProjectRoomPublicMessage, toThreadMonitorRecord, validateCustomCss };
package/dist/index.js CHANGED
@@ -47,6 +47,8 @@ __export(index_exports, {
47
47
  BRANDING_PERCENT_KEYS: () => BRANDING_PERCENT_KEYS,
48
48
  BRANDING_TEXT_KEYS: () => BRANDING_TEXT_KEYS,
49
49
  BRANDING_VIDEO_URL_KEYS: () => BRANDING_VIDEO_URL_KEYS,
50
+ CHANNEL_INSTALLATION_SECRET_FIELDS: () => CHANNEL_INSTALLATION_SECRET_FIELDS,
51
+ CHANNEL_INSTALLATION_SECRET_MASK: () => CHANNEL_INSTALLATION_SECRET_MASK,
50
52
  CHANNEL_REPLY_JOB_LIST_LIMIT_DEFAULT: () => CHANNEL_REPLY_JOB_LIST_LIMIT_DEFAULT,
51
53
  CHANNEL_REPLY_JOB_LIST_LIMIT_MAX: () => CHANNEL_REPLY_JOB_LIST_LIMIT_MAX,
52
54
  CHANNEL_REPLY_JOB_LIST_LIMIT_MIN: () => CHANNEL_REPLY_JOB_LIST_LIMIT_MIN,
@@ -137,6 +139,7 @@ __export(index_exports, {
137
139
  isWorkspacePublicRoomProjectId: () => isWorkspacePublicRoomProjectId,
138
140
  layoutSpecificFields: () => layoutSpecificFields,
139
141
  layoutSupportsSurface: () => layoutSupportsSurface,
142
+ maskChannelInstallationSecrets: () => maskChannelInstallationSecrets,
140
143
  normalizeAllowedPrivateHosts: () => normalizeAllowedPrivateHosts,
141
144
  normalizeBrandingHost: () => normalizeBrandingHost,
142
145
  normalizeChannelReplyJobListLimit: () => normalizeChannelReplyJobListLimit,
@@ -361,6 +364,29 @@ function assertGenericProjectConfig(config) {
361
364
  }
362
365
  }
363
366
 
367
+ // src/ChannelInstallationStoreProtocol.ts
368
+ var CHANNEL_INSTALLATION_SECRET_FIELDS = [
369
+ "appSecret",
370
+ "verificationToken",
371
+ "encryptKey",
372
+ "botToken",
373
+ "secret"
374
+ ];
375
+ var CHANNEL_INSTALLATION_SECRET_MASK = "********";
376
+ function maskChannelInstallationSecrets(installation) {
377
+ const config = installation.config;
378
+ if (config === null || typeof config !== "object" || Array.isArray(config)) {
379
+ return installation;
380
+ }
381
+ const masked = { ...config };
382
+ for (const field of CHANNEL_INSTALLATION_SECRET_FIELDS) {
383
+ if (typeof masked[field] === "string" && masked[field] !== "") {
384
+ masked[field] = CHANNEL_INSTALLATION_SECRET_MASK;
385
+ }
386
+ }
387
+ return { ...installation, config: masked };
388
+ }
389
+
364
390
  // src/McpServerConfigStoreProtocol.ts
365
391
  function isPersonalMcpServerConfigStore(store) {
366
392
  const candidate = store;
@@ -2863,7 +2889,16 @@ var PlatformSettingsVersionConflictError = class extends Error {
2863
2889
  }
2864
2890
  };
2865
2891
  var PLATFORM_SETTINGS_DEFAULTS = {
2866
- auth: { emailCompletionEnabled: false },
2892
+ auth: {
2893
+ emailCompletionEnabled: false,
2894
+ session: {
2895
+ refreshEnabled: true,
2896
+ accessTtlSeconds: 86400,
2897
+ refreshIdleSeconds: 604800,
2898
+ refreshAbsoluteSeconds: 2592e3,
2899
+ refreshReuseGraceSeconds: 20
2900
+ }
2901
+ },
2867
2902
  invite: { defaultExpiresInHours: 168, defaultMaxUses: 1 },
2868
2903
  rateLimits: {
2869
2904
  openApiPerMinute: 6e4,
@@ -3187,6 +3222,8 @@ var AUTH_CSS_CONTRACT_VARIABLES = [
3187
3222
  BRANDING_PERCENT_KEYS,
3188
3223
  BRANDING_TEXT_KEYS,
3189
3224
  BRANDING_VIDEO_URL_KEYS,
3225
+ CHANNEL_INSTALLATION_SECRET_FIELDS,
3226
+ CHANNEL_INSTALLATION_SECRET_MASK,
3190
3227
  CHANNEL_REPLY_JOB_LIST_LIMIT_DEFAULT,
3191
3228
  CHANNEL_REPLY_JOB_LIST_LIMIT_MAX,
3192
3229
  CHANNEL_REPLY_JOB_LIST_LIMIT_MIN,
@@ -3277,6 +3314,7 @@ var AUTH_CSS_CONTRACT_VARIABLES = [
3277
3314
  isWorkspacePublicRoomProjectId,
3278
3315
  layoutSpecificFields,
3279
3316
  layoutSupportsSurface,
3317
+ maskChannelInstallationSecrets,
3280
3318
  normalizeAllowedPrivateHosts,
3281
3319
  normalizeBrandingHost,
3282
3320
  normalizeChannelReplyJobListLimit,