@liveblocks/server 1.7.0 → 1.8.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.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { Json, asPos, IUserInfo, SerializedCrdt, JsonObject, DistributiveOmit, SetParentKeyOp, DeleteCrdtOp, ClientMsg as ClientMsg$1, Brand, SerializedRootObject, SerializedChild, StorageNode, CompactNode, PlainLsonObject, NodeMap as NodeMap$1, NodeStream as NodeStream$1, ClientWireOp, CreateOp, HasOpId, ServerMsg as ServerMsg$1, BaseUserMeta, IgnoredOp } from '@liveblocks/core';
2
- export { BroadcastEventClientMsg, ClientMsg, ClientWireOp, CreateFileOp, CreateListOp, CreateMapOp, CreateObjectOp, CreateOp, CreateRegisterOp, DeleteCrdtOp, DeleteObjectKeyOp, FetchStorageClientMsg, FetchYDocClientMsg, HasOpId, IgnoredOp, Op, RoomStateServerMsg, ServerMsg, ServerWireOp, SetParentKeyOp, UpdateObjectOp, UpdatePresenceClientMsg, UpdateStorageClientMsg, UpdateYDocClientMsg } from '@liveblocks/core';
1
+ import { Json, asPos, IUserInfo, SerializedCrdt, JsonObject, DistributiveOmit, SetParentKeyOp, DeleteCrdtOp, ClientMsg as ClientMsg$1, Brand, SerializedRootObject, SerializedChild, StorageNode, CompactNode, PlainLsonObject, TextOperation, NodeMap as NodeMap$1, NodeStream as NodeStream$1, ClientWireOp, ServerMsg as ServerMsg$1, BaseUserMeta, IgnoredOp } from '@liveblocks/core';
2
+ export { BroadcastEventClientMsg, ClientMsg, ClientWireOp, CreateFileOp, CreateListOp, CreateMapOp, CreateObjectOp, CreateOp, CreateRegisterOp, CreateTextOp, DeleteCrdtOp, DeleteObjectKeyOp, FetchStorageClientMsg, FetchYDocClientMsg, HasOpId, IgnoredOp, Op, RoomStateServerMsg, ServerMsg, ServerWireOp, SetParentKeyOp, UpdateObjectOp, UpdatePresenceClientMsg, UpdateStorageClientMsg, UpdateTextOp, UpdateYDocClientMsg } from '@liveblocks/core';
3
3
  import * as decoders from 'decoders';
4
4
  import { Decoder } from 'decoders';
5
5
  import { Mutex } from 'async-mutex';
@@ -569,6 +569,13 @@ type ListFeedMessagesResult = {
569
569
  messages: FeedMessage[];
570
570
  nextCursor?: string;
571
571
  };
572
+ type LiveTextHistoryEntry = {
573
+ nodeId: string;
574
+ version: number;
575
+ baseVersion: number;
576
+ opId: string;
577
+ ops: TextOperation[];
578
+ };
572
579
  /**
573
580
  * An isolated, read-only copy of the storage document at a point in time.
574
581
  *
@@ -740,6 +747,25 @@ interface IStorageDriver {
740
747
  * Pass `{ liveblocksType: "LiveObject", data: {} }` to reset to an empty root.
741
748
  */
742
749
  DANGEROUSLY_reset_nodes(doc: PlainLsonObject): void;
750
+ /**
751
+ * Return authoritative LiveText operations accepted after the given version,
752
+ * sorted by ascending version.
753
+ */
754
+ get_live_text_history_since(nodeId: string, version: number): LiveTextHistoryEntry[];
755
+ /**
756
+ * Return the authoritative history entry for an opId, if it was already
757
+ * accepted for this LiveText node.
758
+ */
759
+ get_live_text_history_by_op_id(nodeId: string, opId: string): LiveTextHistoryEntry | undefined;
760
+ /**
761
+ * Append the authoritative, already-rebased operations for an accepted
762
+ * LiveText update.
763
+ */
764
+ append_live_text_history(entry: LiveTextHistoryEntry): void;
765
+ /**
766
+ * Drop retained history older than minVersionToKeep for this LiveText node.
767
+ */
768
+ purge_live_text_history_before(nodeId: string, minVersionToKeep: number): void;
743
769
  /**
744
770
  * Return the value for `key`, or undefined if not set.
745
771
  */
@@ -1122,17 +1148,18 @@ declare class Logger {
1122
1148
  */
1123
1149
 
1124
1150
  /**
1125
- * The three possible outcomes of applying a client op. They differ along
1151
+ * The possible outcomes of applying a client op. They differ along
1126
1152
  * when the op (first) changed storage state, who hears about it, and what
1127
1153
  * gets sent back to the originating client:
1128
1154
  *
1129
- * | | state change | fan out to others | reply to sender |
1130
- * |-------------|--------------|-------------------|------------------|
1131
- * | OpAccepted | now | yes | ack echo (+ fix) |
1132
- * | OpRectified | in the past | no | ack echo + fix |
1133
- * | OpIgnored | never | no | bare (H)Ack |
1155
+ * | | state change | fan out to others | reply to sender |
1156
+ * |------------|--------------|-------------------|------------------|
1157
+ * | OpAccepted | now | yes | ack echo (+ fix) |
1158
+ * | OpRectified| in the past | no | ack echo (+ fix) |
1159
+ * | OpIgnored | never | no | bare (H)Ack |
1160
+ * | OpRejected | never | no | rejection |
1134
1161
  */
1135
- type ApplyOpResult = OpAccepted | OpIgnored | OpRectified;
1162
+ type ApplyOpResult = OpAccepted | OpIgnored | OpRectified | OpRejected;
1136
1163
  type OpAccepted = {
1137
1164
  action: "accepted";
1138
1165
  op: ClientWireOp;
@@ -1145,20 +1172,21 @@ type OpIgnored = {
1145
1172
  type OpRectified = {
1146
1173
  action: "rectified";
1147
1174
  /**
1148
- * Echo of the client's op, with the stored, authoritative parentKey. Sent
1149
- * back to the originating client as the acknowledgement, instead of the
1150
- * bare (H)Ack. Used for re-sent CREATE ops whose node the server already
1151
- * stored: the echo carries the authoritative position, so the client can
1152
- * correct any optimistic local position it may have predicted while the op
1153
- * was pending. Never fanned out to others: they already received the op
1154
- * when it was originally accepted.
1175
+ * Echo of the client's op with authoritative server fields. Sent back to the
1176
+ * originating client as the acknowledgement, instead of the bare (H)Ack.
1177
+ * Never fanned out to others: they already received the op when it was
1178
+ * originally accepted.
1155
1179
  */
1156
- ackOp: CreateOp & HasOpId;
1180
+ ackOp: ClientWireOp;
1157
1181
  /**
1158
- * A corrective op to send back to the originating client, stating that
1159
- * same authoritative position (see ackOp).
1182
+ * Optional corrective op to send back to the originating client.
1160
1183
  */
1161
- fix: FixOp;
1184
+ fix?: FixOp;
1185
+ };
1186
+ type OpRejected = {
1187
+ action: "rejected";
1188
+ opIds: string[];
1189
+ reason: string;
1162
1190
  };
1163
1191
  declare class Storage {
1164
1192
  readonly driver: IStorageDriver;
@@ -1182,6 +1210,7 @@ declare class Storage {
1182
1210
  private acceptAndFix;
1183
1211
  private applyDeleteObjectKeyOp;
1184
1212
  private applyUpdateObjectOp;
1213
+ private applyUpdateTextOp;
1185
1214
  private applyDeleteCrdtOp;
1186
1215
  private applySetParentKeyOp;
1187
1216
  /**
@@ -1940,6 +1969,7 @@ declare class InMemoryDriver implements IStorageDriver {
1940
1969
  private _leasedSessions;
1941
1970
  private _feeds;
1942
1971
  private _feedMessages;
1972
+ private _liveTextHistory;
1943
1973
  constructor(options?: {
1944
1974
  initialActor?: number;
1945
1975
  initialNodes?: Iterable<[string, SerializedCrdt]>;
@@ -1948,6 +1978,10 @@ declare class InMemoryDriver implements IStorageDriver {
1948
1978
  reinitialize(): void;
1949
1979
  /** Deletes all nodes and replaces them with the given document. */
1950
1980
  DANGEROUSLY_reset_nodes(doc: PlainLsonObject): void;
1981
+ get_live_text_history_since(nodeId: string, version: number): LiveTextHistoryEntry[];
1982
+ get_live_text_history_by_op_id(nodeId: string, opId: string): LiveTextHistoryEntry | undefined;
1983
+ append_live_text_history(entry: LiveTextHistoryEntry): void;
1984
+ purge_live_text_history_before(nodeId: string, minVersionToKeep: number): void;
1951
1985
  get_meta(key: string): Json | undefined;
1952
1986
  put_meta(key: string, value: Json): void;
1953
1987
  delete_meta(key: string): void;
@@ -1994,4 +2028,4 @@ declare class InMemoryDriver implements IStorageDriver {
1994
2028
  private _loadNodesApi;
1995
2029
  }
1996
2030
 
1997
- export { type ActorID, type AddFeedClientMsg, type AddFeedMessageClientMsg, BackendSession, BrowserSession, ConsoleTarget, type CreateTicketOptions, DefaultMap, type DeleteFeedClientMsg, type DeleteFeedMessageClientMsg, type Feed, type FeedDeletedServerMsg, type FeedMessage, type FeedMessagesAddedServerMsg, type FeedMessagesDeletedServerMsg, type FeedMessagesListServerMsg, type FeedMessagesServerMsg, type FeedMessagesUpdatedServerMsg, FeedMsgCode, FeedRequestErrorCode, type FeedRequestFailedServerMsg, type FeedsAddedServerMsg, type FeedsListServerMsg, type FeedsServerMsg, type FeedsUpdatedServerMsg, type FetchFeedMessagesClientMsg, type FetchFeedsClientMsg, type FixOp, type Guid, type IReadableSnapshot, type IServerWebSocket, type IStorageDriver, type IUserData, InMemoryDriver, type LeasedSession, type ListFeedMessagesOptions, type ListFeedMessagesResult, type ListFeedsOptions, type ListFeedsResult, LogLevel, LogTarget, Logger, type MetadataDB, type Millis, NestedMap, type NodeMap, type NodeStream, type NodeTuple, type Pos, ProtocolVersion, ROOT_YDOC_ID, Room, type SessionKey, type Ticket, UniqueMap, type UpdateFeedClientMsg, type UpdateFeedMessageClientMsg, type YDocId, type YUpdate, type YVector, ackIgnoredOp, clientMsgDecoder, cmpSemver, concatUint8Arrays, feedFailureServerMsg, feedMetadataIdDecoder, feedMetadataUpdateDecoder, feedRequestFailed, fetchFeedsMetadataFilterDecoder, guidDecoder, isLeasedSessionExpired, jsonObjectYolo, jsonYolo, type jstring, makeInMemorySnapshot, makeMetadataDB, mapFeedError, optionalFeedMetadataDecoder, plainLsonToNodeStream, protocolVersionDecoder, quote, serialize as serializeServerMsg, snapshotToLossyJson_eager, snapshotToLossyJson_lazy, snapshotToNodeStream, snapshotToPlainLson_eager, snapshotToPlainLson_lazy, Storage as test_only__Storage, YjsStorage as test_only__YjsStorage, transientClientMsgDecoder, tryCatch };
2031
+ export { type ActorID, type AddFeedClientMsg, type AddFeedMessageClientMsg, BackendSession, BrowserSession, ConsoleTarget, type CreateTicketOptions, DefaultMap, type DeleteFeedClientMsg, type DeleteFeedMessageClientMsg, type Feed, type FeedDeletedServerMsg, type FeedMessage, type FeedMessagesAddedServerMsg, type FeedMessagesDeletedServerMsg, type FeedMessagesListServerMsg, type FeedMessagesServerMsg, type FeedMessagesUpdatedServerMsg, FeedMsgCode, FeedRequestErrorCode, type FeedRequestFailedServerMsg, type FeedsAddedServerMsg, type FeedsListServerMsg, type FeedsServerMsg, type FeedsUpdatedServerMsg, type FetchFeedMessagesClientMsg, type FetchFeedsClientMsg, type FixOp, type Guid, type IReadableSnapshot, type IServerWebSocket, type IStorageDriver, type IUserData, InMemoryDriver, type LeasedSession, type ListFeedMessagesOptions, type ListFeedMessagesResult, type ListFeedsOptions, type ListFeedsResult, type LiveTextHistoryEntry, LogLevel, LogTarget, Logger, type MetadataDB, type Millis, NestedMap, type NodeMap, type NodeStream, type NodeTuple, type Pos, ProtocolVersion, ROOT_YDOC_ID, Room, type SessionKey, type Ticket, UniqueMap, type UpdateFeedClientMsg, type UpdateFeedMessageClientMsg, type YDocId, type YUpdate, type YVector, ackIgnoredOp, clientMsgDecoder, cmpSemver, concatUint8Arrays, feedFailureServerMsg, feedMetadataIdDecoder, feedMetadataUpdateDecoder, feedRequestFailed, fetchFeedsMetadataFilterDecoder, guidDecoder, isLeasedSessionExpired, jsonObjectYolo, jsonYolo, type jstring, makeInMemorySnapshot, makeMetadataDB, mapFeedError, optionalFeedMetadataDecoder, plainLsonToNodeStream, protocolVersionDecoder, quote, serialize as serializeServerMsg, snapshotToLossyJson_eager, snapshotToLossyJson_lazy, snapshotToNodeStream, snapshotToPlainLson_eager, snapshotToPlainLson_lazy, Storage as test_only__Storage, YjsStorage as test_only__YjsStorage, transientClientMsgDecoder, tryCatch };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { Json, asPos, IUserInfo, SerializedCrdt, JsonObject, DistributiveOmit, SetParentKeyOp, DeleteCrdtOp, ClientMsg as ClientMsg$1, Brand, SerializedRootObject, SerializedChild, StorageNode, CompactNode, PlainLsonObject, NodeMap as NodeMap$1, NodeStream as NodeStream$1, ClientWireOp, CreateOp, HasOpId, ServerMsg as ServerMsg$1, BaseUserMeta, IgnoredOp } from '@liveblocks/core';
2
- export { BroadcastEventClientMsg, ClientMsg, ClientWireOp, CreateFileOp, CreateListOp, CreateMapOp, CreateObjectOp, CreateOp, CreateRegisterOp, DeleteCrdtOp, DeleteObjectKeyOp, FetchStorageClientMsg, FetchYDocClientMsg, HasOpId, IgnoredOp, Op, RoomStateServerMsg, ServerMsg, ServerWireOp, SetParentKeyOp, UpdateObjectOp, UpdatePresenceClientMsg, UpdateStorageClientMsg, UpdateYDocClientMsg } from '@liveblocks/core';
1
+ import { Json, asPos, IUserInfo, SerializedCrdt, JsonObject, DistributiveOmit, SetParentKeyOp, DeleteCrdtOp, ClientMsg as ClientMsg$1, Brand, SerializedRootObject, SerializedChild, StorageNode, CompactNode, PlainLsonObject, TextOperation, NodeMap as NodeMap$1, NodeStream as NodeStream$1, ClientWireOp, ServerMsg as ServerMsg$1, BaseUserMeta, IgnoredOp } from '@liveblocks/core';
2
+ export { BroadcastEventClientMsg, ClientMsg, ClientWireOp, CreateFileOp, CreateListOp, CreateMapOp, CreateObjectOp, CreateOp, CreateRegisterOp, CreateTextOp, DeleteCrdtOp, DeleteObjectKeyOp, FetchStorageClientMsg, FetchYDocClientMsg, HasOpId, IgnoredOp, Op, RoomStateServerMsg, ServerMsg, ServerWireOp, SetParentKeyOp, UpdateObjectOp, UpdatePresenceClientMsg, UpdateStorageClientMsg, UpdateTextOp, UpdateYDocClientMsg } from '@liveblocks/core';
3
3
  import * as decoders from 'decoders';
4
4
  import { Decoder } from 'decoders';
5
5
  import { Mutex } from 'async-mutex';
@@ -569,6 +569,13 @@ type ListFeedMessagesResult = {
569
569
  messages: FeedMessage[];
570
570
  nextCursor?: string;
571
571
  };
572
+ type LiveTextHistoryEntry = {
573
+ nodeId: string;
574
+ version: number;
575
+ baseVersion: number;
576
+ opId: string;
577
+ ops: TextOperation[];
578
+ };
572
579
  /**
573
580
  * An isolated, read-only copy of the storage document at a point in time.
574
581
  *
@@ -740,6 +747,25 @@ interface IStorageDriver {
740
747
  * Pass `{ liveblocksType: "LiveObject", data: {} }` to reset to an empty root.
741
748
  */
742
749
  DANGEROUSLY_reset_nodes(doc: PlainLsonObject): void;
750
+ /**
751
+ * Return authoritative LiveText operations accepted after the given version,
752
+ * sorted by ascending version.
753
+ */
754
+ get_live_text_history_since(nodeId: string, version: number): LiveTextHistoryEntry[];
755
+ /**
756
+ * Return the authoritative history entry for an opId, if it was already
757
+ * accepted for this LiveText node.
758
+ */
759
+ get_live_text_history_by_op_id(nodeId: string, opId: string): LiveTextHistoryEntry | undefined;
760
+ /**
761
+ * Append the authoritative, already-rebased operations for an accepted
762
+ * LiveText update.
763
+ */
764
+ append_live_text_history(entry: LiveTextHistoryEntry): void;
765
+ /**
766
+ * Drop retained history older than minVersionToKeep for this LiveText node.
767
+ */
768
+ purge_live_text_history_before(nodeId: string, minVersionToKeep: number): void;
743
769
  /**
744
770
  * Return the value for `key`, or undefined if not set.
745
771
  */
@@ -1122,17 +1148,18 @@ declare class Logger {
1122
1148
  */
1123
1149
 
1124
1150
  /**
1125
- * The three possible outcomes of applying a client op. They differ along
1151
+ * The possible outcomes of applying a client op. They differ along
1126
1152
  * when the op (first) changed storage state, who hears about it, and what
1127
1153
  * gets sent back to the originating client:
1128
1154
  *
1129
- * | | state change | fan out to others | reply to sender |
1130
- * |-------------|--------------|-------------------|------------------|
1131
- * | OpAccepted | now | yes | ack echo (+ fix) |
1132
- * | OpRectified | in the past | no | ack echo + fix |
1133
- * | OpIgnored | never | no | bare (H)Ack |
1155
+ * | | state change | fan out to others | reply to sender |
1156
+ * |------------|--------------|-------------------|------------------|
1157
+ * | OpAccepted | now | yes | ack echo (+ fix) |
1158
+ * | OpRectified| in the past | no | ack echo (+ fix) |
1159
+ * | OpIgnored | never | no | bare (H)Ack |
1160
+ * | OpRejected | never | no | rejection |
1134
1161
  */
1135
- type ApplyOpResult = OpAccepted | OpIgnored | OpRectified;
1162
+ type ApplyOpResult = OpAccepted | OpIgnored | OpRectified | OpRejected;
1136
1163
  type OpAccepted = {
1137
1164
  action: "accepted";
1138
1165
  op: ClientWireOp;
@@ -1145,20 +1172,21 @@ type OpIgnored = {
1145
1172
  type OpRectified = {
1146
1173
  action: "rectified";
1147
1174
  /**
1148
- * Echo of the client's op, with the stored, authoritative parentKey. Sent
1149
- * back to the originating client as the acknowledgement, instead of the
1150
- * bare (H)Ack. Used for re-sent CREATE ops whose node the server already
1151
- * stored: the echo carries the authoritative position, so the client can
1152
- * correct any optimistic local position it may have predicted while the op
1153
- * was pending. Never fanned out to others: they already received the op
1154
- * when it was originally accepted.
1175
+ * Echo of the client's op with authoritative server fields. Sent back to the
1176
+ * originating client as the acknowledgement, instead of the bare (H)Ack.
1177
+ * Never fanned out to others: they already received the op when it was
1178
+ * originally accepted.
1155
1179
  */
1156
- ackOp: CreateOp & HasOpId;
1180
+ ackOp: ClientWireOp;
1157
1181
  /**
1158
- * A corrective op to send back to the originating client, stating that
1159
- * same authoritative position (see ackOp).
1182
+ * Optional corrective op to send back to the originating client.
1160
1183
  */
1161
- fix: FixOp;
1184
+ fix?: FixOp;
1185
+ };
1186
+ type OpRejected = {
1187
+ action: "rejected";
1188
+ opIds: string[];
1189
+ reason: string;
1162
1190
  };
1163
1191
  declare class Storage {
1164
1192
  readonly driver: IStorageDriver;
@@ -1182,6 +1210,7 @@ declare class Storage {
1182
1210
  private acceptAndFix;
1183
1211
  private applyDeleteObjectKeyOp;
1184
1212
  private applyUpdateObjectOp;
1213
+ private applyUpdateTextOp;
1185
1214
  private applyDeleteCrdtOp;
1186
1215
  private applySetParentKeyOp;
1187
1216
  /**
@@ -1940,6 +1969,7 @@ declare class InMemoryDriver implements IStorageDriver {
1940
1969
  private _leasedSessions;
1941
1970
  private _feeds;
1942
1971
  private _feedMessages;
1972
+ private _liveTextHistory;
1943
1973
  constructor(options?: {
1944
1974
  initialActor?: number;
1945
1975
  initialNodes?: Iterable<[string, SerializedCrdt]>;
@@ -1948,6 +1978,10 @@ declare class InMemoryDriver implements IStorageDriver {
1948
1978
  reinitialize(): void;
1949
1979
  /** Deletes all nodes and replaces them with the given document. */
1950
1980
  DANGEROUSLY_reset_nodes(doc: PlainLsonObject): void;
1981
+ get_live_text_history_since(nodeId: string, version: number): LiveTextHistoryEntry[];
1982
+ get_live_text_history_by_op_id(nodeId: string, opId: string): LiveTextHistoryEntry | undefined;
1983
+ append_live_text_history(entry: LiveTextHistoryEntry): void;
1984
+ purge_live_text_history_before(nodeId: string, minVersionToKeep: number): void;
1951
1985
  get_meta(key: string): Json | undefined;
1952
1986
  put_meta(key: string, value: Json): void;
1953
1987
  delete_meta(key: string): void;
@@ -1994,4 +2028,4 @@ declare class InMemoryDriver implements IStorageDriver {
1994
2028
  private _loadNodesApi;
1995
2029
  }
1996
2030
 
1997
- export { type ActorID, type AddFeedClientMsg, type AddFeedMessageClientMsg, BackendSession, BrowserSession, ConsoleTarget, type CreateTicketOptions, DefaultMap, type DeleteFeedClientMsg, type DeleteFeedMessageClientMsg, type Feed, type FeedDeletedServerMsg, type FeedMessage, type FeedMessagesAddedServerMsg, type FeedMessagesDeletedServerMsg, type FeedMessagesListServerMsg, type FeedMessagesServerMsg, type FeedMessagesUpdatedServerMsg, FeedMsgCode, FeedRequestErrorCode, type FeedRequestFailedServerMsg, type FeedsAddedServerMsg, type FeedsListServerMsg, type FeedsServerMsg, type FeedsUpdatedServerMsg, type FetchFeedMessagesClientMsg, type FetchFeedsClientMsg, type FixOp, type Guid, type IReadableSnapshot, type IServerWebSocket, type IStorageDriver, type IUserData, InMemoryDriver, type LeasedSession, type ListFeedMessagesOptions, type ListFeedMessagesResult, type ListFeedsOptions, type ListFeedsResult, LogLevel, LogTarget, Logger, type MetadataDB, type Millis, NestedMap, type NodeMap, type NodeStream, type NodeTuple, type Pos, ProtocolVersion, ROOT_YDOC_ID, Room, type SessionKey, type Ticket, UniqueMap, type UpdateFeedClientMsg, type UpdateFeedMessageClientMsg, type YDocId, type YUpdate, type YVector, ackIgnoredOp, clientMsgDecoder, cmpSemver, concatUint8Arrays, feedFailureServerMsg, feedMetadataIdDecoder, feedMetadataUpdateDecoder, feedRequestFailed, fetchFeedsMetadataFilterDecoder, guidDecoder, isLeasedSessionExpired, jsonObjectYolo, jsonYolo, type jstring, makeInMemorySnapshot, makeMetadataDB, mapFeedError, optionalFeedMetadataDecoder, plainLsonToNodeStream, protocolVersionDecoder, quote, serialize as serializeServerMsg, snapshotToLossyJson_eager, snapshotToLossyJson_lazy, snapshotToNodeStream, snapshotToPlainLson_eager, snapshotToPlainLson_lazy, Storage as test_only__Storage, YjsStorage as test_only__YjsStorage, transientClientMsgDecoder, tryCatch };
2031
+ export { type ActorID, type AddFeedClientMsg, type AddFeedMessageClientMsg, BackendSession, BrowserSession, ConsoleTarget, type CreateTicketOptions, DefaultMap, type DeleteFeedClientMsg, type DeleteFeedMessageClientMsg, type Feed, type FeedDeletedServerMsg, type FeedMessage, type FeedMessagesAddedServerMsg, type FeedMessagesDeletedServerMsg, type FeedMessagesListServerMsg, type FeedMessagesServerMsg, type FeedMessagesUpdatedServerMsg, FeedMsgCode, FeedRequestErrorCode, type FeedRequestFailedServerMsg, type FeedsAddedServerMsg, type FeedsListServerMsg, type FeedsServerMsg, type FeedsUpdatedServerMsg, type FetchFeedMessagesClientMsg, type FetchFeedsClientMsg, type FixOp, type Guid, type IReadableSnapshot, type IServerWebSocket, type IStorageDriver, type IUserData, InMemoryDriver, type LeasedSession, type ListFeedMessagesOptions, type ListFeedMessagesResult, type ListFeedsOptions, type ListFeedsResult, type LiveTextHistoryEntry, LogLevel, LogTarget, Logger, type MetadataDB, type Millis, NestedMap, type NodeMap, type NodeStream, type NodeTuple, type Pos, ProtocolVersion, ROOT_YDOC_ID, Room, type SessionKey, type Ticket, UniqueMap, type UpdateFeedClientMsg, type UpdateFeedMessageClientMsg, type YDocId, type YUpdate, type YVector, ackIgnoredOp, clientMsgDecoder, cmpSemver, concatUint8Arrays, feedFailureServerMsg, feedMetadataIdDecoder, feedMetadataUpdateDecoder, feedRequestFailed, fetchFeedsMetadataFilterDecoder, guidDecoder, isLeasedSessionExpired, jsonObjectYolo, jsonYolo, type jstring, makeInMemorySnapshot, makeMetadataDB, mapFeedError, optionalFeedMetadataDecoder, plainLsonToNodeStream, protocolVersionDecoder, quote, serialize as serializeServerMsg, snapshotToLossyJson_eager, snapshotToLossyJson_lazy, snapshotToNodeStream, snapshotToPlainLson_eager, snapshotToPlainLson_lazy, Storage as test_only__Storage, YjsStorage as test_only__YjsStorage, transientClientMsgDecoder, tryCatch };