@liveblocks/core 1.11.3 → 1.12.0-test2
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.mts +78 -4
- package/dist/index.d.ts +78 -4
- package/dist/index.js +173 -68
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +134 -29
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
package/dist/index.d.mts
CHANGED
|
@@ -1278,8 +1278,27 @@ declare type InboxNotificationThreadData = {
|
|
|
1278
1278
|
notifiedAt: Date;
|
|
1279
1279
|
readAt: Date | null;
|
|
1280
1280
|
};
|
|
1281
|
-
declare type
|
|
1282
|
-
declare type
|
|
1281
|
+
declare type ActivityData = Record<string, string | boolean | number>;
|
|
1282
|
+
declare type InboxNotificationActivity = {
|
|
1283
|
+
id: string;
|
|
1284
|
+
createdAt: Date;
|
|
1285
|
+
data: ActivityData;
|
|
1286
|
+
};
|
|
1287
|
+
declare type InboxNotificationCustomData = {
|
|
1288
|
+
kind: `$${string}`;
|
|
1289
|
+
id: string;
|
|
1290
|
+
roomId?: string;
|
|
1291
|
+
subjectId: string;
|
|
1292
|
+
notifiedAt: Date;
|
|
1293
|
+
readAt: Date | null;
|
|
1294
|
+
activities: InboxNotificationActivity[];
|
|
1295
|
+
};
|
|
1296
|
+
declare type InboxNotificationData = InboxNotificationThreadData | InboxNotificationCustomData;
|
|
1297
|
+
declare type InboxNotificationThreadDataPlain = DateToString<InboxNotificationThreadData>;
|
|
1298
|
+
declare type InboxNotificationCustomDataPlain = Omit<DateToString<InboxNotificationCustomData>, "activities"> & {
|
|
1299
|
+
activities: DateToString<InboxNotificationActivity>[];
|
|
1300
|
+
};
|
|
1301
|
+
declare type InboxNotificationDataPlain = InboxNotificationThreadDataPlain | InboxNotificationCustomDataPlain;
|
|
1283
1302
|
|
|
1284
1303
|
declare type InboxNotificationDeleteInfo = {
|
|
1285
1304
|
type: "deletedInboxNotification";
|
|
@@ -1352,6 +1371,21 @@ declare type PartialNullable<T> = {
|
|
|
1352
1371
|
[P in keyof T]?: T[P] | null;
|
|
1353
1372
|
};
|
|
1354
1373
|
|
|
1374
|
+
declare type QueryMetadataStringValue<T extends string> = T | {
|
|
1375
|
+
startsWith: string;
|
|
1376
|
+
};
|
|
1377
|
+
/**
|
|
1378
|
+
* This type can be used to build a metadata query string (compatible
|
|
1379
|
+
* with `@liveblocks/query-parser`) through a type-safe API.
|
|
1380
|
+
*
|
|
1381
|
+
* In addition to exact values (`:` in query string), it adds:
|
|
1382
|
+
* - to strings:
|
|
1383
|
+
* - `startsWith` (`^` in query string)
|
|
1384
|
+
*/
|
|
1385
|
+
declare type QueryMetadata<T extends BaseMetadata> = {
|
|
1386
|
+
[K in keyof T]: T[K] extends string ? QueryMetadataStringValue<T[K]> : T[K];
|
|
1387
|
+
};
|
|
1388
|
+
|
|
1355
1389
|
declare type RoomThreadsNotificationSettings = "all" | "replies_and_mentions" | "none";
|
|
1356
1390
|
declare type RoomNotificationSettings = {
|
|
1357
1391
|
threads: RoomThreadsNotificationSettings;
|
|
@@ -1662,7 +1696,7 @@ declare type SubscribeFn<TPresence extends JsonObject, _TStorage extends LsonObj
|
|
|
1662
1696
|
};
|
|
1663
1697
|
declare type GetThreadsOptions<TThreadMetadata extends BaseMetadata> = {
|
|
1664
1698
|
query?: {
|
|
1665
|
-
metadata?: Partial<TThreadMetadata
|
|
1699
|
+
metadata?: Partial<QueryMetadata<TThreadMetadata>>;
|
|
1666
1700
|
};
|
|
1667
1701
|
since?: Date;
|
|
1668
1702
|
};
|
|
@@ -2425,6 +2459,13 @@ declare function convertToThreadData<TThreadMetadata extends BaseMetadata = neve
|
|
|
2425
2459
|
* @returns The rich comment reaction object that can be used by the client.
|
|
2426
2460
|
*/
|
|
2427
2461
|
declare function convertToCommentUserReaction(data: CommentUserReactionPlain): CommentUserReaction;
|
|
2462
|
+
/**
|
|
2463
|
+
* Converts a plain inbox notification data object (usually returned by the API) to an inbox notification data object that can be used by the client.
|
|
2464
|
+
* This is necessary because the plain data object stores dates as ISO strings, but the client expects them as Date objects.
|
|
2465
|
+
* @param data The plain inbox notification data object (usually returned by the API)
|
|
2466
|
+
* @returns The rich inbox notification data object that can be used by the client.
|
|
2467
|
+
*/
|
|
2468
|
+
declare function convertToInboxNotificationData(data: InboxNotificationDataPlain): InboxNotificationData;
|
|
2428
2469
|
|
|
2429
2470
|
/**
|
|
2430
2471
|
* Lookup table for nodes (= SerializedCrdt values) by their IDs.
|
|
@@ -2533,6 +2574,39 @@ declare namespace fancyConsole {
|
|
|
2533
2574
|
*/
|
|
2534
2575
|
declare const freeze: typeof Object.freeze;
|
|
2535
2576
|
|
|
2577
|
+
/**
|
|
2578
|
+
* Converts an object to a query string
|
|
2579
|
+
* Example:
|
|
2580
|
+
* ```ts
|
|
2581
|
+
* const query = objectToQuery({
|
|
2582
|
+
resolved: true,
|
|
2583
|
+
metadata: {
|
|
2584
|
+
status: "open",
|
|
2585
|
+
priority: 3,
|
|
2586
|
+
org: {
|
|
2587
|
+
startsWith: "liveblocks:",
|
|
2588
|
+
},
|
|
2589
|
+
},
|
|
2590
|
+
});
|
|
2591
|
+
|
|
2592
|
+
console.log(query);
|
|
2593
|
+
// resolved:true AND metadata["status"]:open AND metadata["priority"]:3 AND metadata["org"]^"liveblocks:"
|
|
2594
|
+
|
|
2595
|
+
* ```
|
|
2596
|
+
*
|
|
2597
|
+
*
|
|
2598
|
+
*/
|
|
2599
|
+
declare type SimpleFilterValue = string | number | boolean;
|
|
2600
|
+
declare type OperatorFilterValue = {
|
|
2601
|
+
startsWith: string;
|
|
2602
|
+
};
|
|
2603
|
+
declare type FilterValue = SimpleFilterValue | OperatorFilterValue;
|
|
2604
|
+
declare function objectToQuery(obj: {
|
|
2605
|
+
[key: string]: FilterValue | {
|
|
2606
|
+
[key: string]: FilterValue | undefined;
|
|
2607
|
+
} | undefined;
|
|
2608
|
+
}): string;
|
|
2609
|
+
|
|
2536
2610
|
declare type Poller = {
|
|
2537
2611
|
start(interval: number): void;
|
|
2538
2612
|
restart(interval: number): void;
|
|
@@ -2780,4 +2854,4 @@ declare type EnsureJson<T> = [
|
|
|
2780
2854
|
[K in keyof T]: EnsureJson<T[K]>;
|
|
2781
2855
|
};
|
|
2782
2856
|
|
|
2783
|
-
export { type AckOp, type BaseAuthResult, type BaseMetadata, type BaseUserMeta, type Brand, type BroadcastEventClientMsg, type BroadcastOptions, type BroadcastedEventServerMsg, type CacheState, type CacheStore, type Client, type ClientMsg, ClientMsgCode, type ClientOptions, 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 CommentReaction, type CommentUserReaction, type CommentUserReactionPlain, CommentsApiError, type CommentsEventServerMsg, CrdtType, type CreateListOp, type CreateMapOp, type CreateObjectOp, type CreateOp, type CreateRegisterOp, type CustomAuthenticationResult, type Delegates, type DeleteCrdtOp, type DeleteObjectKeyOp, DevToolsTreeNode as DevTools, protocol as DevToolsMsg, type EnsureJson, type EnterOptions, type EventSource, type FetchStorageClientMsg, type FetchYDocClientMsg, type GetThreadsOptions, type History, type IUserInfo, type IWebSocket, type IWebSocketCloseEvent, type IWebSocketEvent, type IWebSocketInstance, type IWebSocketMessageEvent, type IdTuple, type Immutable, type InboxNotificationData, type InboxNotificationDataPlain, type InboxNotificationDeleteInfo, type InboxNotificationThreadData, type InitialDocumentStateServerMsg, type Json, type JsonArray, type JsonObject, type JsonScalar, type LegacyConnectionStatus, LiveList, type LiveListUpdate, LiveMap, type LiveMapUpdate, type LiveNode, LiveObject, type LiveObjectUpdate, type LiveStructure, LiveblocksError, type LostConnectionEvent, type Lson, type LsonObject, type NodeMap, NotificationsApiError, type Op, OpCode, type OptionalPromise, type Others, type OthersEvent, type ParentToChildNodeMap, type PartialNullable, type PlainLson, type PlainLsonFields, type PlainLsonList, type PlainLsonMap, type PlainLsonObject, type RejectedStorageOpServerMsg, type Resolve, type ResolveMentionSuggestionsArgs, type ResolveRoomsInfoArgs, type ResolveUsersArgs, type Room, type RoomEventMessage, type RoomInfo, type RoomInitializers, type RoomNotificationSettings, type RoomStateServerMsg, type SerializedChild, type SerializedCrdt, type SerializedList, type SerializedMap, type SerializedObject, type SerializedRegister, type SerializedRootObject, type ServerMsg, ServerMsgCode, type SetParentKeyOp, type Status, type StorageStatus, type StorageUpdate, type Store, type StringifyCommentBodyElements, type StringifyCommentBodyOptions, type ThreadData, type ThreadDataPlain, type ThreadDeleteInfo, type ToImmutable, type ToJson, type UnsubscribeCallback, type UpdateObjectOp, type UpdatePresenceClientMsg, type UpdatePresenceServerMsg, type UpdateStorageClientMsg, type UpdateStorageServerMsg, type UpdateYDocClientMsg, type User, type UserJoinServerMsg, type UserLeftServerMsg, WebsocketCloseCodes, type YDocUpdateServerMsg, ackOp, addReaction, applyOptimisticUpdates, asPos, assert, assertNever, b64decode, cloneLson, fancyConsole as console, convertToCommentData, convertToCommentUserReaction, convertToThreadData, createClient, deleteComment, deprecate, deprecateIf, detectDupes, errorIf, freeze, getMentionedIdsFromCommentBody, isChildCrdt, isJsonArray, isJsonObject, isJsonScalar, isLiveNode, isPlainObject, isRootCrdt, kInternal, legacy_patchImmutableObject, lsonToJson, makeEventSource, makePoller, makePosition, nn, patchLiveObjectKey, raise, removeReaction, shallow, stringify, stringifyCommentBody, throwUsageError, toPlainLson, tryParseJson, upsertComment, withTimeout };
|
|
2857
|
+
export { type AckOp, type ActivityData, type BaseAuthResult, type BaseMetadata, type BaseUserMeta, type Brand, type BroadcastEventClientMsg, type BroadcastOptions, type BroadcastedEventServerMsg, type CacheState, type CacheStore, type Client, type ClientMsg, ClientMsgCode, type ClientOptions, 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 CommentReaction, type CommentUserReaction, type CommentUserReactionPlain, CommentsApiError, type CommentsEventServerMsg, CrdtType, type CreateListOp, type CreateMapOp, type CreateObjectOp, type CreateOp, type CreateRegisterOp, type CustomAuthenticationResult, type Delegates, type DeleteCrdtOp, type DeleteObjectKeyOp, DevToolsTreeNode as DevTools, protocol as DevToolsMsg, type EnsureJson, type EnterOptions, type EventSource, type FetchStorageClientMsg, type FetchYDocClientMsg, type GetThreadsOptions, type History, type IUserInfo, type IWebSocket, type IWebSocketCloseEvent, type IWebSocketEvent, type IWebSocketInstance, type IWebSocketMessageEvent, type IdTuple, type Immutable, type InboxNotificationCustomData, type InboxNotificationCustomDataPlain, type InboxNotificationData, type InboxNotificationDataPlain, type InboxNotificationDeleteInfo, type InboxNotificationThreadData, type InboxNotificationThreadDataPlain, type InitialDocumentStateServerMsg, type Json, type JsonArray, type JsonObject, type JsonScalar, type LegacyConnectionStatus, LiveList, type LiveListUpdate, LiveMap, type LiveMapUpdate, type LiveNode, LiveObject, type LiveObjectUpdate, type LiveStructure, LiveblocksError, type LostConnectionEvent, type Lson, type LsonObject, type NodeMap, NotificationsApiError, type Op, OpCode, type OptionalPromise, type Others, type OthersEvent, type ParentToChildNodeMap, type PartialNullable, type PlainLson, type PlainLsonFields, type PlainLsonList, type PlainLsonMap, type PlainLsonObject, type QueryMetadata, type RejectedStorageOpServerMsg, type Resolve, type ResolveMentionSuggestionsArgs, type ResolveRoomsInfoArgs, type ResolveUsersArgs, type Room, type RoomEventMessage, type RoomInfo, type RoomInitializers, type RoomNotificationSettings, type RoomStateServerMsg, type SerializedChild, type SerializedCrdt, type SerializedList, type SerializedMap, type SerializedObject, type SerializedRegister, type SerializedRootObject, type ServerMsg, ServerMsgCode, type SetParentKeyOp, type Status, type StorageStatus, type StorageUpdate, type Store, type StringifyCommentBodyElements, type StringifyCommentBodyOptions, type ThreadData, type ThreadDataPlain, type ThreadDeleteInfo, type ToImmutable, type ToJson, type UnsubscribeCallback, type UpdateObjectOp, type UpdatePresenceClientMsg, type UpdatePresenceServerMsg, type UpdateStorageClientMsg, type UpdateStorageServerMsg, type UpdateYDocClientMsg, type User, type UserJoinServerMsg, type UserLeftServerMsg, WebsocketCloseCodes, type YDocUpdateServerMsg, ackOp, addReaction, applyOptimisticUpdates, asPos, assert, assertNever, b64decode, cloneLson, fancyConsole as console, convertToCommentData, convertToCommentUserReaction, convertToInboxNotificationData, convertToThreadData, createClient, deleteComment, deprecate, deprecateIf, detectDupes, errorIf, freeze, getMentionedIdsFromCommentBody, isChildCrdt, isJsonArray, isJsonObject, isJsonScalar, isLiveNode, isPlainObject, isRootCrdt, kInternal, legacy_patchImmutableObject, lsonToJson, makeEventSource, makePoller, makePosition, nn, objectToQuery, patchLiveObjectKey, raise, removeReaction, shallow, stringify, stringifyCommentBody, throwUsageError, toPlainLson, tryParseJson, upsertComment, withTimeout };
|
package/dist/index.d.ts
CHANGED
|
@@ -1278,8 +1278,27 @@ declare type InboxNotificationThreadData = {
|
|
|
1278
1278
|
notifiedAt: Date;
|
|
1279
1279
|
readAt: Date | null;
|
|
1280
1280
|
};
|
|
1281
|
-
declare type
|
|
1282
|
-
declare type
|
|
1281
|
+
declare type ActivityData = Record<string, string | boolean | number>;
|
|
1282
|
+
declare type InboxNotificationActivity = {
|
|
1283
|
+
id: string;
|
|
1284
|
+
createdAt: Date;
|
|
1285
|
+
data: ActivityData;
|
|
1286
|
+
};
|
|
1287
|
+
declare type InboxNotificationCustomData = {
|
|
1288
|
+
kind: `$${string}`;
|
|
1289
|
+
id: string;
|
|
1290
|
+
roomId?: string;
|
|
1291
|
+
subjectId: string;
|
|
1292
|
+
notifiedAt: Date;
|
|
1293
|
+
readAt: Date | null;
|
|
1294
|
+
activities: InboxNotificationActivity[];
|
|
1295
|
+
};
|
|
1296
|
+
declare type InboxNotificationData = InboxNotificationThreadData | InboxNotificationCustomData;
|
|
1297
|
+
declare type InboxNotificationThreadDataPlain = DateToString<InboxNotificationThreadData>;
|
|
1298
|
+
declare type InboxNotificationCustomDataPlain = Omit<DateToString<InboxNotificationCustomData>, "activities"> & {
|
|
1299
|
+
activities: DateToString<InboxNotificationActivity>[];
|
|
1300
|
+
};
|
|
1301
|
+
declare type InboxNotificationDataPlain = InboxNotificationThreadDataPlain | InboxNotificationCustomDataPlain;
|
|
1283
1302
|
|
|
1284
1303
|
declare type InboxNotificationDeleteInfo = {
|
|
1285
1304
|
type: "deletedInboxNotification";
|
|
@@ -1352,6 +1371,21 @@ declare type PartialNullable<T> = {
|
|
|
1352
1371
|
[P in keyof T]?: T[P] | null;
|
|
1353
1372
|
};
|
|
1354
1373
|
|
|
1374
|
+
declare type QueryMetadataStringValue<T extends string> = T | {
|
|
1375
|
+
startsWith: string;
|
|
1376
|
+
};
|
|
1377
|
+
/**
|
|
1378
|
+
* This type can be used to build a metadata query string (compatible
|
|
1379
|
+
* with `@liveblocks/query-parser`) through a type-safe API.
|
|
1380
|
+
*
|
|
1381
|
+
* In addition to exact values (`:` in query string), it adds:
|
|
1382
|
+
* - to strings:
|
|
1383
|
+
* - `startsWith` (`^` in query string)
|
|
1384
|
+
*/
|
|
1385
|
+
declare type QueryMetadata<T extends BaseMetadata> = {
|
|
1386
|
+
[K in keyof T]: T[K] extends string ? QueryMetadataStringValue<T[K]> : T[K];
|
|
1387
|
+
};
|
|
1388
|
+
|
|
1355
1389
|
declare type RoomThreadsNotificationSettings = "all" | "replies_and_mentions" | "none";
|
|
1356
1390
|
declare type RoomNotificationSettings = {
|
|
1357
1391
|
threads: RoomThreadsNotificationSettings;
|
|
@@ -1662,7 +1696,7 @@ declare type SubscribeFn<TPresence extends JsonObject, _TStorage extends LsonObj
|
|
|
1662
1696
|
};
|
|
1663
1697
|
declare type GetThreadsOptions<TThreadMetadata extends BaseMetadata> = {
|
|
1664
1698
|
query?: {
|
|
1665
|
-
metadata?: Partial<TThreadMetadata
|
|
1699
|
+
metadata?: Partial<QueryMetadata<TThreadMetadata>>;
|
|
1666
1700
|
};
|
|
1667
1701
|
since?: Date;
|
|
1668
1702
|
};
|
|
@@ -2425,6 +2459,13 @@ declare function convertToThreadData<TThreadMetadata extends BaseMetadata = neve
|
|
|
2425
2459
|
* @returns The rich comment reaction object that can be used by the client.
|
|
2426
2460
|
*/
|
|
2427
2461
|
declare function convertToCommentUserReaction(data: CommentUserReactionPlain): CommentUserReaction;
|
|
2462
|
+
/**
|
|
2463
|
+
* Converts a plain inbox notification data object (usually returned by the API) to an inbox notification data object that can be used by the client.
|
|
2464
|
+
* This is necessary because the plain data object stores dates as ISO strings, but the client expects them as Date objects.
|
|
2465
|
+
* @param data The plain inbox notification data object (usually returned by the API)
|
|
2466
|
+
* @returns The rich inbox notification data object that can be used by the client.
|
|
2467
|
+
*/
|
|
2468
|
+
declare function convertToInboxNotificationData(data: InboxNotificationDataPlain): InboxNotificationData;
|
|
2428
2469
|
|
|
2429
2470
|
/**
|
|
2430
2471
|
* Lookup table for nodes (= SerializedCrdt values) by their IDs.
|
|
@@ -2533,6 +2574,39 @@ declare namespace fancyConsole {
|
|
|
2533
2574
|
*/
|
|
2534
2575
|
declare const freeze: typeof Object.freeze;
|
|
2535
2576
|
|
|
2577
|
+
/**
|
|
2578
|
+
* Converts an object to a query string
|
|
2579
|
+
* Example:
|
|
2580
|
+
* ```ts
|
|
2581
|
+
* const query = objectToQuery({
|
|
2582
|
+
resolved: true,
|
|
2583
|
+
metadata: {
|
|
2584
|
+
status: "open",
|
|
2585
|
+
priority: 3,
|
|
2586
|
+
org: {
|
|
2587
|
+
startsWith: "liveblocks:",
|
|
2588
|
+
},
|
|
2589
|
+
},
|
|
2590
|
+
});
|
|
2591
|
+
|
|
2592
|
+
console.log(query);
|
|
2593
|
+
// resolved:true AND metadata["status"]:open AND metadata["priority"]:3 AND metadata["org"]^"liveblocks:"
|
|
2594
|
+
|
|
2595
|
+
* ```
|
|
2596
|
+
*
|
|
2597
|
+
*
|
|
2598
|
+
*/
|
|
2599
|
+
declare type SimpleFilterValue = string | number | boolean;
|
|
2600
|
+
declare type OperatorFilterValue = {
|
|
2601
|
+
startsWith: string;
|
|
2602
|
+
};
|
|
2603
|
+
declare type FilterValue = SimpleFilterValue | OperatorFilterValue;
|
|
2604
|
+
declare function objectToQuery(obj: {
|
|
2605
|
+
[key: string]: FilterValue | {
|
|
2606
|
+
[key: string]: FilterValue | undefined;
|
|
2607
|
+
} | undefined;
|
|
2608
|
+
}): string;
|
|
2609
|
+
|
|
2536
2610
|
declare type Poller = {
|
|
2537
2611
|
start(interval: number): void;
|
|
2538
2612
|
restart(interval: number): void;
|
|
@@ -2780,4 +2854,4 @@ declare type EnsureJson<T> = [
|
|
|
2780
2854
|
[K in keyof T]: EnsureJson<T[K]>;
|
|
2781
2855
|
};
|
|
2782
2856
|
|
|
2783
|
-
export { type AckOp, type BaseAuthResult, type BaseMetadata, type BaseUserMeta, type Brand, type BroadcastEventClientMsg, type BroadcastOptions, type BroadcastedEventServerMsg, type CacheState, type CacheStore, type Client, type ClientMsg, ClientMsgCode, type ClientOptions, 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 CommentReaction, type CommentUserReaction, type CommentUserReactionPlain, CommentsApiError, type CommentsEventServerMsg, CrdtType, type CreateListOp, type CreateMapOp, type CreateObjectOp, type CreateOp, type CreateRegisterOp, type CustomAuthenticationResult, type Delegates, type DeleteCrdtOp, type DeleteObjectKeyOp, DevToolsTreeNode as DevTools, protocol as DevToolsMsg, type EnsureJson, type EnterOptions, type EventSource, type FetchStorageClientMsg, type FetchYDocClientMsg, type GetThreadsOptions, type History, type IUserInfo, type IWebSocket, type IWebSocketCloseEvent, type IWebSocketEvent, type IWebSocketInstance, type IWebSocketMessageEvent, type IdTuple, type Immutable, type InboxNotificationData, type InboxNotificationDataPlain, type InboxNotificationDeleteInfo, type InboxNotificationThreadData, type InitialDocumentStateServerMsg, type Json, type JsonArray, type JsonObject, type JsonScalar, type LegacyConnectionStatus, LiveList, type LiveListUpdate, LiveMap, type LiveMapUpdate, type LiveNode, LiveObject, type LiveObjectUpdate, type LiveStructure, LiveblocksError, type LostConnectionEvent, type Lson, type LsonObject, type NodeMap, NotificationsApiError, type Op, OpCode, type OptionalPromise, type Others, type OthersEvent, type ParentToChildNodeMap, type PartialNullable, type PlainLson, type PlainLsonFields, type PlainLsonList, type PlainLsonMap, type PlainLsonObject, type RejectedStorageOpServerMsg, type Resolve, type ResolveMentionSuggestionsArgs, type ResolveRoomsInfoArgs, type ResolveUsersArgs, type Room, type RoomEventMessage, type RoomInfo, type RoomInitializers, type RoomNotificationSettings, type RoomStateServerMsg, type SerializedChild, type SerializedCrdt, type SerializedList, type SerializedMap, type SerializedObject, type SerializedRegister, type SerializedRootObject, type ServerMsg, ServerMsgCode, type SetParentKeyOp, type Status, type StorageStatus, type StorageUpdate, type Store, type StringifyCommentBodyElements, type StringifyCommentBodyOptions, type ThreadData, type ThreadDataPlain, type ThreadDeleteInfo, type ToImmutable, type ToJson, type UnsubscribeCallback, type UpdateObjectOp, type UpdatePresenceClientMsg, type UpdatePresenceServerMsg, type UpdateStorageClientMsg, type UpdateStorageServerMsg, type UpdateYDocClientMsg, type User, type UserJoinServerMsg, type UserLeftServerMsg, WebsocketCloseCodes, type YDocUpdateServerMsg, ackOp, addReaction, applyOptimisticUpdates, asPos, assert, assertNever, b64decode, cloneLson, fancyConsole as console, convertToCommentData, convertToCommentUserReaction, convertToThreadData, createClient, deleteComment, deprecate, deprecateIf, detectDupes, errorIf, freeze, getMentionedIdsFromCommentBody, isChildCrdt, isJsonArray, isJsonObject, isJsonScalar, isLiveNode, isPlainObject, isRootCrdt, kInternal, legacy_patchImmutableObject, lsonToJson, makeEventSource, makePoller, makePosition, nn, patchLiveObjectKey, raise, removeReaction, shallow, stringify, stringifyCommentBody, throwUsageError, toPlainLson, tryParseJson, upsertComment, withTimeout };
|
|
2857
|
+
export { type AckOp, type ActivityData, type BaseAuthResult, type BaseMetadata, type BaseUserMeta, type Brand, type BroadcastEventClientMsg, type BroadcastOptions, type BroadcastedEventServerMsg, type CacheState, type CacheStore, type Client, type ClientMsg, ClientMsgCode, type ClientOptions, 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 CommentReaction, type CommentUserReaction, type CommentUserReactionPlain, CommentsApiError, type CommentsEventServerMsg, CrdtType, type CreateListOp, type CreateMapOp, type CreateObjectOp, type CreateOp, type CreateRegisterOp, type CustomAuthenticationResult, type Delegates, type DeleteCrdtOp, type DeleteObjectKeyOp, DevToolsTreeNode as DevTools, protocol as DevToolsMsg, type EnsureJson, type EnterOptions, type EventSource, type FetchStorageClientMsg, type FetchYDocClientMsg, type GetThreadsOptions, type History, type IUserInfo, type IWebSocket, type IWebSocketCloseEvent, type IWebSocketEvent, type IWebSocketInstance, type IWebSocketMessageEvent, type IdTuple, type Immutable, type InboxNotificationCustomData, type InboxNotificationCustomDataPlain, type InboxNotificationData, type InboxNotificationDataPlain, type InboxNotificationDeleteInfo, type InboxNotificationThreadData, type InboxNotificationThreadDataPlain, type InitialDocumentStateServerMsg, type Json, type JsonArray, type JsonObject, type JsonScalar, type LegacyConnectionStatus, LiveList, type LiveListUpdate, LiveMap, type LiveMapUpdate, type LiveNode, LiveObject, type LiveObjectUpdate, type LiveStructure, LiveblocksError, type LostConnectionEvent, type Lson, type LsonObject, type NodeMap, NotificationsApiError, type Op, OpCode, type OptionalPromise, type Others, type OthersEvent, type ParentToChildNodeMap, type PartialNullable, type PlainLson, type PlainLsonFields, type PlainLsonList, type PlainLsonMap, type PlainLsonObject, type QueryMetadata, type RejectedStorageOpServerMsg, type Resolve, type ResolveMentionSuggestionsArgs, type ResolveRoomsInfoArgs, type ResolveUsersArgs, type Room, type RoomEventMessage, type RoomInfo, type RoomInitializers, type RoomNotificationSettings, type RoomStateServerMsg, type SerializedChild, type SerializedCrdt, type SerializedList, type SerializedMap, type SerializedObject, type SerializedRegister, type SerializedRootObject, type ServerMsg, ServerMsgCode, type SetParentKeyOp, type Status, type StorageStatus, type StorageUpdate, type Store, type StringifyCommentBodyElements, type StringifyCommentBodyOptions, type ThreadData, type ThreadDataPlain, type ThreadDeleteInfo, type ToImmutable, type ToJson, type UnsubscribeCallback, type UpdateObjectOp, type UpdatePresenceClientMsg, type UpdatePresenceServerMsg, type UpdateStorageClientMsg, type UpdateStorageServerMsg, type UpdateYDocClientMsg, type User, type UserJoinServerMsg, type UserLeftServerMsg, WebsocketCloseCodes, type YDocUpdateServerMsg, ackOp, addReaction, applyOptimisticUpdates, asPos, assert, assertNever, b64decode, cloneLson, fancyConsole as console, convertToCommentData, convertToCommentUserReaction, convertToInboxNotificationData, convertToThreadData, createClient, deleteComment, deprecate, deprecateIf, detectDupes, errorIf, freeze, getMentionedIdsFromCommentBody, isChildCrdt, isJsonArray, isJsonObject, isJsonScalar, isLiveNode, isPlainObject, isRootCrdt, kInternal, legacy_patchImmutableObject, lsonToJson, makeEventSource, makePoller, makePosition, nn, objectToQuery, patchLiveObjectKey, raise, removeReaction, shallow, stringify, stringifyCommentBody, throwUsageError, toPlainLson, tryParseJson, upsertComment, withTimeout };
|