@liveblocks/core 2.17.0-rc1 → 2.17.0-usrnotsettings2
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 +86 -4
- package/dist/index.d.ts +86 -4
- package/dist/index.js +153 -177
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +58 -82
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2441,7 +2441,55 @@ type PartialUnless<C, T> = Record<string, never> extends C ? Partial<T> : [
|
|
|
2441
2441
|
type OptionalTupleUnless<C, T extends any[]> = Record<string, never> extends C ? OptionalTuple<T> : [
|
|
2442
2442
|
C
|
|
2443
2443
|
] extends [never] ? OptionalTuple<T> : T;
|
|
2444
|
-
|
|
2444
|
+
|
|
2445
|
+
/**
|
|
2446
|
+
* Pre-defined notification channels support list.
|
|
2447
|
+
*/
|
|
2448
|
+
type NotificationChannel = "email" | "slack" | "teams" | "webPush";
|
|
2449
|
+
/**
|
|
2450
|
+
* `K` represents custom notification kinds
|
|
2451
|
+
* defined in the augmentation `ActivitiesData` (e.g `liveblocks.config.ts`).
|
|
2452
|
+
* It means the type `NotificationKind` will be shaped like:
|
|
2453
|
+
* thread | textMention | $customKind1 | $customKind2 | ...
|
|
2454
|
+
*/
|
|
2455
|
+
type NotificationKind<K extends keyof DAD = keyof DAD> = "thread" | "textMention" | K;
|
|
2456
|
+
/**
|
|
2457
|
+
* A notification channel settings is a set of notification kinds.
|
|
2458
|
+
* One setting can have multiple kinds (+ augmentation)
|
|
2459
|
+
*/
|
|
2460
|
+
type NotificationChannelSettings = {
|
|
2461
|
+
[K in NotificationKind]: boolean;
|
|
2462
|
+
};
|
|
2463
|
+
/**
|
|
2464
|
+
* User notification settings are a set of notification channel setting.
|
|
2465
|
+
* One channel for one set of settings.
|
|
2466
|
+
*/
|
|
2467
|
+
type UserNotificationSettings = {
|
|
2468
|
+
[C in NotificationChannel]: NotificationChannelSettings;
|
|
2469
|
+
};
|
|
2470
|
+
/**
|
|
2471
|
+
* It creates a deep partial specific for `UserNotificationSettings`
|
|
2472
|
+
* to offer a nice DX when updating the settings (e.g not being forced to define every keys)
|
|
2473
|
+
* and at the same the some preserver the augmentation for custom kinds (e.g `liveblocks.config.ts`).
|
|
2474
|
+
*/
|
|
2475
|
+
type DeepPartialWithAugmentation<T> = T extends object ? {
|
|
2476
|
+
[P in keyof T]?: T[P] extends {
|
|
2477
|
+
[K in NotificationKind]: boolean;
|
|
2478
|
+
} ? Partial<T[P]> & {
|
|
2479
|
+
[K in keyof DAD]?: boolean;
|
|
2480
|
+
} : DeepPartialWithAugmentation<T[P]>;
|
|
2481
|
+
} : T;
|
|
2482
|
+
/**
|
|
2483
|
+
* Partial user notification settings
|
|
2484
|
+
* with augmentation preserved gracefully
|
|
2485
|
+
*/
|
|
2486
|
+
type PartialUserNotificationSettings = DeepPartialWithAugmentation<UserNotificationSettings>;
|
|
2487
|
+
/**
|
|
2488
|
+
*
|
|
2489
|
+
* Utility to check if a notification channel settings
|
|
2490
|
+
* is enabled for every notification kinds.
|
|
2491
|
+
*/
|
|
2492
|
+
declare function isNotificationChannelEnabled(settings: NotificationChannelSettings): boolean;
|
|
2445
2493
|
|
|
2446
2494
|
interface RoomHttpApi<M extends BaseMetadata> {
|
|
2447
2495
|
getThreads(options: {
|
|
@@ -2647,6 +2695,8 @@ interface NotificationHttpApi<M extends BaseMetadata> {
|
|
|
2647
2695
|
markInboxNotificationAsRead(inboxNotificationId: string): Promise<void>;
|
|
2648
2696
|
deleteAllInboxNotifications(): Promise<void>;
|
|
2649
2697
|
deleteInboxNotification(inboxNotificationId: string): Promise<void>;
|
|
2698
|
+
getUserNotificationSettings(): Promise<UserNotificationSettings>;
|
|
2699
|
+
updateUserNotificationSettings(settings: PartialUserNotificationSettings): Promise<UserNotificationSettings>;
|
|
2650
2700
|
}
|
|
2651
2701
|
interface LiveblocksHttpApi<M extends BaseMetadata> extends RoomHttpApi<M>, NotificationHttpApi<M> {
|
|
2652
2702
|
getUserThreads_experimental(options?: {
|
|
@@ -2936,6 +2986,28 @@ type NotificationsApi<M extends BaseMetadata> = {
|
|
|
2936
2986
|
* await client.deleteInboxNotification("in_xxx");
|
|
2937
2987
|
*/
|
|
2938
2988
|
deleteInboxNotification(inboxNotificationId: string): Promise<void>;
|
|
2989
|
+
/**
|
|
2990
|
+
* Gets notifications settings for a user for a project.
|
|
2991
|
+
*
|
|
2992
|
+
* @example
|
|
2993
|
+
* const notificationSettings = await client.getNotificationSettings();
|
|
2994
|
+
*/
|
|
2995
|
+
getNotificationSettings(options?: {
|
|
2996
|
+
signal?: AbortSignal;
|
|
2997
|
+
}): Promise<UserNotificationSettings>;
|
|
2998
|
+
/**
|
|
2999
|
+
* Update notifications settings for a user for a project.
|
|
3000
|
+
*
|
|
3001
|
+
* @example
|
|
3002
|
+
* await client.updateNotificationSettings({
|
|
3003
|
+
* email: {
|
|
3004
|
+
* thread: true,
|
|
3005
|
+
* textMention: false,
|
|
3006
|
+
* $customKind1: true,
|
|
3007
|
+
* }
|
|
3008
|
+
* })
|
|
3009
|
+
*/
|
|
3010
|
+
updateNotificationSettings(settings: PartialUserNotificationSettings): Promise<UserNotificationSettings>;
|
|
2939
3011
|
};
|
|
2940
3012
|
/**
|
|
2941
3013
|
* @private Widest-possible Client type, matching _any_ Client instance. Note
|
|
@@ -3049,8 +3121,6 @@ type ClientOptions<U extends BaseUserMeta = DU> = {
|
|
|
3049
3121
|
lostConnectionTimeout?: number;
|
|
3050
3122
|
backgroundKeepAliveTimeout?: number;
|
|
3051
3123
|
polyfills?: Polyfills;
|
|
3052
|
-
largeMessageStrategy?: LargeMessageStrategy;
|
|
3053
|
-
/** @deprecated Use `largeMessageStrategy="experimental-fallback-to-http"` instead. */
|
|
3054
3124
|
unstable_fallbackToHTTP?: boolean;
|
|
3055
3125
|
unstable_streamData?: boolean;
|
|
3056
3126
|
/**
|
|
@@ -3527,6 +3597,18 @@ type DistributiveOmit<T, K extends PropertyKey> = T extends any ? Omit<T, K> : n
|
|
|
3527
3597
|
* Throw an error, but as an expression instead of a statement.
|
|
3528
3598
|
*/
|
|
3529
3599
|
declare function raise(msg: string): never;
|
|
3600
|
+
/**
|
|
3601
|
+
* Drop-in replacement for Object.entries() that retains better types.
|
|
3602
|
+
*/
|
|
3603
|
+
declare function entries<O extends {
|
|
3604
|
+
[key: string]: unknown;
|
|
3605
|
+
}, K extends keyof O>(obj: O): [K, O[K]][];
|
|
3606
|
+
/**
|
|
3607
|
+
* Drop-in replacement for Object.keys() that retains better types.
|
|
3608
|
+
*/
|
|
3609
|
+
declare function keys<O extends {
|
|
3610
|
+
[key: string]: unknown;
|
|
3611
|
+
}, K extends keyof O>(obj: O): K[];
|
|
3530
3612
|
/**
|
|
3531
3613
|
* Creates a new object by mapping a function over all values. Keys remain the
|
|
3532
3614
|
* same. Think Array.prototype.map(), but for values in an object.
|
|
@@ -3844,4 +3926,4 @@ declare const CommentsApiError: typeof HttpError;
|
|
|
3844
3926
|
/** @deprecated Use HttpError instead. */
|
|
3845
3927
|
declare const NotificationsApiError: typeof HttpError;
|
|
3846
3928
|
|
|
3847
|
-
export { type AckOp, type ActivityData, type AsyncError, type AsyncLoading, type AsyncResult, type AsyncSuccess, 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, 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,
|
|
3929
|
+
export { type AckOp, type ActivityData, type AsyncError, type AsyncLoading, type AsyncResult, type AsyncSuccess, 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, 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, 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 OptionalPromise, 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
|
@@ -2441,7 +2441,55 @@ type PartialUnless<C, T> = Record<string, never> extends C ? Partial<T> : [
|
|
|
2441
2441
|
type OptionalTupleUnless<C, T extends any[]> = Record<string, never> extends C ? OptionalTuple<T> : [
|
|
2442
2442
|
C
|
|
2443
2443
|
] extends [never] ? OptionalTuple<T> : T;
|
|
2444
|
-
|
|
2444
|
+
|
|
2445
|
+
/**
|
|
2446
|
+
* Pre-defined notification channels support list.
|
|
2447
|
+
*/
|
|
2448
|
+
type NotificationChannel = "email" | "slack" | "teams" | "webPush";
|
|
2449
|
+
/**
|
|
2450
|
+
* `K` represents custom notification kinds
|
|
2451
|
+
* defined in the augmentation `ActivitiesData` (e.g `liveblocks.config.ts`).
|
|
2452
|
+
* It means the type `NotificationKind` will be shaped like:
|
|
2453
|
+
* thread | textMention | $customKind1 | $customKind2 | ...
|
|
2454
|
+
*/
|
|
2455
|
+
type NotificationKind<K extends keyof DAD = keyof DAD> = "thread" | "textMention" | K;
|
|
2456
|
+
/**
|
|
2457
|
+
* A notification channel settings is a set of notification kinds.
|
|
2458
|
+
* One setting can have multiple kinds (+ augmentation)
|
|
2459
|
+
*/
|
|
2460
|
+
type NotificationChannelSettings = {
|
|
2461
|
+
[K in NotificationKind]: boolean;
|
|
2462
|
+
};
|
|
2463
|
+
/**
|
|
2464
|
+
* User notification settings are a set of notification channel setting.
|
|
2465
|
+
* One channel for one set of settings.
|
|
2466
|
+
*/
|
|
2467
|
+
type UserNotificationSettings = {
|
|
2468
|
+
[C in NotificationChannel]: NotificationChannelSettings;
|
|
2469
|
+
};
|
|
2470
|
+
/**
|
|
2471
|
+
* It creates a deep partial specific for `UserNotificationSettings`
|
|
2472
|
+
* to offer a nice DX when updating the settings (e.g not being forced to define every keys)
|
|
2473
|
+
* and at the same the some preserver the augmentation for custom kinds (e.g `liveblocks.config.ts`).
|
|
2474
|
+
*/
|
|
2475
|
+
type DeepPartialWithAugmentation<T> = T extends object ? {
|
|
2476
|
+
[P in keyof T]?: T[P] extends {
|
|
2477
|
+
[K in NotificationKind]: boolean;
|
|
2478
|
+
} ? Partial<T[P]> & {
|
|
2479
|
+
[K in keyof DAD]?: boolean;
|
|
2480
|
+
} : DeepPartialWithAugmentation<T[P]>;
|
|
2481
|
+
} : T;
|
|
2482
|
+
/**
|
|
2483
|
+
* Partial user notification settings
|
|
2484
|
+
* with augmentation preserved gracefully
|
|
2485
|
+
*/
|
|
2486
|
+
type PartialUserNotificationSettings = DeepPartialWithAugmentation<UserNotificationSettings>;
|
|
2487
|
+
/**
|
|
2488
|
+
*
|
|
2489
|
+
* Utility to check if a notification channel settings
|
|
2490
|
+
* is enabled for every notification kinds.
|
|
2491
|
+
*/
|
|
2492
|
+
declare function isNotificationChannelEnabled(settings: NotificationChannelSettings): boolean;
|
|
2445
2493
|
|
|
2446
2494
|
interface RoomHttpApi<M extends BaseMetadata> {
|
|
2447
2495
|
getThreads(options: {
|
|
@@ -2647,6 +2695,8 @@ interface NotificationHttpApi<M extends BaseMetadata> {
|
|
|
2647
2695
|
markInboxNotificationAsRead(inboxNotificationId: string): Promise<void>;
|
|
2648
2696
|
deleteAllInboxNotifications(): Promise<void>;
|
|
2649
2697
|
deleteInboxNotification(inboxNotificationId: string): Promise<void>;
|
|
2698
|
+
getUserNotificationSettings(): Promise<UserNotificationSettings>;
|
|
2699
|
+
updateUserNotificationSettings(settings: PartialUserNotificationSettings): Promise<UserNotificationSettings>;
|
|
2650
2700
|
}
|
|
2651
2701
|
interface LiveblocksHttpApi<M extends BaseMetadata> extends RoomHttpApi<M>, NotificationHttpApi<M> {
|
|
2652
2702
|
getUserThreads_experimental(options?: {
|
|
@@ -2936,6 +2986,28 @@ type NotificationsApi<M extends BaseMetadata> = {
|
|
|
2936
2986
|
* await client.deleteInboxNotification("in_xxx");
|
|
2937
2987
|
*/
|
|
2938
2988
|
deleteInboxNotification(inboxNotificationId: string): Promise<void>;
|
|
2989
|
+
/**
|
|
2990
|
+
* Gets notifications settings for a user for a project.
|
|
2991
|
+
*
|
|
2992
|
+
* @example
|
|
2993
|
+
* const notificationSettings = await client.getNotificationSettings();
|
|
2994
|
+
*/
|
|
2995
|
+
getNotificationSettings(options?: {
|
|
2996
|
+
signal?: AbortSignal;
|
|
2997
|
+
}): Promise<UserNotificationSettings>;
|
|
2998
|
+
/**
|
|
2999
|
+
* Update notifications settings for a user for a project.
|
|
3000
|
+
*
|
|
3001
|
+
* @example
|
|
3002
|
+
* await client.updateNotificationSettings({
|
|
3003
|
+
* email: {
|
|
3004
|
+
* thread: true,
|
|
3005
|
+
* textMention: false,
|
|
3006
|
+
* $customKind1: true,
|
|
3007
|
+
* }
|
|
3008
|
+
* })
|
|
3009
|
+
*/
|
|
3010
|
+
updateNotificationSettings(settings: PartialUserNotificationSettings): Promise<UserNotificationSettings>;
|
|
2939
3011
|
};
|
|
2940
3012
|
/**
|
|
2941
3013
|
* @private Widest-possible Client type, matching _any_ Client instance. Note
|
|
@@ -3049,8 +3121,6 @@ type ClientOptions<U extends BaseUserMeta = DU> = {
|
|
|
3049
3121
|
lostConnectionTimeout?: number;
|
|
3050
3122
|
backgroundKeepAliveTimeout?: number;
|
|
3051
3123
|
polyfills?: Polyfills;
|
|
3052
|
-
largeMessageStrategy?: LargeMessageStrategy;
|
|
3053
|
-
/** @deprecated Use `largeMessageStrategy="experimental-fallback-to-http"` instead. */
|
|
3054
3124
|
unstable_fallbackToHTTP?: boolean;
|
|
3055
3125
|
unstable_streamData?: boolean;
|
|
3056
3126
|
/**
|
|
@@ -3527,6 +3597,18 @@ type DistributiveOmit<T, K extends PropertyKey> = T extends any ? Omit<T, K> : n
|
|
|
3527
3597
|
* Throw an error, but as an expression instead of a statement.
|
|
3528
3598
|
*/
|
|
3529
3599
|
declare function raise(msg: string): never;
|
|
3600
|
+
/**
|
|
3601
|
+
* Drop-in replacement for Object.entries() that retains better types.
|
|
3602
|
+
*/
|
|
3603
|
+
declare function entries<O extends {
|
|
3604
|
+
[key: string]: unknown;
|
|
3605
|
+
}, K extends keyof O>(obj: O): [K, O[K]][];
|
|
3606
|
+
/**
|
|
3607
|
+
* Drop-in replacement for Object.keys() that retains better types.
|
|
3608
|
+
*/
|
|
3609
|
+
declare function keys<O extends {
|
|
3610
|
+
[key: string]: unknown;
|
|
3611
|
+
}, K extends keyof O>(obj: O): K[];
|
|
3530
3612
|
/**
|
|
3531
3613
|
* Creates a new object by mapping a function over all values. Keys remain the
|
|
3532
3614
|
* same. Think Array.prototype.map(), but for values in an object.
|
|
@@ -3844,4 +3926,4 @@ declare const CommentsApiError: typeof HttpError;
|
|
|
3844
3926
|
/** @deprecated Use HttpError instead. */
|
|
3845
3927
|
declare const NotificationsApiError: typeof HttpError;
|
|
3846
3928
|
|
|
3847
|
-
export { type AckOp, type ActivityData, type AsyncError, type AsyncLoading, type AsyncResult, type AsyncSuccess, 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, 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,
|
|
3929
|
+
export { type AckOp, type ActivityData, type AsyncError, type AsyncLoading, type AsyncResult, type AsyncSuccess, 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, 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, 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 OptionalPromise, 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 };
|