@axiom-lattice/protocols 7.6.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.
package/dist/index.d.ts CHANGED
@@ -1407,7 +1407,51 @@ interface ThreadStore {
1407
1407
  * @returns Expired threads ordered by `expiresAt` ascending.
1408
1408
  */
1409
1409
  listExpiredThreads(now: Date, limit: number): Promise<Thread[]>;
1410
+ /**
1411
+ * List persisted threads for one tenant, newest first.
1412
+ *
1413
+ * @param tenantId Tenant scope.
1414
+ * @param query Optional kind/assistant/time filters and pagination.
1415
+ * @returns Matching safe records and the unpaginated total.
1416
+ */
1417
+ listThreadsByTenant(tenantId: string, query?: ThreadMonitorQuery): Promise<{
1418
+ records: ThreadMonitorRecord[];
1419
+ total: number;
1420
+ }>;
1421
+ }
1422
+ /** Derived monitor kind for a persisted thread. */
1423
+ type ThreadMonitorKind = "conversation" | "room_presence" | "task_execution" | "open_api" | "web_app" | "cron" | "channel";
1424
+ /** Filters accepted by a tenant-wide thread list. */
1425
+ interface ThreadMonitorQuery {
1426
+ limit?: number;
1427
+ offset?: number;
1428
+ kind?: ThreadMonitorKind;
1429
+ assistantId?: string;
1430
+ createdAfter?: string;
1431
+ }
1432
+ /** Safe thread projection returned by the tenant monitor. */
1433
+ interface ThreadMonitorRecord {
1434
+ id: string;
1435
+ tenantId: string;
1436
+ assistantId: string;
1437
+ kind: ThreadMonitorKind;
1438
+ workspaceId?: string;
1439
+ projectId?: string;
1440
+ roomId?: string;
1441
+ taskId?: string;
1442
+ createdAt: Date;
1443
+ updatedAt: Date;
1444
+ expiresAt?: Date;
1410
1445
  }
1446
+ /**
1447
+ * Derive the monitor kind from metadata already written by the owning flows.
1448
+ *
1449
+ * No stored `kind` column exists; unknown or missing metadata is
1450
+ * `conversation`.
1451
+ */
1452
+ declare function classifyThreadMetadata(metadata: Record<string, unknown> | undefined): ThreadMonitorKind;
1453
+ /** Project a stored thread into the safe monitor shape. */
1454
+ declare function toThreadMonitorRecord(thread: Thread): ThreadMonitorRecord;
1411
1455
 
1412
1456
  /**
1413
1457
  * AssistantStoreProtocol
@@ -2513,6 +2557,20 @@ interface ConnectionStore {
2513
2557
 
2514
2558
  /** Channel types persisted by the installation store, including internal-only channels. */
2515
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>;
2516
2574
  /** Channel types exposed by the public installation management API. */
2517
2575
  type PublicChannelInstallationType = Exclude<ChannelInstallationType, "room">;
2518
2576
  /** Credentials and routing configuration for a Lark installation. */
@@ -4084,6 +4142,8 @@ interface User {
4084
4142
  email: string;
4085
4143
  name: string;
4086
4144
  status: UserStatus;
4145
+ /** Bumped on disable/password-change/logout-all to revoke outstanding access tokens. */
4146
+ authEpoch?: string;
4087
4147
  metadata?: Record<string, any>;
4088
4148
  createdAt: Date;
4089
4149
  updatedAt: Date;
@@ -4098,6 +4158,7 @@ interface UpdateUserRequest {
4098
4158
  email?: string;
4099
4159
  name?: string;
4100
4160
  status?: UserStatus;
4161
+ authEpoch?: string;
4101
4162
  metadata?: Record<string, any>;
4102
4163
  }
4103
4164
  interface UserStore {
@@ -4109,6 +4170,45 @@ interface UserStore {
4109
4170
  deleteUser(id: string): Promise<boolean>;
4110
4171
  }
4111
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
+
4112
4212
  /**
4113
4213
  * UserTenantLinkProtocol
4114
4214
  *
@@ -6080,7 +6180,7 @@ interface OpenAuditAppendInput {
6080
6180
  domain: string;
6081
6181
  action: string;
6082
6182
  args: unknown;
6083
- status: "ok" | "error";
6183
+ status: "ok" | "error" | "cancelled";
6084
6184
  errorCode?: string;
6085
6185
  durationMs: number;
6086
6186
  }
@@ -6091,8 +6191,10 @@ interface OpenAuditRecord extends OpenAuditAppendInput {
6091
6191
  interface OpenAuditQuery {
6092
6192
  tenantId: string;
6093
6193
  credentialId?: string;
6194
+ projectId?: string;
6094
6195
  domain?: string;
6095
- status?: "ok" | "error";
6196
+ action?: string;
6197
+ status?: "ok" | "error" | "cancelled";
6096
6198
  /** ISO timestamps; inclusive from / exclusive to. */
6097
6199
  from?: string;
6098
6200
  to?: string;
@@ -6101,6 +6203,8 @@ interface OpenAuditQuery {
6101
6203
  }
6102
6204
  interface OpenAuditStore {
6103
6205
  append(record: OpenAuditAppendInput): Promise<void>;
6206
+ /** Tenant-scoped detail lookup. */
6207
+ get(tenantId: string, id: string): Promise<OpenAuditRecord | null>;
6104
6208
  /** Tenant-scoped, newest-first. */
6105
6209
  query(params: OpenAuditQuery): Promise<OpenAuditRecord[]>;
6106
6210
  }
@@ -10223,10 +10327,19 @@ interface PlatformRateLimitPolicyOverride {
10223
10327
  /** Set false to disable this policy. Omitted keeps the deployment state. */
10224
10328
  enabled?: boolean;
10225
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
+ }
10226
10338
  /** Persisted, partial platform settings document managed by platform admins. */
10227
10339
  interface PlatformSettingsDocument {
10228
10340
  auth?: {
10229
10341
  emailCompletionEnabled?: boolean;
10342
+ session?: Partial<PlatformSessionSettings>;
10230
10343
  };
10231
10344
  invite?: {
10232
10345
  defaultExpiresInHours?: number;
@@ -10251,6 +10364,7 @@ interface PlatformSettingsRecord extends PlatformSettingsDocument {
10251
10364
  interface EffectivePlatformSettings {
10252
10365
  auth: {
10253
10366
  emailCompletionEnabled: boolean;
10367
+ session: PlatformSessionSettings;
10254
10368
  };
10255
10369
  invite: {
10256
10370
  defaultExpiresInHours: number;
@@ -10300,6 +10414,13 @@ declare class PlatformSettingsVersionConflictError extends Error {
10300
10414
  declare const PLATFORM_SETTINGS_DEFAULTS: {
10301
10415
  readonly auth: {
10302
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
+ };
10303
10424
  };
10304
10425
  readonly invite: {
10305
10426
  readonly defaultExpiresInHours: 168;
@@ -10472,4 +10593,4 @@ declare const PLATFORM_OPS_PROJECT_ID = "platform-ops";
10472
10593
  /** High-risk Ops playbook discriminator executed by the playbook executor. */
10473
10594
  type PlatformOpsPlaybookKind = "transfer_owner" | "offboard_member" | "delete_tenant" | "delete_oidc_provider" | "rotate_oidc_provider" | "reset_settings";
10474
10595
 
10475
- 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 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, 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, 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,
@@ -113,6 +115,7 @@ __export(index_exports, {
113
115
  assertValidCreateChannelReplyJobInput: () => assertValidCreateChannelReplyJobInput,
114
116
  authBrandingAsset: () => authBrandingAsset,
115
117
  buildAffinityMissChunk: () => buildAffinityMissChunk,
118
+ classifyThreadMetadata: () => classifyThreadMetadata,
116
119
  createAgentWebAppStreamProjectionContext: () => createAgentWebAppStreamProjectionContext,
117
120
  descriptorDataValue: () => descriptorDataValue,
118
121
  effectiveGrants: () => effectiveGrants,
@@ -136,6 +139,7 @@ __export(index_exports, {
136
139
  isWorkspacePublicRoomProjectId: () => isWorkspacePublicRoomProjectId,
137
140
  layoutSpecificFields: () => layoutSpecificFields,
138
141
  layoutSupportsSurface: () => layoutSupportsSurface,
142
+ maskChannelInstallationSecrets: () => maskChannelInstallationSecrets,
139
143
  normalizeAllowedPrivateHosts: () => normalizeAllowedPrivateHosts,
140
144
  normalizeBrandingHost: () => normalizeBrandingHost,
141
145
  normalizeChannelReplyJobListLimit: () => normalizeChannelReplyJobListLimit,
@@ -171,6 +175,7 @@ __export(index_exports, {
171
175
  toProjectRoomPublicBotMembership: () => toProjectRoomPublicBotMembership,
172
176
  toProjectRoomPublicMembership: () => toProjectRoomPublicMembership,
173
177
  toProjectRoomPublicMessage: () => toProjectRoomPublicMessage,
178
+ toThreadMonitorRecord: () => toThreadMonitorRecord,
174
179
  validateCustomCss: () => validateCustomCss
175
180
  });
176
181
  module.exports = __toCommonJS(index_exports);
@@ -282,6 +287,50 @@ var MessageChunkTypes = {
282
287
  THREAD_IDLE: "thread_idle"
283
288
  };
284
289
 
290
+ // src/ThreadStoreProtocol.ts
291
+ function classifyThreadMetadata(metadata) {
292
+ if (!metadata) return "conversation";
293
+ if (metadata.source === "project_task" && metadata.kind === "task_execution") {
294
+ return "task_execution";
295
+ }
296
+ if (metadata.source === "project_room" && metadata.kind === "room_presence") {
297
+ return "room_presence";
298
+ }
299
+ if (metadata.source === "open_api") return "open_api";
300
+ if (metadata.source === "web_app") return "web_app";
301
+ if (typeof metadata.cronId === "string" && metadata.cronId.length > 0) {
302
+ return "cron";
303
+ }
304
+ if (typeof metadata.channel === "string" && metadata.channel.length > 0) {
305
+ return "channel";
306
+ }
307
+ return "conversation";
308
+ }
309
+ function toThreadMonitorRecord(thread) {
310
+ const metadata = thread.metadata ?? {};
311
+ const readString = (key) => {
312
+ const value = metadata[key];
313
+ return typeof value === "string" && value.length > 0 ? value : void 0;
314
+ };
315
+ const workspaceId = readString("workspaceId");
316
+ const projectId = readString("projectId");
317
+ const roomId = readString("roomId");
318
+ const taskId = readString("taskId");
319
+ return {
320
+ id: thread.id,
321
+ tenantId: thread.tenantId,
322
+ assistantId: thread.assistantId,
323
+ kind: classifyThreadMetadata(metadata),
324
+ ...workspaceId ? { workspaceId } : {},
325
+ ...projectId ? { projectId } : {},
326
+ ...roomId ? { roomId } : {},
327
+ ...taskId ? { taskId } : {},
328
+ createdAt: thread.createdAt,
329
+ updatedAt: thread.updatedAt,
330
+ ...thread.expiresAt ? { expiresAt: thread.expiresAt } : {}
331
+ };
332
+ }
333
+
285
334
  // src/McpLatticeProtocol.ts
286
335
  var McpMessageType = /* @__PURE__ */ ((McpMessageType2) => {
287
336
  McpMessageType2["CONNECT"] = "mcp:connect";
@@ -315,6 +364,29 @@ function assertGenericProjectConfig(config) {
315
364
  }
316
365
  }
317
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
+
318
390
  // src/McpServerConfigStoreProtocol.ts
319
391
  function isPersonalMcpServerConfigStore(store) {
320
392
  const candidate = store;
@@ -2817,7 +2889,16 @@ var PlatformSettingsVersionConflictError = class extends Error {
2817
2889
  }
2818
2890
  };
2819
2891
  var PLATFORM_SETTINGS_DEFAULTS = {
2820
- 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
+ },
2821
2902
  invite: { defaultExpiresInHours: 168, defaultMaxUses: 1 },
2822
2903
  rateLimits: {
2823
2904
  openApiPerMinute: 6e4,
@@ -3141,6 +3222,8 @@ var AUTH_CSS_CONTRACT_VARIABLES = [
3141
3222
  BRANDING_PERCENT_KEYS,
3142
3223
  BRANDING_TEXT_KEYS,
3143
3224
  BRANDING_VIDEO_URL_KEYS,
3225
+ CHANNEL_INSTALLATION_SECRET_FIELDS,
3226
+ CHANNEL_INSTALLATION_SECRET_MASK,
3144
3227
  CHANNEL_REPLY_JOB_LIST_LIMIT_DEFAULT,
3145
3228
  CHANNEL_REPLY_JOB_LIST_LIMIT_MAX,
3146
3229
  CHANNEL_REPLY_JOB_LIST_LIMIT_MIN,
@@ -3207,6 +3290,7 @@ var AUTH_CSS_CONTRACT_VARIABLES = [
3207
3290
  assertValidCreateChannelReplyJobInput,
3208
3291
  authBrandingAsset,
3209
3292
  buildAffinityMissChunk,
3293
+ classifyThreadMetadata,
3210
3294
  createAgentWebAppStreamProjectionContext,
3211
3295
  descriptorDataValue,
3212
3296
  effectiveGrants,
@@ -3230,6 +3314,7 @@ var AUTH_CSS_CONTRACT_VARIABLES = [
3230
3314
  isWorkspacePublicRoomProjectId,
3231
3315
  layoutSpecificFields,
3232
3316
  layoutSupportsSurface,
3317
+ maskChannelInstallationSecrets,
3233
3318
  normalizeAllowedPrivateHosts,
3234
3319
  normalizeBrandingHost,
3235
3320
  normalizeChannelReplyJobListLimit,
@@ -3265,6 +3350,7 @@ var AUTH_CSS_CONTRACT_VARIABLES = [
3265
3350
  toProjectRoomPublicBotMembership,
3266
3351
  toProjectRoomPublicMembership,
3267
3352
  toProjectRoomPublicMessage,
3353
+ toThreadMonitorRecord,
3268
3354
  validateCustomCss
3269
3355
  });
3270
3356
  //# sourceMappingURL=index.js.map