@liveblocks/core 3.19.4-test1 → 3.19.5-rc1
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 +433 -842
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +52 -129
- package/dist/index.d.ts +52 -129
- package/dist/index.js +334 -743
- 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;
|
|
@@ -563,6 +519,7 @@ type HasOpId = {
|
|
|
563
519
|
* acknowledge the receipt.
|
|
564
520
|
*/
|
|
565
521
|
type ClientWireOp = Op & HasOpId;
|
|
522
|
+
type ClientWireCreateOp = CreateOp & HasOpId;
|
|
566
523
|
/**
|
|
567
524
|
* ServerWireOp: Ops sent from server → client. Three variants:
|
|
568
525
|
* 1. ClientWireOp — Full echo back of our own op, confirming it was applied
|
|
@@ -660,17 +617,15 @@ declare const CrdtType: Readonly<{
|
|
|
660
617
|
LIST: 1;
|
|
661
618
|
MAP: 2;
|
|
662
619
|
REGISTER: 3;
|
|
663
|
-
TEXT: 4;
|
|
664
620
|
}>;
|
|
665
621
|
declare namespace CrdtType {
|
|
666
622
|
type OBJECT = typeof CrdtType.OBJECT;
|
|
667
623
|
type LIST = typeof CrdtType.LIST;
|
|
668
624
|
type MAP = typeof CrdtType.MAP;
|
|
669
625
|
type REGISTER = typeof CrdtType.REGISTER;
|
|
670
|
-
type TEXT = typeof CrdtType.TEXT;
|
|
671
626
|
}
|
|
672
627
|
type SerializedCrdt = SerializedRootObject | SerializedChild;
|
|
673
|
-
type SerializedChild = SerializedObject | SerializedList | SerializedMap | SerializedRegister
|
|
628
|
+
type SerializedChild = SerializedObject | SerializedList | SerializedMap | SerializedRegister;
|
|
674
629
|
type SerializedRootObject = {
|
|
675
630
|
readonly type: CrdtType.OBJECT;
|
|
676
631
|
readonly data: JsonObject;
|
|
@@ -699,21 +654,13 @@ type SerializedRegister = {
|
|
|
699
654
|
readonly parentKey: string;
|
|
700
655
|
readonly data: Json;
|
|
701
656
|
};
|
|
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
657
|
type StorageNode = RootStorageNode | ChildStorageNode;
|
|
710
|
-
type ChildStorageNode = ObjectStorageNode | ListStorageNode | MapStorageNode | RegisterStorageNode
|
|
658
|
+
type ChildStorageNode = ObjectStorageNode | ListStorageNode | MapStorageNode | RegisterStorageNode;
|
|
711
659
|
type RootStorageNode = [id: "root", value: SerializedRootObject];
|
|
712
660
|
type ObjectStorageNode = [id: string, value: SerializedObject];
|
|
713
661
|
type ListStorageNode = [id: string, value: SerializedList];
|
|
714
662
|
type MapStorageNode = [id: string, value: SerializedMap];
|
|
715
663
|
type RegisterStorageNode = [id: string, value: SerializedRegister];
|
|
716
|
-
type TextStorageNode = [id: string, value: SerializedText];
|
|
717
664
|
type NodeMap = Map<string, SerializedCrdt>;
|
|
718
665
|
type NodeStream = Iterable<StorageNode>;
|
|
719
666
|
declare function isRootStorageNode(node: StorageNode): node is RootStorageNode;
|
|
@@ -721,9 +668,8 @@ declare function isObjectStorageNode(node: StorageNode): node is RootStorageNode
|
|
|
721
668
|
declare function isListStorageNode(node: StorageNode): node is ListStorageNode;
|
|
722
669
|
declare function isMapStorageNode(node: StorageNode): node is MapStorageNode;
|
|
723
670
|
declare function isRegisterStorageNode(node: StorageNode): node is RegisterStorageNode;
|
|
724
|
-
declare function isTextStorageNode(node: StorageNode): node is TextStorageNode;
|
|
725
671
|
type CompactNode = CompactRootNode | CompactChildNode;
|
|
726
|
-
type CompactChildNode = CompactObjectNode | CompactListNode | CompactMapNode | CompactRegisterNode
|
|
672
|
+
type CompactChildNode = CompactObjectNode | CompactListNode | CompactMapNode | CompactRegisterNode;
|
|
727
673
|
type CompactRootNode = readonly [id: "root", data: JsonObject];
|
|
728
674
|
type CompactObjectNode = readonly [
|
|
729
675
|
id: string,
|
|
@@ -751,14 +697,6 @@ type CompactRegisterNode = readonly [
|
|
|
751
697
|
parentKey: string,
|
|
752
698
|
data: Json
|
|
753
699
|
];
|
|
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
700
|
declare function compactNodesToNodeStream(compactNodes: CompactNode[]): NodeStream;
|
|
763
701
|
declare function nodeStreamToCompactNodes(nodes: NodeStream): Iterable<CompactNode>;
|
|
764
702
|
|
|
@@ -916,60 +854,31 @@ declare class LiveObject<O extends LsonObject> extends AbstractCrdt {
|
|
|
916
854
|
clone(): LiveObject<O>;
|
|
917
855
|
}
|
|
918
856
|
|
|
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
857
|
type StorageCallback = (updates: StorageUpdate[]) => void;
|
|
963
858
|
type LiveMapUpdate = LiveMapUpdates<string, Lson>;
|
|
964
859
|
type LiveObjectUpdate = LiveObjectUpdates<LsonObject>;
|
|
965
860
|
type LiveListUpdate = LiveListUpdates<Lson>;
|
|
966
|
-
type LiveTextUpdate = LiveTextUpdates;
|
|
967
861
|
/**
|
|
968
862
|
* The payload of notifications sent (in-client) when LiveStructures change.
|
|
969
863
|
* Messages of this kind are not originating from the network, but are 100%
|
|
970
864
|
* in-client.
|
|
971
865
|
*/
|
|
972
|
-
type StorageUpdate = LiveMapUpdate | LiveObjectUpdate | LiveListUpdate
|
|
866
|
+
type StorageUpdate = LiveMapUpdate | LiveObjectUpdate | LiveListUpdate;
|
|
867
|
+
|
|
868
|
+
/**
|
|
869
|
+
* Read-only query surface over {@link UnacknowledgedOps}, handed to CRDTs so
|
|
870
|
+
* they can look up their own still-pending Create ops without being able to
|
|
871
|
+
* mutate the set (only the room adds/acks).
|
|
872
|
+
*/
|
|
873
|
+
interface ReadonlyUnacknowledgedOps {
|
|
874
|
+
/** Still-unacknowledged Create ops whose `parentId` is the given one. */
|
|
875
|
+
getByParentId(parentId: string): Iterable<ClientWireCreateOp>;
|
|
876
|
+
/**
|
|
877
|
+
* Still-unacknowledged Create ops whose `parentId` and `parentKey` are both
|
|
878
|
+
* the given ones (i.e. targeting one exact position).
|
|
879
|
+
*/
|
|
880
|
+
getByParentIdAndKey(parentId: string, parentKey: string): Iterable<ClientWireCreateOp>;
|
|
881
|
+
}
|
|
973
882
|
|
|
974
883
|
/**
|
|
975
884
|
* The managed pool is a namespace registry (i.e. a context) that "owns" all
|
|
@@ -999,6 +908,11 @@ interface ManagedPool {
|
|
|
999
908
|
* @returns {void}
|
|
1000
909
|
*/
|
|
1001
910
|
assertStorageIsWritable: () => void;
|
|
911
|
+
/**
|
|
912
|
+
* Read-only view of the client's still-unacknowledged ops (sent or
|
|
913
|
+
* pending-send, not yet confirmed by the server).
|
|
914
|
+
*/
|
|
915
|
+
readonly unacknowledgedOps: ReadonlyUnacknowledgedOps;
|
|
1002
916
|
}
|
|
1003
917
|
type CreateManagedPoolOptions = {
|
|
1004
918
|
/**
|
|
@@ -1018,6 +932,13 @@ type CreateManagedPoolOptions = {
|
|
|
1018
932
|
* have an effect upstream.
|
|
1019
933
|
*/
|
|
1020
934
|
isStorageWritable?: () => boolean;
|
|
935
|
+
/**
|
|
936
|
+
* Read-only view of the client's still-unacknowledged ops. Used by CRDTs
|
|
937
|
+
* (e.g. LiveList) to know which of their optimistic mutations the server
|
|
938
|
+
* hasn't confirmed yet. Defaults to an empty view (e.g. server-side pools
|
|
939
|
+
* that dispatch-and-flush have no optimistic state to track).
|
|
940
|
+
*/
|
|
941
|
+
unacknowledgedOps?: ReadonlyUnacknowledgedOps;
|
|
1021
942
|
};
|
|
1022
943
|
/**
|
|
1023
944
|
* @private Private API, never use this API directly.
|
|
@@ -1183,7 +1104,7 @@ declare class LiveRegister<TValue extends Json> extends AbstractCrdt {
|
|
|
1183
1104
|
clone(): TValue;
|
|
1184
1105
|
}
|
|
1185
1106
|
|
|
1186
|
-
type LiveStructure = LiveObject<LsonObject> | LiveList<Lson> | LiveMap<string, Lson
|
|
1107
|
+
type LiveStructure = LiveObject<LsonObject> | LiveList<Lson> | LiveMap<string, Lson>;
|
|
1187
1108
|
/**
|
|
1188
1109
|
* Think of Lson as a sibling of the Json data tree, except that the nested
|
|
1189
1110
|
* data structure can contain a mix of Json values and LiveStructure instances.
|
|
@@ -1219,7 +1140,7 @@ type ToJson<L extends Lson | LsonObject> = L extends LiveList<infer I extends Ls
|
|
|
1219
1140
|
readonly [K in keyof O]: ToJson<Exclude<O[K], undefined>> | (undefined extends O[K] ? undefined : never);
|
|
1220
1141
|
} : L extends LiveMap<infer KS extends string, infer V extends Lson> ? Lson extends V ? ReadonlyJsonObject : {
|
|
1221
1142
|
readonly [K in KS]: ToJson<V>;
|
|
1222
|
-
} : L extends
|
|
1143
|
+
} : L extends LsonObject ? string extends keyof L ? ReadonlyJsonObject : {
|
|
1223
1144
|
readonly [K in keyof L]: ToJson<Exclude<L[K], undefined>> | (undefined extends L[K] ? undefined : never);
|
|
1224
1145
|
} : L extends Json ? L : never;
|
|
1225
1146
|
|
|
@@ -5068,12 +4989,7 @@ type PlainLsonList = {
|
|
|
5068
4989
|
liveblocksType: "LiveList";
|
|
5069
4990
|
data: PlainLson[];
|
|
5070
4991
|
};
|
|
5071
|
-
type
|
|
5072
|
-
liveblocksType: "LiveText";
|
|
5073
|
-
data: LiveTextDelta;
|
|
5074
|
-
version?: number;
|
|
5075
|
-
};
|
|
5076
|
-
type PlainLson = PlainLsonObject | PlainLsonMap | PlainLsonList | PlainLsonText | Json;
|
|
4992
|
+
type PlainLson = PlainLsonObject | PlainLsonMap | PlainLsonList | Json;
|
|
5077
4993
|
|
|
5078
4994
|
/**
|
|
5079
4995
|
* Returns PlainLson for a given Json or LiveStructure, suitable for calling the storage init api
|
|
@@ -5569,6 +5485,13 @@ declare class SortedList<T> {
|
|
|
5569
5485
|
reposition(value: T): number;
|
|
5570
5486
|
at(index: number): T | undefined;
|
|
5571
5487
|
get length(): number;
|
|
5488
|
+
/**
|
|
5489
|
+
* Whether the given value is present, by identity. O(log n) plus the length
|
|
5490
|
+
* of any run of items that share its sort key (normally 1). Bisects on the
|
|
5491
|
+
* value's own key, so it only finds values sitting at their sorted position,
|
|
5492
|
+
* which is true for any item currently in the list.
|
|
5493
|
+
*/
|
|
5494
|
+
includes(value: T): boolean;
|
|
5572
5495
|
filter(predicate: (value: T) => boolean): IterableIterator<T>;
|
|
5573
5496
|
findAllRight(predicate: (value: T, index: number) => unknown): IterableIterator<T>;
|
|
5574
5497
|
[Symbol.iterator](): IterableIterator<T>;
|
|
@@ -5781,4 +5704,4 @@ type EnsureJson<T> = T extends Json ? T : T extends Array<infer I> ? (EnsureJson
|
|
|
5781
5704
|
[K in keyof T as EnsureJson<T[K]> extends never ? never : K]: EnsureJson<T[K]>;
|
|
5782
5705
|
};
|
|
5783
5706
|
|
|
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
|
|
5707
|
+
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 };
|