@liveblocks/core 1.7.0 → 1.7.1
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 +11 -6
- package/dist/index.d.ts +11 -6
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -570,7 +570,12 @@ declare type CustomAuthenticationResult = {
|
|
|
570
570
|
reason: string;
|
|
571
571
|
};
|
|
572
572
|
|
|
573
|
-
|
|
573
|
+
/**
|
|
574
|
+
* Represents some constraints for user info. Basically read this as: "any JSON
|
|
575
|
+
* object is fine, but _if_ it has a name field, it _must_ be a string."
|
|
576
|
+
* (Ditto for avatar.)
|
|
577
|
+
*/
|
|
578
|
+
declare type IUserInfo = {
|
|
574
579
|
[key: string]: Json | undefined;
|
|
575
580
|
name?: string;
|
|
576
581
|
avatar?: string;
|
|
@@ -587,7 +592,7 @@ declare type BaseUserMeta = {
|
|
|
587
592
|
/**
|
|
588
593
|
* Additional user information that has been set in the authentication endpoint.
|
|
589
594
|
*/
|
|
590
|
-
info?:
|
|
595
|
+
info?: IUserInfo;
|
|
591
596
|
};
|
|
592
597
|
|
|
593
598
|
declare enum Permission {
|
|
@@ -615,7 +620,7 @@ declare type LegacySecretToken = {
|
|
|
615
620
|
roomId: string;
|
|
616
621
|
scopes: string[];
|
|
617
622
|
id?: string;
|
|
618
|
-
info?:
|
|
623
|
+
info?: IUserInfo;
|
|
619
624
|
[other: string]: Json | undefined;
|
|
620
625
|
} & JwtMeta;
|
|
621
626
|
/**
|
|
@@ -626,7 +631,7 @@ declare type AccessToken = {
|
|
|
626
631
|
pid: string;
|
|
627
632
|
uid: string;
|
|
628
633
|
perms: LiveblocksPermissions;
|
|
629
|
-
ui?:
|
|
634
|
+
ui?: IUserInfo;
|
|
630
635
|
} & JwtMeta;
|
|
631
636
|
/**
|
|
632
637
|
* New authorization ID Token.
|
|
@@ -636,7 +641,7 @@ declare type IDToken = {
|
|
|
636
641
|
pid: string;
|
|
637
642
|
uid: string;
|
|
638
643
|
gids?: string[];
|
|
639
|
-
ui?:
|
|
644
|
+
ui?: IUserInfo;
|
|
640
645
|
} & JwtMeta;
|
|
641
646
|
declare type AuthToken = AccessToken | IDToken | LegacySecretToken;
|
|
642
647
|
declare type ParsedAuthToken = {
|
|
@@ -2442,4 +2447,4 @@ declare type EnsureJson<T> = [
|
|
|
2442
2447
|
[K in keyof T]: EnsureJson<T[K]>;
|
|
2443
2448
|
};
|
|
2444
2449
|
|
|
2445
|
-
export { AckOp, AsyncCache, AsyncState, AsyncStateError, AsyncStateInitial, AsyncStateLoading, AsyncStateResolved, AsyncStateSuccess, BaseAuthResult, BaseMetadata, BaseUserMeta, Brand, BroadcastEventClientMsg, BroadcastOptions, BroadcastedEventServerMsg, Client, ClientMsg, ClientMsgCode, CommentBody, CommentBodyBlockElement, CommentBodyElement, CommentBodyInlineElement, CommentBodyLink, CommentBodyMention, CommentBodyParagraph, CommentBodyText, CommentData, CommentReaction, CommentsApi, CommentsApiError, CrdtType, CreateListOp, CreateMapOp, CreateObjectOp, CreateOp, CreateRegisterOp, CustomAuthenticationResult, Delegates, DeleteCrdtOp, DeleteObjectKeyOp, DevToolsTreeNode as DevTools, protocol as DevToolsMsg, EnsureJson, EnterOptions, EventSource, FetchStorageClientMsg, FetchYDocClientMsg, History, IWebSocket, IWebSocketCloseEvent, IWebSocketEvent, IWebSocketInstance, IWebSocketMessageEvent, IdTuple, Immutable, InitialDocumentStateServerMsg, Json, JsonArray, JsonObject, JsonScalar, LegacyConnectionStatus, LiveList, LiveListUpdate, LiveMap, LiveMapUpdate, LiveNode, LiveObject, LiveObjectUpdate, LiveStructure, LostConnectionEvent, Lson, LsonObject, NodeMap, Op, OpCode, Others, OthersEvent, ParentToChildNodeMap, PlainLson, PlainLsonFields, PlainLsonList, PlainLsonMap, PlainLsonObject, RejectedStorageOpServerMsg, Resolve, Room, RoomEventMessage, RoomInitializers, RoomStateServerMsg, SerializedChild, SerializedCrdt, SerializedList, SerializedMap, SerializedObject, SerializedRegister, SerializedRootObject, ServerMsg, ServerMsgCode, SetParentKeyOp, Status, StorageStatus, StorageUpdate, ThreadData, ToImmutable, ToJson, UnsubscribeCallback, UpdateObjectOp, UpdatePresenceClientMsg, UpdatePresenceServerMsg, UpdateStorageClientMsg, UpdateStorageServerMsg, UpdateYDocClientMsg, User, UserJoinServerMsg, UserLeftServerMsg, WebsocketCloseCodes, YDocUpdateServerMsg, asPos, assert, assertNever, b64decode, cloneLson, fancyConsole as console, createAsyncCache, createClient, createCommentsApi, deprecate, deprecateIf, detectDupes, errorIf, freeze, isChildCrdt, isJsonArray, isJsonObject, isJsonScalar, isLiveNode, isPlainObject, isRootCrdt, legacy_patchImmutableObject, lsonToJson, makeEventSource, makePoller, makePosition, nn, patchLiveObjectKey, raise, shallow, stringify, throwUsageError, toPlainLson, tryParseJson, withTimeout };
|
|
2450
|
+
export { AckOp, AsyncCache, AsyncState, AsyncStateError, AsyncStateInitial, AsyncStateLoading, AsyncStateResolved, AsyncStateSuccess, BaseAuthResult, BaseMetadata, BaseUserMeta, Brand, BroadcastEventClientMsg, BroadcastOptions, BroadcastedEventServerMsg, Client, ClientMsg, ClientMsgCode, CommentBody, CommentBodyBlockElement, CommentBodyElement, CommentBodyInlineElement, CommentBodyLink, CommentBodyMention, CommentBodyParagraph, CommentBodyText, CommentData, CommentReaction, CommentsApi, CommentsApiError, CrdtType, CreateListOp, CreateMapOp, CreateObjectOp, CreateOp, CreateRegisterOp, CustomAuthenticationResult, Delegates, DeleteCrdtOp, DeleteObjectKeyOp, DevToolsTreeNode as DevTools, protocol as DevToolsMsg, EnsureJson, EnterOptions, EventSource, FetchStorageClientMsg, FetchYDocClientMsg, History, IUserInfo, IWebSocket, IWebSocketCloseEvent, IWebSocketEvent, IWebSocketInstance, IWebSocketMessageEvent, IdTuple, Immutable, InitialDocumentStateServerMsg, Json, JsonArray, JsonObject, JsonScalar, LegacyConnectionStatus, LiveList, LiveListUpdate, LiveMap, LiveMapUpdate, LiveNode, LiveObject, LiveObjectUpdate, LiveStructure, LostConnectionEvent, Lson, LsonObject, NodeMap, Op, OpCode, Others, OthersEvent, ParentToChildNodeMap, PlainLson, PlainLsonFields, PlainLsonList, PlainLsonMap, PlainLsonObject, RejectedStorageOpServerMsg, Resolve, Room, RoomEventMessage, RoomInitializers, RoomStateServerMsg, SerializedChild, SerializedCrdt, SerializedList, SerializedMap, SerializedObject, SerializedRegister, SerializedRootObject, ServerMsg, ServerMsgCode, SetParentKeyOp, Status, StorageStatus, StorageUpdate, ThreadData, ToImmutable, ToJson, UnsubscribeCallback, UpdateObjectOp, UpdatePresenceClientMsg, UpdatePresenceServerMsg, UpdateStorageClientMsg, UpdateStorageServerMsg, UpdateYDocClientMsg, User, UserJoinServerMsg, UserLeftServerMsg, WebsocketCloseCodes, YDocUpdateServerMsg, asPos, assert, assertNever, b64decode, cloneLson, fancyConsole as console, createAsyncCache, createClient, createCommentsApi, deprecate, deprecateIf, detectDupes, errorIf, freeze, isChildCrdt, isJsonArray, isJsonObject, isJsonScalar, isLiveNode, isPlainObject, isRootCrdt, legacy_patchImmutableObject, lsonToJson, makeEventSource, makePoller, makePosition, nn, patchLiveObjectKey, raise, shallow, stringify, throwUsageError, toPlainLson, tryParseJson, withTimeout };
|
package/dist/index.d.ts
CHANGED
|
@@ -570,7 +570,12 @@ declare type CustomAuthenticationResult = {
|
|
|
570
570
|
reason: string;
|
|
571
571
|
};
|
|
572
572
|
|
|
573
|
-
|
|
573
|
+
/**
|
|
574
|
+
* Represents some constraints for user info. Basically read this as: "any JSON
|
|
575
|
+
* object is fine, but _if_ it has a name field, it _must_ be a string."
|
|
576
|
+
* (Ditto for avatar.)
|
|
577
|
+
*/
|
|
578
|
+
declare type IUserInfo = {
|
|
574
579
|
[key: string]: Json | undefined;
|
|
575
580
|
name?: string;
|
|
576
581
|
avatar?: string;
|
|
@@ -587,7 +592,7 @@ declare type BaseUserMeta = {
|
|
|
587
592
|
/**
|
|
588
593
|
* Additional user information that has been set in the authentication endpoint.
|
|
589
594
|
*/
|
|
590
|
-
info?:
|
|
595
|
+
info?: IUserInfo;
|
|
591
596
|
};
|
|
592
597
|
|
|
593
598
|
declare enum Permission {
|
|
@@ -615,7 +620,7 @@ declare type LegacySecretToken = {
|
|
|
615
620
|
roomId: string;
|
|
616
621
|
scopes: string[];
|
|
617
622
|
id?: string;
|
|
618
|
-
info?:
|
|
623
|
+
info?: IUserInfo;
|
|
619
624
|
[other: string]: Json | undefined;
|
|
620
625
|
} & JwtMeta;
|
|
621
626
|
/**
|
|
@@ -626,7 +631,7 @@ declare type AccessToken = {
|
|
|
626
631
|
pid: string;
|
|
627
632
|
uid: string;
|
|
628
633
|
perms: LiveblocksPermissions;
|
|
629
|
-
ui?:
|
|
634
|
+
ui?: IUserInfo;
|
|
630
635
|
} & JwtMeta;
|
|
631
636
|
/**
|
|
632
637
|
* New authorization ID Token.
|
|
@@ -636,7 +641,7 @@ declare type IDToken = {
|
|
|
636
641
|
pid: string;
|
|
637
642
|
uid: string;
|
|
638
643
|
gids?: string[];
|
|
639
|
-
ui?:
|
|
644
|
+
ui?: IUserInfo;
|
|
640
645
|
} & JwtMeta;
|
|
641
646
|
declare type AuthToken = AccessToken | IDToken | LegacySecretToken;
|
|
642
647
|
declare type ParsedAuthToken = {
|
|
@@ -2442,4 +2447,4 @@ declare type EnsureJson<T> = [
|
|
|
2442
2447
|
[K in keyof T]: EnsureJson<T[K]>;
|
|
2443
2448
|
};
|
|
2444
2449
|
|
|
2445
|
-
export { AckOp, AsyncCache, AsyncState, AsyncStateError, AsyncStateInitial, AsyncStateLoading, AsyncStateResolved, AsyncStateSuccess, BaseAuthResult, BaseMetadata, BaseUserMeta, Brand, BroadcastEventClientMsg, BroadcastOptions, BroadcastedEventServerMsg, Client, ClientMsg, ClientMsgCode, CommentBody, CommentBodyBlockElement, CommentBodyElement, CommentBodyInlineElement, CommentBodyLink, CommentBodyMention, CommentBodyParagraph, CommentBodyText, CommentData, CommentReaction, CommentsApi, CommentsApiError, CrdtType, CreateListOp, CreateMapOp, CreateObjectOp, CreateOp, CreateRegisterOp, CustomAuthenticationResult, Delegates, DeleteCrdtOp, DeleteObjectKeyOp, DevToolsTreeNode as DevTools, protocol as DevToolsMsg, EnsureJson, EnterOptions, EventSource, FetchStorageClientMsg, FetchYDocClientMsg, History, IWebSocket, IWebSocketCloseEvent, IWebSocketEvent, IWebSocketInstance, IWebSocketMessageEvent, IdTuple, Immutable, InitialDocumentStateServerMsg, Json, JsonArray, JsonObject, JsonScalar, LegacyConnectionStatus, LiveList, LiveListUpdate, LiveMap, LiveMapUpdate, LiveNode, LiveObject, LiveObjectUpdate, LiveStructure, LostConnectionEvent, Lson, LsonObject, NodeMap, Op, OpCode, Others, OthersEvent, ParentToChildNodeMap, PlainLson, PlainLsonFields, PlainLsonList, PlainLsonMap, PlainLsonObject, RejectedStorageOpServerMsg, Resolve, Room, RoomEventMessage, RoomInitializers, RoomStateServerMsg, SerializedChild, SerializedCrdt, SerializedList, SerializedMap, SerializedObject, SerializedRegister, SerializedRootObject, ServerMsg, ServerMsgCode, SetParentKeyOp, Status, StorageStatus, StorageUpdate, ThreadData, ToImmutable, ToJson, UnsubscribeCallback, UpdateObjectOp, UpdatePresenceClientMsg, UpdatePresenceServerMsg, UpdateStorageClientMsg, UpdateStorageServerMsg, UpdateYDocClientMsg, User, UserJoinServerMsg, UserLeftServerMsg, WebsocketCloseCodes, YDocUpdateServerMsg, asPos, assert, assertNever, b64decode, cloneLson, fancyConsole as console, createAsyncCache, createClient, createCommentsApi, deprecate, deprecateIf, detectDupes, errorIf, freeze, isChildCrdt, isJsonArray, isJsonObject, isJsonScalar, isLiveNode, isPlainObject, isRootCrdt, legacy_patchImmutableObject, lsonToJson, makeEventSource, makePoller, makePosition, nn, patchLiveObjectKey, raise, shallow, stringify, throwUsageError, toPlainLson, tryParseJson, withTimeout };
|
|
2450
|
+
export { AckOp, AsyncCache, AsyncState, AsyncStateError, AsyncStateInitial, AsyncStateLoading, AsyncStateResolved, AsyncStateSuccess, BaseAuthResult, BaseMetadata, BaseUserMeta, Brand, BroadcastEventClientMsg, BroadcastOptions, BroadcastedEventServerMsg, Client, ClientMsg, ClientMsgCode, CommentBody, CommentBodyBlockElement, CommentBodyElement, CommentBodyInlineElement, CommentBodyLink, CommentBodyMention, CommentBodyParagraph, CommentBodyText, CommentData, CommentReaction, CommentsApi, CommentsApiError, CrdtType, CreateListOp, CreateMapOp, CreateObjectOp, CreateOp, CreateRegisterOp, CustomAuthenticationResult, Delegates, DeleteCrdtOp, DeleteObjectKeyOp, DevToolsTreeNode as DevTools, protocol as DevToolsMsg, EnsureJson, EnterOptions, EventSource, FetchStorageClientMsg, FetchYDocClientMsg, History, IUserInfo, IWebSocket, IWebSocketCloseEvent, IWebSocketEvent, IWebSocketInstance, IWebSocketMessageEvent, IdTuple, Immutable, InitialDocumentStateServerMsg, Json, JsonArray, JsonObject, JsonScalar, LegacyConnectionStatus, LiveList, LiveListUpdate, LiveMap, LiveMapUpdate, LiveNode, LiveObject, LiveObjectUpdate, LiveStructure, LostConnectionEvent, Lson, LsonObject, NodeMap, Op, OpCode, Others, OthersEvent, ParentToChildNodeMap, PlainLson, PlainLsonFields, PlainLsonList, PlainLsonMap, PlainLsonObject, RejectedStorageOpServerMsg, Resolve, Room, RoomEventMessage, RoomInitializers, RoomStateServerMsg, SerializedChild, SerializedCrdt, SerializedList, SerializedMap, SerializedObject, SerializedRegister, SerializedRootObject, ServerMsg, ServerMsgCode, SetParentKeyOp, Status, StorageStatus, StorageUpdate, ThreadData, ToImmutable, ToJson, UnsubscribeCallback, UpdateObjectOp, UpdatePresenceClientMsg, UpdatePresenceServerMsg, UpdateStorageClientMsg, UpdateStorageServerMsg, UpdateYDocClientMsg, User, UserJoinServerMsg, UserLeftServerMsg, WebsocketCloseCodes, YDocUpdateServerMsg, asPos, assert, assertNever, b64decode, cloneLson, fancyConsole as console, createAsyncCache, createClient, createCommentsApi, deprecate, deprecateIf, detectDupes, errorIf, freeze, isChildCrdt, isJsonArray, isJsonObject, isJsonScalar, isLiveNode, isPlainObject, isRootCrdt, legacy_patchImmutableObject, lsonToJson, makeEventSource, makePoller, makePosition, nn, patchLiveObjectKey, raise, shallow, stringify, throwUsageError, toPlainLson, tryParseJson, withTimeout };
|