@liveblocks/core 2.25.0-aiprivatebeta6 → 2.25.0-aiprivatebeta8

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
@@ -3540,10 +3540,10 @@ type DefineCmd<CmdName extends string, TRequest, TResponse> = [
3540
3540
  cmdId: CmdId;
3541
3541
  } & TResponse>
3542
3542
  ];
3543
- type CommandPair = GetChatsPair | CreateChatPair | DeleteChatPair | GetMessageTreePair | DeleteMessagePair | ClearChatPair | AskInChatPair | AbortAiPair;
3543
+ type CommandPair = GetChatsPair | GetOrCreateChatPair | DeleteChatPair | GetMessageTreePair | DeleteMessagePair | ClearChatPair | AskInChatPair | AbortAiPair | SetToolResultPair;
3544
3544
  type ServerCmdResponse<T extends CommandPair = CommandPair> = T[1];
3545
3545
  type GetChatsResponse = ServerCmdResponse<GetChatsPair>;
3546
- type CreateChatResponse = ServerCmdResponse<CreateChatPair>;
3546
+ type GetOrCreateChatResponse = ServerCmdResponse<GetOrCreateChatPair>;
3547
3547
  type DeleteChatResponse = ServerCmdResponse<DeleteChatPair>;
3548
3548
  type GetMessageTreeResponse = ServerCmdResponse<GetMessageTreePair>;
3549
3549
  type DeleteMessageResponse = ServerCmdResponse<DeleteMessagePair>;
@@ -3557,11 +3557,15 @@ type GetChatsPair = DefineCmd<"get-chats", {
3557
3557
  chats: AiChat[];
3558
3558
  nextCursor: Cursor | null;
3559
3559
  }>;
3560
- type CreateChatPair = DefineCmd<"create-chat", {
3561
- id: ChatId;
3560
+ type CreateChatOptions = {
3561
+ /** A human-friendly title for the chat. If not set, it will get auto-generated after the first response. */
3562
3562
  title?: string;
3563
- ephemeral: boolean;
3564
- metadata: Record<string, string | string[]>;
3563
+ /** Arbitrary metadata to record for this chat. This can be later used to filter the list of chats by metadata. */
3564
+ metadata?: Record<string, string | string[]>;
3565
+ };
3566
+ type GetOrCreateChatPair = DefineCmd<"get-or-create-chat", {
3567
+ id: ChatId;
3568
+ options?: CreateChatOptions;
3565
3569
  }, {
3566
3570
  chat: AiChat;
3567
3571
  }>;
@@ -3595,10 +3599,10 @@ type AiGenerationOptions = {
3595
3599
  * dashboard.
3596
3600
  */
3597
3601
  copilotId?: CopilotId;
3598
- stream: boolean;
3599
- tools?: AiToolDefinition[];
3602
+ stream?: boolean;
3603
+ tools?: AiToolDefinition$1[];
3600
3604
  knowledge?: AiKnowledgeSource[];
3601
- timeout: number;
3605
+ timeout?: number;
3602
3606
  };
3603
3607
  type AskInChatPair = DefineCmd<"ask-in-chat", {
3604
3608
  chatId: ChatId;
@@ -3633,6 +3637,19 @@ type AbortAiPair = DefineCmd<"abort-ai", {
3633
3637
  }, {
3634
3638
  ok: true;
3635
3639
  }>;
3640
+ type SetToolResultPair = DefineCmd<"set-tool-result", {
3641
+ chatId: ChatId;
3642
+ messageId: MessageId;
3643
+ toolCallId: string;
3644
+ result: Json;
3645
+ clientId: ClientId;
3646
+ generationOptions: AiGenerationOptions;
3647
+ }, {
3648
+ ok: true;
3649
+ message: AiChatMessage;
3650
+ } | {
3651
+ ok: false;
3652
+ }>;
3636
3653
  type ServerEvent = RebootedEvent | CmdFailedEvent | ErrorServerEvent | SyncServerEvent | DeltaServerEvent | SettleServerEvent;
3637
3654
  type RebootedEvent = {
3638
3655
  event: "rebooted";
@@ -3675,27 +3692,43 @@ type SettleServerEvent = {
3675
3692
  event: "settle";
3676
3693
  /** The client ID that originally made the request that led to this event */
3677
3694
  clientId: ClientId;
3678
- message: AiCompletedAssistantMessage | AiFailedAssistantMessage;
3695
+ message: AiAwaitingToolAssistantMessage | AiCompletedAssistantMessage | AiFailedAssistantMessage;
3679
3696
  };
3680
3697
  type AiChat = {
3681
3698
  id: ChatId;
3682
3699
  title: string;
3683
- ephemeral: boolean;
3684
3700
  metadata: Record<string, string | string[]>;
3685
3701
  createdAt: ISODateString;
3686
3702
  lastMessageAt?: ISODateString;
3687
3703
  deletedAt?: ISODateString;
3688
3704
  };
3689
- type AiToolDefinition = {
3705
+ type AiToolDefinition$1 = {
3690
3706
  name: string;
3691
3707
  description?: string;
3692
3708
  parameters: JsonObject;
3693
3709
  };
3694
- type AiToolCallPart = {
3695
- type: "tool-call";
3710
+ type AiToolInvocationPart = Relax<AiReceivingToolInvocationPart | AiExecutingToolInvocationPart | AiExecutedToolInvocationPart>;
3711
+ type AiReceivingToolInvocationPart = {
3712
+ type: "tool-invocation";
3713
+ status: "receiving";
3696
3714
  toolCallId: string;
3697
3715
  toolName: string;
3698
- args: unknown;
3716
+ partialArgs: Json;
3717
+ };
3718
+ type AiExecutingToolInvocationPart = {
3719
+ type: "tool-invocation";
3720
+ status: "executing";
3721
+ toolCallId: string;
3722
+ toolName: string;
3723
+ args: JsonObject;
3724
+ };
3725
+ type AiExecutedToolInvocationPart = {
3726
+ type: "tool-invocation";
3727
+ status: "executed";
3728
+ toolCallId: string;
3729
+ toolName: string;
3730
+ args: JsonObject;
3731
+ result: Json;
3699
3732
  };
3700
3733
  type AiTextPart = {
3701
3734
  type: "text";
@@ -3715,7 +3748,6 @@ type AiReasoningDelta = Relax<{
3715
3748
  type AiReasoningPart = {
3716
3749
  type: "reasoning";
3717
3750
  text: string;
3718
- signature?: string;
3719
3751
  };
3720
3752
  type AiUploadedImagePart = {
3721
3753
  type: "image";
@@ -3725,8 +3757,8 @@ type AiUploadedImagePart = {
3725
3757
  mimeType: string;
3726
3758
  };
3727
3759
  type AiUserContentPart = AiTextPart | AiUploadedImagePart;
3728
- type AiAssistantContentPart = AiReasoningPart | AiTextPart | AiToolCallPart;
3729
- type AiAssistantDeltaUpdate = AiAssistantContentPart | AiTextDelta | AiReasoningDelta;
3760
+ type AiAssistantContentPart = AiReasoningPart | AiTextPart | AiToolInvocationPart;
3761
+ type AiAssistantDeltaUpdate = AiTextDelta | AiReasoningDelta | AiExecutingToolInvocationPart;
3730
3762
  type AiUserMessage = {
3731
3763
  id: MessageId;
3732
3764
  chatId: ChatId;
@@ -3736,37 +3768,47 @@ type AiUserMessage = {
3736
3768
  createdAt: ISODateString;
3737
3769
  deletedAt?: ISODateString;
3738
3770
  };
3739
- type AiAssistantMessage = Relax<AiCompletedAssistantMessage | AiPendingAssistantMessage | AiFailedAssistantMessage>;
3740
- type AiCompletedAssistantMessage = {
3771
+ type AiAssistantMessage = Relax<AiGeneratingAssistantMessage | AiAwaitingToolAssistantMessage | AiCompletedAssistantMessage | AiFailedAssistantMessage>;
3772
+ type AiGeneratingAssistantMessage = {
3741
3773
  id: MessageId;
3742
3774
  chatId: ChatId;
3743
3775
  parentId: MessageId | null;
3744
3776
  role: "assistant";
3745
- content: AiAssistantContentPart[];
3746
3777
  createdAt: ISODateString;
3747
3778
  deletedAt?: ISODateString;
3748
- status: "completed";
3779
+ status: "generating";
3780
+ contentSoFar: AiAssistantContentPart[];
3749
3781
  };
3750
- type AiFailedAssistantMessage = {
3782
+ type AiAwaitingToolAssistantMessage = {
3751
3783
  id: MessageId;
3752
3784
  chatId: ChatId;
3753
3785
  parentId: MessageId | null;
3754
3786
  role: "assistant";
3755
3787
  createdAt: ISODateString;
3756
3788
  deletedAt?: ISODateString;
3757
- status: "failed";
3789
+ status: "awaiting-tool";
3758
3790
  contentSoFar: AiAssistantContentPart[];
3759
- errorReason: string;
3760
3791
  };
3761
- type AiPendingAssistantMessage = {
3792
+ type AiCompletedAssistantMessage = {
3762
3793
  id: MessageId;
3763
3794
  chatId: ChatId;
3764
3795
  parentId: MessageId | null;
3765
3796
  role: "assistant";
3797
+ content: AiAssistantContentPart[];
3766
3798
  createdAt: ISODateString;
3767
3799
  deletedAt?: ISODateString;
3768
- status: "pending";
3800
+ status: "completed";
3801
+ };
3802
+ type AiFailedAssistantMessage = {
3803
+ id: MessageId;
3804
+ chatId: ChatId;
3805
+ parentId: MessageId | null;
3806
+ role: "assistant";
3807
+ createdAt: ISODateString;
3808
+ deletedAt?: ISODateString;
3809
+ status: "failed";
3769
3810
  contentSoFar: AiAssistantContentPart[];
3811
+ errorReason: string;
3770
3812
  };
3771
3813
  type AiChatMessage = AiUserMessage | AiAssistantMessage;
3772
3814
  type AiKnowledgeSource = {
@@ -3774,25 +3816,62 @@ type AiKnowledgeSource = {
3774
3816
  value: Json;
3775
3817
  };
3776
3818
 
3777
- type ClientToolDefinition = {
3819
+ type AiToolDefinitionRenderProps = Resolve<DistributiveOmit<AiToolInvocationPart, "type"> & {
3820
+ respond: (result: Json) => void;
3821
+ }>;
3822
+ type AiToolDefinition = {
3778
3823
  description?: string;
3779
3824
  parameters: JSONSchema4;
3780
- render: ComponentType<{
3781
- args: any;
3782
- }>;
3783
- execute?: never;
3825
+ execute?: (args: JsonObject) => Awaitable<Json>;
3826
+ render?: ComponentType<AiToolDefinitionRenderProps>;
3784
3827
  };
3785
3828
  type UiChatMessage = AiChatMessage & {
3786
- prev: MessageId | null;
3787
- next: MessageId | null;
3829
+ navigation: {
3830
+ /**
3831
+ * The message ID of the parent message, or null if there is no parent.
3832
+ */
3833
+ parent: MessageId | null;
3834
+ /**
3835
+ * The message ID of the left sibling message, or null if there is no left sibling.
3836
+ */
3837
+ prev: MessageId | null;
3838
+ /**
3839
+ * The message ID of the right sibling message, or null if there is no right sibling.
3840
+ */
3841
+ next: MessageId | null;
3842
+ };
3788
3843
  };
3789
3844
  type UiUserMessage = AiUserMessage & {
3790
- prev: MessageId | null;
3791
- next: MessageId | null;
3845
+ navigation: {
3846
+ /**
3847
+ * The message ID of the parent message, or null if there is no parent.
3848
+ */
3849
+ parent: MessageId | null;
3850
+ /**
3851
+ * The message ID of the left sibling message, or null if there is no left sibling.
3852
+ */
3853
+ prev: MessageId | null;
3854
+ /**
3855
+ * The message ID of the right sibling message, or null if there is no right sibling.
3856
+ */
3857
+ next: MessageId | null;
3858
+ };
3792
3859
  };
3793
3860
  type UiAssistantMessage = AiAssistantMessage & {
3794
- prev: MessageId | null;
3795
- next: MessageId | null;
3861
+ navigation: {
3862
+ /**
3863
+ * The message ID of the parent message, or null if there is no parent.
3864
+ */
3865
+ parent: MessageId | null;
3866
+ /**
3867
+ * The message ID of the left sibling message, or null if there is no left sibling.
3868
+ */
3869
+ prev: MessageId | null;
3870
+ /**
3871
+ * The message ID of the right sibling message, or null if there is no right sibling.
3872
+ */
3873
+ next: MessageId | null;
3874
+ };
3796
3875
  };
3797
3876
  type AiContext = {
3798
3877
  staticSessionInfoSig: Signal<StaticSessionInfo | null>;
@@ -3804,31 +3883,30 @@ type AiContext = {
3804
3883
  chatsStore: ReturnType<typeof createStore_forUserAiChats>;
3805
3884
  toolsStore: ReturnType<typeof createStore_forTools>;
3806
3885
  messagesStore: ReturnType<typeof createStore_forChatMessages>;
3807
- knowledgeByChatId: Map<string, Set<AiKnowledgeSource>>;
3808
- };
3809
- type CreateChatOptions = {
3810
- ephemeral?: boolean;
3811
- metadata?: AiChat["metadata"];
3812
- };
3813
- type AskAiOptions = {
3814
- copilotId?: CopilotId;
3815
- stream?: boolean;
3816
- timeout?: number;
3886
+ knowledge: KnowledgeStack;
3817
3887
  };
3888
+ type LayerKey = Brand<string, "LayerKey">;
3889
+ declare class KnowledgeStack {
3890
+ #private;
3891
+ constructor();
3892
+ registerLayer(uniqueLayerId: string): LayerKey;
3893
+ deregisterLayer(layerKey: LayerKey): void;
3894
+ get(): AiKnowledgeSource[];
3895
+ invalidate(): void;
3896
+ updateKnowledge(layerKey: LayerKey, key: string, data: AiKnowledgeSource | null): void;
3897
+ }
3818
3898
  declare function createStore_forTools(): {
3819
- getToolCallByNameΣ: (chatId: string, toolName: string) => Signal<ClientToolDefinition | undefined>;
3899
+ getToolDefinitionΣ: (chatId: string, toolName: string) => Signal<AiToolDefinition | undefined>;
3820
3900
  getToolsForChat: (chatId: string) => {
3821
3901
  name: string;
3822
- definition: ClientToolDefinition;
3902
+ definition: AiToolDefinition;
3823
3903
  }[];
3824
- addToolDefinition: (chatId: string, name: string, definition: ClientToolDefinition) => void;
3904
+ addToolDefinition: (chatId: string, name: string, definition: AiToolDefinition) => void;
3825
3905
  removeToolDefinition: (chatId: string, toolName: string) => void;
3826
3906
  };
3827
- declare function createStore_forChatMessages(): {
3907
+ declare function createStore_forChatMessages(toolsStore: ReturnType<typeof createStore_forTools>, setToolResult: (chatId: string, messageId: MessageId, toolCallId: string, result: Json, options?: AiGenerationOptions) => Promise<AskInChatResponse>): {
3828
3908
  getMessageById: (messageId: MessageId) => AiChatMessage | undefined;
3829
3909
  getChatMessagesForBranchΣ: (chatId: string, branch?: MessageId) => DerivedSignal<UiChatMessage[]>;
3830
- getMessagesForChatΣ: (chatId: string) => DerivedSignal<AiChatMessage[]>;
3831
- getLatestUserMessageAncestor: (chatId: string, messageId: MessageId) => MessageId | null;
3832
3910
  createOptimistically: {
3833
3911
  (chatId: string, role: "user", parentId: MessageId | null, content: AiUserContentPart[]): MessageId;
3834
3912
  (chatId: string, role: "assistant", parentId: MessageId | null): MessageId;
@@ -3842,6 +3920,7 @@ declare function createStore_forChatMessages(): {
3842
3920
  };
3843
3921
  declare function createStore_forUserAiChats(): {
3844
3922
  chatsΣ: DerivedSignal<AiChat[]>;
3923
+ getChatById: (chatId: string) => AiChat | undefined;
3845
3924
  upsert: (chat: AiChat) => void;
3846
3925
  upsertMany: (chats: AiChat[]) => void;
3847
3926
  remove: (chatId: string) => void;
@@ -3849,7 +3928,7 @@ declare function createStore_forUserAiChats(): {
3849
3928
  /** @private This AI will change, and is not considered stable. DO NOT RELY on it. */
3850
3929
  type Ai = {
3851
3930
  [kInternal]: {
3852
- debugContext: () => AiContext;
3931
+ context: AiContext;
3853
3932
  };
3854
3933
  connect: () => void;
3855
3934
  reconnect: () => void;
@@ -3860,11 +3939,9 @@ type Ai = {
3860
3939
  cursor?: Cursor;
3861
3940
  }) => Promise<GetChatsResponse>;
3862
3941
  /** @private This AI will change, and is not considered stable. DO NOT RELY on it. */
3863
- createChat: (
3942
+ getOrCreateChat: (
3864
3943
  /** A unique identifier for the chat. */
3865
- chatId: string,
3866
- /** A human-friendly title for the chat. If not set, it will get auto-generated after the first response. */
3867
- title?: string, options?: CreateChatOptions) => Promise<CreateChatResponse>;
3944
+ chatId: string, options?: CreateChatOptions) => Promise<GetOrCreateChatResponse>;
3868
3945
  /** @private This AI will change, and is not considered stable. DO NOT RELY on it. */
3869
3946
  deleteChat: (chatId: string) => Promise<DeleteChatResponse>;
3870
3947
  /** @private This AI will change, and is not considered stable. DO NOT RELY on it. */
@@ -3874,22 +3951,32 @@ type Ai = {
3874
3951
  /** @private This AI will change, and is not considered stable. DO NOT RELY on it. */
3875
3952
  clearChat: (chatId: string) => Promise<ClearChatResponse>;
3876
3953
  /** @private This AI will change, and is not considered stable. DO NOT RELY on it. */
3877
- regenerateMessage: (chatId: string, messageId: MessageId, options?: AskAiOptions) => Promise<AskInChatResponse>;
3878
- /** @private This AI will change, and is not considered stable. DO NOT RELY on it. */
3879
- addUserMessageAndAsk: (chatId: string, parentMessageId: MessageId | null, message: string, options?: AskAiOptions) => Promise<AskInChatResponse>;
3954
+ askUserMessageInChat: (chatId: string, userMessage: MessageId | {
3955
+ id: MessageId;
3956
+ parentMessageId: MessageId | null;
3957
+ content: AiUserContentPart[];
3958
+ }, targetMessageId: MessageId, options?: AiGenerationOptions) => Promise<AskInChatResponse>;
3880
3959
  /** @private This AI will change, and is not considered stable. DO NOT RELY on it. */
3881
3960
  abort: (messageId: MessageId) => Promise<AbortAiResponse>;
3882
3961
  /** @private This AI will change, and is not considered stable. DO NOT RELY on it. */
3962
+ setToolResult: (chatId: string, messageId: MessageId, toolCallId: string, result: Json, options?: AiGenerationOptions) => Promise<AskInChatResponse>;
3963
+ /** @private This AI will change, and is not considered stable. DO NOT RELY on it. */
3883
3964
  signals: {
3884
3965
  chatsΣ: DerivedSignal<AiChat[]>;
3885
3966
  getChatMessagesForBranchΣ(chatId: string, branch?: MessageId): DerivedSignal<UiChatMessage[]>;
3886
- getMessagesForChatΣ(chatId: string): DerivedSignal<AiChatMessage[]>;
3887
- getToolDefinitionΣ(chatId: string, toolName: string): Signal<ClientToolDefinition | undefined>;
3967
+ getChatById: (chatId: string) => AiChat | undefined;
3968
+ getToolDefinitionΣ(chatId: string, toolName: string): Signal<AiToolDefinition | undefined>;
3888
3969
  };
3889
3970
  /** @private This AI will change, and is not considered stable. DO NOT RELY on it. */
3890
- registerKnowledgeSource: (chatId: string, data: AiKnowledgeSource) => () => void;
3971
+ registerKnowledgeLayer: (uniqueLayerId: string) => LayerKey;
3972
+ /** @private This AI will change, and is not considered stable. DO NOT RELY on it. */
3973
+ deregisterKnowledgeLayer: (layerKey: LayerKey) => void;
3974
+ /** @private This AI will change, and is not considered stable. DO NOT RELY on it. */
3975
+ updateKnowledge: (layerKey: LayerKey, data: AiKnowledgeSource, key?: string) => void;
3976
+ /** @private This AI will change, and is not considered stable. DO NOT RELY on it. */
3977
+ debug_getAllKnowledge(): AiKnowledgeSource[];
3891
3978
  /** @private This AI will change, and is not considered stable. DO NOT RELY on it. */
3892
- registerChatTool: (chatId: string, name: string, definition: ClientToolDefinition) => void;
3979
+ registerChatTool: (chatId: string, name: string, definition: AiToolDefinition) => void;
3893
3980
  /** @private This AI will change, and is not considered stable. DO NOT RELY on it. */
3894
3981
  unregisterChatTool: (chatId: string, toolName: string) => void;
3895
3982
  };
@@ -4682,4 +4769,4 @@ declare const CommentsApiError: typeof HttpError;
4682
4769
  /** @deprecated Use HttpError instead. */
4683
4770
  declare const NotificationsApiError: typeof HttpError;
4684
4771
 
4685
- export { type AckOp, type ActivityData, type AiAssistantContentPart, type AiChat, type AiKnowledgeSource, type AsyncError, type AsyncLoading, type AsyncResult, type AsyncSuccess, type Awaitable, type BaseActivitiesData, type BaseAuthResult, type BaseMetadata, type BaseRoomInfo, type BaseUserMeta, type Brand, type BroadcastEventClientMsg, type BroadcastOptions, type BroadcastedEventServerMsg, type Client, type ClientMsg, ClientMsgCode, type ClientOptions, type ClientToolDefinition, type CommentAttachment, type CommentBody, type CommentBodyBlockElement, type CommentBodyElement, type CommentBodyInlineElement, type CommentBodyLink, type CommentBodyLinkElementArgs, type CommentBodyMention, type CommentBodyMentionElementArgs, type CommentBodyParagraph, type CommentBodyParagraphElementArgs, type CommentBodyText, type CommentBodyTextElementArgs, type CommentData, type CommentDataPlain, type CommentLocalAttachment, type CommentMixedAttachment, type CommentReaction, type CommentUserReaction, type CommentUserReactionPlain, CommentsApiError, type CommentsEventServerMsg, type ContextualPromptContext, type ContextualPromptResponse, type CopilotId, CrdtType, type CreateListOp, type CreateManagedPoolOptions, type CreateMapOp, type CreateObjectOp, type CreateOp, type CreateRegisterOp, type Cursor, type CustomAuthenticationResult, type DAD, type DE, type DM, type DP, type DRI, type DS, type DU, DefaultMap, type Delegates, type DeleteCrdtOp, type DeleteObjectKeyOp, Deque, DerivedSignal, DevToolsTreeNode as DevTools, protocol as DevToolsMsg, type DistributiveOmit, type EnsureJson, type EnterOptions, type EventSource, type FetchStorageClientMsg, type FetchYDocClientMsg, type GetThreadsOptions, type History, type HistoryVersion, HttpError, type ISignal, type IUserInfo, type IWebSocket, type IWebSocketCloseEvent, type IWebSocketEvent, type IWebSocketInstance, type IWebSocketMessageEvent, type IYjsProvider, type IdTuple, type Immutable, type InboxNotificationCustomData, type InboxNotificationCustomDataPlain, type InboxNotificationData, type InboxNotificationDataPlain, type InboxNotificationDeleteInfo, type InboxNotificationTextMentionData, type InboxNotificationTextMentionDataPlain, type InboxNotificationThreadData, type InboxNotificationThreadDataPlain, type InitialDocumentStateServerMsg, type Json, type JsonArray, type JsonObject, type JsonScalar, type KDAD, type LargeMessageStrategy, LiveList, type LiveListUpdate, LiveMap, type LiveMapUpdate, type LiveNode, LiveObject, type LiveObjectUpdate, type LiveStructure, LiveblocksError, type LiveblocksErrorContext, type LostConnectionEvent, type Lson, type LsonObject, type ManagedPool, type MessageId, MutableSignal, type NoInfr, type NodeMap, type NotificationChannel, type NotificationChannelSettings, type NotificationKind, type NotificationSettings, type NotificationSettingsPlain, NotificationsApiError, type Observable, type Op, OpCode, type OpaqueClient, type OpaqueRoom, type OptionalTupleUnless, type OthersEvent, type ParentToChildNodeMap, type PartialNotificationSettings, type PartialUnless, type Patchable, Permission, type PlainLson, type PlainLsonFields, type PlainLsonList, type PlainLsonMap, type PlainLsonObject, type Poller, type PrivateClientApi, type PrivateRoomApi, Promise_withResolvers, type QueryMetadata, type QueryParams, type RejectedStorageOpServerMsg, type Relax, type Resolve, type ResolveMentionSuggestionsArgs, type ResolveRoomsInfoArgs, type ResolveUsersArgs, type Room, type RoomEventMessage, type RoomNotificationSettings, type RoomStateServerMsg, type RoomSubscriptionSettings, type SerializedChild, type SerializedCrdt, type SerializedList, type SerializedMap, type SerializedObject, type SerializedRegister, type SerializedRootObject, type ServerMsg, ServerMsgCode, type SetParentKeyOp, Signal, type SignalType, SortedList, type Status, type StorageStatus, type StorageUpdate, type StringifyCommentBodyElements, type StringifyCommentBodyOptions, type SubscriptionData, type SubscriptionDataPlain, type SubscriptionDeleteInfo, type SubscriptionDeleteInfoPlain, type SubscriptionKey, type SyncSource, type SyncStatus, TextEditorType, type ThreadData, type ThreadDataPlain, type ThreadDataWithDeleteInfo, type ThreadDeleteInfo, type ToImmutable, type ToJson, type URLSafeString, type UiAssistantMessage, type UiChatMessage, type UiUserMessage, type UnsubscribeCallback, type UpdateObjectOp, type UpdatePresenceClientMsg, type UpdatePresenceServerMsg, type UpdateStorageClientMsg, type UpdateStorageServerMsg, type UpdateYDocClientMsg, type UploadAttachmentOptions, type User, type UserJoinServerMsg, type UserLeftServerMsg, type UserNotificationSettings, type UserRoomSubscriptionSettings, type UserSubscriptionData, type UserSubscriptionDataPlain, WebsocketCloseCodes, type YDocUpdateServerMsg, type YjsSyncStatus, ackOp, asPos, assert, assertNever, autoRetry, b64decode, batch, checkBounds, chunk, cloneLson, compactObject, fancyConsole as console, convertToCommentData, convertToCommentUserReaction, convertToInboxNotificationData, convertToSubscriptionData, convertToThreadData, convertToUserSubscriptionData, createClient, createCommentAttachmentId, createCommentId, createInboxNotificationId, createManagedPool, createNotificationSettings, createThreadId, deprecate, deprecateIf, detectDupes, entries, errorIf, freeze, generateCommentUrl, getMentionedIdsFromCommentBody, getSubscriptionKey, html, htmlSafe, isChildCrdt, isCommentBodyLink, isCommentBodyMention, isCommentBodyText, isJsonArray, isJsonObject, isJsonScalar, isLiveNode, isNotificationChannelEnabled, isPlainObject, isRootCrdt, isStartsWithOperator, kInternal, keys, legacy_patchImmutableObject, lsonToJson, makeAbortController, makeEventSource, makePoller, makePosition, mapValues, memoizeOnSuccess, nanoid, nn, objectToQuery, patchLiveObjectKey, patchNotificationSettings, raise, resolveUsersInCommentBody, shallow, shallow2, stableStringify, stringifyCommentBody, throwUsageError, toAbsoluteUrl, toPlainLson, tryParseJson, url, urljoin, wait, withTimeout };
4772
+ export { type AckOp, type ActivityData, type AiAssistantContentPart, type AiChat, type AiKnowledgeSource, type AiToolDefinition, type AiToolDefinitionRenderProps, type AiToolInvocationPart, type AsyncError, type AsyncLoading, type AsyncResult, type AsyncSuccess, type Awaitable, type BaseActivitiesData, type BaseAuthResult, type BaseMetadata, type BaseRoomInfo, type BaseUserMeta, type Brand, type BroadcastEventClientMsg, type BroadcastOptions, type BroadcastedEventServerMsg, type Client, type ClientMsg, ClientMsgCode, type ClientOptions, type CommentAttachment, type CommentBody, type CommentBodyBlockElement, type CommentBodyElement, type CommentBodyInlineElement, type CommentBodyLink, type CommentBodyLinkElementArgs, type CommentBodyMention, type CommentBodyMentionElementArgs, type CommentBodyParagraph, type CommentBodyParagraphElementArgs, type CommentBodyText, type CommentBodyTextElementArgs, type CommentData, type CommentDataPlain, type CommentLocalAttachment, type CommentMixedAttachment, type CommentReaction, type CommentUserReaction, type CommentUserReactionPlain, CommentsApiError, type CommentsEventServerMsg, type ContextualPromptContext, type ContextualPromptResponse, type CopilotId, CrdtType, type CreateListOp, type CreateManagedPoolOptions, type CreateMapOp, type CreateObjectOp, type CreateOp, type CreateRegisterOp, type Cursor, type CustomAuthenticationResult, type DAD, type DE, type DM, type DP, type DRI, type DS, type DU, DefaultMap, type Delegates, type DeleteCrdtOp, type DeleteObjectKeyOp, Deque, DerivedSignal, DevToolsTreeNode as DevTools, protocol as DevToolsMsg, type DistributiveOmit, type EnsureJson, type EnterOptions, type EventSource, type FetchStorageClientMsg, type FetchYDocClientMsg, type GetThreadsOptions, type History, type HistoryVersion, HttpError, type ISignal, type IUserInfo, type IWebSocket, type IWebSocketCloseEvent, type IWebSocketEvent, type IWebSocketInstance, type IWebSocketMessageEvent, type IYjsProvider, type IdTuple, type Immutable, type InboxNotificationCustomData, type InboxNotificationCustomDataPlain, type InboxNotificationData, type InboxNotificationDataPlain, type InboxNotificationDeleteInfo, type InboxNotificationTextMentionData, type InboxNotificationTextMentionDataPlain, type InboxNotificationThreadData, type InboxNotificationThreadDataPlain, type InitialDocumentStateServerMsg, type Json, type JsonArray, type JsonObject, type JsonScalar, type KDAD, type LargeMessageStrategy, LiveList, type LiveListUpdate, LiveMap, type LiveMapUpdate, type LiveNode, LiveObject, type LiveObjectUpdate, type LiveStructure, LiveblocksError, type LiveblocksErrorContext, type LostConnectionEvent, type Lson, type LsonObject, type ManagedPool, type MessageId, MutableSignal, type NoInfr, type NodeMap, type NotificationChannel, type NotificationChannelSettings, type NotificationKind, type NotificationSettings, type NotificationSettingsPlain, NotificationsApiError, type Observable, type Op, OpCode, type OpaqueClient, type OpaqueRoom, type OptionalTupleUnless, type OthersEvent, type ParentToChildNodeMap, type PartialNotificationSettings, type PartialUnless, type Patchable, Permission, type PlainLson, type PlainLsonFields, type PlainLsonList, type PlainLsonMap, type PlainLsonObject, type Poller, type PrivateClientApi, type PrivateRoomApi, Promise_withResolvers, type QueryMetadata, type QueryParams, type RejectedStorageOpServerMsg, type Relax, type Resolve, type ResolveMentionSuggestionsArgs, type ResolveRoomsInfoArgs, type ResolveUsersArgs, type Room, type RoomEventMessage, type RoomNotificationSettings, type RoomStateServerMsg, type RoomSubscriptionSettings, type SerializedChild, type SerializedCrdt, type SerializedList, type SerializedMap, type SerializedObject, type SerializedRegister, type SerializedRootObject, type ServerMsg, ServerMsgCode, type SetParentKeyOp, Signal, type SignalType, SortedList, type Status, type StorageStatus, type StorageUpdate, type StringifyCommentBodyElements, type StringifyCommentBodyOptions, type SubscriptionData, type SubscriptionDataPlain, type SubscriptionDeleteInfo, type SubscriptionDeleteInfoPlain, type SubscriptionKey, type SyncSource, type SyncStatus, TextEditorType, type ThreadData, type ThreadDataPlain, type ThreadDataWithDeleteInfo, type ThreadDeleteInfo, type ToImmutable, type ToJson, type URLSafeString, type UiAssistantMessage, type UiChatMessage, type UiUserMessage, type UnsubscribeCallback, type UpdateObjectOp, type UpdatePresenceClientMsg, type UpdatePresenceServerMsg, type UpdateStorageClientMsg, type UpdateStorageServerMsg, type UpdateYDocClientMsg, type UploadAttachmentOptions, type User, type UserJoinServerMsg, type UserLeftServerMsg, type UserNotificationSettings, type UserRoomSubscriptionSettings, type UserSubscriptionData, type UserSubscriptionDataPlain, WebsocketCloseCodes, type YDocUpdateServerMsg, type YjsSyncStatus, ackOp, asPos, assert, assertNever, autoRetry, b64decode, batch, checkBounds, chunk, cloneLson, compactObject, fancyConsole as console, convertToCommentData, convertToCommentUserReaction, convertToInboxNotificationData, convertToSubscriptionData, convertToThreadData, convertToUserSubscriptionData, createClient, createCommentAttachmentId, createCommentId, createInboxNotificationId, createManagedPool, createNotificationSettings, createThreadId, deprecate, deprecateIf, detectDupes, entries, errorIf, freeze, generateCommentUrl, getMentionedIdsFromCommentBody, getSubscriptionKey, html, htmlSafe, isChildCrdt, isCommentBodyLink, isCommentBodyMention, isCommentBodyText, isJsonArray, isJsonObject, isJsonScalar, isLiveNode, isNotificationChannelEnabled, isPlainObject, isRootCrdt, isStartsWithOperator, kInternal, keys, legacy_patchImmutableObject, lsonToJson, makeAbortController, makeEventSource, makePoller, makePosition, mapValues, memoizeOnSuccess, nanoid, nn, objectToQuery, patchLiveObjectKey, patchNotificationSettings, raise, resolveUsersInCommentBody, shallow, shallow2, stableStringify, stringifyCommentBody, throwUsageError, toAbsoluteUrl, toPlainLson, tryParseJson, url, urljoin, wait, withTimeout };