@liveblocks/core 3.19.4-test1 → 3.20.0-pre1
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 +163 -796
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -129
- package/dist/index.d.ts +17 -129
- package/dist/index.js +73 -706
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -427,8 +427,6 @@ declare const OpCode: Readonly<{
|
|
|
427
427
|
DELETE_OBJECT_KEY: 6;
|
|
428
428
|
CREATE_MAP: 7;
|
|
429
429
|
CREATE_REGISTER: 8;
|
|
430
|
-
CREATE_TEXT: 9;
|
|
431
|
-
UPDATE_TEXT: 10;
|
|
432
430
|
}>;
|
|
433
431
|
declare namespace OpCode {
|
|
434
432
|
type INIT = typeof OpCode.INIT;
|
|
@@ -440,35 +438,13 @@ declare namespace OpCode {
|
|
|
440
438
|
type DELETE_OBJECT_KEY = typeof OpCode.DELETE_OBJECT_KEY;
|
|
441
439
|
type CREATE_MAP = typeof OpCode.CREATE_MAP;
|
|
442
440
|
type CREATE_REGISTER = typeof OpCode.CREATE_REGISTER;
|
|
443
|
-
type CREATE_TEXT = typeof OpCode.CREATE_TEXT;
|
|
444
|
-
type UPDATE_TEXT = typeof OpCode.UPDATE_TEXT;
|
|
445
441
|
}
|
|
446
|
-
type TextAttributes = Record<string, Json>;
|
|
447
|
-
type LiveTextDelta = {
|
|
448
|
-
text: string;
|
|
449
|
-
attributes?: TextAttributes;
|
|
450
|
-
}[];
|
|
451
|
-
type TextOperation = {
|
|
452
|
-
type: "insert";
|
|
453
|
-
index: number;
|
|
454
|
-
text: string;
|
|
455
|
-
attributes?: TextAttributes;
|
|
456
|
-
} | {
|
|
457
|
-
type: "delete";
|
|
458
|
-
index: number;
|
|
459
|
-
length: number;
|
|
460
|
-
} | {
|
|
461
|
-
type: "format";
|
|
462
|
-
index: number;
|
|
463
|
-
length: number;
|
|
464
|
-
attributes: Record<string, Json | null>;
|
|
465
|
-
};
|
|
466
442
|
/**
|
|
467
443
|
* These operations are the payload for {@link UpdateStorageServerMsg} messages
|
|
468
444
|
* only.
|
|
469
445
|
*/
|
|
470
|
-
type Op = CreateOp | UpdateObjectOp |
|
|
471
|
-
type CreateOp = CreateObjectOp | CreateRegisterOp | CreateMapOp | CreateListOp
|
|
446
|
+
type Op = CreateOp | UpdateObjectOp | DeleteCrdtOp | SetParentKeyOp | DeleteObjectKeyOp;
|
|
447
|
+
type CreateOp = CreateObjectOp | CreateRegisterOp | CreateMapOp | CreateListOp;
|
|
472
448
|
type UpdateObjectOp = {
|
|
473
449
|
readonly opId?: string;
|
|
474
450
|
readonly id: string;
|
|
@@ -478,60 +454,40 @@ type UpdateObjectOp = {
|
|
|
478
454
|
type CreateObjectOp = {
|
|
479
455
|
readonly opId?: string;
|
|
480
456
|
readonly id: string;
|
|
481
|
-
readonly intent?: "set";
|
|
482
|
-
readonly deletedId?: string;
|
|
483
457
|
readonly type: OpCode.CREATE_OBJECT;
|
|
484
458
|
readonly parentId: string;
|
|
485
459
|
readonly parentKey: string;
|
|
486
460
|
readonly data: JsonObject;
|
|
461
|
+
readonly intent?: "set" | "push";
|
|
462
|
+
readonly deletedId?: string;
|
|
487
463
|
};
|
|
488
464
|
type CreateListOp = {
|
|
489
465
|
readonly opId?: string;
|
|
490
466
|
readonly id: string;
|
|
491
|
-
readonly intent?: "set";
|
|
492
|
-
readonly deletedId?: string;
|
|
493
467
|
readonly type: OpCode.CREATE_LIST;
|
|
494
468
|
readonly parentId: string;
|
|
495
469
|
readonly parentKey: string;
|
|
470
|
+
readonly intent?: "set" | "push";
|
|
471
|
+
readonly deletedId?: string;
|
|
496
472
|
};
|
|
497
473
|
type CreateMapOp = {
|
|
498
474
|
readonly opId?: string;
|
|
499
475
|
readonly id: string;
|
|
500
|
-
readonly intent?: "set";
|
|
501
|
-
readonly deletedId?: string;
|
|
502
476
|
readonly type: OpCode.CREATE_MAP;
|
|
503
477
|
readonly parentId: string;
|
|
504
478
|
readonly parentKey: string;
|
|
479
|
+
readonly intent?: "set" | "push";
|
|
480
|
+
readonly deletedId?: string;
|
|
505
481
|
};
|
|
506
482
|
type CreateRegisterOp = {
|
|
507
483
|
readonly opId?: string;
|
|
508
484
|
readonly id: string;
|
|
509
|
-
readonly intent?: "set";
|
|
510
|
-
readonly deletedId?: string;
|
|
511
485
|
readonly type: OpCode.CREATE_REGISTER;
|
|
512
486
|
readonly parentId: string;
|
|
513
487
|
readonly parentKey: string;
|
|
514
488
|
readonly data: Json;
|
|
515
|
-
|
|
516
|
-
type CreateTextOp = {
|
|
517
|
-
readonly opId?: string;
|
|
518
|
-
readonly id: string;
|
|
519
|
-
readonly intent?: "set";
|
|
489
|
+
readonly intent?: "set" | "push";
|
|
520
490
|
readonly deletedId?: string;
|
|
521
|
-
readonly type: OpCode.CREATE_TEXT;
|
|
522
|
-
readonly parentId: string;
|
|
523
|
-
readonly parentKey: string;
|
|
524
|
-
readonly data: LiveTextDelta;
|
|
525
|
-
readonly version: number;
|
|
526
|
-
};
|
|
527
|
-
type UpdateTextOp = {
|
|
528
|
-
readonly opId?: string;
|
|
529
|
-
readonly id: string;
|
|
530
|
-
readonly type: OpCode.UPDATE_TEXT;
|
|
531
|
-
readonly baseVersion: number;
|
|
532
|
-
readonly version?: number;
|
|
533
|
-
readonly ops: TextOperation[];
|
|
534
|
-
readonly metadata?: JsonObject;
|
|
535
491
|
};
|
|
536
492
|
type DeleteCrdtOp = {
|
|
537
493
|
readonly opId?: string;
|
|
@@ -660,17 +616,15 @@ declare const CrdtType: Readonly<{
|
|
|
660
616
|
LIST: 1;
|
|
661
617
|
MAP: 2;
|
|
662
618
|
REGISTER: 3;
|
|
663
|
-
TEXT: 4;
|
|
664
619
|
}>;
|
|
665
620
|
declare namespace CrdtType {
|
|
666
621
|
type OBJECT = typeof CrdtType.OBJECT;
|
|
667
622
|
type LIST = typeof CrdtType.LIST;
|
|
668
623
|
type MAP = typeof CrdtType.MAP;
|
|
669
624
|
type REGISTER = typeof CrdtType.REGISTER;
|
|
670
|
-
type TEXT = typeof CrdtType.TEXT;
|
|
671
625
|
}
|
|
672
626
|
type SerializedCrdt = SerializedRootObject | SerializedChild;
|
|
673
|
-
type SerializedChild = SerializedObject | SerializedList | SerializedMap | SerializedRegister
|
|
627
|
+
type SerializedChild = SerializedObject | SerializedList | SerializedMap | SerializedRegister;
|
|
674
628
|
type SerializedRootObject = {
|
|
675
629
|
readonly type: CrdtType.OBJECT;
|
|
676
630
|
readonly data: JsonObject;
|
|
@@ -699,21 +653,13 @@ type SerializedRegister = {
|
|
|
699
653
|
readonly parentKey: string;
|
|
700
654
|
readonly data: Json;
|
|
701
655
|
};
|
|
702
|
-
type SerializedText = {
|
|
703
|
-
readonly type: CrdtType.TEXT;
|
|
704
|
-
readonly parentId: string;
|
|
705
|
-
readonly parentKey: string;
|
|
706
|
-
readonly data: LiveTextDelta;
|
|
707
|
-
readonly version: number;
|
|
708
|
-
};
|
|
709
656
|
type StorageNode = RootStorageNode | ChildStorageNode;
|
|
710
|
-
type ChildStorageNode = ObjectStorageNode | ListStorageNode | MapStorageNode | RegisterStorageNode
|
|
657
|
+
type ChildStorageNode = ObjectStorageNode | ListStorageNode | MapStorageNode | RegisterStorageNode;
|
|
711
658
|
type RootStorageNode = [id: "root", value: SerializedRootObject];
|
|
712
659
|
type ObjectStorageNode = [id: string, value: SerializedObject];
|
|
713
660
|
type ListStorageNode = [id: string, value: SerializedList];
|
|
714
661
|
type MapStorageNode = [id: string, value: SerializedMap];
|
|
715
662
|
type RegisterStorageNode = [id: string, value: SerializedRegister];
|
|
716
|
-
type TextStorageNode = [id: string, value: SerializedText];
|
|
717
663
|
type NodeMap = Map<string, SerializedCrdt>;
|
|
718
664
|
type NodeStream = Iterable<StorageNode>;
|
|
719
665
|
declare function isRootStorageNode(node: StorageNode): node is RootStorageNode;
|
|
@@ -721,9 +667,8 @@ declare function isObjectStorageNode(node: StorageNode): node is RootStorageNode
|
|
|
721
667
|
declare function isListStorageNode(node: StorageNode): node is ListStorageNode;
|
|
722
668
|
declare function isMapStorageNode(node: StorageNode): node is MapStorageNode;
|
|
723
669
|
declare function isRegisterStorageNode(node: StorageNode): node is RegisterStorageNode;
|
|
724
|
-
declare function isTextStorageNode(node: StorageNode): node is TextStorageNode;
|
|
725
670
|
type CompactNode = CompactRootNode | CompactChildNode;
|
|
726
|
-
type CompactChildNode = CompactObjectNode | CompactListNode | CompactMapNode | CompactRegisterNode
|
|
671
|
+
type CompactChildNode = CompactObjectNode | CompactListNode | CompactMapNode | CompactRegisterNode;
|
|
727
672
|
type CompactRootNode = readonly [id: "root", data: JsonObject];
|
|
728
673
|
type CompactObjectNode = readonly [
|
|
729
674
|
id: string,
|
|
@@ -751,14 +696,6 @@ type CompactRegisterNode = readonly [
|
|
|
751
696
|
parentKey: string,
|
|
752
697
|
data: Json
|
|
753
698
|
];
|
|
754
|
-
type CompactTextNode = readonly [
|
|
755
|
-
id: string,
|
|
756
|
-
type: CrdtType.TEXT,
|
|
757
|
-
parentId: string,
|
|
758
|
-
parentKey: string,
|
|
759
|
-
data: LiveTextDelta,
|
|
760
|
-
version: number
|
|
761
|
-
];
|
|
762
699
|
declare function compactNodesToNodeStream(compactNodes: CompactNode[]): NodeStream;
|
|
763
700
|
declare function nodeStreamToCompactNodes(nodes: NodeStream): Iterable<CompactNode>;
|
|
764
701
|
|
|
@@ -916,60 +853,16 @@ declare class LiveObject<O extends LsonObject> extends AbstractCrdt {
|
|
|
916
853
|
clone(): LiveObject<O>;
|
|
917
854
|
}
|
|
918
855
|
|
|
919
|
-
declare function applyLiveTextOperations(delta: LiveTextDelta, ops: readonly TextOperation[]): LiveTextDelta;
|
|
920
|
-
|
|
921
|
-
type LiveTextAttributes = TextAttributes;
|
|
922
|
-
type LiveTextAttributesPatch = Readonly<Record<string, Json | null>>;
|
|
923
|
-
|
|
924
|
-
type LiveTextChange = {
|
|
925
|
-
readonly type: "insert";
|
|
926
|
-
readonly index: number;
|
|
927
|
-
readonly text: string;
|
|
928
|
-
readonly attributes?: TextAttributes;
|
|
929
|
-
} | {
|
|
930
|
-
readonly type: "delete";
|
|
931
|
-
readonly index: number;
|
|
932
|
-
readonly length: number;
|
|
933
|
-
readonly deletedText: string;
|
|
934
|
-
} | {
|
|
935
|
-
readonly type: "format";
|
|
936
|
-
readonly index: number;
|
|
937
|
-
readonly length: number;
|
|
938
|
-
readonly attributes: LiveTextAttributesPatch;
|
|
939
|
-
};
|
|
940
|
-
type LiveTextUpdates = {
|
|
941
|
-
type: "LiveText";
|
|
942
|
-
node: LiveText;
|
|
943
|
-
version: number;
|
|
944
|
-
updates: LiveTextChange[];
|
|
945
|
-
};
|
|
946
|
-
|
|
947
|
-
declare class LiveText extends AbstractCrdt {
|
|
948
|
-
#private;
|
|
949
|
-
constructor(textOrDelta?: string | LiveTextDelta, version?: number);
|
|
950
|
-
get version(): number;
|
|
951
|
-
get length(): number;
|
|
952
|
-
insert(index: number, text: string, attributes?: TextAttributes): void;
|
|
953
|
-
delete(index: number, length: number): void;
|
|
954
|
-
replace(index: number, length: number, text: string, attributes?: TextAttributes): void;
|
|
955
|
-
format(index: number, length: number, attributes: LiveTextAttributesPatch): void;
|
|
956
|
-
toString(): string;
|
|
957
|
-
toDelta(): LiveTextDelta;
|
|
958
|
-
toJSON(): LiveTextDelta;
|
|
959
|
-
clone(): LiveText;
|
|
960
|
-
}
|
|
961
|
-
|
|
962
856
|
type StorageCallback = (updates: StorageUpdate[]) => void;
|
|
963
857
|
type LiveMapUpdate = LiveMapUpdates<string, Lson>;
|
|
964
858
|
type LiveObjectUpdate = LiveObjectUpdates<LsonObject>;
|
|
965
859
|
type LiveListUpdate = LiveListUpdates<Lson>;
|
|
966
|
-
type LiveTextUpdate = LiveTextUpdates;
|
|
967
860
|
/**
|
|
968
861
|
* The payload of notifications sent (in-client) when LiveStructures change.
|
|
969
862
|
* Messages of this kind are not originating from the network, but are 100%
|
|
970
863
|
* in-client.
|
|
971
864
|
*/
|
|
972
|
-
type StorageUpdate = LiveMapUpdate | LiveObjectUpdate | LiveListUpdate
|
|
865
|
+
type StorageUpdate = LiveMapUpdate | LiveObjectUpdate | LiveListUpdate;
|
|
973
866
|
|
|
974
867
|
/**
|
|
975
868
|
* The managed pool is a namespace registry (i.e. a context) that "owns" all
|
|
@@ -1183,7 +1076,7 @@ declare class LiveRegister<TValue extends Json> extends AbstractCrdt {
|
|
|
1183
1076
|
clone(): TValue;
|
|
1184
1077
|
}
|
|
1185
1078
|
|
|
1186
|
-
type LiveStructure = LiveObject<LsonObject> | LiveList<Lson> | LiveMap<string, Lson
|
|
1079
|
+
type LiveStructure = LiveObject<LsonObject> | LiveList<Lson> | LiveMap<string, Lson>;
|
|
1187
1080
|
/**
|
|
1188
1081
|
* Think of Lson as a sibling of the Json data tree, except that the nested
|
|
1189
1082
|
* data structure can contain a mix of Json values and LiveStructure instances.
|
|
@@ -1219,7 +1112,7 @@ type ToJson<L extends Lson | LsonObject> = L extends LiveList<infer I extends Ls
|
|
|
1219
1112
|
readonly [K in keyof O]: ToJson<Exclude<O[K], undefined>> | (undefined extends O[K] ? undefined : never);
|
|
1220
1113
|
} : L extends LiveMap<infer KS extends string, infer V extends Lson> ? Lson extends V ? ReadonlyJsonObject : {
|
|
1221
1114
|
readonly [K in KS]: ToJson<V>;
|
|
1222
|
-
} : L extends
|
|
1115
|
+
} : L extends LsonObject ? string extends keyof L ? ReadonlyJsonObject : {
|
|
1223
1116
|
readonly [K in keyof L]: ToJson<Exclude<L[K], undefined>> | (undefined extends L[K] ? undefined : never);
|
|
1224
1117
|
} : L extends Json ? L : never;
|
|
1225
1118
|
|
|
@@ -5068,12 +4961,7 @@ type PlainLsonList = {
|
|
|
5068
4961
|
liveblocksType: "LiveList";
|
|
5069
4962
|
data: PlainLson[];
|
|
5070
4963
|
};
|
|
5071
|
-
type
|
|
5072
|
-
liveblocksType: "LiveText";
|
|
5073
|
-
data: LiveTextDelta;
|
|
5074
|
-
version?: number;
|
|
5075
|
-
};
|
|
5076
|
-
type PlainLson = PlainLsonObject | PlainLsonMap | PlainLsonList | PlainLsonText | Json;
|
|
4964
|
+
type PlainLson = PlainLsonObject | PlainLsonMap | PlainLsonList | Json;
|
|
5077
4965
|
|
|
5078
4966
|
/**
|
|
5079
4967
|
* Returns PlainLson for a given Json or LiveStructure, suitable for calling the storage init api
|
|
@@ -5781,4 +5669,4 @@ type EnsureJson<T> = T extends Json ? T : T extends Array<infer I> ? (EnsureJson
|
|
|
5781
5669
|
[K in keyof T as EnsureJson<T[K]> extends never ? never : K]: EnsureJson<T[K]>;
|
|
5782
5670
|
};
|
|
5783
5671
|
|
|
5784
|
-
export { type ActivityData, type AiAssistantContentPart, type AiAssistantMessage, type AiChat, type AiChatMessage, type AiChatsQuery, type AiKnowledgeRetrievalPart, type AiKnowledgeSource, type AiOpaqueToolDefinition, type AiOpaqueToolInvocationProps, type AiReasoningPart, type AiRetrievalPart, type AiSourcesPart, type AiTextPart, type AiToolDefinition, type AiToolExecuteCallback, type AiToolExecuteContext, type AiToolInvocationPart, type AiToolInvocationProps, type AiToolTypePack, type AiUrlSource, type AiUserMessage, type AiWebRetrievalPart, type AsyncError, type AsyncLoading, type AsyncResult, type AsyncSuccess, type Awaitable, type BaseActivitiesData, type BaseAuthResult, type BaseGroupInfo, type BaseMetadata, type BaseRoomInfo, type BaseUserMeta, type Brand, type BroadcastEventClientMsg, type BroadcastOptions, type BroadcastedEventServerMsg, type ChildStorageNode, type Client, type ClientMsg, ClientMsgCode, type ClientOptions, type ClientWireOp, 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, type CommentsEventServerMsg, type CompactChildNode, type CompactListNode, type CompactMapNode, type CompactNode, type CompactObjectNode, type CompactRegisterNode, type CompactRootNode, type
|
|
5672
|
+
export { type ActivityData, type AiAssistantContentPart, type AiAssistantMessage, type AiChat, type AiChatMessage, type AiChatsQuery, type AiKnowledgeRetrievalPart, type AiKnowledgeSource, type AiOpaqueToolDefinition, type AiOpaqueToolInvocationProps, type AiReasoningPart, type AiRetrievalPart, type AiSourcesPart, type AiTextPart, type AiToolDefinition, type AiToolExecuteCallback, type AiToolExecuteContext, type AiToolInvocationPart, type AiToolInvocationProps, type AiToolTypePack, type AiUrlSource, type AiUserMessage, type AiWebRetrievalPart, type AsyncError, type AsyncLoading, type AsyncResult, type AsyncSuccess, type Awaitable, type BaseActivitiesData, type BaseAuthResult, type BaseGroupInfo, type BaseMetadata, type BaseRoomInfo, type BaseUserMeta, type Brand, type BroadcastEventClientMsg, type BroadcastOptions, type BroadcastedEventServerMsg, type ChildStorageNode, type Client, type ClientMsg, ClientMsgCode, type ClientOptions, type ClientWireOp, 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, type CommentsEventServerMsg, type CompactChildNode, type CompactListNode, type CompactMapNode, type CompactNode, type CompactObjectNode, type CompactRegisterNode, type CompactRootNode, 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 DCM, type DE, type DFM, type DFMD, type DGI, type DP, type DRI, type DS, type DTM, 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 Feed, type FeedCreateMetadata, type FeedDeletedServerMsg, type FeedFetchMetadataFilter, type FeedMessage, type FeedMessagesAddedServerMsg, type FeedMessagesDeletedServerMsg, type FeedMessagesListServerMsg, type FeedMessagesUpdatedServerMsg, type FeedRequestError, FeedRequestErrorCode, type FeedRequestFailedServerMsg, type FeedUpdateMetadata, type FeedsAddedServerMsg, type FeedsEventServerMsg, type FeedsListServerMsg, type FeedsUpdatedServerMsg, type FetchStorageClientMsg, type FetchYDocClientMsg, type GetThreadsOptions, type GroupData, type GroupDataPlain, type GroupMemberData, type GroupMentionData, type GroupScopes, type HasOpId, type History, type HistoryVersion, HttpError, type ISODateString, type ISignal, type IUserInfo, type IWebSocket, type IWebSocketCloseEvent, type IWebSocketEvent, type IWebSocketInstance, type IWebSocketMessageEvent, type IYjsProvider, type IgnoredOp, type Immutable, type InboxNotificationCustomData, type InboxNotificationCustomDataPlain, type InboxNotificationData, type InboxNotificationDataPlain, type InboxNotificationDeleteInfo, type InboxNotificationTextMentionData, type InboxNotificationTextMentionDataPlain, type InboxNotificationThreadData, type InboxNotificationThreadDataPlain, type InferFromSchema, type Json, type JsonArray, type JsonObject, type JsonScalar, type KDAD, type LayerKey, type ListStorageNode, LiveList, type LiveListUpdate, LiveMap, type LiveMapUpdate, type LiveNode, LiveObject, type LiveObjectUpdate, type LiveStructure, LiveblocksError, type LiveblocksErrorContext, type LostConnectionEvent, type Lson, type LsonObject, MENTION_CHARACTER, type ManagedPool, type MapStorageNode, type MentionData, type MessageId, MutableSignal, type NoInfr, type NodeMap, type NodeStream, type NotificationChannel, type NotificationChannelSettings, type NotificationKind, type NotificationSettings, type NotificationSettingsPlain, type ObjectStorageNode, 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 ReadonlyJson, type ReadonlyJsonObject, type RegisterStorageNode, type RejectedStorageOpServerMsg, type Relax, type RenderableToolResultResponse, type Resolve, type ResolveGroupsInfoArgs, type ResolveMentionSuggestionsArgs, type ResolveRoomsInfoArgs, type ResolveUsersArgs, type Room, type RoomEventMessage, type RoomStateServerMsg, type RoomSubscriptionSettings, type RootStorageNode, type SearchCommentsResult, type SerializedChild, type SerializedCrdt, type SerializedList, type SerializedMap, type SerializedObject, type SerializedRegister, type SerializedRootObject, type ServerMsg, ServerMsgCode, type ServerWireOp, type SetParentKeyOp, Signal, type SignalType, SortedList, type Status, type StorageChunkServerMsg, type StorageNode, type StorageStatus, type StorageUpdate, type StringifyCommentBodyElements, type StringifyCommentBodyOptions, type SubscriptionData, type SubscriptionDataPlain, type SubscriptionDeleteInfo, type SubscriptionDeleteInfoPlain, type SubscriptionKey, type SyncConfig, type SyncMode, type SyncSource, type SyncStatus, TextEditorType, type ThreadData, type ThreadDataPlain, type ThreadDataWithDeleteInfo, type ThreadDeleteInfo, type ToJson, type ToolResultResponse, type URLSafeString, type UnsubscribeCallback, type UpdateObjectOp, type UpdatePresenceClientMsg, type UpdatePresenceServerMsg, type UpdateStorageClientMsg, type UpdateStorageServerMsg, type UpdateYDocClientMsg, type UploadAttachmentOptions, type UrlMetadata, type User, type UserJoinServerMsg, type UserLeftServerMsg, type UserMentionData, type UserRoomSubscriptionSettings, type UserSubscriptionData, type UserSubscriptionDataPlain, WebsocketCloseCodes, type WithNavigation, type WithOptional, type WithRequired, type YDocUpdateServerMsg, type YjsSyncStatus, asPos, assert, assertNever, autoRetry, b64decode, batch, checkBounds, chunk, cloneLson, compactNodesToNodeStream, compactObject, fancyConsole as console, convertToCommentData, convertToCommentUserReaction, convertToGroupData, convertToInboxNotificationData, convertToSubscriptionData, convertToThreadData, convertToUserSubscriptionData, createClient, createCommentAttachmentId, createCommentId, createInboxNotificationId, createManagedPool, createNotificationSettings, createThreadId, defineAiTool, deprecate, deprecateIf, detectDupes, entries, errorIf, findLastIndex, freeze, generateUrl, getMentionsFromCommentBody, getSubscriptionKey, html, htmlSafe, isCommentBodyLink, isCommentBodyMention, isCommentBodyText, isJsonArray, isJsonObject, isJsonScalar, isListStorageNode, isLiveNode, isMapStorageNode, isNotificationChannelEnabled, isNumberOperator, isObjectStorageNode, isPlainObject, isRegisterStorageNode, isRootStorageNode, isStartsWithOperator, isUrl, kInternal, keys, makeAbortController, makeEventSource, makePoller, makePosition, mapValues, memoizeOnSuccess, nanoid, nn, nodeStreamToCompactNodes, objectToQuery, patchNotificationSettings, raise, resolveMentionsInCommentBody, sanitizeUrl, shallow, shallow2, stableStringify, stringifyCommentBody, throwUsageError, toPlainLson, tryParseJson, url, urljoin, wait, warnOnce, warnOnceIf, withTimeout };
|
package/dist/index.d.ts
CHANGED
|
@@ -427,8 +427,6 @@ declare const OpCode: Readonly<{
|
|
|
427
427
|
DELETE_OBJECT_KEY: 6;
|
|
428
428
|
CREATE_MAP: 7;
|
|
429
429
|
CREATE_REGISTER: 8;
|
|
430
|
-
CREATE_TEXT: 9;
|
|
431
|
-
UPDATE_TEXT: 10;
|
|
432
430
|
}>;
|
|
433
431
|
declare namespace OpCode {
|
|
434
432
|
type INIT = typeof OpCode.INIT;
|
|
@@ -440,35 +438,13 @@ declare namespace OpCode {
|
|
|
440
438
|
type DELETE_OBJECT_KEY = typeof OpCode.DELETE_OBJECT_KEY;
|
|
441
439
|
type CREATE_MAP = typeof OpCode.CREATE_MAP;
|
|
442
440
|
type CREATE_REGISTER = typeof OpCode.CREATE_REGISTER;
|
|
443
|
-
type CREATE_TEXT = typeof OpCode.CREATE_TEXT;
|
|
444
|
-
type UPDATE_TEXT = typeof OpCode.UPDATE_TEXT;
|
|
445
441
|
}
|
|
446
|
-
type TextAttributes = Record<string, Json>;
|
|
447
|
-
type LiveTextDelta = {
|
|
448
|
-
text: string;
|
|
449
|
-
attributes?: TextAttributes;
|
|
450
|
-
}[];
|
|
451
|
-
type TextOperation = {
|
|
452
|
-
type: "insert";
|
|
453
|
-
index: number;
|
|
454
|
-
text: string;
|
|
455
|
-
attributes?: TextAttributes;
|
|
456
|
-
} | {
|
|
457
|
-
type: "delete";
|
|
458
|
-
index: number;
|
|
459
|
-
length: number;
|
|
460
|
-
} | {
|
|
461
|
-
type: "format";
|
|
462
|
-
index: number;
|
|
463
|
-
length: number;
|
|
464
|
-
attributes: Record<string, Json | null>;
|
|
465
|
-
};
|
|
466
442
|
/**
|
|
467
443
|
* These operations are the payload for {@link UpdateStorageServerMsg} messages
|
|
468
444
|
* only.
|
|
469
445
|
*/
|
|
470
|
-
type Op = CreateOp | UpdateObjectOp |
|
|
471
|
-
type CreateOp = CreateObjectOp | CreateRegisterOp | CreateMapOp | CreateListOp
|
|
446
|
+
type Op = CreateOp | UpdateObjectOp | DeleteCrdtOp | SetParentKeyOp | DeleteObjectKeyOp;
|
|
447
|
+
type CreateOp = CreateObjectOp | CreateRegisterOp | CreateMapOp | CreateListOp;
|
|
472
448
|
type UpdateObjectOp = {
|
|
473
449
|
readonly opId?: string;
|
|
474
450
|
readonly id: string;
|
|
@@ -478,60 +454,40 @@ type UpdateObjectOp = {
|
|
|
478
454
|
type CreateObjectOp = {
|
|
479
455
|
readonly opId?: string;
|
|
480
456
|
readonly id: string;
|
|
481
|
-
readonly intent?: "set";
|
|
482
|
-
readonly deletedId?: string;
|
|
483
457
|
readonly type: OpCode.CREATE_OBJECT;
|
|
484
458
|
readonly parentId: string;
|
|
485
459
|
readonly parentKey: string;
|
|
486
460
|
readonly data: JsonObject;
|
|
461
|
+
readonly intent?: "set" | "push";
|
|
462
|
+
readonly deletedId?: string;
|
|
487
463
|
};
|
|
488
464
|
type CreateListOp = {
|
|
489
465
|
readonly opId?: string;
|
|
490
466
|
readonly id: string;
|
|
491
|
-
readonly intent?: "set";
|
|
492
|
-
readonly deletedId?: string;
|
|
493
467
|
readonly type: OpCode.CREATE_LIST;
|
|
494
468
|
readonly parentId: string;
|
|
495
469
|
readonly parentKey: string;
|
|
470
|
+
readonly intent?: "set" | "push";
|
|
471
|
+
readonly deletedId?: string;
|
|
496
472
|
};
|
|
497
473
|
type CreateMapOp = {
|
|
498
474
|
readonly opId?: string;
|
|
499
475
|
readonly id: string;
|
|
500
|
-
readonly intent?: "set";
|
|
501
|
-
readonly deletedId?: string;
|
|
502
476
|
readonly type: OpCode.CREATE_MAP;
|
|
503
477
|
readonly parentId: string;
|
|
504
478
|
readonly parentKey: string;
|
|
479
|
+
readonly intent?: "set" | "push";
|
|
480
|
+
readonly deletedId?: string;
|
|
505
481
|
};
|
|
506
482
|
type CreateRegisterOp = {
|
|
507
483
|
readonly opId?: string;
|
|
508
484
|
readonly id: string;
|
|
509
|
-
readonly intent?: "set";
|
|
510
|
-
readonly deletedId?: string;
|
|
511
485
|
readonly type: OpCode.CREATE_REGISTER;
|
|
512
486
|
readonly parentId: string;
|
|
513
487
|
readonly parentKey: string;
|
|
514
488
|
readonly data: Json;
|
|
515
|
-
|
|
516
|
-
type CreateTextOp = {
|
|
517
|
-
readonly opId?: string;
|
|
518
|
-
readonly id: string;
|
|
519
|
-
readonly intent?: "set";
|
|
489
|
+
readonly intent?: "set" | "push";
|
|
520
490
|
readonly deletedId?: string;
|
|
521
|
-
readonly type: OpCode.CREATE_TEXT;
|
|
522
|
-
readonly parentId: string;
|
|
523
|
-
readonly parentKey: string;
|
|
524
|
-
readonly data: LiveTextDelta;
|
|
525
|
-
readonly version: number;
|
|
526
|
-
};
|
|
527
|
-
type UpdateTextOp = {
|
|
528
|
-
readonly opId?: string;
|
|
529
|
-
readonly id: string;
|
|
530
|
-
readonly type: OpCode.UPDATE_TEXT;
|
|
531
|
-
readonly baseVersion: number;
|
|
532
|
-
readonly version?: number;
|
|
533
|
-
readonly ops: TextOperation[];
|
|
534
|
-
readonly metadata?: JsonObject;
|
|
535
491
|
};
|
|
536
492
|
type DeleteCrdtOp = {
|
|
537
493
|
readonly opId?: string;
|
|
@@ -660,17 +616,15 @@ declare const CrdtType: Readonly<{
|
|
|
660
616
|
LIST: 1;
|
|
661
617
|
MAP: 2;
|
|
662
618
|
REGISTER: 3;
|
|
663
|
-
TEXT: 4;
|
|
664
619
|
}>;
|
|
665
620
|
declare namespace CrdtType {
|
|
666
621
|
type OBJECT = typeof CrdtType.OBJECT;
|
|
667
622
|
type LIST = typeof CrdtType.LIST;
|
|
668
623
|
type MAP = typeof CrdtType.MAP;
|
|
669
624
|
type REGISTER = typeof CrdtType.REGISTER;
|
|
670
|
-
type TEXT = typeof CrdtType.TEXT;
|
|
671
625
|
}
|
|
672
626
|
type SerializedCrdt = SerializedRootObject | SerializedChild;
|
|
673
|
-
type SerializedChild = SerializedObject | SerializedList | SerializedMap | SerializedRegister
|
|
627
|
+
type SerializedChild = SerializedObject | SerializedList | SerializedMap | SerializedRegister;
|
|
674
628
|
type SerializedRootObject = {
|
|
675
629
|
readonly type: CrdtType.OBJECT;
|
|
676
630
|
readonly data: JsonObject;
|
|
@@ -699,21 +653,13 @@ type SerializedRegister = {
|
|
|
699
653
|
readonly parentKey: string;
|
|
700
654
|
readonly data: Json;
|
|
701
655
|
};
|
|
702
|
-
type SerializedText = {
|
|
703
|
-
readonly type: CrdtType.TEXT;
|
|
704
|
-
readonly parentId: string;
|
|
705
|
-
readonly parentKey: string;
|
|
706
|
-
readonly data: LiveTextDelta;
|
|
707
|
-
readonly version: number;
|
|
708
|
-
};
|
|
709
656
|
type StorageNode = RootStorageNode | ChildStorageNode;
|
|
710
|
-
type ChildStorageNode = ObjectStorageNode | ListStorageNode | MapStorageNode | RegisterStorageNode
|
|
657
|
+
type ChildStorageNode = ObjectStorageNode | ListStorageNode | MapStorageNode | RegisterStorageNode;
|
|
711
658
|
type RootStorageNode = [id: "root", value: SerializedRootObject];
|
|
712
659
|
type ObjectStorageNode = [id: string, value: SerializedObject];
|
|
713
660
|
type ListStorageNode = [id: string, value: SerializedList];
|
|
714
661
|
type MapStorageNode = [id: string, value: SerializedMap];
|
|
715
662
|
type RegisterStorageNode = [id: string, value: SerializedRegister];
|
|
716
|
-
type TextStorageNode = [id: string, value: SerializedText];
|
|
717
663
|
type NodeMap = Map<string, SerializedCrdt>;
|
|
718
664
|
type NodeStream = Iterable<StorageNode>;
|
|
719
665
|
declare function isRootStorageNode(node: StorageNode): node is RootStorageNode;
|
|
@@ -721,9 +667,8 @@ declare function isObjectStorageNode(node: StorageNode): node is RootStorageNode
|
|
|
721
667
|
declare function isListStorageNode(node: StorageNode): node is ListStorageNode;
|
|
722
668
|
declare function isMapStorageNode(node: StorageNode): node is MapStorageNode;
|
|
723
669
|
declare function isRegisterStorageNode(node: StorageNode): node is RegisterStorageNode;
|
|
724
|
-
declare function isTextStorageNode(node: StorageNode): node is TextStorageNode;
|
|
725
670
|
type CompactNode = CompactRootNode | CompactChildNode;
|
|
726
|
-
type CompactChildNode = CompactObjectNode | CompactListNode | CompactMapNode | CompactRegisterNode
|
|
671
|
+
type CompactChildNode = CompactObjectNode | CompactListNode | CompactMapNode | CompactRegisterNode;
|
|
727
672
|
type CompactRootNode = readonly [id: "root", data: JsonObject];
|
|
728
673
|
type CompactObjectNode = readonly [
|
|
729
674
|
id: string,
|
|
@@ -751,14 +696,6 @@ type CompactRegisterNode = readonly [
|
|
|
751
696
|
parentKey: string,
|
|
752
697
|
data: Json
|
|
753
698
|
];
|
|
754
|
-
type CompactTextNode = readonly [
|
|
755
|
-
id: string,
|
|
756
|
-
type: CrdtType.TEXT,
|
|
757
|
-
parentId: string,
|
|
758
|
-
parentKey: string,
|
|
759
|
-
data: LiveTextDelta,
|
|
760
|
-
version: number
|
|
761
|
-
];
|
|
762
699
|
declare function compactNodesToNodeStream(compactNodes: CompactNode[]): NodeStream;
|
|
763
700
|
declare function nodeStreamToCompactNodes(nodes: NodeStream): Iterable<CompactNode>;
|
|
764
701
|
|
|
@@ -916,60 +853,16 @@ declare class LiveObject<O extends LsonObject> extends AbstractCrdt {
|
|
|
916
853
|
clone(): LiveObject<O>;
|
|
917
854
|
}
|
|
918
855
|
|
|
919
|
-
declare function applyLiveTextOperations(delta: LiveTextDelta, ops: readonly TextOperation[]): LiveTextDelta;
|
|
920
|
-
|
|
921
|
-
type LiveTextAttributes = TextAttributes;
|
|
922
|
-
type LiveTextAttributesPatch = Readonly<Record<string, Json | null>>;
|
|
923
|
-
|
|
924
|
-
type LiveTextChange = {
|
|
925
|
-
readonly type: "insert";
|
|
926
|
-
readonly index: number;
|
|
927
|
-
readonly text: string;
|
|
928
|
-
readonly attributes?: TextAttributes;
|
|
929
|
-
} | {
|
|
930
|
-
readonly type: "delete";
|
|
931
|
-
readonly index: number;
|
|
932
|
-
readonly length: number;
|
|
933
|
-
readonly deletedText: string;
|
|
934
|
-
} | {
|
|
935
|
-
readonly type: "format";
|
|
936
|
-
readonly index: number;
|
|
937
|
-
readonly length: number;
|
|
938
|
-
readonly attributes: LiveTextAttributesPatch;
|
|
939
|
-
};
|
|
940
|
-
type LiveTextUpdates = {
|
|
941
|
-
type: "LiveText";
|
|
942
|
-
node: LiveText;
|
|
943
|
-
version: number;
|
|
944
|
-
updates: LiveTextChange[];
|
|
945
|
-
};
|
|
946
|
-
|
|
947
|
-
declare class LiveText extends AbstractCrdt {
|
|
948
|
-
#private;
|
|
949
|
-
constructor(textOrDelta?: string | LiveTextDelta, version?: number);
|
|
950
|
-
get version(): number;
|
|
951
|
-
get length(): number;
|
|
952
|
-
insert(index: number, text: string, attributes?: TextAttributes): void;
|
|
953
|
-
delete(index: number, length: number): void;
|
|
954
|
-
replace(index: number, length: number, text: string, attributes?: TextAttributes): void;
|
|
955
|
-
format(index: number, length: number, attributes: LiveTextAttributesPatch): void;
|
|
956
|
-
toString(): string;
|
|
957
|
-
toDelta(): LiveTextDelta;
|
|
958
|
-
toJSON(): LiveTextDelta;
|
|
959
|
-
clone(): LiveText;
|
|
960
|
-
}
|
|
961
|
-
|
|
962
856
|
type StorageCallback = (updates: StorageUpdate[]) => void;
|
|
963
857
|
type LiveMapUpdate = LiveMapUpdates<string, Lson>;
|
|
964
858
|
type LiveObjectUpdate = LiveObjectUpdates<LsonObject>;
|
|
965
859
|
type LiveListUpdate = LiveListUpdates<Lson>;
|
|
966
|
-
type LiveTextUpdate = LiveTextUpdates;
|
|
967
860
|
/**
|
|
968
861
|
* The payload of notifications sent (in-client) when LiveStructures change.
|
|
969
862
|
* Messages of this kind are not originating from the network, but are 100%
|
|
970
863
|
* in-client.
|
|
971
864
|
*/
|
|
972
|
-
type StorageUpdate = LiveMapUpdate | LiveObjectUpdate | LiveListUpdate
|
|
865
|
+
type StorageUpdate = LiveMapUpdate | LiveObjectUpdate | LiveListUpdate;
|
|
973
866
|
|
|
974
867
|
/**
|
|
975
868
|
* The managed pool is a namespace registry (i.e. a context) that "owns" all
|
|
@@ -1183,7 +1076,7 @@ declare class LiveRegister<TValue extends Json> extends AbstractCrdt {
|
|
|
1183
1076
|
clone(): TValue;
|
|
1184
1077
|
}
|
|
1185
1078
|
|
|
1186
|
-
type LiveStructure = LiveObject<LsonObject> | LiveList<Lson> | LiveMap<string, Lson
|
|
1079
|
+
type LiveStructure = LiveObject<LsonObject> | LiveList<Lson> | LiveMap<string, Lson>;
|
|
1187
1080
|
/**
|
|
1188
1081
|
* Think of Lson as a sibling of the Json data tree, except that the nested
|
|
1189
1082
|
* data structure can contain a mix of Json values and LiveStructure instances.
|
|
@@ -1219,7 +1112,7 @@ type ToJson<L extends Lson | LsonObject> = L extends LiveList<infer I extends Ls
|
|
|
1219
1112
|
readonly [K in keyof O]: ToJson<Exclude<O[K], undefined>> | (undefined extends O[K] ? undefined : never);
|
|
1220
1113
|
} : L extends LiveMap<infer KS extends string, infer V extends Lson> ? Lson extends V ? ReadonlyJsonObject : {
|
|
1221
1114
|
readonly [K in KS]: ToJson<V>;
|
|
1222
|
-
} : L extends
|
|
1115
|
+
} : L extends LsonObject ? string extends keyof L ? ReadonlyJsonObject : {
|
|
1223
1116
|
readonly [K in keyof L]: ToJson<Exclude<L[K], undefined>> | (undefined extends L[K] ? undefined : never);
|
|
1224
1117
|
} : L extends Json ? L : never;
|
|
1225
1118
|
|
|
@@ -5068,12 +4961,7 @@ type PlainLsonList = {
|
|
|
5068
4961
|
liveblocksType: "LiveList";
|
|
5069
4962
|
data: PlainLson[];
|
|
5070
4963
|
};
|
|
5071
|
-
type
|
|
5072
|
-
liveblocksType: "LiveText";
|
|
5073
|
-
data: LiveTextDelta;
|
|
5074
|
-
version?: number;
|
|
5075
|
-
};
|
|
5076
|
-
type PlainLson = PlainLsonObject | PlainLsonMap | PlainLsonList | PlainLsonText | Json;
|
|
4964
|
+
type PlainLson = PlainLsonObject | PlainLsonMap | PlainLsonList | Json;
|
|
5077
4965
|
|
|
5078
4966
|
/**
|
|
5079
4967
|
* Returns PlainLson for a given Json or LiveStructure, suitable for calling the storage init api
|
|
@@ -5781,4 +5669,4 @@ type EnsureJson<T> = T extends Json ? T : T extends Array<infer I> ? (EnsureJson
|
|
|
5781
5669
|
[K in keyof T as EnsureJson<T[K]> extends never ? never : K]: EnsureJson<T[K]>;
|
|
5782
5670
|
};
|
|
5783
5671
|
|
|
5784
|
-
export { type ActivityData, type AiAssistantContentPart, type AiAssistantMessage, type AiChat, type AiChatMessage, type AiChatsQuery, type AiKnowledgeRetrievalPart, type AiKnowledgeSource, type AiOpaqueToolDefinition, type AiOpaqueToolInvocationProps, type AiReasoningPart, type AiRetrievalPart, type AiSourcesPart, type AiTextPart, type AiToolDefinition, type AiToolExecuteCallback, type AiToolExecuteContext, type AiToolInvocationPart, type AiToolInvocationProps, type AiToolTypePack, type AiUrlSource, type AiUserMessage, type AiWebRetrievalPart, type AsyncError, type AsyncLoading, type AsyncResult, type AsyncSuccess, type Awaitable, type BaseActivitiesData, type BaseAuthResult, type BaseGroupInfo, type BaseMetadata, type BaseRoomInfo, type BaseUserMeta, type Brand, type BroadcastEventClientMsg, type BroadcastOptions, type BroadcastedEventServerMsg, type ChildStorageNode, type Client, type ClientMsg, ClientMsgCode, type ClientOptions, type ClientWireOp, 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, type CommentsEventServerMsg, type CompactChildNode, type CompactListNode, type CompactMapNode, type CompactNode, type CompactObjectNode, type CompactRegisterNode, type CompactRootNode, type
|
|
5672
|
+
export { type ActivityData, type AiAssistantContentPart, type AiAssistantMessage, type AiChat, type AiChatMessage, type AiChatsQuery, type AiKnowledgeRetrievalPart, type AiKnowledgeSource, type AiOpaqueToolDefinition, type AiOpaqueToolInvocationProps, type AiReasoningPart, type AiRetrievalPart, type AiSourcesPart, type AiTextPart, type AiToolDefinition, type AiToolExecuteCallback, type AiToolExecuteContext, type AiToolInvocationPart, type AiToolInvocationProps, type AiToolTypePack, type AiUrlSource, type AiUserMessage, type AiWebRetrievalPart, type AsyncError, type AsyncLoading, type AsyncResult, type AsyncSuccess, type Awaitable, type BaseActivitiesData, type BaseAuthResult, type BaseGroupInfo, type BaseMetadata, type BaseRoomInfo, type BaseUserMeta, type Brand, type BroadcastEventClientMsg, type BroadcastOptions, type BroadcastedEventServerMsg, type ChildStorageNode, type Client, type ClientMsg, ClientMsgCode, type ClientOptions, type ClientWireOp, 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, type CommentsEventServerMsg, type CompactChildNode, type CompactListNode, type CompactMapNode, type CompactNode, type CompactObjectNode, type CompactRegisterNode, type CompactRootNode, 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 DCM, type DE, type DFM, type DFMD, type DGI, type DP, type DRI, type DS, type DTM, 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 Feed, type FeedCreateMetadata, type FeedDeletedServerMsg, type FeedFetchMetadataFilter, type FeedMessage, type FeedMessagesAddedServerMsg, type FeedMessagesDeletedServerMsg, type FeedMessagesListServerMsg, type FeedMessagesUpdatedServerMsg, type FeedRequestError, FeedRequestErrorCode, type FeedRequestFailedServerMsg, type FeedUpdateMetadata, type FeedsAddedServerMsg, type FeedsEventServerMsg, type FeedsListServerMsg, type FeedsUpdatedServerMsg, type FetchStorageClientMsg, type FetchYDocClientMsg, type GetThreadsOptions, type GroupData, type GroupDataPlain, type GroupMemberData, type GroupMentionData, type GroupScopes, type HasOpId, type History, type HistoryVersion, HttpError, type ISODateString, type ISignal, type IUserInfo, type IWebSocket, type IWebSocketCloseEvent, type IWebSocketEvent, type IWebSocketInstance, type IWebSocketMessageEvent, type IYjsProvider, type IgnoredOp, type Immutable, type InboxNotificationCustomData, type InboxNotificationCustomDataPlain, type InboxNotificationData, type InboxNotificationDataPlain, type InboxNotificationDeleteInfo, type InboxNotificationTextMentionData, type InboxNotificationTextMentionDataPlain, type InboxNotificationThreadData, type InboxNotificationThreadDataPlain, type InferFromSchema, type Json, type JsonArray, type JsonObject, type JsonScalar, type KDAD, type LayerKey, type ListStorageNode, LiveList, type LiveListUpdate, LiveMap, type LiveMapUpdate, type LiveNode, LiveObject, type LiveObjectUpdate, type LiveStructure, LiveblocksError, type LiveblocksErrorContext, type LostConnectionEvent, type Lson, type LsonObject, MENTION_CHARACTER, type ManagedPool, type MapStorageNode, type MentionData, type MessageId, MutableSignal, type NoInfr, type NodeMap, type NodeStream, type NotificationChannel, type NotificationChannelSettings, type NotificationKind, type NotificationSettings, type NotificationSettingsPlain, type ObjectStorageNode, 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 ReadonlyJson, type ReadonlyJsonObject, type RegisterStorageNode, type RejectedStorageOpServerMsg, type Relax, type RenderableToolResultResponse, type Resolve, type ResolveGroupsInfoArgs, type ResolveMentionSuggestionsArgs, type ResolveRoomsInfoArgs, type ResolveUsersArgs, type Room, type RoomEventMessage, type RoomStateServerMsg, type RoomSubscriptionSettings, type RootStorageNode, type SearchCommentsResult, type SerializedChild, type SerializedCrdt, type SerializedList, type SerializedMap, type SerializedObject, type SerializedRegister, type SerializedRootObject, type ServerMsg, ServerMsgCode, type ServerWireOp, type SetParentKeyOp, Signal, type SignalType, SortedList, type Status, type StorageChunkServerMsg, type StorageNode, type StorageStatus, type StorageUpdate, type StringifyCommentBodyElements, type StringifyCommentBodyOptions, type SubscriptionData, type SubscriptionDataPlain, type SubscriptionDeleteInfo, type SubscriptionDeleteInfoPlain, type SubscriptionKey, type SyncConfig, type SyncMode, type SyncSource, type SyncStatus, TextEditorType, type ThreadData, type ThreadDataPlain, type ThreadDataWithDeleteInfo, type ThreadDeleteInfo, type ToJson, type ToolResultResponse, type URLSafeString, type UnsubscribeCallback, type UpdateObjectOp, type UpdatePresenceClientMsg, type UpdatePresenceServerMsg, type UpdateStorageClientMsg, type UpdateStorageServerMsg, type UpdateYDocClientMsg, type UploadAttachmentOptions, type UrlMetadata, type User, type UserJoinServerMsg, type UserLeftServerMsg, type UserMentionData, type UserRoomSubscriptionSettings, type UserSubscriptionData, type UserSubscriptionDataPlain, WebsocketCloseCodes, type WithNavigation, type WithOptional, type WithRequired, type YDocUpdateServerMsg, type YjsSyncStatus, asPos, assert, assertNever, autoRetry, b64decode, batch, checkBounds, chunk, cloneLson, compactNodesToNodeStream, compactObject, fancyConsole as console, convertToCommentData, convertToCommentUserReaction, convertToGroupData, convertToInboxNotificationData, convertToSubscriptionData, convertToThreadData, convertToUserSubscriptionData, createClient, createCommentAttachmentId, createCommentId, createInboxNotificationId, createManagedPool, createNotificationSettings, createThreadId, defineAiTool, deprecate, deprecateIf, detectDupes, entries, errorIf, findLastIndex, freeze, generateUrl, getMentionsFromCommentBody, getSubscriptionKey, html, htmlSafe, isCommentBodyLink, isCommentBodyMention, isCommentBodyText, isJsonArray, isJsonObject, isJsonScalar, isListStorageNode, isLiveNode, isMapStorageNode, isNotificationChannelEnabled, isNumberOperator, isObjectStorageNode, isPlainObject, isRegisterStorageNode, isRootStorageNode, isStartsWithOperator, isUrl, kInternal, keys, makeAbortController, makeEventSource, makePoller, makePosition, mapValues, memoizeOnSuccess, nanoid, nn, nodeStreamToCompactNodes, objectToQuery, patchNotificationSettings, raise, resolveMentionsInCommentBody, sanitizeUrl, shallow, shallow2, stableStringify, stringifyCommentBody, throwUsageError, toPlainLson, tryParseJson, url, urljoin, wait, warnOnce, warnOnceIf, withTimeout };
|