@liveblocks/core 3.20.0-perm1 → 3.20.0-perm3
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.cjs +486 -172
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +63 -10
- package/dist/index.d.ts +63 -10
- package/dist/index.js +388 -74
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -132,7 +132,8 @@ type RoomAccessesUpdateInput = Record<string, RoomPermissionInput | null>;
|
|
|
132
132
|
declare function normalizeRoomPermissionInput(input: RoomPermissionInput): RoomPermission;
|
|
133
133
|
declare function normalizeRoomAccessesInput(input: RoomAccessesInput | undefined): RoomAccesses | undefined;
|
|
134
134
|
declare function normalizeRoomAccessesUpdateInput(input: RoomAccessesUpdateInput | undefined): Record<string, RoomPermission | null> | undefined;
|
|
135
|
-
declare function
|
|
135
|
+
declare function mergePermissionCapabilities(sources: readonly PermissionCapabilities[]): PermissionCapabilities;
|
|
136
|
+
declare function permissionCapabilitiesToScopes(capabilities: PermissionCapabilities): RoomPermission;
|
|
136
137
|
|
|
137
138
|
type CustomAuthenticationResult = Relax<{
|
|
138
139
|
token: string;
|
|
@@ -515,40 +516,40 @@ type UpdateObjectOp = {
|
|
|
515
516
|
type CreateObjectOp = {
|
|
516
517
|
readonly opId?: string;
|
|
517
518
|
readonly id: string;
|
|
518
|
-
readonly intent?: "set";
|
|
519
|
-
readonly deletedId?: string;
|
|
520
519
|
readonly type: OpCode.CREATE_OBJECT;
|
|
521
520
|
readonly parentId: string;
|
|
522
521
|
readonly parentKey: string;
|
|
523
522
|
readonly data: JsonObject;
|
|
523
|
+
readonly intent?: "set" | "push";
|
|
524
|
+
readonly deletedId?: string;
|
|
524
525
|
};
|
|
525
526
|
type CreateListOp = {
|
|
526
527
|
readonly opId?: string;
|
|
527
528
|
readonly id: string;
|
|
528
|
-
readonly intent?: "set";
|
|
529
|
-
readonly deletedId?: string;
|
|
530
529
|
readonly type: OpCode.CREATE_LIST;
|
|
531
530
|
readonly parentId: string;
|
|
532
531
|
readonly parentKey: string;
|
|
532
|
+
readonly intent?: "set" | "push";
|
|
533
|
+
readonly deletedId?: string;
|
|
533
534
|
};
|
|
534
535
|
type CreateMapOp = {
|
|
535
536
|
readonly opId?: string;
|
|
536
537
|
readonly id: string;
|
|
537
|
-
readonly intent?: "set";
|
|
538
|
-
readonly deletedId?: string;
|
|
539
538
|
readonly type: OpCode.CREATE_MAP;
|
|
540
539
|
readonly parentId: string;
|
|
541
540
|
readonly parentKey: string;
|
|
541
|
+
readonly intent?: "set" | "push";
|
|
542
|
+
readonly deletedId?: string;
|
|
542
543
|
};
|
|
543
544
|
type CreateRegisterOp = {
|
|
544
545
|
readonly opId?: string;
|
|
545
546
|
readonly id: string;
|
|
546
|
-
readonly intent?: "set";
|
|
547
|
-
readonly deletedId?: string;
|
|
548
547
|
readonly type: OpCode.CREATE_REGISTER;
|
|
549
548
|
readonly parentId: string;
|
|
550
549
|
readonly parentKey: string;
|
|
551
550
|
readonly data: Json;
|
|
551
|
+
readonly intent?: "set" | "push";
|
|
552
|
+
readonly deletedId?: string;
|
|
552
553
|
};
|
|
553
554
|
type DeleteCrdtOp = {
|
|
554
555
|
readonly opId?: string;
|
|
@@ -580,6 +581,7 @@ type HasOpId = {
|
|
|
580
581
|
* acknowledge the receipt.
|
|
581
582
|
*/
|
|
582
583
|
type ClientWireOp = Op & HasOpId;
|
|
584
|
+
type ClientWireCreateOp = CreateOp & HasOpId;
|
|
583
585
|
/**
|
|
584
586
|
* ServerWireOp: Ops sent from server → client. Three variants:
|
|
585
587
|
* 1. ClientWireOp — Full echo back of our own op, confirming it was applied
|
|
@@ -805,6 +807,14 @@ type SyncMode = boolean | "atomic" | SyncConfig;
|
|
|
805
807
|
type SyncConfig = {
|
|
806
808
|
[key: string]: SyncMode | undefined;
|
|
807
809
|
};
|
|
810
|
+
/**
|
|
811
|
+
* Deeply converts all nested lists to LiveLists, and all nested objects to
|
|
812
|
+
* LiveObjects.
|
|
813
|
+
*
|
|
814
|
+
* As such, the returned result will not contain any Json arrays or Json
|
|
815
|
+
* objects anymore.
|
|
816
|
+
*/
|
|
817
|
+
declare function deepLiveify(value: Json, config?: SyncMode): Lson;
|
|
808
818
|
|
|
809
819
|
/**
|
|
810
820
|
* Optional keys of O whose non-undefined type is plain Json (not a
|
|
@@ -925,6 +935,30 @@ type LiveListUpdate = LiveListUpdates<Lson>;
|
|
|
925
935
|
*/
|
|
926
936
|
type StorageUpdate = LiveMapUpdate | LiveObjectUpdate | LiveListUpdate;
|
|
927
937
|
|
|
938
|
+
/**
|
|
939
|
+
* Read-only query surface over {@link UnacknowledgedOps}, handed to CRDTs so
|
|
940
|
+
* they can look up their own still-pending Create ops without being able to
|
|
941
|
+
* mutate the set (only the room adds/acks).
|
|
942
|
+
*/
|
|
943
|
+
interface ReadonlyUnacknowledgedOps {
|
|
944
|
+
/** Still-unacknowledged Create ops whose `parentId` is the given one. */
|
|
945
|
+
getByParentId(parentId: string): Iterable<ClientWireCreateOp>;
|
|
946
|
+
/**
|
|
947
|
+
* Still-unacknowledged Create ops whose `parentId` and `parentKey` are both
|
|
948
|
+
* the given ones (i.e. targeting one exact position).
|
|
949
|
+
*/
|
|
950
|
+
getByParentIdAndKey(parentId: string, parentKey: string): Iterable<ClientWireCreateOp>;
|
|
951
|
+
/**
|
|
952
|
+
* Whether the given pending op may already have been processed by the
|
|
953
|
+
* server. True for ops that were in flight when a connection died: the
|
|
954
|
+
* server may have stored them with the ack getting lost in the disconnect,
|
|
955
|
+
* or may never have received them. Until the (re-sent) op's ack arrives,
|
|
956
|
+
* the client cannot know which, so optimistic predictions that assume the
|
|
957
|
+
* op has not been processed yet are unsound for these ops.
|
|
958
|
+
*/
|
|
959
|
+
isPossiblyStored(opId: string): boolean;
|
|
960
|
+
}
|
|
961
|
+
|
|
928
962
|
/**
|
|
929
963
|
* The managed pool is a namespace registry (i.e. a context) that "owns" all
|
|
930
964
|
* the individual live nodes, ensuring each one has a unique ID, and holding on
|
|
@@ -953,6 +987,11 @@ interface ManagedPool {
|
|
|
953
987
|
* @returns {void}
|
|
954
988
|
*/
|
|
955
989
|
assertStorageIsWritable: () => void;
|
|
990
|
+
/**
|
|
991
|
+
* Read-only view of the client's still-unacknowledged ops (sent or
|
|
992
|
+
* pending-send, not yet confirmed by the server).
|
|
993
|
+
*/
|
|
994
|
+
readonly unacknowledgedOps: ReadonlyUnacknowledgedOps;
|
|
956
995
|
}
|
|
957
996
|
type CreateManagedPoolOptions = {
|
|
958
997
|
/**
|
|
@@ -972,6 +1011,13 @@ type CreateManagedPoolOptions = {
|
|
|
972
1011
|
* have an effect upstream.
|
|
973
1012
|
*/
|
|
974
1013
|
isStorageWritable?: () => boolean;
|
|
1014
|
+
/**
|
|
1015
|
+
* Read-only view of the client's still-unacknowledged ops. Used by CRDTs
|
|
1016
|
+
* (e.g. LiveList) to know which of their optimistic mutations the server
|
|
1017
|
+
* hasn't confirmed yet. Defaults to an empty view (e.g. server-side pools
|
|
1018
|
+
* that dispatch-and-flush have no optimistic state to track).
|
|
1019
|
+
*/
|
|
1020
|
+
unacknowledgedOps?: ReadonlyUnacknowledgedOps;
|
|
975
1021
|
};
|
|
976
1022
|
/**
|
|
977
1023
|
* @private Private API, never use this API directly.
|
|
@@ -5506,6 +5552,13 @@ declare class SortedList<T> {
|
|
|
5506
5552
|
reposition(value: T): number;
|
|
5507
5553
|
at(index: number): T | undefined;
|
|
5508
5554
|
get length(): number;
|
|
5555
|
+
/**
|
|
5556
|
+
* Whether the given value is present, by identity. O(log n) plus the length
|
|
5557
|
+
* of any run of items that share its sort key (normally 1). Bisects on the
|
|
5558
|
+
* value's own key, so it only finds values sitting at their sorted position,
|
|
5559
|
+
* which is true for any item currently in the list.
|
|
5560
|
+
*/
|
|
5561
|
+
includes(value: T): boolean;
|
|
5509
5562
|
filter(predicate: (value: T) => boolean): IterableIterator<T>;
|
|
5510
5563
|
findAllRight(predicate: (value: T, index: number) => unknown): IterableIterator<T>;
|
|
5511
5564
|
[Symbol.iterator](): IterableIterator<T>;
|
|
@@ -5718,4 +5771,4 @@ type EnsureJson<T> = T extends Json ? T : T extends Array<infer I> ? (EnsureJson
|
|
|
5718
5771
|
[K in keyof T as EnsureJson<T[K]> extends never ? never : K]: EnsureJson<T[K]>;
|
|
5719
5772
|
};
|
|
5720
5773
|
|
|
5721
|
-
export { type AccessLevel, type ActivityData, type AiAssistantContentPart, type AiAssistantMessage, type AiChat, type AiChatMessage, type AiChatsQuery, type AiKnowledgeRetrievalPart, type AiKnowledgeSource, type AiOpaqueToolDefinition, type AiOpaqueToolInvocationProps, type AiReasoningPart, type AiRetrievalPart, type AiSourcesPart, type AiTextPart, type AiToolDefinition, type AiToolExecuteCallback, type AiToolExecuteContext, type AiToolInvocationPart, type AiToolInvocationProps, type AiToolTypePack, type AiUrlSource, type AiUserMessage, type AiWebRetrievalPart, type AsyncError, type AsyncLoading, type AsyncResult, type AsyncSuccess, type Awaitable, type BaseActivitiesData, type BaseAuthResult, type BaseGroupInfo, type BaseMetadata, type BaseRoomInfo, type BaseUserMeta, type Brand, type BroadcastEventClientMsg, type BroadcastOptions, type BroadcastedEventServerMsg, type ChildStorageNode, type Client, type ClientMsg, ClientMsgCode, type ClientOptions, type ClientWireOp, 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, type CommentsEventServerMsg, type CompactChildNode, type CompactListNode, type CompactMapNode, type CompactNode, type CompactObjectNode, type CompactRegisterNode, type CompactRootNode, type ContextualPromptContext, type ContextualPromptResponse, type CopilotId, CrdtType, type CreateListOp, type CreateManagedPoolOptions, type CreateMapOp, type CreateObjectOp, type CreateOp, type CreateRegisterOp, type Cursor, type CustomAuthenticationResult, type DAD, type DCM, type DE, type DFM, type DFMD, type DGI, type DP, type DRI, type DS, type DTM, type DU, DefaultMap, type Delegates, type DeleteCrdtOp, type DeleteObjectKeyOp, Deque, DerivedSignal, DevToolsTreeNode as DevTools, protocol as DevToolsMsg, type DistributiveOmit, type EnsureJson, type EnterOptions, type EventSource, type Feed, type FeedCreateMetadata, type FeedDeletedServerMsg, type FeedFetchMetadataFilter, type FeedMessage, type FeedMessagesAddedServerMsg, type FeedMessagesDeletedServerMsg, type FeedMessagesListServerMsg, type FeedMessagesUpdatedServerMsg, type FeedRequestError, FeedRequestErrorCode, type FeedRequestFailedServerMsg, type FeedUpdateMetadata, type FeedsAddedServerMsg, type FeedsEventServerMsg, type FeedsListServerMsg, type FeedsUpdatedServerMsg, type FetchStorageClientMsg, type FetchYDocClientMsg, type GetThreadsOptions, type GroupData, type GroupDataPlain, type GroupMemberData, type GroupMentionData, type GroupScopes, type HasOpId, type History, type HistoryVersion, HttpError, type ISODateString, type ISignal, type IUserInfo, type IWebSocket, type IWebSocketCloseEvent, type IWebSocketEvent, type IWebSocketInstance, type IWebSocketMessageEvent, type IYjsProvider, type IgnoredOp, type Immutable, type InboxNotificationCustomData, type InboxNotificationCustomDataPlain, type InboxNotificationData, type InboxNotificationDataPlain, type InboxNotificationDeleteInfo, type InboxNotificationTextMentionData, type InboxNotificationTextMentionDataPlain, type InboxNotificationThreadData, type InboxNotificationThreadDataPlain, type InferFromSchema, type Json, type JsonArray, type JsonObject, type JsonScalar, type KDAD, type LayerKey, type ListStorageNode, LiveList, type LiveListUpdate, LiveMap, type LiveMapUpdate, type LiveNode, LiveObject, type LiveObjectUpdate, type LiveStructure, LiveblocksError, type LiveblocksErrorContext, type LostConnectionEvent, type Lson, type LsonObject, MENTION_CHARACTER, type ManagedPool, type MapStorageNode, type MentionData, type MessageId, MutableSignal, type NoInfr, type NodeMap, type NodeStream, type NotificationChannel, type NotificationChannelSettings, type NotificationKind, type NotificationSettings, type NotificationSettingsPlain, type ObjectStorageNode, type Observable, type Op, OpCode, type OpaqueClient, type OpaqueRoom, type OptionalTupleUnless, type OthersEvent, type ParentToChildNodeMap, type PartialNotificationSettings, type PartialUnless, type Patchable, Permission, type PermissionCapabilities, type PermissionResources, type PlainLson, type PlainLsonFields, type PlainLsonList, type PlainLsonMap, type PlainLsonObject, type Poller, type PrivateClientApi, type PrivateRoomApi, Promise_withResolvers, type QueryMetadata, type QueryParams, type ReadonlyJson, type ReadonlyJsonObject, type RegisterStorageNode, type RejectedStorageOpServerMsg, type Relax, type RenderableToolResultResponse, type RequiredAccessLevel, type Resolve, type ResolveGroupsInfoArgs, type ResolveMentionSuggestionsArgs, type ResolveRoomsInfoArgs, type ResolveUsersArgs, type Room, type RoomAccesses, type RoomAccessesInput, type RoomAccessesUpdateInput, type RoomEventMessage, type RoomPermission, type RoomPermissionInput, type RoomPermissionObject, type RoomStateServerMsg, type RoomSubscriptionSettings, type RootStorageNode, type SearchCommentsResult, type SerializedChild, type SerializedCrdt, type SerializedList, type SerializedMap, type SerializedObject, type SerializedRegister, type SerializedRootObject, type ServerMsg, ServerMsgCode, type ServerWireOp, type SetParentKeyOp, Signal, type SignalType, SortedList, type Status, type StorageChunkServerMsg, type StorageNode, type StorageStatus, type StorageUpdate, type StringifyCommentBodyElements, type StringifyCommentBodyOptions, type SubscriptionData, type SubscriptionDataPlain, type SubscriptionDeleteInfo, type SubscriptionDeleteInfoPlain, type SubscriptionKey, type SyncConfig, type SyncMode, type SyncSource, type SyncStatus, TextEditorType, type ThreadData, type ThreadDataPlain, type ThreadDataWithDeleteInfo, type ThreadDeleteInfo, type ToJson, type ToolResultResponse, type URLSafeString, type UnsubscribeCallback, type UpdateObjectOp, type UpdatePresenceClientMsg, type UpdatePresenceServerMsg, type UpdateStorageClientMsg, type UpdateStorageServerMsg, type UpdateYDocClientMsg, type UploadAttachmentOptions, type UrlMetadata, type User, type UserJoinServerMsg, type UserLeftServerMsg, type UserMentionData, type UserRoomSubscriptionSettings, type UserSubscriptionData, type UserSubscriptionDataPlain, WebsocketCloseCodes, type WithNavigation, type WithOptional, type WithRequired, type YDocUpdateServerMsg, type YjsSyncStatus, asPos, assert, assertNever, autoRetry, b64decode, batch, checkBounds, chunk, cloneLson, compactNodesToNodeStream, compactObject, fancyConsole as console, convertToCommentData, convertToCommentUserReaction, convertToGroupData, convertToInboxNotificationData, convertToSubscriptionData, convertToThreadData, convertToUserSubscriptionData, createClient, createCommentAttachmentId, createCommentId, createInboxNotificationId, createManagedPool, createNotificationSettings, createThreadId, defineAiTool, deprecate, deprecateIf, detectDupes, entries, errorIf, findLastIndex, freeze, generateUrl, getMentionsFromCommentBody,
|
|
5774
|
+
export { type AccessLevel, type ActivityData, type AiAssistantContentPart, type AiAssistantMessage, type AiChat, type AiChatMessage, type AiChatsQuery, type AiKnowledgeRetrievalPart, type AiKnowledgeSource, type AiOpaqueToolDefinition, type AiOpaqueToolInvocationProps, type AiReasoningPart, type AiRetrievalPart, type AiSourcesPart, type AiTextPart, type AiToolDefinition, type AiToolExecuteCallback, type AiToolExecuteContext, type AiToolInvocationPart, type AiToolInvocationProps, type AiToolTypePack, type AiUrlSource, type AiUserMessage, type AiWebRetrievalPart, type AsyncError, type AsyncLoading, type AsyncResult, type AsyncSuccess, type Awaitable, type BaseActivitiesData, type BaseAuthResult, type BaseGroupInfo, type BaseMetadata, type BaseRoomInfo, type BaseUserMeta, type Brand, type BroadcastEventClientMsg, type BroadcastOptions, type BroadcastedEventServerMsg, type ChildStorageNode, type Client, type ClientMsg, ClientMsgCode, type ClientOptions, type ClientWireOp, 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, type CommentsEventServerMsg, type CompactChildNode, type CompactListNode, type CompactMapNode, type CompactNode, type CompactObjectNode, type CompactRegisterNode, type CompactRootNode, type ContextualPromptContext, type ContextualPromptResponse, type CopilotId, CrdtType, type CreateListOp, type CreateManagedPoolOptions, type CreateMapOp, type CreateObjectOp, type CreateOp, type CreateRegisterOp, type Cursor, type CustomAuthenticationResult, type DAD, type DCM, type DE, type DFM, type DFMD, type DGI, type DP, type DRI, type DS, type DTM, type DU, DefaultMap, type Delegates, type DeleteCrdtOp, type DeleteObjectKeyOp, Deque, DerivedSignal, DevToolsTreeNode as DevTools, protocol as DevToolsMsg, type DistributiveOmit, type EnsureJson, type EnterOptions, type EventSource, type Feed, type FeedCreateMetadata, type FeedDeletedServerMsg, type FeedFetchMetadataFilter, type FeedMessage, type FeedMessagesAddedServerMsg, type FeedMessagesDeletedServerMsg, type FeedMessagesListServerMsg, type FeedMessagesUpdatedServerMsg, type FeedRequestError, FeedRequestErrorCode, type FeedRequestFailedServerMsg, type FeedUpdateMetadata, type FeedsAddedServerMsg, type FeedsEventServerMsg, type FeedsListServerMsg, type FeedsUpdatedServerMsg, type FetchStorageClientMsg, type FetchYDocClientMsg, type GetThreadsOptions, type GroupData, type GroupDataPlain, type GroupMemberData, type GroupMentionData, type GroupScopes, type HasOpId, type History, type HistoryVersion, HttpError, type ISODateString, type ISignal, type IUserInfo, type IWebSocket, type IWebSocketCloseEvent, type IWebSocketEvent, type IWebSocketInstance, type IWebSocketMessageEvent, type IYjsProvider, type IgnoredOp, type Immutable, type InboxNotificationCustomData, type InboxNotificationCustomDataPlain, type InboxNotificationData, type InboxNotificationDataPlain, type InboxNotificationDeleteInfo, type InboxNotificationTextMentionData, type InboxNotificationTextMentionDataPlain, type InboxNotificationThreadData, type InboxNotificationThreadDataPlain, type InferFromSchema, type Json, type JsonArray, type JsonObject, type JsonScalar, type KDAD, type LayerKey, type ListStorageNode, LiveList, type LiveListUpdate, LiveMap, type LiveMapUpdate, type LiveNode, LiveObject, type LiveObjectUpdate, type LiveStructure, LiveblocksError, type LiveblocksErrorContext, type LostConnectionEvent, type Lson, type LsonObject, MENTION_CHARACTER, type ManagedPool, type MapStorageNode, type MentionData, type MessageId, MutableSignal, type NoInfr, type NodeMap, type NodeStream, type NotificationChannel, type NotificationChannelSettings, type NotificationKind, type NotificationSettings, type NotificationSettingsPlain, type ObjectStorageNode, type Observable, type Op, OpCode, type OpaqueClient, type OpaqueRoom, type OptionalTupleUnless, type OthersEvent, type ParentToChildNodeMap, type PartialNotificationSettings, type PartialUnless, type Patchable, Permission, type PermissionCapabilities, type PermissionResources, type PlainLson, type PlainLsonFields, type PlainLsonList, type PlainLsonMap, type PlainLsonObject, type Poller, type PrivateClientApi, type PrivateRoomApi, Promise_withResolvers, type QueryMetadata, type QueryParams, type ReadonlyJson, type ReadonlyJsonObject, type RegisterStorageNode, type RejectedStorageOpServerMsg, type Relax, type RenderableToolResultResponse, type RequiredAccessLevel, type Resolve, type ResolveGroupsInfoArgs, type ResolveMentionSuggestionsArgs, type ResolveRoomsInfoArgs, type ResolveUsersArgs, type Room, type RoomAccesses, type RoomAccessesInput, type RoomAccessesUpdateInput, type RoomEventMessage, type RoomPermission, type RoomPermissionInput, type RoomPermissionObject, type RoomStateServerMsg, type RoomSubscriptionSettings, type RootStorageNode, type SearchCommentsResult, type SerializedChild, type SerializedCrdt, type SerializedList, type SerializedMap, type SerializedObject, type SerializedRegister, type SerializedRootObject, type ServerMsg, ServerMsgCode, type ServerWireOp, type SetParentKeyOp, Signal, type SignalType, SortedList, type Status, type StorageChunkServerMsg, type StorageNode, type StorageStatus, type StorageUpdate, type StringifyCommentBodyElements, type StringifyCommentBodyOptions, type SubscriptionData, type SubscriptionDataPlain, type SubscriptionDeleteInfo, type SubscriptionDeleteInfoPlain, type SubscriptionKey, type SyncConfig, type SyncMode, type SyncSource, type SyncStatus, TextEditorType, type ThreadData, type ThreadDataPlain, type ThreadDataWithDeleteInfo, type ThreadDeleteInfo, type ToJson, type ToolResultResponse, type URLSafeString, type UnsubscribeCallback, type UpdateObjectOp, type UpdatePresenceClientMsg, type UpdatePresenceServerMsg, type UpdateStorageClientMsg, type UpdateStorageServerMsg, type UpdateYDocClientMsg, type UploadAttachmentOptions, type UrlMetadata, type User, type UserJoinServerMsg, type UserLeftServerMsg, type UserMentionData, type UserRoomSubscriptionSettings, type UserSubscriptionData, type UserSubscriptionDataPlain, WebsocketCloseCodes, type WithNavigation, type WithOptional, type WithRequired, type YDocUpdateServerMsg, type YjsSyncStatus, asPos, assert, assertNever, autoRetry, b64decode, batch, checkBounds, chunk, cloneLson, compactNodesToNodeStream, compactObject, fancyConsole as console, convertToCommentData, convertToCommentUserReaction, convertToGroupData, convertToInboxNotificationData, convertToSubscriptionData, convertToThreadData, convertToUserSubscriptionData, createClient, createCommentAttachmentId, createCommentId, createInboxNotificationId, createManagedPool, createNotificationSettings, createThreadId, deepLiveify, defineAiTool, deprecate, deprecateIf, detectDupes, entries, errorIf, findLastIndex, freeze, generateUrl, getMentionsFromCommentBody, getSubscriptionKey, hasPermissionCapability, hasPermissionCapabilityAccess, html, htmlSafe, isCommentBodyLink, isCommentBodyMention, isCommentBodyText, isJsonArray, isJsonObject, isJsonScalar, isListStorageNode, isLiveNode, isMapStorageNode, isNotificationChannelEnabled, isNumberOperator, isObjectStorageNode, isPlainObject, isRegisterStorageNode, isRootStorageNode, isStartsWithOperator, isUrl, kInternal, keys, makeAbortController, makeEventSource, makePoller, makePosition, mapValues, memoizeOnSuccess, mergePermissionCapabilities, nanoid, nn, nodeStreamToCompactNodes, normalizeRoomAccessesInput, normalizeRoomAccessesUpdateInput, normalizeRoomPermissionInput, objectToQuery, patchNotificationSettings, permissionCapabilitiesFromScopes, permissionCapabilitiesToScopes, raise, resolveMentionsInCommentBody, sanitizeUrl, shallow, shallow2, stableStringify, stringifyCommentBody, throwUsageError, toPlainLson, tryParseJson, url, urljoin, wait, warnOnce, warnOnceIf, withTimeout };
|
package/dist/index.d.ts
CHANGED
|
@@ -132,7 +132,8 @@ type RoomAccessesUpdateInput = Record<string, RoomPermissionInput | null>;
|
|
|
132
132
|
declare function normalizeRoomPermissionInput(input: RoomPermissionInput): RoomPermission;
|
|
133
133
|
declare function normalizeRoomAccessesInput(input: RoomAccessesInput | undefined): RoomAccesses | undefined;
|
|
134
134
|
declare function normalizeRoomAccessesUpdateInput(input: RoomAccessesUpdateInput | undefined): Record<string, RoomPermission | null> | undefined;
|
|
135
|
-
declare function
|
|
135
|
+
declare function mergePermissionCapabilities(sources: readonly PermissionCapabilities[]): PermissionCapabilities;
|
|
136
|
+
declare function permissionCapabilitiesToScopes(capabilities: PermissionCapabilities): RoomPermission;
|
|
136
137
|
|
|
137
138
|
type CustomAuthenticationResult = Relax<{
|
|
138
139
|
token: string;
|
|
@@ -515,40 +516,40 @@ type UpdateObjectOp = {
|
|
|
515
516
|
type CreateObjectOp = {
|
|
516
517
|
readonly opId?: string;
|
|
517
518
|
readonly id: string;
|
|
518
|
-
readonly intent?: "set";
|
|
519
|
-
readonly deletedId?: string;
|
|
520
519
|
readonly type: OpCode.CREATE_OBJECT;
|
|
521
520
|
readonly parentId: string;
|
|
522
521
|
readonly parentKey: string;
|
|
523
522
|
readonly data: JsonObject;
|
|
523
|
+
readonly intent?: "set" | "push";
|
|
524
|
+
readonly deletedId?: string;
|
|
524
525
|
};
|
|
525
526
|
type CreateListOp = {
|
|
526
527
|
readonly opId?: string;
|
|
527
528
|
readonly id: string;
|
|
528
|
-
readonly intent?: "set";
|
|
529
|
-
readonly deletedId?: string;
|
|
530
529
|
readonly type: OpCode.CREATE_LIST;
|
|
531
530
|
readonly parentId: string;
|
|
532
531
|
readonly parentKey: string;
|
|
532
|
+
readonly intent?: "set" | "push";
|
|
533
|
+
readonly deletedId?: string;
|
|
533
534
|
};
|
|
534
535
|
type CreateMapOp = {
|
|
535
536
|
readonly opId?: string;
|
|
536
537
|
readonly id: string;
|
|
537
|
-
readonly intent?: "set";
|
|
538
|
-
readonly deletedId?: string;
|
|
539
538
|
readonly type: OpCode.CREATE_MAP;
|
|
540
539
|
readonly parentId: string;
|
|
541
540
|
readonly parentKey: string;
|
|
541
|
+
readonly intent?: "set" | "push";
|
|
542
|
+
readonly deletedId?: string;
|
|
542
543
|
};
|
|
543
544
|
type CreateRegisterOp = {
|
|
544
545
|
readonly opId?: string;
|
|
545
546
|
readonly id: string;
|
|
546
|
-
readonly intent?: "set";
|
|
547
|
-
readonly deletedId?: string;
|
|
548
547
|
readonly type: OpCode.CREATE_REGISTER;
|
|
549
548
|
readonly parentId: string;
|
|
550
549
|
readonly parentKey: string;
|
|
551
550
|
readonly data: Json;
|
|
551
|
+
readonly intent?: "set" | "push";
|
|
552
|
+
readonly deletedId?: string;
|
|
552
553
|
};
|
|
553
554
|
type DeleteCrdtOp = {
|
|
554
555
|
readonly opId?: string;
|
|
@@ -580,6 +581,7 @@ type HasOpId = {
|
|
|
580
581
|
* acknowledge the receipt.
|
|
581
582
|
*/
|
|
582
583
|
type ClientWireOp = Op & HasOpId;
|
|
584
|
+
type ClientWireCreateOp = CreateOp & HasOpId;
|
|
583
585
|
/**
|
|
584
586
|
* ServerWireOp: Ops sent from server → client. Three variants:
|
|
585
587
|
* 1. ClientWireOp — Full echo back of our own op, confirming it was applied
|
|
@@ -805,6 +807,14 @@ type SyncMode = boolean | "atomic" | SyncConfig;
|
|
|
805
807
|
type SyncConfig = {
|
|
806
808
|
[key: string]: SyncMode | undefined;
|
|
807
809
|
};
|
|
810
|
+
/**
|
|
811
|
+
* Deeply converts all nested lists to LiveLists, and all nested objects to
|
|
812
|
+
* LiveObjects.
|
|
813
|
+
*
|
|
814
|
+
* As such, the returned result will not contain any Json arrays or Json
|
|
815
|
+
* objects anymore.
|
|
816
|
+
*/
|
|
817
|
+
declare function deepLiveify(value: Json, config?: SyncMode): Lson;
|
|
808
818
|
|
|
809
819
|
/**
|
|
810
820
|
* Optional keys of O whose non-undefined type is plain Json (not a
|
|
@@ -925,6 +935,30 @@ type LiveListUpdate = LiveListUpdates<Lson>;
|
|
|
925
935
|
*/
|
|
926
936
|
type StorageUpdate = LiveMapUpdate | LiveObjectUpdate | LiveListUpdate;
|
|
927
937
|
|
|
938
|
+
/**
|
|
939
|
+
* Read-only query surface over {@link UnacknowledgedOps}, handed to CRDTs so
|
|
940
|
+
* they can look up their own still-pending Create ops without being able to
|
|
941
|
+
* mutate the set (only the room adds/acks).
|
|
942
|
+
*/
|
|
943
|
+
interface ReadonlyUnacknowledgedOps {
|
|
944
|
+
/** Still-unacknowledged Create ops whose `parentId` is the given one. */
|
|
945
|
+
getByParentId(parentId: string): Iterable<ClientWireCreateOp>;
|
|
946
|
+
/**
|
|
947
|
+
* Still-unacknowledged Create ops whose `parentId` and `parentKey` are both
|
|
948
|
+
* the given ones (i.e. targeting one exact position).
|
|
949
|
+
*/
|
|
950
|
+
getByParentIdAndKey(parentId: string, parentKey: string): Iterable<ClientWireCreateOp>;
|
|
951
|
+
/**
|
|
952
|
+
* Whether the given pending op may already have been processed by the
|
|
953
|
+
* server. True for ops that were in flight when a connection died: the
|
|
954
|
+
* server may have stored them with the ack getting lost in the disconnect,
|
|
955
|
+
* or may never have received them. Until the (re-sent) op's ack arrives,
|
|
956
|
+
* the client cannot know which, so optimistic predictions that assume the
|
|
957
|
+
* op has not been processed yet are unsound for these ops.
|
|
958
|
+
*/
|
|
959
|
+
isPossiblyStored(opId: string): boolean;
|
|
960
|
+
}
|
|
961
|
+
|
|
928
962
|
/**
|
|
929
963
|
* The managed pool is a namespace registry (i.e. a context) that "owns" all
|
|
930
964
|
* the individual live nodes, ensuring each one has a unique ID, and holding on
|
|
@@ -953,6 +987,11 @@ interface ManagedPool {
|
|
|
953
987
|
* @returns {void}
|
|
954
988
|
*/
|
|
955
989
|
assertStorageIsWritable: () => void;
|
|
990
|
+
/**
|
|
991
|
+
* Read-only view of the client's still-unacknowledged ops (sent or
|
|
992
|
+
* pending-send, not yet confirmed by the server).
|
|
993
|
+
*/
|
|
994
|
+
readonly unacknowledgedOps: ReadonlyUnacknowledgedOps;
|
|
956
995
|
}
|
|
957
996
|
type CreateManagedPoolOptions = {
|
|
958
997
|
/**
|
|
@@ -972,6 +1011,13 @@ type CreateManagedPoolOptions = {
|
|
|
972
1011
|
* have an effect upstream.
|
|
973
1012
|
*/
|
|
974
1013
|
isStorageWritable?: () => boolean;
|
|
1014
|
+
/**
|
|
1015
|
+
* Read-only view of the client's still-unacknowledged ops. Used by CRDTs
|
|
1016
|
+
* (e.g. LiveList) to know which of their optimistic mutations the server
|
|
1017
|
+
* hasn't confirmed yet. Defaults to an empty view (e.g. server-side pools
|
|
1018
|
+
* that dispatch-and-flush have no optimistic state to track).
|
|
1019
|
+
*/
|
|
1020
|
+
unacknowledgedOps?: ReadonlyUnacknowledgedOps;
|
|
975
1021
|
};
|
|
976
1022
|
/**
|
|
977
1023
|
* @private Private API, never use this API directly.
|
|
@@ -5506,6 +5552,13 @@ declare class SortedList<T> {
|
|
|
5506
5552
|
reposition(value: T): number;
|
|
5507
5553
|
at(index: number): T | undefined;
|
|
5508
5554
|
get length(): number;
|
|
5555
|
+
/**
|
|
5556
|
+
* Whether the given value is present, by identity. O(log n) plus the length
|
|
5557
|
+
* of any run of items that share its sort key (normally 1). Bisects on the
|
|
5558
|
+
* value's own key, so it only finds values sitting at their sorted position,
|
|
5559
|
+
* which is true for any item currently in the list.
|
|
5560
|
+
*/
|
|
5561
|
+
includes(value: T): boolean;
|
|
5509
5562
|
filter(predicate: (value: T) => boolean): IterableIterator<T>;
|
|
5510
5563
|
findAllRight(predicate: (value: T, index: number) => unknown): IterableIterator<T>;
|
|
5511
5564
|
[Symbol.iterator](): IterableIterator<T>;
|
|
@@ -5718,4 +5771,4 @@ type EnsureJson<T> = T extends Json ? T : T extends Array<infer I> ? (EnsureJson
|
|
|
5718
5771
|
[K in keyof T as EnsureJson<T[K]> extends never ? never : K]: EnsureJson<T[K]>;
|
|
5719
5772
|
};
|
|
5720
5773
|
|
|
5721
|
-
export { type AccessLevel, type ActivityData, type AiAssistantContentPart, type AiAssistantMessage, type AiChat, type AiChatMessage, type AiChatsQuery, type AiKnowledgeRetrievalPart, type AiKnowledgeSource, type AiOpaqueToolDefinition, type AiOpaqueToolInvocationProps, type AiReasoningPart, type AiRetrievalPart, type AiSourcesPart, type AiTextPart, type AiToolDefinition, type AiToolExecuteCallback, type AiToolExecuteContext, type AiToolInvocationPart, type AiToolInvocationProps, type AiToolTypePack, type AiUrlSource, type AiUserMessage, type AiWebRetrievalPart, type AsyncError, type AsyncLoading, type AsyncResult, type AsyncSuccess, type Awaitable, type BaseActivitiesData, type BaseAuthResult, type BaseGroupInfo, type BaseMetadata, type BaseRoomInfo, type BaseUserMeta, type Brand, type BroadcastEventClientMsg, type BroadcastOptions, type BroadcastedEventServerMsg, type ChildStorageNode, type Client, type ClientMsg, ClientMsgCode, type ClientOptions, type ClientWireOp, 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, type CommentsEventServerMsg, type CompactChildNode, type CompactListNode, type CompactMapNode, type CompactNode, type CompactObjectNode, type CompactRegisterNode, type CompactRootNode, type ContextualPromptContext, type ContextualPromptResponse, type CopilotId, CrdtType, type CreateListOp, type CreateManagedPoolOptions, type CreateMapOp, type CreateObjectOp, type CreateOp, type CreateRegisterOp, type Cursor, type CustomAuthenticationResult, type DAD, type DCM, type DE, type DFM, type DFMD, type DGI, type DP, type DRI, type DS, type DTM, type DU, DefaultMap, type Delegates, type DeleteCrdtOp, type DeleteObjectKeyOp, Deque, DerivedSignal, DevToolsTreeNode as DevTools, protocol as DevToolsMsg, type DistributiveOmit, type EnsureJson, type EnterOptions, type EventSource, type Feed, type FeedCreateMetadata, type FeedDeletedServerMsg, type FeedFetchMetadataFilter, type FeedMessage, type FeedMessagesAddedServerMsg, type FeedMessagesDeletedServerMsg, type FeedMessagesListServerMsg, type FeedMessagesUpdatedServerMsg, type FeedRequestError, FeedRequestErrorCode, type FeedRequestFailedServerMsg, type FeedUpdateMetadata, type FeedsAddedServerMsg, type FeedsEventServerMsg, type FeedsListServerMsg, type FeedsUpdatedServerMsg, type FetchStorageClientMsg, type FetchYDocClientMsg, type GetThreadsOptions, type GroupData, type GroupDataPlain, type GroupMemberData, type GroupMentionData, type GroupScopes, type HasOpId, type History, type HistoryVersion, HttpError, type ISODateString, type ISignal, type IUserInfo, type IWebSocket, type IWebSocketCloseEvent, type IWebSocketEvent, type IWebSocketInstance, type IWebSocketMessageEvent, type IYjsProvider, type IgnoredOp, type Immutable, type InboxNotificationCustomData, type InboxNotificationCustomDataPlain, type InboxNotificationData, type InboxNotificationDataPlain, type InboxNotificationDeleteInfo, type InboxNotificationTextMentionData, type InboxNotificationTextMentionDataPlain, type InboxNotificationThreadData, type InboxNotificationThreadDataPlain, type InferFromSchema, type Json, type JsonArray, type JsonObject, type JsonScalar, type KDAD, type LayerKey, type ListStorageNode, LiveList, type LiveListUpdate, LiveMap, type LiveMapUpdate, type LiveNode, LiveObject, type LiveObjectUpdate, type LiveStructure, LiveblocksError, type LiveblocksErrorContext, type LostConnectionEvent, type Lson, type LsonObject, MENTION_CHARACTER, type ManagedPool, type MapStorageNode, type MentionData, type MessageId, MutableSignal, type NoInfr, type NodeMap, type NodeStream, type NotificationChannel, type NotificationChannelSettings, type NotificationKind, type NotificationSettings, type NotificationSettingsPlain, type ObjectStorageNode, type Observable, type Op, OpCode, type OpaqueClient, type OpaqueRoom, type OptionalTupleUnless, type OthersEvent, type ParentToChildNodeMap, type PartialNotificationSettings, type PartialUnless, type Patchable, Permission, type PermissionCapabilities, type PermissionResources, type PlainLson, type PlainLsonFields, type PlainLsonList, type PlainLsonMap, type PlainLsonObject, type Poller, type PrivateClientApi, type PrivateRoomApi, Promise_withResolvers, type QueryMetadata, type QueryParams, type ReadonlyJson, type ReadonlyJsonObject, type RegisterStorageNode, type RejectedStorageOpServerMsg, type Relax, type RenderableToolResultResponse, type RequiredAccessLevel, type Resolve, type ResolveGroupsInfoArgs, type ResolveMentionSuggestionsArgs, type ResolveRoomsInfoArgs, type ResolveUsersArgs, type Room, type RoomAccesses, type RoomAccessesInput, type RoomAccessesUpdateInput, type RoomEventMessage, type RoomPermission, type RoomPermissionInput, type RoomPermissionObject, type RoomStateServerMsg, type RoomSubscriptionSettings, type RootStorageNode, type SearchCommentsResult, type SerializedChild, type SerializedCrdt, type SerializedList, type SerializedMap, type SerializedObject, type SerializedRegister, type SerializedRootObject, type ServerMsg, ServerMsgCode, type ServerWireOp, type SetParentKeyOp, Signal, type SignalType, SortedList, type Status, type StorageChunkServerMsg, type StorageNode, type StorageStatus, type StorageUpdate, type StringifyCommentBodyElements, type StringifyCommentBodyOptions, type SubscriptionData, type SubscriptionDataPlain, type SubscriptionDeleteInfo, type SubscriptionDeleteInfoPlain, type SubscriptionKey, type SyncConfig, type SyncMode, type SyncSource, type SyncStatus, TextEditorType, type ThreadData, type ThreadDataPlain, type ThreadDataWithDeleteInfo, type ThreadDeleteInfo, type ToJson, type ToolResultResponse, type URLSafeString, type UnsubscribeCallback, type UpdateObjectOp, type UpdatePresenceClientMsg, type UpdatePresenceServerMsg, type UpdateStorageClientMsg, type UpdateStorageServerMsg, type UpdateYDocClientMsg, type UploadAttachmentOptions, type UrlMetadata, type User, type UserJoinServerMsg, type UserLeftServerMsg, type UserMentionData, type UserRoomSubscriptionSettings, type UserSubscriptionData, type UserSubscriptionDataPlain, WebsocketCloseCodes, type WithNavigation, type WithOptional, type WithRequired, type YDocUpdateServerMsg, type YjsSyncStatus, asPos, assert, assertNever, autoRetry, b64decode, batch, checkBounds, chunk, cloneLson, compactNodesToNodeStream, compactObject, fancyConsole as console, convertToCommentData, convertToCommentUserReaction, convertToGroupData, convertToInboxNotificationData, convertToSubscriptionData, convertToThreadData, convertToUserSubscriptionData, createClient, createCommentAttachmentId, createCommentId, createInboxNotificationId, createManagedPool, createNotificationSettings, createThreadId, defineAiTool, deprecate, deprecateIf, detectDupes, entries, errorIf, findLastIndex, freeze, generateUrl, getMentionsFromCommentBody,
|
|
5774
|
+
export { type AccessLevel, type ActivityData, type AiAssistantContentPart, type AiAssistantMessage, type AiChat, type AiChatMessage, type AiChatsQuery, type AiKnowledgeRetrievalPart, type AiKnowledgeSource, type AiOpaqueToolDefinition, type AiOpaqueToolInvocationProps, type AiReasoningPart, type AiRetrievalPart, type AiSourcesPart, type AiTextPart, type AiToolDefinition, type AiToolExecuteCallback, type AiToolExecuteContext, type AiToolInvocationPart, type AiToolInvocationProps, type AiToolTypePack, type AiUrlSource, type AiUserMessage, type AiWebRetrievalPart, type AsyncError, type AsyncLoading, type AsyncResult, type AsyncSuccess, type Awaitable, type BaseActivitiesData, type BaseAuthResult, type BaseGroupInfo, type BaseMetadata, type BaseRoomInfo, type BaseUserMeta, type Brand, type BroadcastEventClientMsg, type BroadcastOptions, type BroadcastedEventServerMsg, type ChildStorageNode, type Client, type ClientMsg, ClientMsgCode, type ClientOptions, type ClientWireOp, 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, type CommentsEventServerMsg, type CompactChildNode, type CompactListNode, type CompactMapNode, type CompactNode, type CompactObjectNode, type CompactRegisterNode, type CompactRootNode, type ContextualPromptContext, type ContextualPromptResponse, type CopilotId, CrdtType, type CreateListOp, type CreateManagedPoolOptions, type CreateMapOp, type CreateObjectOp, type CreateOp, type CreateRegisterOp, type Cursor, type CustomAuthenticationResult, type DAD, type DCM, type DE, type DFM, type DFMD, type DGI, type DP, type DRI, type DS, type DTM, type DU, DefaultMap, type Delegates, type DeleteCrdtOp, type DeleteObjectKeyOp, Deque, DerivedSignal, DevToolsTreeNode as DevTools, protocol as DevToolsMsg, type DistributiveOmit, type EnsureJson, type EnterOptions, type EventSource, type Feed, type FeedCreateMetadata, type FeedDeletedServerMsg, type FeedFetchMetadataFilter, type FeedMessage, type FeedMessagesAddedServerMsg, type FeedMessagesDeletedServerMsg, type FeedMessagesListServerMsg, type FeedMessagesUpdatedServerMsg, type FeedRequestError, FeedRequestErrorCode, type FeedRequestFailedServerMsg, type FeedUpdateMetadata, type FeedsAddedServerMsg, type FeedsEventServerMsg, type FeedsListServerMsg, type FeedsUpdatedServerMsg, type FetchStorageClientMsg, type FetchYDocClientMsg, type GetThreadsOptions, type GroupData, type GroupDataPlain, type GroupMemberData, type GroupMentionData, type GroupScopes, type HasOpId, type History, type HistoryVersion, HttpError, type ISODateString, type ISignal, type IUserInfo, type IWebSocket, type IWebSocketCloseEvent, type IWebSocketEvent, type IWebSocketInstance, type IWebSocketMessageEvent, type IYjsProvider, type IgnoredOp, type Immutable, type InboxNotificationCustomData, type InboxNotificationCustomDataPlain, type InboxNotificationData, type InboxNotificationDataPlain, type InboxNotificationDeleteInfo, type InboxNotificationTextMentionData, type InboxNotificationTextMentionDataPlain, type InboxNotificationThreadData, type InboxNotificationThreadDataPlain, type InferFromSchema, type Json, type JsonArray, type JsonObject, type JsonScalar, type KDAD, type LayerKey, type ListStorageNode, LiveList, type LiveListUpdate, LiveMap, type LiveMapUpdate, type LiveNode, LiveObject, type LiveObjectUpdate, type LiveStructure, LiveblocksError, type LiveblocksErrorContext, type LostConnectionEvent, type Lson, type LsonObject, MENTION_CHARACTER, type ManagedPool, type MapStorageNode, type MentionData, type MessageId, MutableSignal, type NoInfr, type NodeMap, type NodeStream, type NotificationChannel, type NotificationChannelSettings, type NotificationKind, type NotificationSettings, type NotificationSettingsPlain, type ObjectStorageNode, type Observable, type Op, OpCode, type OpaqueClient, type OpaqueRoom, type OptionalTupleUnless, type OthersEvent, type ParentToChildNodeMap, type PartialNotificationSettings, type PartialUnless, type Patchable, Permission, type PermissionCapabilities, type PermissionResources, type PlainLson, type PlainLsonFields, type PlainLsonList, type PlainLsonMap, type PlainLsonObject, type Poller, type PrivateClientApi, type PrivateRoomApi, Promise_withResolvers, type QueryMetadata, type QueryParams, type ReadonlyJson, type ReadonlyJsonObject, type RegisterStorageNode, type RejectedStorageOpServerMsg, type Relax, type RenderableToolResultResponse, type RequiredAccessLevel, type Resolve, type ResolveGroupsInfoArgs, type ResolveMentionSuggestionsArgs, type ResolveRoomsInfoArgs, type ResolveUsersArgs, type Room, type RoomAccesses, type RoomAccessesInput, type RoomAccessesUpdateInput, type RoomEventMessage, type RoomPermission, type RoomPermissionInput, type RoomPermissionObject, type RoomStateServerMsg, type RoomSubscriptionSettings, type RootStorageNode, type SearchCommentsResult, type SerializedChild, type SerializedCrdt, type SerializedList, type SerializedMap, type SerializedObject, type SerializedRegister, type SerializedRootObject, type ServerMsg, ServerMsgCode, type ServerWireOp, type SetParentKeyOp, Signal, type SignalType, SortedList, type Status, type StorageChunkServerMsg, type StorageNode, type StorageStatus, type StorageUpdate, type StringifyCommentBodyElements, type StringifyCommentBodyOptions, type SubscriptionData, type SubscriptionDataPlain, type SubscriptionDeleteInfo, type SubscriptionDeleteInfoPlain, type SubscriptionKey, type SyncConfig, type SyncMode, type SyncSource, type SyncStatus, TextEditorType, type ThreadData, type ThreadDataPlain, type ThreadDataWithDeleteInfo, type ThreadDeleteInfo, type ToJson, type ToolResultResponse, type URLSafeString, type UnsubscribeCallback, type UpdateObjectOp, type UpdatePresenceClientMsg, type UpdatePresenceServerMsg, type UpdateStorageClientMsg, type UpdateStorageServerMsg, type UpdateYDocClientMsg, type UploadAttachmentOptions, type UrlMetadata, type User, type UserJoinServerMsg, type UserLeftServerMsg, type UserMentionData, type UserRoomSubscriptionSettings, type UserSubscriptionData, type UserSubscriptionDataPlain, WebsocketCloseCodes, type WithNavigation, type WithOptional, type WithRequired, type YDocUpdateServerMsg, type YjsSyncStatus, asPos, assert, assertNever, autoRetry, b64decode, batch, checkBounds, chunk, cloneLson, compactNodesToNodeStream, compactObject, fancyConsole as console, convertToCommentData, convertToCommentUserReaction, convertToGroupData, convertToInboxNotificationData, convertToSubscriptionData, convertToThreadData, convertToUserSubscriptionData, createClient, createCommentAttachmentId, createCommentId, createInboxNotificationId, createManagedPool, createNotificationSettings, createThreadId, deepLiveify, defineAiTool, deprecate, deprecateIf, detectDupes, entries, errorIf, findLastIndex, freeze, generateUrl, getMentionsFromCommentBody, getSubscriptionKey, hasPermissionCapability, hasPermissionCapabilityAccess, html, htmlSafe, isCommentBodyLink, isCommentBodyMention, isCommentBodyText, isJsonArray, isJsonObject, isJsonScalar, isListStorageNode, isLiveNode, isMapStorageNode, isNotificationChannelEnabled, isNumberOperator, isObjectStorageNode, isPlainObject, isRegisterStorageNode, isRootStorageNode, isStartsWithOperator, isUrl, kInternal, keys, makeAbortController, makeEventSource, makePoller, makePosition, mapValues, memoizeOnSuccess, mergePermissionCapabilities, nanoid, nn, nodeStreamToCompactNodes, normalizeRoomAccessesInput, normalizeRoomAccessesUpdateInput, normalizeRoomPermissionInput, objectToQuery, patchNotificationSettings, permissionCapabilitiesFromScopes, permissionCapabilitiesToScopes, raise, resolveMentionsInCommentBody, sanitizeUrl, shallow, shallow2, stableStringify, stringifyCommentBody, throwUsageError, toPlainLson, tryParseJson, url, urljoin, wait, warnOnce, warnOnceIf, withTimeout };
|