@liveblocks/core 3.23.1-exp1 → 3.23.1-exp2
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 +371 -252
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +172 -167
- package/dist/index.d.ts +172 -167
- package/dist/index.js +297 -178
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -623,134 +623,6 @@ declare function nodeStreamToCompactNodes(nodes: NodeStream): Iterable<CompactNo
|
|
|
623
623
|
* );
|
|
624
624
|
*/
|
|
625
625
|
declare const kInternal: unique symbol;
|
|
626
|
-
declare const kStorageUpdateSource: unique symbol;
|
|
627
|
-
|
|
628
|
-
type LiveListUpdateDelta = {
|
|
629
|
-
type: "insert";
|
|
630
|
-
index: number;
|
|
631
|
-
item: Lson;
|
|
632
|
-
} | {
|
|
633
|
-
type: "delete";
|
|
634
|
-
index: number;
|
|
635
|
-
deletedItem: Lson;
|
|
636
|
-
} | {
|
|
637
|
-
type: "move";
|
|
638
|
-
index: number;
|
|
639
|
-
previousIndex: number;
|
|
640
|
-
item: Lson;
|
|
641
|
-
} | {
|
|
642
|
-
type: "set";
|
|
643
|
-
index: number;
|
|
644
|
-
item: Lson;
|
|
645
|
-
};
|
|
646
|
-
/**
|
|
647
|
-
* A LiveList notification that is sent in-client to any subscribers whenever
|
|
648
|
-
* one or more of the items inside the LiveList instance have changed.
|
|
649
|
-
*/
|
|
650
|
-
type LiveListUpdates<TItem extends Lson> = {
|
|
651
|
-
type: "LiveList";
|
|
652
|
-
node: LiveList<TItem>;
|
|
653
|
-
updates: LiveListUpdateDelta[];
|
|
654
|
-
};
|
|
655
|
-
/**
|
|
656
|
-
* The LiveList class represents an ordered collection of items that is synchronized across clients.
|
|
657
|
-
*/
|
|
658
|
-
declare class LiveList<TItem extends Lson> extends AbstractCrdt {
|
|
659
|
-
#private;
|
|
660
|
-
constructor(items: TItem[]);
|
|
661
|
-
/**
|
|
662
|
-
* Returns the number of elements.
|
|
663
|
-
*/
|
|
664
|
-
get length(): number;
|
|
665
|
-
/**
|
|
666
|
-
* Adds one element to the end of the LiveList.
|
|
667
|
-
* @param element The element to add to the end of the LiveList.
|
|
668
|
-
*/
|
|
669
|
-
push(element: TItem): void;
|
|
670
|
-
/**
|
|
671
|
-
* Inserts one element at a specified index.
|
|
672
|
-
* @param element The element to insert.
|
|
673
|
-
* @param index The index at which you want to insert the element.
|
|
674
|
-
*/
|
|
675
|
-
insert(element: TItem, index: number): void;
|
|
676
|
-
/**
|
|
677
|
-
* Move one element from one index to another.
|
|
678
|
-
* @param index The index of the element to move
|
|
679
|
-
* @param targetIndex The index where the element should be after moving.
|
|
680
|
-
*/
|
|
681
|
-
move(index: number, targetIndex: number): void;
|
|
682
|
-
/**
|
|
683
|
-
* Deletes an element at the specified index
|
|
684
|
-
* @param index The index of the element to delete
|
|
685
|
-
*/
|
|
686
|
-
delete(index: number): void;
|
|
687
|
-
clear(): void;
|
|
688
|
-
set(index: number, item: TItem): void;
|
|
689
|
-
/**
|
|
690
|
-
* Tests whether all elements pass the test implemented by the provided function.
|
|
691
|
-
* @param predicate Function to test for each element, taking two arguments (the element and its index).
|
|
692
|
-
* @returns true if the predicate function returns a truthy value for every element. Otherwise, false.
|
|
693
|
-
*/
|
|
694
|
-
every(predicate: (value: TItem, index: number) => unknown): boolean;
|
|
695
|
-
/**
|
|
696
|
-
* Creates an array with all elements that pass the test implemented by the provided function.
|
|
697
|
-
* @param predicate Function to test each element of the LiveList. Return a value that coerces to true to keep the element, or to false otherwise.
|
|
698
|
-
* @returns An array with the elements that pass the test.
|
|
699
|
-
*/
|
|
700
|
-
filter(predicate: (value: TItem, index: number) => unknown): TItem[];
|
|
701
|
-
/**
|
|
702
|
-
* Returns the first element that satisfies the provided testing function.
|
|
703
|
-
* @param predicate Function to execute on each value.
|
|
704
|
-
* @returns The value of the first element in the LiveList that satisfies the provided testing function. Otherwise, undefined is returned.
|
|
705
|
-
*/
|
|
706
|
-
find(predicate: (value: TItem, index: number) => unknown): TItem | undefined;
|
|
707
|
-
/**
|
|
708
|
-
* Returns the index of the first element in the LiveList that satisfies the provided testing function.
|
|
709
|
-
* @param predicate Function to execute on each value until the function returns true, indicating that the satisfying element was found.
|
|
710
|
-
* @returns The index of the first element in the LiveList that passes the test. Otherwise, -1.
|
|
711
|
-
*/
|
|
712
|
-
findIndex(predicate: (value: TItem, index: number) => unknown): number;
|
|
713
|
-
/**
|
|
714
|
-
* Executes a provided function once for each element.
|
|
715
|
-
* @param callbackfn Function to execute on each element.
|
|
716
|
-
*/
|
|
717
|
-
forEach(callbackfn: (value: TItem, index: number) => void): void;
|
|
718
|
-
/**
|
|
719
|
-
* Get the element at the specified index.
|
|
720
|
-
* @param index The index on the element to get.
|
|
721
|
-
* @returns The element at the specified index or undefined.
|
|
722
|
-
*/
|
|
723
|
-
get(index: number): TItem | undefined;
|
|
724
|
-
/**
|
|
725
|
-
* Returns the first index at which a given element can be found in the LiveList, or -1 if it is not present.
|
|
726
|
-
* @param searchElement Element to locate.
|
|
727
|
-
* @param fromIndex The index to start the search at.
|
|
728
|
-
* @returns The first index of the element in the LiveList; -1 if not found.
|
|
729
|
-
*/
|
|
730
|
-
indexOf(searchElement: TItem, fromIndex?: number): number;
|
|
731
|
-
/**
|
|
732
|
-
* Returns the last index at which a given element can be found in the LiveList, or -1 if it is not present. The LiveList is searched backwards, starting at fromIndex.
|
|
733
|
-
* @param searchElement Element to locate.
|
|
734
|
-
* @param fromIndex The index at which to start searching backwards.
|
|
735
|
-
* @returns The last index of the element in the LiveList; -1 if not found.
|
|
736
|
-
*/
|
|
737
|
-
lastIndexOf(searchElement: TItem, fromIndex?: number): number;
|
|
738
|
-
/**
|
|
739
|
-
* Creates an array populated with the results of calling a provided function on every element.
|
|
740
|
-
* @param callback Function that is called for every element.
|
|
741
|
-
* @returns An array with each element being the result of the callback function.
|
|
742
|
-
*/
|
|
743
|
-
map<U>(callback: (value: TItem, index: number) => U): U[];
|
|
744
|
-
/**
|
|
745
|
-
* Tests whether at least one element in the LiveList passes the test implemented by the provided function.
|
|
746
|
-
* @param predicate Function to test for each element.
|
|
747
|
-
* @returns true if the callback function returns a truthy value for at least one element. Otherwise, false.
|
|
748
|
-
*/
|
|
749
|
-
some(predicate: (value: TItem, index: number) => unknown): boolean;
|
|
750
|
-
[Symbol.iterator](): IterableIterator<TItem>;
|
|
751
|
-
toJSON(): readonly ToJson<TItem>[];
|
|
752
|
-
clone(): LiveList<TItem>;
|
|
753
|
-
}
|
|
754
626
|
|
|
755
627
|
type UpdateDelta = {
|
|
756
628
|
type: "update";
|
|
@@ -769,6 +641,7 @@ type LiveMapUpdates<TKey extends string, TValue extends Lson> = {
|
|
|
769
641
|
updates: {
|
|
770
642
|
[key: string]: UpdateDelta;
|
|
771
643
|
};
|
|
644
|
+
source: UpdateSource;
|
|
772
645
|
};
|
|
773
646
|
/**
|
|
774
647
|
* The LiveMap class is similar to a JavaScript Map that is synchronized on all clients.
|
|
@@ -908,6 +781,7 @@ type LiveObjectUpdates<TData extends LsonObject> = {
|
|
|
908
781
|
type: "LiveObject";
|
|
909
782
|
node: LiveObject<TData>;
|
|
910
783
|
updates: LiveObjectUpdateDelta<TData>;
|
|
784
|
+
source: UpdateSource;
|
|
911
785
|
};
|
|
912
786
|
/**
|
|
913
787
|
* The LiveObject class is similar to a JavaScript object that is synchronized on all clients.
|
|
@@ -994,16 +868,6 @@ declare class LiveObject<O extends LsonObject> extends AbstractCrdt {
|
|
|
994
868
|
clone(): LiveObject<O>;
|
|
995
869
|
}
|
|
996
870
|
|
|
997
|
-
/**
|
|
998
|
-
* INTERNAL
|
|
999
|
-
*/
|
|
1000
|
-
declare class LiveRegister<TValue extends Json> extends AbstractCrdt {
|
|
1001
|
-
#private;
|
|
1002
|
-
constructor(data: TValue);
|
|
1003
|
-
get data(): TValue;
|
|
1004
|
-
clone(): TValue;
|
|
1005
|
-
}
|
|
1006
|
-
|
|
1007
871
|
/**
|
|
1008
872
|
* The position of the ops being transformed relative to the ops they are
|
|
1009
873
|
* transformed over, in the final (server-serialized) timeline:
|
|
@@ -1055,6 +919,7 @@ type LiveTextUpdates = {
|
|
|
1055
919
|
node: LiveText;
|
|
1056
920
|
version: number;
|
|
1057
921
|
updates: LiveTextChange[];
|
|
922
|
+
source: UpdateSource;
|
|
1058
923
|
};
|
|
1059
924
|
/**
|
|
1060
925
|
* @private
|
|
@@ -1195,6 +1060,174 @@ declare class LiveText extends AbstractCrdt {
|
|
|
1195
1060
|
clone(): LiveText;
|
|
1196
1061
|
}
|
|
1197
1062
|
|
|
1063
|
+
type StorageCallback = (updates: StorageUpdate[]) => void;
|
|
1064
|
+
type LiveMapUpdate = LiveMapUpdates<string, Lson>;
|
|
1065
|
+
type LiveObjectUpdate = LiveObjectUpdates<LsonObject>;
|
|
1066
|
+
type LiveListUpdate = LiveListUpdates<Lson>;
|
|
1067
|
+
type LiveTextUpdate = LiveTextUpdates;
|
|
1068
|
+
type Via = "edit" | "undo" | "redo";
|
|
1069
|
+
/**
|
|
1070
|
+
* Where a Storage update came from.
|
|
1071
|
+
*
|
|
1072
|
+
* Updates with `origin: "remote"` were made by another client, and reached
|
|
1073
|
+
* this client over the network. Updates with `origin: "local"` were made by
|
|
1074
|
+
* this client, and `via` says how: a regular edit, or a replay from the
|
|
1075
|
+
* undo/redo history.
|
|
1076
|
+
*/
|
|
1077
|
+
type UpdateSource = {
|
|
1078
|
+
origin: "remote";
|
|
1079
|
+
} | {
|
|
1080
|
+
origin: "local";
|
|
1081
|
+
via: Via;
|
|
1082
|
+
};
|
|
1083
|
+
/**
|
|
1084
|
+
* The payload of notifications sent (in-client) when LiveStructures change.
|
|
1085
|
+
* Messages of this kind are not originating from the network, but are 100%
|
|
1086
|
+
* in-client.
|
|
1087
|
+
*
|
|
1088
|
+
* Every update carries a `source`, saying where the change came from. See
|
|
1089
|
+
* {@link UpdateSource}.
|
|
1090
|
+
*/
|
|
1091
|
+
type StorageUpdate = LiveMapUpdate | LiveObjectUpdate | LiveListUpdate | LiveTextUpdate;
|
|
1092
|
+
|
|
1093
|
+
type LiveListUpdateDelta = {
|
|
1094
|
+
type: "insert";
|
|
1095
|
+
index: number;
|
|
1096
|
+
item: Lson;
|
|
1097
|
+
} | {
|
|
1098
|
+
type: "delete";
|
|
1099
|
+
index: number;
|
|
1100
|
+
deletedItem: Lson;
|
|
1101
|
+
} | {
|
|
1102
|
+
type: "move";
|
|
1103
|
+
index: number;
|
|
1104
|
+
previousIndex: number;
|
|
1105
|
+
item: Lson;
|
|
1106
|
+
} | {
|
|
1107
|
+
type: "set";
|
|
1108
|
+
index: number;
|
|
1109
|
+
item: Lson;
|
|
1110
|
+
};
|
|
1111
|
+
/**
|
|
1112
|
+
* A LiveList notification that is sent in-client to any subscribers whenever
|
|
1113
|
+
* one or more of the items inside the LiveList instance have changed.
|
|
1114
|
+
*/
|
|
1115
|
+
type LiveListUpdates<TItem extends Lson> = {
|
|
1116
|
+
type: "LiveList";
|
|
1117
|
+
node: LiveList<TItem>;
|
|
1118
|
+
updates: LiveListUpdateDelta[];
|
|
1119
|
+
source: UpdateSource;
|
|
1120
|
+
};
|
|
1121
|
+
/**
|
|
1122
|
+
* The LiveList class represents an ordered collection of items that is synchronized across clients.
|
|
1123
|
+
*/
|
|
1124
|
+
declare class LiveList<TItem extends Lson> extends AbstractCrdt {
|
|
1125
|
+
#private;
|
|
1126
|
+
constructor(items: TItem[]);
|
|
1127
|
+
/**
|
|
1128
|
+
* Returns the number of elements.
|
|
1129
|
+
*/
|
|
1130
|
+
get length(): number;
|
|
1131
|
+
/**
|
|
1132
|
+
* Adds one element to the end of the LiveList.
|
|
1133
|
+
* @param element The element to add to the end of the LiveList.
|
|
1134
|
+
*/
|
|
1135
|
+
push(element: TItem): void;
|
|
1136
|
+
/**
|
|
1137
|
+
* Inserts one element at a specified index.
|
|
1138
|
+
* @param element The element to insert.
|
|
1139
|
+
* @param index The index at which you want to insert the element.
|
|
1140
|
+
*/
|
|
1141
|
+
insert(element: TItem, index: number): void;
|
|
1142
|
+
/**
|
|
1143
|
+
* Move one element from one index to another.
|
|
1144
|
+
* @param index The index of the element to move
|
|
1145
|
+
* @param targetIndex The index where the element should be after moving.
|
|
1146
|
+
*/
|
|
1147
|
+
move(index: number, targetIndex: number): void;
|
|
1148
|
+
/**
|
|
1149
|
+
* Deletes an element at the specified index
|
|
1150
|
+
* @param index The index of the element to delete
|
|
1151
|
+
*/
|
|
1152
|
+
delete(index: number): void;
|
|
1153
|
+
clear(): void;
|
|
1154
|
+
set(index: number, item: TItem): void;
|
|
1155
|
+
/**
|
|
1156
|
+
* Tests whether all elements pass the test implemented by the provided function.
|
|
1157
|
+
* @param predicate Function to test for each element, taking two arguments (the element and its index).
|
|
1158
|
+
* @returns true if the predicate function returns a truthy value for every element. Otherwise, false.
|
|
1159
|
+
*/
|
|
1160
|
+
every(predicate: (value: TItem, index: number) => unknown): boolean;
|
|
1161
|
+
/**
|
|
1162
|
+
* Creates an array with all elements that pass the test implemented by the provided function.
|
|
1163
|
+
* @param predicate Function to test each element of the LiveList. Return a value that coerces to true to keep the element, or to false otherwise.
|
|
1164
|
+
* @returns An array with the elements that pass the test.
|
|
1165
|
+
*/
|
|
1166
|
+
filter(predicate: (value: TItem, index: number) => unknown): TItem[];
|
|
1167
|
+
/**
|
|
1168
|
+
* Returns the first element that satisfies the provided testing function.
|
|
1169
|
+
* @param predicate Function to execute on each value.
|
|
1170
|
+
* @returns The value of the first element in the LiveList that satisfies the provided testing function. Otherwise, undefined is returned.
|
|
1171
|
+
*/
|
|
1172
|
+
find(predicate: (value: TItem, index: number) => unknown): TItem | undefined;
|
|
1173
|
+
/**
|
|
1174
|
+
* Returns the index of the first element in the LiveList that satisfies the provided testing function.
|
|
1175
|
+
* @param predicate Function to execute on each value until the function returns true, indicating that the satisfying element was found.
|
|
1176
|
+
* @returns The index of the first element in the LiveList that passes the test. Otherwise, -1.
|
|
1177
|
+
*/
|
|
1178
|
+
findIndex(predicate: (value: TItem, index: number) => unknown): number;
|
|
1179
|
+
/**
|
|
1180
|
+
* Executes a provided function once for each element.
|
|
1181
|
+
* @param callbackfn Function to execute on each element.
|
|
1182
|
+
*/
|
|
1183
|
+
forEach(callbackfn: (value: TItem, index: number) => void): void;
|
|
1184
|
+
/**
|
|
1185
|
+
* Get the element at the specified index.
|
|
1186
|
+
* @param index The index on the element to get.
|
|
1187
|
+
* @returns The element at the specified index or undefined.
|
|
1188
|
+
*/
|
|
1189
|
+
get(index: number): TItem | undefined;
|
|
1190
|
+
/**
|
|
1191
|
+
* Returns the first index at which a given element can be found in the LiveList, or -1 if it is not present.
|
|
1192
|
+
* @param searchElement Element to locate.
|
|
1193
|
+
* @param fromIndex The index to start the search at.
|
|
1194
|
+
* @returns The first index of the element in the LiveList; -1 if not found.
|
|
1195
|
+
*/
|
|
1196
|
+
indexOf(searchElement: TItem, fromIndex?: number): number;
|
|
1197
|
+
/**
|
|
1198
|
+
* Returns the last index at which a given element can be found in the LiveList, or -1 if it is not present. The LiveList is searched backwards, starting at fromIndex.
|
|
1199
|
+
* @param searchElement Element to locate.
|
|
1200
|
+
* @param fromIndex The index at which to start searching backwards.
|
|
1201
|
+
* @returns The last index of the element in the LiveList; -1 if not found.
|
|
1202
|
+
*/
|
|
1203
|
+
lastIndexOf(searchElement: TItem, fromIndex?: number): number;
|
|
1204
|
+
/**
|
|
1205
|
+
* Creates an array populated with the results of calling a provided function on every element.
|
|
1206
|
+
* @param callback Function that is called for every element.
|
|
1207
|
+
* @returns An array with each element being the result of the callback function.
|
|
1208
|
+
*/
|
|
1209
|
+
map<U>(callback: (value: TItem, index: number) => U): U[];
|
|
1210
|
+
/**
|
|
1211
|
+
* Tests whether at least one element in the LiveList passes the test implemented by the provided function.
|
|
1212
|
+
* @param predicate Function to test for each element.
|
|
1213
|
+
* @returns true if the callback function returns a truthy value for at least one element. Otherwise, false.
|
|
1214
|
+
*/
|
|
1215
|
+
some(predicate: (value: TItem, index: number) => unknown): boolean;
|
|
1216
|
+
[Symbol.iterator](): IterableIterator<TItem>;
|
|
1217
|
+
toJSON(): readonly ToJson<TItem>[];
|
|
1218
|
+
clone(): LiveList<TItem>;
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
/**
|
|
1222
|
+
* INTERNAL
|
|
1223
|
+
*/
|
|
1224
|
+
declare class LiveRegister<TValue extends Json> extends AbstractCrdt {
|
|
1225
|
+
#private;
|
|
1226
|
+
constructor(data: TValue);
|
|
1227
|
+
get data(): TValue;
|
|
1228
|
+
clone(): TValue;
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1198
1231
|
type LiveStructure = LiveObject<LsonObject> | LiveList<Lson> | LiveMap<string, Lson> | LiveText | LiveFile;
|
|
1199
1232
|
/**
|
|
1200
1233
|
* Think of Lson as a sibling of the Json data tree, except that the nested
|
|
@@ -1235,34 +1268,6 @@ type ToJson<L extends Lson | LsonObject> = L extends LiveList<infer I extends Ls
|
|
|
1235
1268
|
readonly [K in keyof L]: ToJson<Exclude<L[K], undefined>> | (undefined extends L[K] ? undefined : never);
|
|
1236
1269
|
} : L extends Json ? L : never;
|
|
1237
1270
|
|
|
1238
|
-
type StorageCallback = (updates: StorageUpdate[]) => void;
|
|
1239
|
-
type LiveMapUpdate = LiveMapUpdates<string, Lson>;
|
|
1240
|
-
type LiveObjectUpdate = LiveObjectUpdates<LsonObject>;
|
|
1241
|
-
type LiveListUpdate = LiveListUpdates<Lson>;
|
|
1242
|
-
type LiveTextUpdate = LiveTextUpdates;
|
|
1243
|
-
type StorageUpdateSource = {
|
|
1244
|
-
origin: "remote";
|
|
1245
|
-
} | {
|
|
1246
|
-
origin: "local";
|
|
1247
|
-
via: "mutation";
|
|
1248
|
-
} | {
|
|
1249
|
-
origin: "local";
|
|
1250
|
-
via: "history";
|
|
1251
|
-
action: "undo" | "redo";
|
|
1252
|
-
};
|
|
1253
|
-
/**
|
|
1254
|
-
* The payload of notifications sent (in-client) when LiveStructures change.
|
|
1255
|
-
* Messages of this kind are not originating from the network, but are 100%
|
|
1256
|
-
* in-client.
|
|
1257
|
-
*
|
|
1258
|
-
* Updates delivered through `room.subscribe` may carry
|
|
1259
|
-
* `[kStorageUpdateSource]` to distinguish where a mutation came from.
|
|
1260
|
-
* Undo/redo replays use `via: "history"` with `action: "undo" | "redo"`.
|
|
1261
|
-
*/
|
|
1262
|
-
type StorageUpdate = (LiveMapUpdate | LiveObjectUpdate | LiveListUpdate | LiveTextUpdate) & {
|
|
1263
|
-
[kStorageUpdateSource]?: StorageUpdateSource;
|
|
1264
|
-
};
|
|
1265
|
-
|
|
1266
1271
|
/**
|
|
1267
1272
|
* Read-only query surface over {@link UnacknowledgedOps}, handed to CRDTs so
|
|
1268
1273
|
* they can look up their own still-pending Create ops without being able to
|
|
@@ -6224,4 +6229,4 @@ type EnsureJson<T> = T extends Json ? T : T extends Array<infer I> ? (EnsureJson
|
|
|
6224
6229
|
[K in keyof T as EnsureJson<T[K]> extends never ? never : K]: EnsureJson<T[K]>;
|
|
6225
6230
|
};
|
|
6226
6231
|
|
|
6227
|
-
export { type AccessLevel, 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 CompactFileNode, type CompactListNode, type CompactMapNode, type CompactNode, type CompactObjectNode, type CompactRegisterNode, type CompactRootNode, type CompactTextNode, type ContextualPromptContext, type ContextualPromptResponse, type CopilotId, CrdtType, type CreateFileOp, type CreateListOp, type CreateManagedPoolOptions, type CreateMapOp, type CreateObjectOp, type CreateOp, type CreateRegisterOp, type CreateTextOp, 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 FileStorageNode, type FileUrlData, 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, LiveFile, type LiveFileData, type LiveFileReference, LiveList, type LiveListUpdate, LiveMap, type LiveMapUpdate, type LiveNode, LiveObject, type LiveObjectUpdate, type LiveStructure, LiveText, type LiveTextAttributes, type LiveTextAttributesPatch, type LiveTextChange, type LiveTextData, type TextOperation as LiveTextOperation, type LiveTextSegment, type LiveTextUpdate, type LiveTextUpdates, 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 PermissionMatrix, type PermissionResources, type PlainLson, type PlainLsonFields, type PlainLsonFile, type PlainLsonList, type PlainLsonMap, type PlainLsonObject, type PlainLsonText, type Poller, type PrivateClientApi, type PrivateLiveNodeApi, type PrivateLiveTextApi, type PrivateRoomApi, Promise_withResolvers, type QueryMetadata, type QueryParams, type ReadonlyJson, type ReadonlyJsonObject, type RegisterStorageNode, type RejectedStorageOpServerMsg, type Relax, type RenderableToolResultResponse, type RequiredAccessLevel, type Resolve, type ResolveGroupsInfoArgs, type ResolveMentionSuggestionsArgs, type ResolveRoomsInfoArgs, type ResolveUsersArgs, type Room, type RoomAccesses, type RoomEventMessage, type RoomPermissions, type RoomStateServerMsg, type RoomSubscriptionSettings, type RootStorageNode, type SearchCommentsResult, type SerializedChild, type SerializedCrdt, type SerializedFile, type SerializedList, type SerializedMap, type SerializedObject, type SerializedRegister, type SerializedRootObject, type SerializedText, type ServerMsg, ServerMsgCode, type ServerWireOp, type SetParentKeyOp, Signal, type SignalType, SortedList, type Status, type StorageChunkServerMsg, type StorageNode, type StorageStatus, type StorageUpdate, type
|
|
6232
|
+
export { type AccessLevel, 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 CompactFileNode, type CompactListNode, type CompactMapNode, type CompactNode, type CompactObjectNode, type CompactRegisterNode, type CompactRootNode, type CompactTextNode, type ContextualPromptContext, type ContextualPromptResponse, type CopilotId, CrdtType, type CreateFileOp, type CreateListOp, type CreateManagedPoolOptions, type CreateMapOp, type CreateObjectOp, type CreateOp, type CreateRegisterOp, type CreateTextOp, 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 FileStorageNode, type FileUrlData, 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, LiveFile, type LiveFileData, type LiveFileReference, LiveList, type LiveListUpdate, LiveMap, type LiveMapUpdate, type LiveNode, LiveObject, type LiveObjectUpdate, type LiveStructure, LiveText, type LiveTextAttributes, type LiveTextAttributesPatch, type LiveTextChange, type LiveTextData, type TextOperation as LiveTextOperation, type LiveTextSegment, type LiveTextUpdate, type LiveTextUpdates, 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 PermissionMatrix, type PermissionResources, type PlainLson, type PlainLsonFields, type PlainLsonFile, type PlainLsonList, type PlainLsonMap, type PlainLsonObject, type PlainLsonText, type Poller, type PrivateClientApi, type PrivateLiveNodeApi, type PrivateLiveTextApi, type PrivateRoomApi, Promise_withResolvers, type QueryMetadata, type QueryParams, type ReadonlyJson, type ReadonlyJsonObject, type RegisterStorageNode, type RejectedStorageOpServerMsg, type Relax, type RenderableToolResultResponse, type RequiredAccessLevel, type Resolve, type ResolveGroupsInfoArgs, type ResolveMentionSuggestionsArgs, type ResolveRoomsInfoArgs, type ResolveUsersArgs, type Room, type RoomAccesses, type RoomEventMessage, type RoomPermissions, type RoomStateServerMsg, type RoomSubscriptionSettings, type RootStorageNode, type SearchCommentsResult, type SerializedChild, type SerializedCrdt, type SerializedFile, type SerializedList, type SerializedMap, type SerializedObject, type SerializedRegister, type SerializedRootObject, type SerializedText, 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, type TextAttributes, TextEditorType, type TextOperation, type TextStorageNode, type ThreadData, type ThreadDataPlain, type ThreadDataWithDeleteInfo, type ThreadDeleteInfo, type ThreadVisibility, type ToJson, type ToolResultResponse, type URLSafeString, type UnsubscribeCallback, type UpdateObjectOp, type UpdatePresenceClientMsg, type UpdatePresenceServerMsg, type UpdateRoomAccesses, type UpdateSource, type UpdateStorageClientMsg, type UpdateStorageServerMsg, type UpdateTextOp, type UpdateYDocClientMsg, type UploadAttachmentOptions, type UploadFileOptions, 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, applyLiveTextOperations, 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, createStorageFileId, createThreadId, deepLiveify, defineAiTool, deprecate, deprecateIf, detectDupes, entries, errorIf, findLastIndex, freeze, generateUrl, getLiveFileId, getMentionsFromCommentBody, getSubscriptionKey, hasPermissionAccess, html, htmlSafe, isCommentBodyLink, isCommentBodyMention, isCommentBodyText, isFileStorageNode, isJsonArray, isJsonObject, isJsonScalar, isListStorageNode, isLiveNode, isMapStorageNode, isNotificationChannelEnabled, isNumberOperator, isObjectStorageNode, isPlainObject, isRegisterStorageNode, isRootStorageNode, isStartsWithOperator, isTextStorageNode, isUrl, kInternal, keys, makeAbortController, makeEventSource, makePoller, makePosition, mapValues, memoizeOnSuccess, mergeRoomPermissionScopes, nanoid, nn, nodeStreamToCompactNodes, normalizeRoomAccesses, normalizeRoomPermissions, normalizeUpdateRoomAccesses, objectToQuery, patchNotificationSettings, permissionMatrixFromScopes, raise, resolveMentionsInCommentBody, sanitizeUrl, shallow, shallow2, stableStringify, stringifyCommentBody, throwUsageError, toPlainLson, transformTextOperations, tryParseJson, url, urljoin, validatePermissionsSet, wait, warnOnce, warnOnceIf, withTimeout };
|