@liveblocks/core 2.18.3 → 2.18.4-uns2

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.
@@ -2495,11 +2495,49 @@ type NotificationChannelSettings = {
2495
2495
  [K in NotificationKind]: boolean;
2496
2496
  };
2497
2497
  /**
2498
- * User notification settings are a set of notification channel setting.
2498
+ * @private
2499
+ *
2500
+ * Base definition of user notification settings.
2501
+ * Plain means it's a simple object coming from the remote backend.
2502
+ *
2503
+ * It's the raw settings object where somme channels cannot exists
2504
+ * because there are no notification kinds enabled on the dashboard.
2505
+ * And this object isn't yet proxied by the creator factory `createUserNotificationSettings`.
2506
+ */
2507
+ type UserNotificationSettingsPlain = {
2508
+ [C in NotificationChannel]?: NotificationChannelSettings;
2509
+ };
2510
+ /**
2511
+ * @private
2512
+ *
2513
+ * Symbol to brand some properties and methods
2514
+ * as internal and private in `UserNotificationSettings`
2515
+ */
2516
+ declare const kPrivate: unique symbol;
2517
+ /**
2518
+ * @private
2519
+ *
2520
+ * Private properties and methods internal to `UserNotificationSettings`.
2521
+ * As a user of Liveblocks, you should NEVER USE ANY OF THESE DIRECTLY,
2522
+ * because bad things will happen.
2523
+ */
2524
+ type PrivateUserNotificationSettingsApi = {
2525
+ __plain__: UserNotificationSettingsPlain;
2526
+ };
2527
+ /**
2528
+ * User notification settings.
2499
2529
  * One channel for one set of settings.
2500
2530
  */
2501
2531
  type UserNotificationSettings = {
2502
- [C in NotificationChannel]: NotificationChannelSettings;
2532
+ [C in NotificationChannel]: NotificationChannelSettings | null;
2533
+ } & {
2534
+ /**
2535
+ * @private
2536
+ *
2537
+ * `UserNotificationSettings` with private internal properties
2538
+ * to store the plain settings and methods.
2539
+ */
2540
+ [kPrivate]: PrivateUserNotificationSettingsApi;
2503
2541
  };
2504
2542
  /**
2505
2543
  * It creates a deep partial specific for `UserNotificationSettings`
@@ -2514,16 +2552,42 @@ type DeepPartialWithAugmentation<T> = T extends object ? {
2514
2552
  } : DeepPartialWithAugmentation<T[P]>;
2515
2553
  } : T;
2516
2554
  /**
2517
- * Partial user notification settings
2518
- * with augmentation preserved gracefully
2555
+ * Partial user notification settings with augmentation preserved gracefully.
2556
+ * It means you can update the settings without being forced to define every keys.
2557
+ * Useful when implementing update functions.
2558
+ */
2559
+ type PartialUserNotificationSettings = DeepPartialWithAugmentation<UserNotificationSettingsPlain>;
2560
+ /**
2561
+ * @private
2562
+ *
2563
+ * Creates a `UserNotificationSettings` object with the given initial plain settings.
2564
+ * It defines a getter for each channel to access the settings and returns `null` with an error log
2565
+ * in case the required channel isn't enabled in the dashboard.
2566
+ *
2567
+ * You can see this function as `Proxy` like around `UserNotificationSettingsPlain` type.
2568
+ * We can't predict what will be enabled on the dashboard or not, so it's important
2569
+ * provide a good DX to developers by returning `null` completed by an error log
2570
+ * when they try to access a channel that isn't enabled in the dashboard.
2571
+ */
2572
+ declare function createUserNotificationSettings(plain: UserNotificationSettingsPlain): UserNotificationSettings;
2573
+ /**
2574
+ * @private
2575
+ *
2576
+ * Patch a `UserNotificationSettings` object by applying notification kind updates
2577
+ * coming from a `PartialUserNotificationSettings` object.
2519
2578
  */
2520
- type PartialUserNotificationSettings = DeepPartialWithAugmentation<UserNotificationSettings>;
2579
+ declare function patchUserNotificationSettings(existing: UserNotificationSettings, patch: PartialUserNotificationSettings): UserNotificationSettings;
2521
2580
  /**
2522
2581
  *
2523
2582
  * Utility to check if a notification channel settings
2524
2583
  * is enabled for every notification kinds.
2584
+ *
2585
+ * Usage:
2586
+ * ```ts
2587
+ * const isEmailChannelEnabled = isNotificationChannelEnabled(settings.email);
2588
+ * ```
2525
2589
  */
2526
- declare function isNotificationChannelEnabled(settings: NotificationChannelSettings): boolean;
2590
+ declare function isNotificationChannelEnabled(settings: NotificationChannelSettings | null): boolean;
2527
2591
 
2528
2592
  interface RoomHttpApi<M extends BaseMetadata> {
2529
2593
  getThreads(options: {
@@ -2741,8 +2805,8 @@ interface NotificationHttpApi<M extends BaseMetadata> {
2741
2805
  deleteInboxNotification(inboxNotificationId: string): Promise<void>;
2742
2806
  getUserNotificationSettings(options?: {
2743
2807
  signal?: AbortSignal;
2744
- }): Promise<UserNotificationSettings>;
2745
- updateUserNotificationSettings(settings: PartialUserNotificationSettings): Promise<UserNotificationSettings>;
2808
+ }): Promise<UserNotificationSettingsPlain>;
2809
+ updateUserNotificationSettings(settings: PartialUserNotificationSettings): Promise<UserNotificationSettingsPlain>;
2746
2810
  }
2747
2811
  interface LiveblocksHttpApi<M extends BaseMetadata> extends RoomHttpApi<M>, NotificationHttpApi<M> {
2748
2812
  getUserThreads_experimental(options?: {
@@ -3974,4 +4038,4 @@ declare const CommentsApiError: typeof HttpError;
3974
4038
  /** @deprecated Use HttpError instead. */
3975
4039
  declare const NotificationsApiError: typeof HttpError;
3976
4040
 
3977
- 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, stableStringify, stringifyCommentBody, throwUsageError, toAbsoluteUrl, toPlainLson, tryParseJson, url, urljoin, wait, withTimeout };
4041
+ 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, type UserNotificationSettingsPlain, 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, createUserNotificationSettings, 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, patchUserNotificationSettings, raise, resolveUsersInCommentBody, shallow, stableStringify, stringifyCommentBody, throwUsageError, toAbsoluteUrl, toPlainLson, tryParseJson, url, urljoin, wait, withTimeout };
package/dist/index.d.ts CHANGED
@@ -2495,11 +2495,49 @@ type NotificationChannelSettings = {
2495
2495
  [K in NotificationKind]: boolean;
2496
2496
  };
2497
2497
  /**
2498
- * User notification settings are a set of notification channel setting.
2498
+ * @private
2499
+ *
2500
+ * Base definition of user notification settings.
2501
+ * Plain means it's a simple object coming from the remote backend.
2502
+ *
2503
+ * It's the raw settings object where somme channels cannot exists
2504
+ * because there are no notification kinds enabled on the dashboard.
2505
+ * And this object isn't yet proxied by the creator factory `createUserNotificationSettings`.
2506
+ */
2507
+ type UserNotificationSettingsPlain = {
2508
+ [C in NotificationChannel]?: NotificationChannelSettings;
2509
+ };
2510
+ /**
2511
+ * @private
2512
+ *
2513
+ * Symbol to brand some properties and methods
2514
+ * as internal and private in `UserNotificationSettings`
2515
+ */
2516
+ declare const kPrivate: unique symbol;
2517
+ /**
2518
+ * @private
2519
+ *
2520
+ * Private properties and methods internal to `UserNotificationSettings`.
2521
+ * As a user of Liveblocks, you should NEVER USE ANY OF THESE DIRECTLY,
2522
+ * because bad things will happen.
2523
+ */
2524
+ type PrivateUserNotificationSettingsApi = {
2525
+ __plain__: UserNotificationSettingsPlain;
2526
+ };
2527
+ /**
2528
+ * User notification settings.
2499
2529
  * One channel for one set of settings.
2500
2530
  */
2501
2531
  type UserNotificationSettings = {
2502
- [C in NotificationChannel]: NotificationChannelSettings;
2532
+ [C in NotificationChannel]: NotificationChannelSettings | null;
2533
+ } & {
2534
+ /**
2535
+ * @private
2536
+ *
2537
+ * `UserNotificationSettings` with private internal properties
2538
+ * to store the plain settings and methods.
2539
+ */
2540
+ [kPrivate]: PrivateUserNotificationSettingsApi;
2503
2541
  };
2504
2542
  /**
2505
2543
  * It creates a deep partial specific for `UserNotificationSettings`
@@ -2514,16 +2552,42 @@ type DeepPartialWithAugmentation<T> = T extends object ? {
2514
2552
  } : DeepPartialWithAugmentation<T[P]>;
2515
2553
  } : T;
2516
2554
  /**
2517
- * Partial user notification settings
2518
- * with augmentation preserved gracefully
2555
+ * Partial user notification settings with augmentation preserved gracefully.
2556
+ * It means you can update the settings without being forced to define every keys.
2557
+ * Useful when implementing update functions.
2558
+ */
2559
+ type PartialUserNotificationSettings = DeepPartialWithAugmentation<UserNotificationSettingsPlain>;
2560
+ /**
2561
+ * @private
2562
+ *
2563
+ * Creates a `UserNotificationSettings` object with the given initial plain settings.
2564
+ * It defines a getter for each channel to access the settings and returns `null` with an error log
2565
+ * in case the required channel isn't enabled in the dashboard.
2566
+ *
2567
+ * You can see this function as `Proxy` like around `UserNotificationSettingsPlain` type.
2568
+ * We can't predict what will be enabled on the dashboard or not, so it's important
2569
+ * provide a good DX to developers by returning `null` completed by an error log
2570
+ * when they try to access a channel that isn't enabled in the dashboard.
2571
+ */
2572
+ declare function createUserNotificationSettings(plain: UserNotificationSettingsPlain): UserNotificationSettings;
2573
+ /**
2574
+ * @private
2575
+ *
2576
+ * Patch a `UserNotificationSettings` object by applying notification kind updates
2577
+ * coming from a `PartialUserNotificationSettings` object.
2519
2578
  */
2520
- type PartialUserNotificationSettings = DeepPartialWithAugmentation<UserNotificationSettings>;
2579
+ declare function patchUserNotificationSettings(existing: UserNotificationSettings, patch: PartialUserNotificationSettings): UserNotificationSettings;
2521
2580
  /**
2522
2581
  *
2523
2582
  * Utility to check if a notification channel settings
2524
2583
  * is enabled for every notification kinds.
2584
+ *
2585
+ * Usage:
2586
+ * ```ts
2587
+ * const isEmailChannelEnabled = isNotificationChannelEnabled(settings.email);
2588
+ * ```
2525
2589
  */
2526
- declare function isNotificationChannelEnabled(settings: NotificationChannelSettings): boolean;
2590
+ declare function isNotificationChannelEnabled(settings: NotificationChannelSettings | null): boolean;
2527
2591
 
2528
2592
  interface RoomHttpApi<M extends BaseMetadata> {
2529
2593
  getThreads(options: {
@@ -2741,8 +2805,8 @@ interface NotificationHttpApi<M extends BaseMetadata> {
2741
2805
  deleteInboxNotification(inboxNotificationId: string): Promise<void>;
2742
2806
  getUserNotificationSettings(options?: {
2743
2807
  signal?: AbortSignal;
2744
- }): Promise<UserNotificationSettings>;
2745
- updateUserNotificationSettings(settings: PartialUserNotificationSettings): Promise<UserNotificationSettings>;
2808
+ }): Promise<UserNotificationSettingsPlain>;
2809
+ updateUserNotificationSettings(settings: PartialUserNotificationSettings): Promise<UserNotificationSettingsPlain>;
2746
2810
  }
2747
2811
  interface LiveblocksHttpApi<M extends BaseMetadata> extends RoomHttpApi<M>, NotificationHttpApi<M> {
2748
2812
  getUserThreads_experimental(options?: {
@@ -3974,4 +4038,4 @@ declare const CommentsApiError: typeof HttpError;
3974
4038
  /** @deprecated Use HttpError instead. */
3975
4039
  declare const NotificationsApiError: typeof HttpError;
3976
4040
 
3977
- 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, stableStringify, stringifyCommentBody, throwUsageError, toAbsoluteUrl, toPlainLson, tryParseJson, url, urljoin, wait, withTimeout };
4041
+ 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, type UserNotificationSettingsPlain, 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, createUserNotificationSettings, 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, patchUserNotificationSettings, raise, resolveUsersInCommentBody, shallow, stableStringify, stringifyCommentBody, throwUsageError, toAbsoluteUrl, toPlainLson, tryParseJson, url, urljoin, wait, withTimeout };