@liveblocks/core 2.17.0 → 2.18.0

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 CHANGED
@@ -1599,6 +1599,8 @@ type CommentsOrNotificationsErrorContext = {
1599
1599
  } | {
1600
1600
  type: "UPDATE_NOTIFICATION_SETTINGS_ERROR";
1601
1601
  roomId: string;
1602
+ } | {
1603
+ type: "UPDATE_USER_NOTIFICATION_SETTINGS_ERROR";
1602
1604
  };
1603
1605
  type LiveblocksErrorContext = Relax<RoomConnectionErrorContext | CommentsOrNotificationsErrorContext>;
1604
1606
  declare class LiveblocksError extends Error {
@@ -2468,6 +2470,55 @@ type OptionalTupleUnless<C, T extends any[]> = Record<string, never> extends C ?
2468
2470
  ] extends [never] ? OptionalTuple<T> : T;
2469
2471
  type LargeMessageStrategy = "default" | "split" | "experimental-fallback-to-http";
2470
2472
 
2473
+ /**
2474
+ * Pre-defined notification channels support list.
2475
+ */
2476
+ type NotificationChannel = "email" | "slack" | "teams" | "webPush";
2477
+ /**
2478
+ * `K` represents custom notification kinds
2479
+ * defined in the augmentation `ActivitiesData` (e.g `liveblocks.config.ts`).
2480
+ * It means the type `NotificationKind` will be shaped like:
2481
+ * thread | textMention | $customKind1 | $customKind2 | ...
2482
+ */
2483
+ type NotificationKind<K extends keyof DAD = keyof DAD> = "thread" | "textMention" | K;
2484
+ /**
2485
+ * A notification channel settings is a set of notification kinds.
2486
+ * One setting can have multiple kinds (+ augmentation)
2487
+ */
2488
+ type NotificationChannelSettings = {
2489
+ [K in NotificationKind]: boolean;
2490
+ };
2491
+ /**
2492
+ * User notification settings are a set of notification channel setting.
2493
+ * One channel for one set of settings.
2494
+ */
2495
+ type UserNotificationSettings = {
2496
+ [C in NotificationChannel]: NotificationChannelSettings;
2497
+ };
2498
+ /**
2499
+ * It creates a deep partial specific for `UserNotificationSettings`
2500
+ * to offer a nice DX when updating the settings (e.g not being forced to define every keys)
2501
+ * and at the same the some preserver the augmentation for custom kinds (e.g `liveblocks.config.ts`).
2502
+ */
2503
+ type DeepPartialWithAugmentation<T> = T extends object ? {
2504
+ [P in keyof T]?: T[P] extends {
2505
+ [K in NotificationKind]: boolean;
2506
+ } ? Partial<T[P]> & {
2507
+ [K in keyof DAD]?: boolean;
2508
+ } : DeepPartialWithAugmentation<T[P]>;
2509
+ } : T;
2510
+ /**
2511
+ * Partial user notification settings
2512
+ * with augmentation preserved gracefully
2513
+ */
2514
+ type PartialUserNotificationSettings = DeepPartialWithAugmentation<UserNotificationSettings>;
2515
+ /**
2516
+ *
2517
+ * Utility to check if a notification channel settings
2518
+ * is enabled for every notification kinds.
2519
+ */
2520
+ declare function isNotificationChannelEnabled(settings: NotificationChannelSettings): boolean;
2521
+
2471
2522
  interface RoomHttpApi<M extends BaseMetadata> {
2472
2523
  getThreads(options: {
2473
2524
  roomId: string;
@@ -2682,6 +2733,8 @@ interface NotificationHttpApi<M extends BaseMetadata> {
2682
2733
  markInboxNotificationAsRead(inboxNotificationId: string): Promise<void>;
2683
2734
  deleteAllInboxNotifications(): Promise<void>;
2684
2735
  deleteInboxNotification(inboxNotificationId: string): Promise<void>;
2736
+ getUserNotificationSettings(): Promise<UserNotificationSettings>;
2737
+ updateUserNotificationSettings(settings: PartialUserNotificationSettings): Promise<UserNotificationSettings>;
2685
2738
  }
2686
2739
  interface LiveblocksHttpApi<M extends BaseMetadata> extends RoomHttpApi<M>, NotificationHttpApi<M> {
2687
2740
  getUserThreads_experimental(options?: {
@@ -2971,6 +3024,28 @@ type NotificationsApi<M extends BaseMetadata> = {
2971
3024
  * await client.deleteInboxNotification("in_xxx");
2972
3025
  */
2973
3026
  deleteInboxNotification(inboxNotificationId: string): Promise<void>;
3027
+ /**
3028
+ * Gets notifications settings for a user for a project.
3029
+ *
3030
+ * @example
3031
+ * const notificationSettings = await client.getNotificationSettings();
3032
+ */
3033
+ getNotificationSettings(options?: {
3034
+ signal?: AbortSignal;
3035
+ }): Promise<UserNotificationSettings>;
3036
+ /**
3037
+ * Update notifications settings for a user for a project.
3038
+ *
3039
+ * @example
3040
+ * await client.updateNotificationSettings({
3041
+ * email: {
3042
+ * thread: true,
3043
+ * textMention: false,
3044
+ * $customKind1: true,
3045
+ * }
3046
+ * })
3047
+ */
3048
+ updateNotificationSettings(settings: PartialUserNotificationSettings): Promise<UserNotificationSettings>;
2974
3049
  };
2975
3050
  /**
2976
3051
  * @private Widest-possible Client type, matching _any_ Client instance. Note
@@ -3562,6 +3637,18 @@ type DistributiveOmit<T, K extends PropertyKey> = T extends any ? Omit<T, K> : n
3562
3637
  * Throw an error, but as an expression instead of a statement.
3563
3638
  */
3564
3639
  declare function raise(msg: string): never;
3640
+ /**
3641
+ * Drop-in replacement for Object.entries() that retains better types.
3642
+ */
3643
+ declare function entries<O extends {
3644
+ [key: string]: unknown;
3645
+ }, K extends keyof O>(obj: O): [K, O[K]][];
3646
+ /**
3647
+ * Drop-in replacement for Object.keys() that retains better types.
3648
+ */
3649
+ declare function keys<O extends {
3650
+ [key: string]: unknown;
3651
+ }, K extends keyof O>(obj: O): K[];
3565
3652
  /**
3566
3653
  * Creates a new object by mapping a function over all values. Keys remain the
3567
3654
  * same. Think Array.prototype.map(), but for values in an object.
@@ -3879,4 +3966,4 @@ declare const CommentsApiError: typeof HttpError;
3879
3966
  /** @deprecated Use HttpError instead. */
3880
3967
  declare const NotificationsApiError: typeof HttpError;
3881
3968
 
3882
- export { type AckOp, type ActivityData, type AsyncError, type AsyncLoading, type AsyncResult, type AsyncSuccess, type Awaitable, type BaseActivitiesData, type BaseAuthResult, type BaseMetadata, type BaseRoomInfo, type BaseUserMeta, type Brand, type BroadcastEventClientMsg, type BroadcastOptions, type BroadcastedEventServerMsg, type Client, type ClientMsg, ClientMsgCode, type ClientOptions, 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, CommentsApiError, type CommentsEventServerMsg, type ContextualPromptContext, type ContextualPromptResponse, CrdtType, type CreateListOp, type CreateMapOp, type CreateObjectOp, type CreateOp, type CreateRegisterOp, type CustomAuthenticationResult, type DAD, type DE, type DM, type DP, type DRI, type DS, type DU, DefaultMap, type Delegates, type DeleteCrdtOp, type DeleteObjectKeyOp, DerivedSignal, DevToolsTreeNode as DevTools, protocol as DevToolsMsg, type DistributiveOmit, type EnsureJson, type EnterOptions, type EventSource, type FetchStorageClientMsg, type FetchYDocClientMsg, type GetThreadsOptions, type History, type HistoryVersion, HttpError, type ISignal, type IUserInfo, type IWebSocket, type IWebSocketCloseEvent, type IWebSocketEvent, type IWebSocketInstance, type IWebSocketMessageEvent, type IYjsProvider, type IdTuple, type Immutable, type InboxNotificationCustomData, type InboxNotificationCustomDataPlain, type InboxNotificationData, type InboxNotificationDataPlain, type InboxNotificationDeleteInfo, type InboxNotificationTextMentionData, type InboxNotificationTextMentionDataPlain, type InboxNotificationThreadData, type InboxNotificationThreadDataPlain, type InitialDocumentStateServerMsg, type Json, type JsonArray, type JsonObject, type JsonScalar, type KDAD, type LargeMessageStrategy, LiveList, type LiveListUpdate, LiveMap, type LiveMapUpdate, type LiveNode, LiveObject, type LiveObjectUpdate, type LiveStructure, LiveblocksError, type LiveblocksErrorContext, type LostConnectionEvent, type Lson, type LsonObject, MutableSignal, type NoInfr, type NodeMap, NotificationsApiError, type Observable, type Op, OpCode, type OpaqueClient, type OpaqueRoom, type OptionalTupleUnless, type OthersEvent, type ParentToChildNodeMap, 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 RejectedStorageOpServerMsg, type Relax, type Resolve, type ResolveMentionSuggestionsArgs, type ResolveRoomsInfoArgs, type ResolveUsersArgs, type Room, type RoomEventMessage, type RoomNotificationSettings, type RoomStateServerMsg, type SerializedChild, type SerializedCrdt, type SerializedList, type SerializedMap, type SerializedObject, type SerializedRegister, type SerializedRootObject, type ServerMsg, ServerMsgCode, type SetParentKeyOp, Signal, type SignalType, SortedList, type Status, type StorageStatus, type StorageUpdate, type StringifyCommentBodyElements, type StringifyCommentBodyOptions, type SyncSource, type SyncStatus, TextEditorType, type ThreadData, type ThreadDataPlain, type ThreadDataWithDeleteInfo, type ThreadDeleteInfo, type ToImmutable, type ToJson, type URLSafeString, type UnsubscribeCallback, type UpdateObjectOp, type UpdatePresenceClientMsg, type UpdatePresenceServerMsg, type UpdateStorageClientMsg, type UpdateStorageServerMsg, type UpdateYDocClientMsg, type UploadAttachmentOptions, type User, type UserJoinServerMsg, type UserLeftServerMsg, WebsocketCloseCodes, type YDocUpdateServerMsg, type YjsSyncStatus, ackOp, asPos, assert, assertNever, autoRetry, b64decode, batch, chunk, cloneLson, compactObject, fancyConsole as console, convertToCommentData, convertToCommentUserReaction, convertToInboxNotificationData, convertToThreadData, createClient, createCommentAttachmentId, createCommentId, createInboxNotificationId, createThreadId, deprecate, deprecateIf, detectDupes, errorIf, freeze, generateCommentUrl, getMentionedIdsFromCommentBody, html, htmlSafe, isChildCrdt, isCommentBodyLink, isCommentBodyMention, isCommentBodyText, isJsonArray, isJsonObject, isJsonScalar, isLiveNode, isPlainObject, isRootCrdt, isStartsWithOperator, kInternal, legacy_patchImmutableObject, lsonToJson, makeEventSource, makePoller, makePosition, mapValues, memoizeOnSuccess, nanoid, nn, objectToQuery, patchLiveObjectKey, raise, resolveUsersInCommentBody, shallow, stringify, stringifyCommentBody, throwUsageError, toAbsoluteUrl, toPlainLson, tryParseJson, url, urljoin, wait, withTimeout };
3969
+ export { type AckOp, type ActivityData, type AsyncError, type AsyncLoading, type AsyncResult, type AsyncSuccess, type Awaitable, type BaseActivitiesData, type BaseAuthResult, type BaseMetadata, type BaseRoomInfo, type BaseUserMeta, type Brand, type BroadcastEventClientMsg, type BroadcastOptions, type BroadcastedEventServerMsg, type Client, type ClientMsg, ClientMsgCode, type ClientOptions, 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, CommentsApiError, type CommentsEventServerMsg, type ContextualPromptContext, type ContextualPromptResponse, CrdtType, type CreateListOp, type CreateMapOp, type CreateObjectOp, type CreateOp, type CreateRegisterOp, type CustomAuthenticationResult, type DAD, type DE, type DM, type DP, type DRI, type DS, type DU, DefaultMap, type Delegates, type DeleteCrdtOp, type DeleteObjectKeyOp, DerivedSignal, DevToolsTreeNode as DevTools, protocol as DevToolsMsg, type DistributiveOmit, type EnsureJson, type EnterOptions, type EventSource, type FetchStorageClientMsg, type FetchYDocClientMsg, type GetThreadsOptions, type History, type HistoryVersion, HttpError, type ISignal, type IUserInfo, type IWebSocket, type IWebSocketCloseEvent, type IWebSocketEvent, type IWebSocketInstance, type IWebSocketMessageEvent, type IYjsProvider, type IdTuple, type Immutable, type InboxNotificationCustomData, type InboxNotificationCustomDataPlain, type InboxNotificationData, type InboxNotificationDataPlain, type InboxNotificationDeleteInfo, type InboxNotificationTextMentionData, type InboxNotificationTextMentionDataPlain, type InboxNotificationThreadData, type InboxNotificationThreadDataPlain, type InitialDocumentStateServerMsg, type Json, type JsonArray, type JsonObject, type JsonScalar, type KDAD, type LargeMessageStrategy, LiveList, type LiveListUpdate, LiveMap, type LiveMapUpdate, type LiveNode, LiveObject, type LiveObjectUpdate, type LiveStructure, LiveblocksError, type LiveblocksErrorContext, type LostConnectionEvent, type Lson, type LsonObject, MutableSignal, type NoInfr, type NodeMap, type NotificationChannel, type NotificationChannelSettings, type NotificationKind, NotificationsApiError, type Observable, type Op, OpCode, type OpaqueClient, type OpaqueRoom, type OptionalTupleUnless, type OthersEvent, type ParentToChildNodeMap, type PartialUnless, type PartialUserNotificationSettings, 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 RejectedStorageOpServerMsg, type Relax, type Resolve, type ResolveMentionSuggestionsArgs, type ResolveRoomsInfoArgs, type ResolveUsersArgs, type Room, type RoomEventMessage, type RoomNotificationSettings, type RoomStateServerMsg, type SerializedChild, type SerializedCrdt, type SerializedList, type SerializedMap, type SerializedObject, type SerializedRegister, type SerializedRootObject, type ServerMsg, ServerMsgCode, type SetParentKeyOp, Signal, type SignalType, SortedList, type Status, type StorageStatus, type StorageUpdate, type StringifyCommentBodyElements, type StringifyCommentBodyOptions, type SyncSource, type SyncStatus, TextEditorType, type ThreadData, type ThreadDataPlain, type ThreadDataWithDeleteInfo, type ThreadDeleteInfo, type ToImmutable, type ToJson, type URLSafeString, type UnsubscribeCallback, type UpdateObjectOp, type UpdatePresenceClientMsg, type UpdatePresenceServerMsg, type UpdateStorageClientMsg, type UpdateStorageServerMsg, type UpdateYDocClientMsg, type UploadAttachmentOptions, type User, type UserJoinServerMsg, type UserLeftServerMsg, type UserNotificationSettings, WebsocketCloseCodes, type YDocUpdateServerMsg, type YjsSyncStatus, ackOp, asPos, assert, assertNever, autoRetry, b64decode, batch, chunk, cloneLson, compactObject, fancyConsole as console, convertToCommentData, convertToCommentUserReaction, convertToInboxNotificationData, convertToThreadData, createClient, createCommentAttachmentId, createCommentId, createInboxNotificationId, createThreadId, deprecate, deprecateIf, detectDupes, entries, errorIf, freeze, generateCommentUrl, getMentionedIdsFromCommentBody, html, htmlSafe, isChildCrdt, isCommentBodyLink, isCommentBodyMention, isCommentBodyText, isJsonArray, isJsonObject, isJsonScalar, isLiveNode, isNotificationChannelEnabled, isPlainObject, isRootCrdt, isStartsWithOperator, kInternal, keys, legacy_patchImmutableObject, lsonToJson, makeEventSource, makePoller, makePosition, mapValues, memoizeOnSuccess, nanoid, nn, objectToQuery, patchLiveObjectKey, raise, resolveUsersInCommentBody, shallow, stringify, stringifyCommentBody, throwUsageError, toAbsoluteUrl, toPlainLson, tryParseJson, url, urljoin, wait, withTimeout };
package/dist/index.d.ts CHANGED
@@ -1599,6 +1599,8 @@ type CommentsOrNotificationsErrorContext = {
1599
1599
  } | {
1600
1600
  type: "UPDATE_NOTIFICATION_SETTINGS_ERROR";
1601
1601
  roomId: string;
1602
+ } | {
1603
+ type: "UPDATE_USER_NOTIFICATION_SETTINGS_ERROR";
1602
1604
  };
1603
1605
  type LiveblocksErrorContext = Relax<RoomConnectionErrorContext | CommentsOrNotificationsErrorContext>;
1604
1606
  declare class LiveblocksError extends Error {
@@ -2468,6 +2470,55 @@ type OptionalTupleUnless<C, T extends any[]> = Record<string, never> extends C ?
2468
2470
  ] extends [never] ? OptionalTuple<T> : T;
2469
2471
  type LargeMessageStrategy = "default" | "split" | "experimental-fallback-to-http";
2470
2472
 
2473
+ /**
2474
+ * Pre-defined notification channels support list.
2475
+ */
2476
+ type NotificationChannel = "email" | "slack" | "teams" | "webPush";
2477
+ /**
2478
+ * `K` represents custom notification kinds
2479
+ * defined in the augmentation `ActivitiesData` (e.g `liveblocks.config.ts`).
2480
+ * It means the type `NotificationKind` will be shaped like:
2481
+ * thread | textMention | $customKind1 | $customKind2 | ...
2482
+ */
2483
+ type NotificationKind<K extends keyof DAD = keyof DAD> = "thread" | "textMention" | K;
2484
+ /**
2485
+ * A notification channel settings is a set of notification kinds.
2486
+ * One setting can have multiple kinds (+ augmentation)
2487
+ */
2488
+ type NotificationChannelSettings = {
2489
+ [K in NotificationKind]: boolean;
2490
+ };
2491
+ /**
2492
+ * User notification settings are a set of notification channel setting.
2493
+ * One channel for one set of settings.
2494
+ */
2495
+ type UserNotificationSettings = {
2496
+ [C in NotificationChannel]: NotificationChannelSettings;
2497
+ };
2498
+ /**
2499
+ * It creates a deep partial specific for `UserNotificationSettings`
2500
+ * to offer a nice DX when updating the settings (e.g not being forced to define every keys)
2501
+ * and at the same the some preserver the augmentation for custom kinds (e.g `liveblocks.config.ts`).
2502
+ */
2503
+ type DeepPartialWithAugmentation<T> = T extends object ? {
2504
+ [P in keyof T]?: T[P] extends {
2505
+ [K in NotificationKind]: boolean;
2506
+ } ? Partial<T[P]> & {
2507
+ [K in keyof DAD]?: boolean;
2508
+ } : DeepPartialWithAugmentation<T[P]>;
2509
+ } : T;
2510
+ /**
2511
+ * Partial user notification settings
2512
+ * with augmentation preserved gracefully
2513
+ */
2514
+ type PartialUserNotificationSettings = DeepPartialWithAugmentation<UserNotificationSettings>;
2515
+ /**
2516
+ *
2517
+ * Utility to check if a notification channel settings
2518
+ * is enabled for every notification kinds.
2519
+ */
2520
+ declare function isNotificationChannelEnabled(settings: NotificationChannelSettings): boolean;
2521
+
2471
2522
  interface RoomHttpApi<M extends BaseMetadata> {
2472
2523
  getThreads(options: {
2473
2524
  roomId: string;
@@ -2682,6 +2733,8 @@ interface NotificationHttpApi<M extends BaseMetadata> {
2682
2733
  markInboxNotificationAsRead(inboxNotificationId: string): Promise<void>;
2683
2734
  deleteAllInboxNotifications(): Promise<void>;
2684
2735
  deleteInboxNotification(inboxNotificationId: string): Promise<void>;
2736
+ getUserNotificationSettings(): Promise<UserNotificationSettings>;
2737
+ updateUserNotificationSettings(settings: PartialUserNotificationSettings): Promise<UserNotificationSettings>;
2685
2738
  }
2686
2739
  interface LiveblocksHttpApi<M extends BaseMetadata> extends RoomHttpApi<M>, NotificationHttpApi<M> {
2687
2740
  getUserThreads_experimental(options?: {
@@ -2971,6 +3024,28 @@ type NotificationsApi<M extends BaseMetadata> = {
2971
3024
  * await client.deleteInboxNotification("in_xxx");
2972
3025
  */
2973
3026
  deleteInboxNotification(inboxNotificationId: string): Promise<void>;
3027
+ /**
3028
+ * Gets notifications settings for a user for a project.
3029
+ *
3030
+ * @example
3031
+ * const notificationSettings = await client.getNotificationSettings();
3032
+ */
3033
+ getNotificationSettings(options?: {
3034
+ signal?: AbortSignal;
3035
+ }): Promise<UserNotificationSettings>;
3036
+ /**
3037
+ * Update notifications settings for a user for a project.
3038
+ *
3039
+ * @example
3040
+ * await client.updateNotificationSettings({
3041
+ * email: {
3042
+ * thread: true,
3043
+ * textMention: false,
3044
+ * $customKind1: true,
3045
+ * }
3046
+ * })
3047
+ */
3048
+ updateNotificationSettings(settings: PartialUserNotificationSettings): Promise<UserNotificationSettings>;
2974
3049
  };
2975
3050
  /**
2976
3051
  * @private Widest-possible Client type, matching _any_ Client instance. Note
@@ -3562,6 +3637,18 @@ type DistributiveOmit<T, K extends PropertyKey> = T extends any ? Omit<T, K> : n
3562
3637
  * Throw an error, but as an expression instead of a statement.
3563
3638
  */
3564
3639
  declare function raise(msg: string): never;
3640
+ /**
3641
+ * Drop-in replacement for Object.entries() that retains better types.
3642
+ */
3643
+ declare function entries<O extends {
3644
+ [key: string]: unknown;
3645
+ }, K extends keyof O>(obj: O): [K, O[K]][];
3646
+ /**
3647
+ * Drop-in replacement for Object.keys() that retains better types.
3648
+ */
3649
+ declare function keys<O extends {
3650
+ [key: string]: unknown;
3651
+ }, K extends keyof O>(obj: O): K[];
3565
3652
  /**
3566
3653
  * Creates a new object by mapping a function over all values. Keys remain the
3567
3654
  * same. Think Array.prototype.map(), but for values in an object.
@@ -3879,4 +3966,4 @@ declare const CommentsApiError: typeof HttpError;
3879
3966
  /** @deprecated Use HttpError instead. */
3880
3967
  declare const NotificationsApiError: typeof HttpError;
3881
3968
 
3882
- export { type AckOp, type ActivityData, type AsyncError, type AsyncLoading, type AsyncResult, type AsyncSuccess, type Awaitable, type BaseActivitiesData, type BaseAuthResult, type BaseMetadata, type BaseRoomInfo, type BaseUserMeta, type Brand, type BroadcastEventClientMsg, type BroadcastOptions, type BroadcastedEventServerMsg, type Client, type ClientMsg, ClientMsgCode, type ClientOptions, 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, CommentsApiError, type CommentsEventServerMsg, type ContextualPromptContext, type ContextualPromptResponse, CrdtType, type CreateListOp, type CreateMapOp, type CreateObjectOp, type CreateOp, type CreateRegisterOp, type CustomAuthenticationResult, type DAD, type DE, type DM, type DP, type DRI, type DS, type DU, DefaultMap, type Delegates, type DeleteCrdtOp, type DeleteObjectKeyOp, DerivedSignal, DevToolsTreeNode as DevTools, protocol as DevToolsMsg, type DistributiveOmit, type EnsureJson, type EnterOptions, type EventSource, type FetchStorageClientMsg, type FetchYDocClientMsg, type GetThreadsOptions, type History, type HistoryVersion, HttpError, type ISignal, type IUserInfo, type IWebSocket, type IWebSocketCloseEvent, type IWebSocketEvent, type IWebSocketInstance, type IWebSocketMessageEvent, type IYjsProvider, type IdTuple, type Immutable, type InboxNotificationCustomData, type InboxNotificationCustomDataPlain, type InboxNotificationData, type InboxNotificationDataPlain, type InboxNotificationDeleteInfo, type InboxNotificationTextMentionData, type InboxNotificationTextMentionDataPlain, type InboxNotificationThreadData, type InboxNotificationThreadDataPlain, type InitialDocumentStateServerMsg, type Json, type JsonArray, type JsonObject, type JsonScalar, type KDAD, type LargeMessageStrategy, LiveList, type LiveListUpdate, LiveMap, type LiveMapUpdate, type LiveNode, LiveObject, type LiveObjectUpdate, type LiveStructure, LiveblocksError, type LiveblocksErrorContext, type LostConnectionEvent, type Lson, type LsonObject, MutableSignal, type NoInfr, type NodeMap, NotificationsApiError, type Observable, type Op, OpCode, type OpaqueClient, type OpaqueRoom, type OptionalTupleUnless, type OthersEvent, type ParentToChildNodeMap, 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 RejectedStorageOpServerMsg, type Relax, type Resolve, type ResolveMentionSuggestionsArgs, type ResolveRoomsInfoArgs, type ResolveUsersArgs, type Room, type RoomEventMessage, type RoomNotificationSettings, type RoomStateServerMsg, type SerializedChild, type SerializedCrdt, type SerializedList, type SerializedMap, type SerializedObject, type SerializedRegister, type SerializedRootObject, type ServerMsg, ServerMsgCode, type SetParentKeyOp, Signal, type SignalType, SortedList, type Status, type StorageStatus, type StorageUpdate, type StringifyCommentBodyElements, type StringifyCommentBodyOptions, type SyncSource, type SyncStatus, TextEditorType, type ThreadData, type ThreadDataPlain, type ThreadDataWithDeleteInfo, type ThreadDeleteInfo, type ToImmutable, type ToJson, type URLSafeString, type UnsubscribeCallback, type UpdateObjectOp, type UpdatePresenceClientMsg, type UpdatePresenceServerMsg, type UpdateStorageClientMsg, type UpdateStorageServerMsg, type UpdateYDocClientMsg, type UploadAttachmentOptions, type User, type UserJoinServerMsg, type UserLeftServerMsg, WebsocketCloseCodes, type YDocUpdateServerMsg, type YjsSyncStatus, ackOp, asPos, assert, assertNever, autoRetry, b64decode, batch, chunk, cloneLson, compactObject, fancyConsole as console, convertToCommentData, convertToCommentUserReaction, convertToInboxNotificationData, convertToThreadData, createClient, createCommentAttachmentId, createCommentId, createInboxNotificationId, createThreadId, deprecate, deprecateIf, detectDupes, errorIf, freeze, generateCommentUrl, getMentionedIdsFromCommentBody, html, htmlSafe, isChildCrdt, isCommentBodyLink, isCommentBodyMention, isCommentBodyText, isJsonArray, isJsonObject, isJsonScalar, isLiveNode, isPlainObject, isRootCrdt, isStartsWithOperator, kInternal, legacy_patchImmutableObject, lsonToJson, makeEventSource, makePoller, makePosition, mapValues, memoizeOnSuccess, nanoid, nn, objectToQuery, patchLiveObjectKey, raise, resolveUsersInCommentBody, shallow, stringify, stringifyCommentBody, throwUsageError, toAbsoluteUrl, toPlainLson, tryParseJson, url, urljoin, wait, withTimeout };
3969
+ export { type AckOp, type ActivityData, type AsyncError, type AsyncLoading, type AsyncResult, type AsyncSuccess, type Awaitable, type BaseActivitiesData, type BaseAuthResult, type BaseMetadata, type BaseRoomInfo, type BaseUserMeta, type Brand, type BroadcastEventClientMsg, type BroadcastOptions, type BroadcastedEventServerMsg, type Client, type ClientMsg, ClientMsgCode, type ClientOptions, 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, CommentsApiError, type CommentsEventServerMsg, type ContextualPromptContext, type ContextualPromptResponse, CrdtType, type CreateListOp, type CreateMapOp, type CreateObjectOp, type CreateOp, type CreateRegisterOp, type CustomAuthenticationResult, type DAD, type DE, type DM, type DP, type DRI, type DS, type DU, DefaultMap, type Delegates, type DeleteCrdtOp, type DeleteObjectKeyOp, DerivedSignal, DevToolsTreeNode as DevTools, protocol as DevToolsMsg, type DistributiveOmit, type EnsureJson, type EnterOptions, type EventSource, type FetchStorageClientMsg, type FetchYDocClientMsg, type GetThreadsOptions, type History, type HistoryVersion, HttpError, type ISignal, type IUserInfo, type IWebSocket, type IWebSocketCloseEvent, type IWebSocketEvent, type IWebSocketInstance, type IWebSocketMessageEvent, type IYjsProvider, type IdTuple, type Immutable, type InboxNotificationCustomData, type InboxNotificationCustomDataPlain, type InboxNotificationData, type InboxNotificationDataPlain, type InboxNotificationDeleteInfo, type InboxNotificationTextMentionData, type InboxNotificationTextMentionDataPlain, type InboxNotificationThreadData, type InboxNotificationThreadDataPlain, type InitialDocumentStateServerMsg, type Json, type JsonArray, type JsonObject, type JsonScalar, type KDAD, type LargeMessageStrategy, LiveList, type LiveListUpdate, LiveMap, type LiveMapUpdate, type LiveNode, LiveObject, type LiveObjectUpdate, type LiveStructure, LiveblocksError, type LiveblocksErrorContext, type LostConnectionEvent, type Lson, type LsonObject, MutableSignal, type NoInfr, type NodeMap, type NotificationChannel, type NotificationChannelSettings, type NotificationKind, NotificationsApiError, type Observable, type Op, OpCode, type OpaqueClient, type OpaqueRoom, type OptionalTupleUnless, type OthersEvent, type ParentToChildNodeMap, type PartialUnless, type PartialUserNotificationSettings, 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 RejectedStorageOpServerMsg, type Relax, type Resolve, type ResolveMentionSuggestionsArgs, type ResolveRoomsInfoArgs, type ResolveUsersArgs, type Room, type RoomEventMessage, type RoomNotificationSettings, type RoomStateServerMsg, type SerializedChild, type SerializedCrdt, type SerializedList, type SerializedMap, type SerializedObject, type SerializedRegister, type SerializedRootObject, type ServerMsg, ServerMsgCode, type SetParentKeyOp, Signal, type SignalType, SortedList, type Status, type StorageStatus, type StorageUpdate, type StringifyCommentBodyElements, type StringifyCommentBodyOptions, type SyncSource, type SyncStatus, TextEditorType, type ThreadData, type ThreadDataPlain, type ThreadDataWithDeleteInfo, type ThreadDeleteInfo, type ToImmutable, type ToJson, type URLSafeString, type UnsubscribeCallback, type UpdateObjectOp, type UpdatePresenceClientMsg, type UpdatePresenceServerMsg, type UpdateStorageClientMsg, type UpdateStorageServerMsg, type UpdateYDocClientMsg, type UploadAttachmentOptions, type User, type UserJoinServerMsg, type UserLeftServerMsg, type UserNotificationSettings, WebsocketCloseCodes, type YDocUpdateServerMsg, type YjsSyncStatus, ackOp, asPos, assert, assertNever, autoRetry, b64decode, batch, chunk, cloneLson, compactObject, fancyConsole as console, convertToCommentData, convertToCommentUserReaction, convertToInboxNotificationData, convertToThreadData, createClient, createCommentAttachmentId, createCommentId, createInboxNotificationId, createThreadId, deprecate, deprecateIf, detectDupes, entries, errorIf, freeze, generateCommentUrl, getMentionedIdsFromCommentBody, html, htmlSafe, isChildCrdt, isCommentBodyLink, isCommentBodyMention, isCommentBodyText, isJsonArray, isJsonObject, isJsonScalar, isLiveNode, isNotificationChannelEnabled, isPlainObject, isRootCrdt, isStartsWithOperator, kInternal, keys, legacy_patchImmutableObject, lsonToJson, makeEventSource, makePoller, makePosition, mapValues, memoizeOnSuccess, nanoid, nn, objectToQuery, patchLiveObjectKey, raise, resolveUsersInCommentBody, shallow, stringify, stringifyCommentBody, throwUsageError, toAbsoluteUrl, toPlainLson, tryParseJson, url, urljoin, wait, withTimeout };