@liveblocks/core 2.25.0-aiprivatebeta7 → 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.cjs +189 -133
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +146 -56
- package/dist/index.d.ts +146 -56
- package/dist/index.js +185 -129
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -3540,7 +3540,7 @@ type DefineCmd<CmdName extends string, TRequest, TResponse> = [
|
|
|
3540
3540
|
cmdId: CmdId;
|
|
3541
3541
|
} & TResponse>
|
|
3542
3542
|
];
|
|
3543
|
-
type CommandPair = GetChatsPair | GetOrCreateChatPair | 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
3546
|
type GetOrCreateChatResponse = ServerCmdResponse<GetOrCreateChatPair>;
|
|
@@ -3558,7 +3558,9 @@ type GetChatsPair = DefineCmd<"get-chats", {
|
|
|
3558
3558
|
nextCursor: Cursor | null;
|
|
3559
3559
|
}>;
|
|
3560
3560
|
type CreateChatOptions = {
|
|
3561
|
+
/** A human-friendly title for the chat. If not set, it will get auto-generated after the first response. */
|
|
3561
3562
|
title?: string;
|
|
3563
|
+
/** Arbitrary metadata to record for this chat. This can be later used to filter the list of chats by metadata. */
|
|
3562
3564
|
metadata?: Record<string, string | string[]>;
|
|
3563
3565
|
};
|
|
3564
3566
|
type GetOrCreateChatPair = DefineCmd<"get-or-create-chat", {
|
|
@@ -3597,10 +3599,10 @@ type AiGenerationOptions = {
|
|
|
3597
3599
|
* dashboard.
|
|
3598
3600
|
*/
|
|
3599
3601
|
copilotId?: CopilotId;
|
|
3600
|
-
stream
|
|
3601
|
-
tools?: AiToolDefinition[];
|
|
3602
|
+
stream?: boolean;
|
|
3603
|
+
tools?: AiToolDefinition$1[];
|
|
3602
3604
|
knowledge?: AiKnowledgeSource[];
|
|
3603
|
-
timeout
|
|
3605
|
+
timeout?: number;
|
|
3604
3606
|
};
|
|
3605
3607
|
type AskInChatPair = DefineCmd<"ask-in-chat", {
|
|
3606
3608
|
chatId: ChatId;
|
|
@@ -3635,6 +3637,19 @@ type AbortAiPair = DefineCmd<"abort-ai", {
|
|
|
3635
3637
|
}, {
|
|
3636
3638
|
ok: true;
|
|
3637
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
|
+
}>;
|
|
3638
3653
|
type ServerEvent = RebootedEvent | CmdFailedEvent | ErrorServerEvent | SyncServerEvent | DeltaServerEvent | SettleServerEvent;
|
|
3639
3654
|
type RebootedEvent = {
|
|
3640
3655
|
event: "rebooted";
|
|
@@ -3677,7 +3692,7 @@ type SettleServerEvent = {
|
|
|
3677
3692
|
event: "settle";
|
|
3678
3693
|
/** The client ID that originally made the request that led to this event */
|
|
3679
3694
|
clientId: ClientId;
|
|
3680
|
-
message: AiCompletedAssistantMessage | AiFailedAssistantMessage;
|
|
3695
|
+
message: AiAwaitingToolAssistantMessage | AiCompletedAssistantMessage | AiFailedAssistantMessage;
|
|
3681
3696
|
};
|
|
3682
3697
|
type AiChat = {
|
|
3683
3698
|
id: ChatId;
|
|
@@ -3687,16 +3702,33 @@ type AiChat = {
|
|
|
3687
3702
|
lastMessageAt?: ISODateString;
|
|
3688
3703
|
deletedAt?: ISODateString;
|
|
3689
3704
|
};
|
|
3690
|
-
type AiToolDefinition = {
|
|
3705
|
+
type AiToolDefinition$1 = {
|
|
3691
3706
|
name: string;
|
|
3692
3707
|
description?: string;
|
|
3693
3708
|
parameters: JsonObject;
|
|
3694
3709
|
};
|
|
3695
|
-
type
|
|
3696
|
-
|
|
3710
|
+
type AiToolInvocationPart = Relax<AiReceivingToolInvocationPart | AiExecutingToolInvocationPart | AiExecutedToolInvocationPart>;
|
|
3711
|
+
type AiReceivingToolInvocationPart = {
|
|
3712
|
+
type: "tool-invocation";
|
|
3713
|
+
status: "receiving";
|
|
3714
|
+
toolCallId: string;
|
|
3715
|
+
toolName: string;
|
|
3716
|
+
partialArgs: Json;
|
|
3717
|
+
};
|
|
3718
|
+
type AiExecutingToolInvocationPart = {
|
|
3719
|
+
type: "tool-invocation";
|
|
3720
|
+
status: "executing";
|
|
3697
3721
|
toolCallId: string;
|
|
3698
3722
|
toolName: string;
|
|
3699
|
-
args:
|
|
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;
|
|
3700
3732
|
};
|
|
3701
3733
|
type AiTextPart = {
|
|
3702
3734
|
type: "text";
|
|
@@ -3716,7 +3748,6 @@ type AiReasoningDelta = Relax<{
|
|
|
3716
3748
|
type AiReasoningPart = {
|
|
3717
3749
|
type: "reasoning";
|
|
3718
3750
|
text: string;
|
|
3719
|
-
signature?: string;
|
|
3720
3751
|
};
|
|
3721
3752
|
type AiUploadedImagePart = {
|
|
3722
3753
|
type: "image";
|
|
@@ -3726,8 +3757,8 @@ type AiUploadedImagePart = {
|
|
|
3726
3757
|
mimeType: string;
|
|
3727
3758
|
};
|
|
3728
3759
|
type AiUserContentPart = AiTextPart | AiUploadedImagePart;
|
|
3729
|
-
type AiAssistantContentPart = AiReasoningPart | AiTextPart |
|
|
3730
|
-
type AiAssistantDeltaUpdate =
|
|
3760
|
+
type AiAssistantContentPart = AiReasoningPart | AiTextPart | AiToolInvocationPart;
|
|
3761
|
+
type AiAssistantDeltaUpdate = AiTextDelta | AiReasoningDelta | AiExecutingToolInvocationPart;
|
|
3731
3762
|
type AiUserMessage = {
|
|
3732
3763
|
id: MessageId;
|
|
3733
3764
|
chatId: ChatId;
|
|
@@ -3737,37 +3768,47 @@ type AiUserMessage = {
|
|
|
3737
3768
|
createdAt: ISODateString;
|
|
3738
3769
|
deletedAt?: ISODateString;
|
|
3739
3770
|
};
|
|
3740
|
-
type AiAssistantMessage = Relax<
|
|
3741
|
-
type
|
|
3771
|
+
type AiAssistantMessage = Relax<AiGeneratingAssistantMessage | AiAwaitingToolAssistantMessage | AiCompletedAssistantMessage | AiFailedAssistantMessage>;
|
|
3772
|
+
type AiGeneratingAssistantMessage = {
|
|
3742
3773
|
id: MessageId;
|
|
3743
3774
|
chatId: ChatId;
|
|
3744
3775
|
parentId: MessageId | null;
|
|
3745
3776
|
role: "assistant";
|
|
3746
|
-
content: AiAssistantContentPart[];
|
|
3747
3777
|
createdAt: ISODateString;
|
|
3748
3778
|
deletedAt?: ISODateString;
|
|
3749
|
-
status: "
|
|
3779
|
+
status: "generating";
|
|
3780
|
+
contentSoFar: AiAssistantContentPart[];
|
|
3750
3781
|
};
|
|
3751
|
-
type
|
|
3782
|
+
type AiAwaitingToolAssistantMessage = {
|
|
3752
3783
|
id: MessageId;
|
|
3753
3784
|
chatId: ChatId;
|
|
3754
3785
|
parentId: MessageId | null;
|
|
3755
3786
|
role: "assistant";
|
|
3756
3787
|
createdAt: ISODateString;
|
|
3757
3788
|
deletedAt?: ISODateString;
|
|
3758
|
-
status: "
|
|
3789
|
+
status: "awaiting-tool";
|
|
3759
3790
|
contentSoFar: AiAssistantContentPart[];
|
|
3760
|
-
errorReason: string;
|
|
3761
3791
|
};
|
|
3762
|
-
type
|
|
3792
|
+
type AiCompletedAssistantMessage = {
|
|
3793
|
+
id: MessageId;
|
|
3794
|
+
chatId: ChatId;
|
|
3795
|
+
parentId: MessageId | null;
|
|
3796
|
+
role: "assistant";
|
|
3797
|
+
content: AiAssistantContentPart[];
|
|
3798
|
+
createdAt: ISODateString;
|
|
3799
|
+
deletedAt?: ISODateString;
|
|
3800
|
+
status: "completed";
|
|
3801
|
+
};
|
|
3802
|
+
type AiFailedAssistantMessage = {
|
|
3763
3803
|
id: MessageId;
|
|
3764
3804
|
chatId: ChatId;
|
|
3765
3805
|
parentId: MessageId | null;
|
|
3766
3806
|
role: "assistant";
|
|
3767
3807
|
createdAt: ISODateString;
|
|
3768
3808
|
deletedAt?: ISODateString;
|
|
3769
|
-
status: "
|
|
3809
|
+
status: "failed";
|
|
3770
3810
|
contentSoFar: AiAssistantContentPart[];
|
|
3811
|
+
errorReason: string;
|
|
3771
3812
|
};
|
|
3772
3813
|
type AiChatMessage = AiUserMessage | AiAssistantMessage;
|
|
3773
3814
|
type AiKnowledgeSource = {
|
|
@@ -3775,25 +3816,62 @@ type AiKnowledgeSource = {
|
|
|
3775
3816
|
value: Json;
|
|
3776
3817
|
};
|
|
3777
3818
|
|
|
3778
|
-
type
|
|
3819
|
+
type AiToolDefinitionRenderProps = Resolve<DistributiveOmit<AiToolInvocationPart, "type"> & {
|
|
3820
|
+
respond: (result: Json) => void;
|
|
3821
|
+
}>;
|
|
3822
|
+
type AiToolDefinition = {
|
|
3779
3823
|
description?: string;
|
|
3780
3824
|
parameters: JSONSchema4;
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
}>;
|
|
3784
|
-
execute?: never;
|
|
3825
|
+
execute?: (args: JsonObject) => Awaitable<Json>;
|
|
3826
|
+
render?: ComponentType<AiToolDefinitionRenderProps>;
|
|
3785
3827
|
};
|
|
3786
3828
|
type UiChatMessage = AiChatMessage & {
|
|
3787
|
-
|
|
3788
|
-
|
|
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
|
+
};
|
|
3789
3843
|
};
|
|
3790
3844
|
type UiUserMessage = AiUserMessage & {
|
|
3791
|
-
|
|
3792
|
-
|
|
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
|
+
};
|
|
3793
3859
|
};
|
|
3794
3860
|
type UiAssistantMessage = AiAssistantMessage & {
|
|
3795
|
-
|
|
3796
|
-
|
|
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
|
+
};
|
|
3797
3875
|
};
|
|
3798
3876
|
type AiContext = {
|
|
3799
3877
|
staticSessionInfoSig: Signal<StaticSessionInfo | null>;
|
|
@@ -3805,27 +3883,30 @@ type AiContext = {
|
|
|
3805
3883
|
chatsStore: ReturnType<typeof createStore_forUserAiChats>;
|
|
3806
3884
|
toolsStore: ReturnType<typeof createStore_forTools>;
|
|
3807
3885
|
messagesStore: ReturnType<typeof createStore_forChatMessages>;
|
|
3808
|
-
|
|
3809
|
-
};
|
|
3810
|
-
type AskAiOptions = {
|
|
3811
|
-
copilotId?: CopilotId;
|
|
3812
|
-
stream?: boolean;
|
|
3813
|
-
timeout?: number;
|
|
3886
|
+
knowledge: KnowledgeStack;
|
|
3814
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
|
+
}
|
|
3815
3898
|
declare function createStore_forTools(): {
|
|
3816
|
-
|
|
3899
|
+
getToolDefinitionΣ: (chatId: string, toolName: string) => Signal<AiToolDefinition | undefined>;
|
|
3817
3900
|
getToolsForChat: (chatId: string) => {
|
|
3818
3901
|
name: string;
|
|
3819
|
-
definition:
|
|
3902
|
+
definition: AiToolDefinition;
|
|
3820
3903
|
}[];
|
|
3821
|
-
addToolDefinition: (chatId: string, name: string, definition:
|
|
3904
|
+
addToolDefinition: (chatId: string, name: string, definition: AiToolDefinition) => void;
|
|
3822
3905
|
removeToolDefinition: (chatId: string, toolName: string) => void;
|
|
3823
3906
|
};
|
|
3824
|
-
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>): {
|
|
3825
3908
|
getMessageById: (messageId: MessageId) => AiChatMessage | undefined;
|
|
3826
3909
|
getChatMessagesForBranchΣ: (chatId: string, branch?: MessageId) => DerivedSignal<UiChatMessage[]>;
|
|
3827
|
-
getMessagesForChatΣ: (chatId: string) => DerivedSignal<AiChatMessage[]>;
|
|
3828
|
-
getLatestUserMessageAncestor: (chatId: string, messageId: MessageId) => MessageId | null;
|
|
3829
3910
|
createOptimistically: {
|
|
3830
3911
|
(chatId: string, role: "user", parentId: MessageId | null, content: AiUserContentPart[]): MessageId;
|
|
3831
3912
|
(chatId: string, role: "assistant", parentId: MessageId | null): MessageId;
|
|
@@ -3839,6 +3920,7 @@ declare function createStore_forChatMessages(): {
|
|
|
3839
3920
|
};
|
|
3840
3921
|
declare function createStore_forUserAiChats(): {
|
|
3841
3922
|
chatsΣ: DerivedSignal<AiChat[]>;
|
|
3923
|
+
getChatById: (chatId: string) => AiChat | undefined;
|
|
3842
3924
|
upsert: (chat: AiChat) => void;
|
|
3843
3925
|
upsertMany: (chats: AiChat[]) => void;
|
|
3844
3926
|
remove: (chatId: string) => void;
|
|
@@ -3846,7 +3928,7 @@ declare function createStore_forUserAiChats(): {
|
|
|
3846
3928
|
/** @private This AI will change, and is not considered stable. DO NOT RELY on it. */
|
|
3847
3929
|
type Ai = {
|
|
3848
3930
|
[kInternal]: {
|
|
3849
|
-
|
|
3931
|
+
context: AiContext;
|
|
3850
3932
|
};
|
|
3851
3933
|
connect: () => void;
|
|
3852
3934
|
reconnect: () => void;
|
|
@@ -3859,9 +3941,7 @@ type Ai = {
|
|
|
3859
3941
|
/** @private This AI will change, and is not considered stable. DO NOT RELY on it. */
|
|
3860
3942
|
getOrCreateChat: (
|
|
3861
3943
|
/** A unique identifier for the chat. */
|
|
3862
|
-
chatId: string,
|
|
3863
|
-
/** A human-friendly title for the chat. If not set, it will get auto-generated after the first response. */
|
|
3864
|
-
title?: string, options?: CreateChatOptions) => Promise<GetOrCreateChatResponse>;
|
|
3944
|
+
chatId: string, options?: CreateChatOptions) => Promise<GetOrCreateChatResponse>;
|
|
3865
3945
|
/** @private This AI will change, and is not considered stable. DO NOT RELY on it. */
|
|
3866
3946
|
deleteChat: (chatId: string) => Promise<DeleteChatResponse>;
|
|
3867
3947
|
/** @private This AI will change, and is not considered stable. DO NOT RELY on it. */
|
|
@@ -3871,22 +3951,32 @@ type Ai = {
|
|
|
3871
3951
|
/** @private This AI will change, and is not considered stable. DO NOT RELY on it. */
|
|
3872
3952
|
clearChat: (chatId: string) => Promise<ClearChatResponse>;
|
|
3873
3953
|
/** @private This AI will change, and is not considered stable. DO NOT RELY on it. */
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3954
|
+
askUserMessageInChat: (chatId: string, userMessage: MessageId | {
|
|
3955
|
+
id: MessageId;
|
|
3956
|
+
parentMessageId: MessageId | null;
|
|
3957
|
+
content: AiUserContentPart[];
|
|
3958
|
+
}, targetMessageId: MessageId, options?: AiGenerationOptions) => Promise<AskInChatResponse>;
|
|
3877
3959
|
/** @private This AI will change, and is not considered stable. DO NOT RELY on it. */
|
|
3878
3960
|
abort: (messageId: MessageId) => Promise<AbortAiResponse>;
|
|
3879
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. */
|
|
3880
3964
|
signals: {
|
|
3881
3965
|
chatsΣ: DerivedSignal<AiChat[]>;
|
|
3882
3966
|
getChatMessagesForBranchΣ(chatId: string, branch?: MessageId): DerivedSignal<UiChatMessage[]>;
|
|
3883
|
-
|
|
3884
|
-
getToolDefinitionΣ(chatId: string, toolName: string): Signal<
|
|
3967
|
+
getChatById: (chatId: string) => AiChat | undefined;
|
|
3968
|
+
getToolDefinitionΣ(chatId: string, toolName: string): Signal<AiToolDefinition | undefined>;
|
|
3885
3969
|
};
|
|
3886
3970
|
/** @private This AI will change, and is not considered stable. DO NOT RELY on it. */
|
|
3887
|
-
|
|
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[];
|
|
3888
3978
|
/** @private This AI will change, and is not considered stable. DO NOT RELY on it. */
|
|
3889
|
-
registerChatTool: (chatId: string, name: string, definition:
|
|
3979
|
+
registerChatTool: (chatId: string, name: string, definition: AiToolDefinition) => void;
|
|
3890
3980
|
/** @private This AI will change, and is not considered stable. DO NOT RELY on it. */
|
|
3891
3981
|
unregisterChatTool: (chatId: string, toolName: string) => void;
|
|
3892
3982
|
};
|
|
@@ -4679,4 +4769,4 @@ declare const CommentsApiError: typeof HttpError;
|
|
|
4679
4769
|
/** @deprecated Use HttpError instead. */
|
|
4680
4770
|
declare const NotificationsApiError: typeof HttpError;
|
|
4681
4771
|
|
|
4682
|
-
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
|
|
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 };
|