@liveblocks/core 3.16.0-flow3 → 3.17.0-rc1
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 +993 -567
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +294 -56
- package/dist/index.d.ts +294 -56
- package/dist/index.js +962 -536
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -127,7 +127,8 @@ declare enum Permission {
|
|
|
127
127
|
Write = "room:write",
|
|
128
128
|
PresenceWrite = "room:presence:write",
|
|
129
129
|
CommentsWrite = "comments:write",
|
|
130
|
-
CommentsRead = "comments:read"
|
|
130
|
+
CommentsRead = "comments:read",
|
|
131
|
+
FeedsWrite = "feeds:write"
|
|
131
132
|
}
|
|
132
133
|
|
|
133
134
|
type RenameDataField<T, TFieldName extends string> = T extends any ? {
|
|
@@ -595,47 +596,6 @@ type PlainLsonList = {
|
|
|
595
596
|
};
|
|
596
597
|
type PlainLson = PlainLsonObject | PlainLsonMap | PlainLsonList | Json;
|
|
597
598
|
|
|
598
|
-
declare function lsonToJson(value: Lson): Json;
|
|
599
|
-
/**
|
|
600
|
-
* Per-key sync configuration for node/edge `data` properties.
|
|
601
|
-
*
|
|
602
|
-
* true
|
|
603
|
-
* Sync this property to Liveblocks Storage. Arrays and objects in the value
|
|
604
|
-
* will be stored as LiveLists and LiveObjects, enabling fine-grained
|
|
605
|
-
* conflict-free merging. This is the default for all keys.
|
|
606
|
-
*
|
|
607
|
-
* false
|
|
608
|
-
* Don't sync this property. It stays local to the current client. This
|
|
609
|
-
* property will be `undefined` on other clients.
|
|
610
|
-
*
|
|
611
|
-
* "atomic"
|
|
612
|
-
* Sync this property, but treat it as an indivisible value. The entire value
|
|
613
|
-
* is replaced as a whole (last-writer-wins) instead of being recursively
|
|
614
|
-
* converted to LiveObjects/LiveLists. Use this when clients always replace
|
|
615
|
-
* the value entirely and never need concurrent sub-key merging.
|
|
616
|
-
*
|
|
617
|
-
* { ... }
|
|
618
|
-
* A nested config object for recursively configuring sub-keys of an object.
|
|
619
|
-
*
|
|
620
|
-
* @example
|
|
621
|
-
* ```ts
|
|
622
|
-
* const sync: SyncConfig = {
|
|
623
|
-
* label: true, // sync (default)
|
|
624
|
-
* createdAt: false, // local-only
|
|
625
|
-
* shape: "atomic", // replaced as a whole, no deep merge
|
|
626
|
-
* nested: { // recursive config
|
|
627
|
-
* deep: false,
|
|
628
|
-
* },
|
|
629
|
-
* };
|
|
630
|
-
* ```
|
|
631
|
-
*/
|
|
632
|
-
type SyncMode = boolean | "atomic" | SyncConfig;
|
|
633
|
-
type SyncConfig = {
|
|
634
|
-
[key: string]: SyncMode | undefined;
|
|
635
|
-
};
|
|
636
|
-
declare function legacy_patchLiveObjectKey<O extends LsonObject, K extends keyof O, V extends Json>(liveObject: LiveObject<O>, key: K, prev?: V, next?: V): void;
|
|
637
|
-
declare function legacy_patchImmutableObject<TState extends JsonObject>(state: TState, updates: StorageUpdate[]): TState;
|
|
638
|
-
|
|
639
599
|
type CrdtType = (typeof CrdtType)[keyof typeof CrdtType];
|
|
640
600
|
declare const CrdtType: Readonly<{
|
|
641
601
|
OBJECT: 0;
|
|
@@ -733,6 +693,44 @@ type KnownKeys<T> = keyof {
|
|
|
733
693
|
[K in keyof T as {} extends Record<K, 1> ? never : K]: true;
|
|
734
694
|
} & string;
|
|
735
695
|
|
|
696
|
+
/**
|
|
697
|
+
* Per-key sync configuration for node/edge `data` properties.
|
|
698
|
+
*
|
|
699
|
+
* true
|
|
700
|
+
* Sync this property to Liveblocks Storage. Arrays and objects in the value
|
|
701
|
+
* will be stored as LiveLists and LiveObjects, enabling fine-grained
|
|
702
|
+
* conflict-free merging. This is the default for all keys.
|
|
703
|
+
*
|
|
704
|
+
* false
|
|
705
|
+
* Don't sync this property. It stays local to the current client. This
|
|
706
|
+
* property will be `undefined` on other clients.
|
|
707
|
+
*
|
|
708
|
+
* "atomic"
|
|
709
|
+
* Sync this property, but treat it as an indivisible value. The entire value
|
|
710
|
+
* is replaced as a whole (last-writer-wins) instead of being recursively
|
|
711
|
+
* converted to LiveObjects/LiveLists. Use this when clients always replace
|
|
712
|
+
* the value entirely and never need concurrent sub-key merging.
|
|
713
|
+
*
|
|
714
|
+
* { ... }
|
|
715
|
+
* A nested config object for recursively configuring sub-keys of an object.
|
|
716
|
+
*
|
|
717
|
+
* @example
|
|
718
|
+
* ```ts
|
|
719
|
+
* const sync: SyncConfig = {
|
|
720
|
+
* label: true, // sync (default)
|
|
721
|
+
* createdAt: false, // local-only
|
|
722
|
+
* shape: "atomic", // replaced as a whole, no deep merge
|
|
723
|
+
* nested: { // recursive config
|
|
724
|
+
* deep: false,
|
|
725
|
+
* },
|
|
726
|
+
* };
|
|
727
|
+
* ```
|
|
728
|
+
*/
|
|
729
|
+
type SyncMode = boolean | "atomic" | SyncConfig;
|
|
730
|
+
type SyncConfig = {
|
|
731
|
+
[key: string]: SyncMode | undefined;
|
|
732
|
+
};
|
|
733
|
+
|
|
736
734
|
/**
|
|
737
735
|
* Optional keys of O whose non-undefined type is plain Json (not a
|
|
738
736
|
* LiveStructure). These are the only keys eligible for setLocal().
|
|
@@ -1296,7 +1294,7 @@ declare global {
|
|
|
1296
1294
|
[key: string]: unknown;
|
|
1297
1295
|
}
|
|
1298
1296
|
}
|
|
1299
|
-
type ExtendableTypes = "Presence" | "Storage" | "UserMeta" | "RoomEvent" | "ThreadMetadata" | "CommentMetadata" | "RoomInfo" | "GroupInfo" | "ActivitiesData";
|
|
1297
|
+
type ExtendableTypes = "Presence" | "Storage" | "UserMeta" | "RoomEvent" | "ThreadMetadata" | "CommentMetadata" | "FeedMetadata" | "FeedMessageData" | "RoomInfo" | "GroupInfo" | "ActivitiesData";
|
|
1300
1298
|
type MakeErrorString<K extends ExtendableTypes, Reason extends string = "does not match its requirements"> = `The type you provided for '${K}' ${Reason}. To learn how to fix this, see https://liveblocks.io/docs/errors/${K}`;
|
|
1301
1299
|
type GetOverride<K extends ExtendableTypes, B, Reason extends string = "does not match its requirements"> = GetOverrideOrErrorValue<K, B, MakeErrorString<K, Reason>>;
|
|
1302
1300
|
type GetOverrideOrErrorValue<K extends ExtendableTypes, B, ErrorType> = unknown extends Liveblocks[K] ? B : Liveblocks[K] extends B ? Liveblocks[K] : ErrorType;
|
|
@@ -1306,6 +1304,8 @@ type DU = GetOverrideOrErrorValue<"UserMeta", BaseUserMeta, Record<"id" | "info"
|
|
|
1306
1304
|
type DE = GetOverride<"RoomEvent", Json, "is not a valid JSON value">;
|
|
1307
1305
|
type DTM = GetOverride<"ThreadMetadata", BaseMetadata>;
|
|
1308
1306
|
type DCM = GetOverride<"CommentMetadata", BaseMetadata>;
|
|
1307
|
+
type DFM = GetOverride<"FeedMetadata", Json, "is not a valid JSON value">;
|
|
1308
|
+
type DFMD = GetOverride<"FeedMessageData", Json, "is not a valid JSON value">;
|
|
1309
1309
|
type DRI = GetOverride<"RoomInfo", BaseRoomInfo>;
|
|
1310
1310
|
type DGI = GetOverride<"GroupInfo", BaseGroupInfo>;
|
|
1311
1311
|
type DAD = GetOverrideOrErrorValue<"ActivitiesData", BaseActivitiesData, {
|
|
@@ -2071,6 +2071,13 @@ type RoomConnectionErrorContext = {
|
|
|
2071
2071
|
type LargeMessageErrorContext = {
|
|
2072
2072
|
type: "LARGE_MESSAGE_ERROR";
|
|
2073
2073
|
};
|
|
2074
|
+
type FeedRequestErrorContext = {
|
|
2075
|
+
type: "FEED_REQUEST_ERROR";
|
|
2076
|
+
roomId: string;
|
|
2077
|
+
requestId: string;
|
|
2078
|
+
code: string;
|
|
2079
|
+
reason?: string;
|
|
2080
|
+
};
|
|
2074
2081
|
type CommentsOrNotificationsErrorContext = {
|
|
2075
2082
|
type: "CREATE_THREAD_ERROR";
|
|
2076
2083
|
roomId: string;
|
|
@@ -2131,7 +2138,7 @@ type CommentsOrNotificationsErrorContext = {
|
|
|
2131
2138
|
} | {
|
|
2132
2139
|
type: "UPDATE_NOTIFICATION_SETTINGS_ERROR";
|
|
2133
2140
|
};
|
|
2134
|
-
type LiveblocksErrorContext = Relax<RoomConnectionErrorContext | CommentsOrNotificationsErrorContext | AiConnectionErrorContext | LargeMessageErrorContext>;
|
|
2141
|
+
type LiveblocksErrorContext = Relax<RoomConnectionErrorContext | CommentsOrNotificationsErrorContext | AiConnectionErrorContext | LargeMessageErrorContext | FeedRequestErrorContext>;
|
|
2135
2142
|
declare class LiveblocksError extends Error {
|
|
2136
2143
|
readonly context: LiveblocksErrorContext;
|
|
2137
2144
|
constructor(message: string, context: LiveblocksErrorContext, cause?: Error);
|
|
@@ -2214,7 +2221,7 @@ type InternalSyncStatus = SyncStatus | "has-local-changes";
|
|
|
2214
2221
|
* of Liveblocks, NEVER USE ANY OF THESE DIRECTLY, because bad things
|
|
2215
2222
|
* will probably happen if you do.
|
|
2216
2223
|
*/
|
|
2217
|
-
type PrivateClientApi<U extends BaseUserMeta, TM extends BaseMetadata, CM extends BaseMetadata> = {
|
|
2224
|
+
type PrivateClientApi<U extends BaseUserMeta, TM extends BaseMetadata, CM extends BaseMetadata, FM extends Json = DFM, FMD extends Json = DFMD> = {
|
|
2218
2225
|
readonly currentUserId: Signal<string | undefined>;
|
|
2219
2226
|
readonly mentionSuggestionsCache: Map<string, MentionData[]>;
|
|
2220
2227
|
readonly resolveMentionSuggestions: ClientOptions<U>["resolveMentionSuggestions"];
|
|
@@ -2223,7 +2230,7 @@ type PrivateClientApi<U extends BaseUserMeta, TM extends BaseMetadata, CM extend
|
|
|
2223
2230
|
readonly groupsInfoStore: BatchStore<DGI | undefined, string>;
|
|
2224
2231
|
readonly getRoomIds: () => string[];
|
|
2225
2232
|
readonly httpClient: LiveblocksHttpApi<TM, CM>;
|
|
2226
|
-
as<TM2 extends BaseMetadata, CM2 extends BaseMetadata>(): Client<U, TM2, CM2>;
|
|
2233
|
+
as<TM2 extends BaseMetadata, CM2 extends BaseMetadata, FM2 extends Json = FM, FMD2 extends Json = FMD>(): Client<U, TM2, CM2, FM2, FMD2>;
|
|
2227
2234
|
createSyncSource(): SyncSource;
|
|
2228
2235
|
emitError(context: LiveblocksErrorContext, cause?: Error): void;
|
|
2229
2236
|
ai: Ai;
|
|
@@ -2376,23 +2383,23 @@ type NotificationsApi<TM extends BaseMetadata, CM extends BaseMetadata> = {
|
|
|
2376
2383
|
* narrower.
|
|
2377
2384
|
*/
|
|
2378
2385
|
type OpaqueClient = Client<BaseUserMeta>;
|
|
2379
|
-
type Client<U extends BaseUserMeta = DU, TM extends BaseMetadata = DTM, CM extends BaseMetadata = DCM> = {
|
|
2386
|
+
type Client<U extends BaseUserMeta = DU, TM extends BaseMetadata = DTM, CM extends BaseMetadata = DCM, FM extends Json = DFM, FMD extends Json = DFMD> = {
|
|
2380
2387
|
/**
|
|
2381
2388
|
* Gets a room. Returns null if {@link Client.enter} has not been called previously.
|
|
2382
2389
|
*
|
|
2383
2390
|
* @param roomId The id of the room
|
|
2384
2391
|
*/
|
|
2385
|
-
getRoom<P extends JsonObject = DP, S extends LsonObject = DS, E extends Json = DE, TM2 extends BaseMetadata = TM, CM2 extends BaseMetadata = CM>(roomId: string): Room<P, S, U, E, TM2, CM2> | null;
|
|
2392
|
+
getRoom<P extends JsonObject = DP, S extends LsonObject = DS, E extends Json = DE, TM2 extends BaseMetadata = TM, CM2 extends BaseMetadata = CM, FM2 extends Json = FM, FMD2 extends Json = FMD>(roomId: string): Room<P, S, U, E, TM2, CM2, FM2, FMD2> | null;
|
|
2386
2393
|
/**
|
|
2387
2394
|
* Enter a room.
|
|
2388
2395
|
* @param roomId The id of the room
|
|
2389
2396
|
* @param options Optional. You can provide initializers for the Presence or Storage when entering the Room.
|
|
2390
2397
|
* @returns The room and a leave function. Call the returned leave() function when you no longer need the room.
|
|
2391
2398
|
*/
|
|
2392
|
-
enterRoom<P extends JsonObject = DP, S extends LsonObject = DS, E extends Json = DE, TM2 extends BaseMetadata = TM, CM2 extends BaseMetadata = CM>(roomId: string, ...args: OptionalTupleUnless<P & S, [
|
|
2399
|
+
enterRoom<P extends JsonObject = DP, S extends LsonObject = DS, E extends Json = DE, TM2 extends BaseMetadata = TM, CM2 extends BaseMetadata = CM, FM2 extends Json = FM, FMD2 extends Json = FMD>(roomId: string, ...args: OptionalTupleUnless<P & S, [
|
|
2393
2400
|
options: EnterOptions<NoInfr<P>, NoInfr<S>>
|
|
2394
2401
|
]>): {
|
|
2395
|
-
room: Room<P, S, U, E, TM2, CM2>;
|
|
2402
|
+
room: Room<P, S, U, E, TM2, CM2, FM2, FMD2>;
|
|
2396
2403
|
leave: () => void;
|
|
2397
2404
|
};
|
|
2398
2405
|
/**
|
|
@@ -2458,7 +2465,7 @@ type Client<U extends BaseUserMeta = DU, TM extends BaseMetadata = DTM, CM exten
|
|
|
2458
2465
|
* of Liveblocks, NEVER USE ANY OF THESE DIRECTLY, because bad things
|
|
2459
2466
|
* will probably happen if you do.
|
|
2460
2467
|
*/
|
|
2461
|
-
readonly [kInternal]: PrivateClientApi<U, TM, CM>;
|
|
2468
|
+
readonly [kInternal]: PrivateClientApi<U, TM, CM, FM, FMD>;
|
|
2462
2469
|
/**
|
|
2463
2470
|
* Returns the current global sync status of the Liveblocks client. If any
|
|
2464
2471
|
* part of Liveblocks has any local pending changes that haven't been
|
|
@@ -2683,6 +2690,14 @@ declare const ClientMsgCode: Readonly<{
|
|
|
2683
2690
|
UPDATE_STORAGE: 201;
|
|
2684
2691
|
FETCH_YDOC: 300;
|
|
2685
2692
|
UPDATE_YDOC: 301;
|
|
2693
|
+
FETCH_FEEDS: 510;
|
|
2694
|
+
FETCH_FEED_MESSAGES: 511;
|
|
2695
|
+
ADD_FEED: 512;
|
|
2696
|
+
UPDATE_FEED: 513;
|
|
2697
|
+
DELETE_FEED: 514;
|
|
2698
|
+
ADD_FEED_MESSAGE: 515;
|
|
2699
|
+
UPDATE_FEED_MESSAGE: 516;
|
|
2700
|
+
DELETE_FEED_MESSAGE: 517;
|
|
2686
2701
|
}>;
|
|
2687
2702
|
declare namespace ClientMsgCode {
|
|
2688
2703
|
type UPDATE_PRESENCE = typeof ClientMsgCode.UPDATE_PRESENCE;
|
|
@@ -2691,11 +2706,19 @@ declare namespace ClientMsgCode {
|
|
|
2691
2706
|
type UPDATE_STORAGE = typeof ClientMsgCode.UPDATE_STORAGE;
|
|
2692
2707
|
type FETCH_YDOC = typeof ClientMsgCode.FETCH_YDOC;
|
|
2693
2708
|
type UPDATE_YDOC = typeof ClientMsgCode.UPDATE_YDOC;
|
|
2709
|
+
type FETCH_FEEDS = typeof ClientMsgCode.FETCH_FEEDS;
|
|
2710
|
+
type FETCH_FEED_MESSAGES = typeof ClientMsgCode.FETCH_FEED_MESSAGES;
|
|
2711
|
+
type ADD_FEED = typeof ClientMsgCode.ADD_FEED;
|
|
2712
|
+
type UPDATE_FEED = typeof ClientMsgCode.UPDATE_FEED;
|
|
2713
|
+
type DELETE_FEED = typeof ClientMsgCode.DELETE_FEED;
|
|
2714
|
+
type ADD_FEED_MESSAGE = typeof ClientMsgCode.ADD_FEED_MESSAGE;
|
|
2715
|
+
type UPDATE_FEED_MESSAGE = typeof ClientMsgCode.UPDATE_FEED_MESSAGE;
|
|
2716
|
+
type DELETE_FEED_MESSAGE = typeof ClientMsgCode.DELETE_FEED_MESSAGE;
|
|
2694
2717
|
}
|
|
2695
2718
|
/**
|
|
2696
2719
|
* Messages that can be sent from the client to the server.
|
|
2697
2720
|
*/
|
|
2698
|
-
type ClientMsg<P extends JsonObject, E extends Json> = BroadcastEventClientMsg<E> | UpdatePresenceClientMsg<P> | UpdateStorageClientMsg | FetchStorageClientMsg | FetchYDocClientMsg | UpdateYDocClientMsg;
|
|
2721
|
+
type ClientMsg<P extends JsonObject, E extends Json> = BroadcastEventClientMsg<E> | UpdatePresenceClientMsg<P> | UpdateStorageClientMsg | FetchStorageClientMsg | FetchYDocClientMsg | UpdateYDocClientMsg | FetchFeedsClientMsg | FetchFeedMessagesClientMsg | AddFeedClientMsg | UpdateFeedClientMsg | DeleteFeedClientMsg | AddFeedMessageClientMsg | UpdateFeedMessageClientMsg | DeleteFeedMessageClientMsg;
|
|
2699
2722
|
type BroadcastEventClientMsg<E extends Json> = {
|
|
2700
2723
|
type: ClientMsgCode.BROADCAST_EVENT;
|
|
2701
2724
|
event: E;
|
|
@@ -2745,6 +2768,81 @@ type UpdateYDocClientMsg = {
|
|
|
2745
2768
|
readonly guid?: string;
|
|
2746
2769
|
readonly v2?: boolean;
|
|
2747
2770
|
};
|
|
2771
|
+
/** Metadata filter for {@link FetchFeedsClientMsg}. Values are matched as strings. */
|
|
2772
|
+
type FeedFetchMetadataFilter = Record<string, string>;
|
|
2773
|
+
/** Metadata for {@link AddFeedClientMsg}. */
|
|
2774
|
+
type FeedCreateMetadata = Record<string, string | string[]>;
|
|
2775
|
+
/** Metadata for {@link UpdateFeedClientMsg}. Use `null` to remove a key. */
|
|
2776
|
+
type FeedUpdateMetadata = Record<string, string | string[] | null>;
|
|
2777
|
+
type FetchFeedsClientMsg = {
|
|
2778
|
+
readonly type: ClientMsgCode.FETCH_FEEDS;
|
|
2779
|
+
readonly requestId: string;
|
|
2780
|
+
readonly cursor?: string;
|
|
2781
|
+
readonly since?: number;
|
|
2782
|
+
readonly limit?: number;
|
|
2783
|
+
readonly metadata?: FeedFetchMetadataFilter;
|
|
2784
|
+
};
|
|
2785
|
+
type FetchFeedMessagesClientMsg = {
|
|
2786
|
+
readonly type: ClientMsgCode.FETCH_FEED_MESSAGES;
|
|
2787
|
+
readonly requestId: string;
|
|
2788
|
+
readonly feedId: string;
|
|
2789
|
+
readonly cursor?: string;
|
|
2790
|
+
readonly since?: number;
|
|
2791
|
+
readonly limit?: number;
|
|
2792
|
+
};
|
|
2793
|
+
type AddFeedClientMsg = {
|
|
2794
|
+
readonly type: ClientMsgCode.ADD_FEED;
|
|
2795
|
+
readonly requestId: string;
|
|
2796
|
+
readonly feedId: string;
|
|
2797
|
+
readonly metadata?: FeedCreateMetadata;
|
|
2798
|
+
readonly createdAt?: number;
|
|
2799
|
+
};
|
|
2800
|
+
type UpdateFeedClientMsg = {
|
|
2801
|
+
readonly type: ClientMsgCode.UPDATE_FEED;
|
|
2802
|
+
readonly requestId: string;
|
|
2803
|
+
readonly feedId: string;
|
|
2804
|
+
readonly metadata: FeedUpdateMetadata;
|
|
2805
|
+
};
|
|
2806
|
+
type DeleteFeedClientMsg = {
|
|
2807
|
+
readonly type: ClientMsgCode.DELETE_FEED;
|
|
2808
|
+
readonly requestId: string;
|
|
2809
|
+
readonly feedId: string;
|
|
2810
|
+
};
|
|
2811
|
+
type AddFeedMessageClientMsg = {
|
|
2812
|
+
readonly type: ClientMsgCode.ADD_FEED_MESSAGE;
|
|
2813
|
+
readonly requestId: string;
|
|
2814
|
+
readonly feedId: string;
|
|
2815
|
+
readonly data: JsonObject;
|
|
2816
|
+
readonly id?: string;
|
|
2817
|
+
readonly createdAt?: number;
|
|
2818
|
+
};
|
|
2819
|
+
type UpdateFeedMessageClientMsg = {
|
|
2820
|
+
readonly type: ClientMsgCode.UPDATE_FEED_MESSAGE;
|
|
2821
|
+
readonly requestId: string;
|
|
2822
|
+
readonly feedId: string;
|
|
2823
|
+
readonly messageId: string;
|
|
2824
|
+
readonly data: JsonObject;
|
|
2825
|
+
readonly updatedAt?: number;
|
|
2826
|
+
};
|
|
2827
|
+
type DeleteFeedMessageClientMsg = {
|
|
2828
|
+
readonly type: ClientMsgCode.DELETE_FEED_MESSAGE;
|
|
2829
|
+
readonly requestId: string;
|
|
2830
|
+
readonly feedId: string;
|
|
2831
|
+
readonly messageId: string;
|
|
2832
|
+
};
|
|
2833
|
+
|
|
2834
|
+
type Feed<FM extends Json = Json> = {
|
|
2835
|
+
feedId: string;
|
|
2836
|
+
metadata: FM;
|
|
2837
|
+
createdAt: number;
|
|
2838
|
+
updatedAt: number;
|
|
2839
|
+
};
|
|
2840
|
+
type FeedMessage<FMD extends Json = Json> = {
|
|
2841
|
+
id: string;
|
|
2842
|
+
createdAt: number;
|
|
2843
|
+
updatedAt: number;
|
|
2844
|
+
data: FMD;
|
|
2845
|
+
};
|
|
2748
2846
|
|
|
2749
2847
|
type ServerMsgCode = (typeof ServerMsgCode)[keyof typeof ServerMsgCode];
|
|
2750
2848
|
declare const ServerMsgCode: Readonly<{
|
|
@@ -2768,6 +2866,15 @@ declare const ServerMsgCode: Readonly<{
|
|
|
2768
2866
|
COMMENT_REACTION_ADDED: 405;
|
|
2769
2867
|
COMMENT_REACTION_REMOVED: 406;
|
|
2770
2868
|
COMMENT_METADATA_UPDATED: 409;
|
|
2869
|
+
FEEDS_LIST: 500;
|
|
2870
|
+
FEEDS_ADDED: 501;
|
|
2871
|
+
FEEDS_UPDATED: 502;
|
|
2872
|
+
FEED_DELETED: 503;
|
|
2873
|
+
FEED_MESSAGES_LIST: 504;
|
|
2874
|
+
FEED_MESSAGES_ADDED: 505;
|
|
2875
|
+
FEED_MESSAGES_UPDATED: 506;
|
|
2876
|
+
FEED_MESSAGES_DELETED: 507;
|
|
2877
|
+
FEED_REQUEST_FAILED: 508;
|
|
2771
2878
|
REJECT_STORAGE_OP: 299;
|
|
2772
2879
|
}>;
|
|
2773
2880
|
declare namespace ServerMsgCode {
|
|
@@ -2790,13 +2897,22 @@ declare namespace ServerMsgCode {
|
|
|
2790
2897
|
type COMMENT_DELETED = typeof ServerMsgCode.COMMENT_DELETED;
|
|
2791
2898
|
type COMMENT_REACTION_ADDED = typeof ServerMsgCode.COMMENT_REACTION_ADDED;
|
|
2792
2899
|
type COMMENT_REACTION_REMOVED = typeof ServerMsgCode.COMMENT_REACTION_REMOVED;
|
|
2900
|
+
type FEEDS_LIST = typeof ServerMsgCode.FEEDS_LIST;
|
|
2901
|
+
type FEEDS_ADDED = typeof ServerMsgCode.FEEDS_ADDED;
|
|
2902
|
+
type FEEDS_UPDATED = typeof ServerMsgCode.FEEDS_UPDATED;
|
|
2903
|
+
type FEED_DELETED = typeof ServerMsgCode.FEED_DELETED;
|
|
2904
|
+
type FEED_MESSAGES_LIST = typeof ServerMsgCode.FEED_MESSAGES_LIST;
|
|
2905
|
+
type FEED_MESSAGES_ADDED = typeof ServerMsgCode.FEED_MESSAGES_ADDED;
|
|
2906
|
+
type FEED_MESSAGES_UPDATED = typeof ServerMsgCode.FEED_MESSAGES_UPDATED;
|
|
2907
|
+
type FEED_MESSAGES_DELETED = typeof ServerMsgCode.FEED_MESSAGES_DELETED;
|
|
2908
|
+
type FEED_REQUEST_FAILED = typeof ServerMsgCode.FEED_REQUEST_FAILED;
|
|
2793
2909
|
type COMMENT_METADATA_UPDATED = typeof ServerMsgCode.COMMENT_METADATA_UPDATED;
|
|
2794
2910
|
type REJECT_STORAGE_OP = typeof ServerMsgCode.REJECT_STORAGE_OP;
|
|
2795
2911
|
}
|
|
2796
2912
|
/**
|
|
2797
2913
|
* Messages that can be sent from the server to the client.
|
|
2798
2914
|
*/
|
|
2799
|
-
type ServerMsg<P extends JsonObject, U extends BaseUserMeta, E extends Json> = UpdatePresenceServerMsg<P> | UserJoinServerMsg<U> | UserLeftServerMsg | BroadcastedEventServerMsg<E> | RoomStateServerMsg<U> | StorageStateServerMsg_V7 | StorageChunkServerMsg | StorageEndServerMsg | UpdateStorageServerMsg | YDocUpdateServerMsg | RejectedStorageOpServerMsg | CommentsEventServerMsg;
|
|
2915
|
+
type ServerMsg<P extends JsonObject, U extends BaseUserMeta, E extends Json> = UpdatePresenceServerMsg<P> | UserJoinServerMsg<U> | UserLeftServerMsg | BroadcastedEventServerMsg<E> | RoomStateServerMsg<U> | StorageStateServerMsg_V7 | StorageChunkServerMsg | StorageEndServerMsg | UpdateStorageServerMsg | YDocUpdateServerMsg | RejectedStorageOpServerMsg | CommentsEventServerMsg | FeedsEventServerMsg;
|
|
2800
2916
|
type CommentsEventServerMsg = ThreadCreatedEvent | ThreadDeletedEvent | ThreadMetadataUpdatedEvent | ThreadUpdatedEvent | CommentCreatedEvent | CommentEditedEvent | CommentDeletedEvent | CommentReactionAdded | CommentReactionRemoved | CommentMetadataUpdatedEvent;
|
|
2801
2917
|
type ThreadCreatedEvent = {
|
|
2802
2918
|
type: ServerMsgCode.THREAD_CREATED;
|
|
@@ -3027,6 +3143,66 @@ type RejectedStorageOpServerMsg = {
|
|
|
3027
3143
|
readonly opIds: string[];
|
|
3028
3144
|
readonly reason: string;
|
|
3029
3145
|
};
|
|
3146
|
+
type FeedsEventServerMsg<FM extends Json = Json, FMD extends Json = Json> = FeedsListServerMsg<FM> | FeedsAddedServerMsg<FM> | FeedsUpdatedServerMsg<FM> | FeedDeletedServerMsg | FeedMessagesListServerMsg<FMD> | FeedMessagesAddedServerMsg<FMD> | FeedMessagesUpdatedServerMsg<FMD> | FeedMessagesDeletedServerMsg | FeedRequestFailedServerMsg;
|
|
3147
|
+
/** Error codes for {@link FeedRequestFailedServerMsg}. */
|
|
3148
|
+
declare const FeedRequestErrorCode: {
|
|
3149
|
+
readonly INTERNAL: "INTERNAL";
|
|
3150
|
+
readonly FEED_ALREADY_EXISTS: "FEED_ALREADY_EXISTS";
|
|
3151
|
+
readonly FEED_NOT_FOUND: "FEED_NOT_FOUND";
|
|
3152
|
+
readonly FEED_MESSAGE_NOT_FOUND: "FEED_MESSAGE_NOT_FOUND";
|
|
3153
|
+
};
|
|
3154
|
+
/** String literals accepted in {@link FeedRequestFailedServerMsg}.code */
|
|
3155
|
+
type FeedRequestError = (typeof FeedRequestErrorCode)[keyof typeof FeedRequestErrorCode];
|
|
3156
|
+
/**
|
|
3157
|
+
* Sent to the client when a feed mutation referenced by `requestId` failed
|
|
3158
|
+
* (e.g. validation or permission error).
|
|
3159
|
+
*/
|
|
3160
|
+
type FeedRequestFailedServerMsg = {
|
|
3161
|
+
readonly type: ServerMsgCode.FEED_REQUEST_FAILED;
|
|
3162
|
+
readonly requestId: string;
|
|
3163
|
+
readonly code: string;
|
|
3164
|
+
readonly reason?: string;
|
|
3165
|
+
};
|
|
3166
|
+
type FeedsListServerMsg<FM extends Json = Json> = {
|
|
3167
|
+
readonly type: ServerMsgCode.FEEDS_LIST;
|
|
3168
|
+
readonly requestId: string;
|
|
3169
|
+
readonly feeds: Feed<FM>[];
|
|
3170
|
+
readonly nextCursor?: string;
|
|
3171
|
+
};
|
|
3172
|
+
type FeedsAddedServerMsg<FM extends Json = Json> = {
|
|
3173
|
+
readonly type: ServerMsgCode.FEEDS_ADDED;
|
|
3174
|
+
readonly feeds: Feed<FM>[];
|
|
3175
|
+
};
|
|
3176
|
+
type FeedsUpdatedServerMsg<FM extends Json = Json> = {
|
|
3177
|
+
readonly type: ServerMsgCode.FEEDS_UPDATED;
|
|
3178
|
+
readonly feeds: Feed<FM>[];
|
|
3179
|
+
};
|
|
3180
|
+
type FeedDeletedServerMsg = {
|
|
3181
|
+
readonly type: ServerMsgCode.FEED_DELETED;
|
|
3182
|
+
readonly feedId: string;
|
|
3183
|
+
};
|
|
3184
|
+
type FeedMessagesListServerMsg<FMD extends Json = Json> = {
|
|
3185
|
+
readonly type: ServerMsgCode.FEED_MESSAGES_LIST;
|
|
3186
|
+
readonly requestId: string;
|
|
3187
|
+
readonly feedId: string;
|
|
3188
|
+
readonly messages: FeedMessage<FMD>[];
|
|
3189
|
+
readonly nextCursor?: string;
|
|
3190
|
+
};
|
|
3191
|
+
type FeedMessagesAddedServerMsg<FMD extends Json = Json> = {
|
|
3192
|
+
readonly type: ServerMsgCode.FEED_MESSAGES_ADDED;
|
|
3193
|
+
readonly feedId: string;
|
|
3194
|
+
readonly messages: FeedMessage<FMD>[];
|
|
3195
|
+
};
|
|
3196
|
+
type FeedMessagesUpdatedServerMsg<FMD extends Json = Json> = {
|
|
3197
|
+
readonly type: ServerMsgCode.FEED_MESSAGES_UPDATED;
|
|
3198
|
+
readonly feedId: string;
|
|
3199
|
+
readonly messages: FeedMessage<FMD>[];
|
|
3200
|
+
};
|
|
3201
|
+
type FeedMessagesDeletedServerMsg = {
|
|
3202
|
+
readonly type: ServerMsgCode.FEED_MESSAGES_DELETED;
|
|
3203
|
+
readonly feedId: string;
|
|
3204
|
+
readonly messageIds: readonly string[];
|
|
3205
|
+
};
|
|
3030
3206
|
|
|
3031
3207
|
type HistoryVersion = {
|
|
3032
3208
|
type: "historyVersion";
|
|
@@ -3364,8 +3540,8 @@ type GetSubscriptionSettingsOptions = {
|
|
|
3364
3540
|
* this type is different from `Room`-without-type-arguments. That represents
|
|
3365
3541
|
* a Room instance using globally augmented types only, which is narrower.
|
|
3366
3542
|
*/
|
|
3367
|
-
type OpaqueRoom = Room<JsonObject, LsonObject, BaseUserMeta, Json, BaseMetadata>;
|
|
3368
|
-
type Room<P extends JsonObject = DP, S extends LsonObject = DS, U extends BaseUserMeta = DU, E extends Json = DE, TM extends BaseMetadata = DTM, CM extends BaseMetadata = DCM> = {
|
|
3543
|
+
type OpaqueRoom = Room<JsonObject, LsonObject, BaseUserMeta, Json, BaseMetadata, BaseMetadata, Json, Json>;
|
|
3544
|
+
type Room<P extends JsonObject = DP, S extends LsonObject = DS, U extends BaseUserMeta = DU, E extends Json = DE, TM extends BaseMetadata = DTM, CM extends BaseMetadata = DCM, FM extends Json = DFM, FMD extends Json = DFMD> = {
|
|
3369
3545
|
/**
|
|
3370
3546
|
* @private
|
|
3371
3547
|
*
|
|
@@ -3438,6 +3614,63 @@ type Room<P extends JsonObject = DP, S extends LsonObject = DS, U extends BaseUs
|
|
|
3438
3614
|
* Sends a request for the current document from liveblocks server
|
|
3439
3615
|
*/
|
|
3440
3616
|
fetchYDoc(stateVector: string, guid?: string, isV2?: boolean): void;
|
|
3617
|
+
/**
|
|
3618
|
+
* Fetches feeds for the room.
|
|
3619
|
+
*/
|
|
3620
|
+
fetchFeeds(options?: {
|
|
3621
|
+
cursor?: string;
|
|
3622
|
+
since?: number;
|
|
3623
|
+
limit?: number;
|
|
3624
|
+
metadata?: FeedFetchMetadataFilter;
|
|
3625
|
+
}): Promise<{
|
|
3626
|
+
feeds: Feed<FM>[];
|
|
3627
|
+
nextCursor?: string;
|
|
3628
|
+
}>;
|
|
3629
|
+
/**
|
|
3630
|
+
* Fetches messages for a specific feed.
|
|
3631
|
+
*/
|
|
3632
|
+
fetchFeedMessages(feedId: string, options?: {
|
|
3633
|
+
cursor?: string;
|
|
3634
|
+
since?: number;
|
|
3635
|
+
limit?: number;
|
|
3636
|
+
}): Promise<{
|
|
3637
|
+
messages: FeedMessage<FMD>[];
|
|
3638
|
+
nextCursor?: string;
|
|
3639
|
+
}>;
|
|
3640
|
+
/**
|
|
3641
|
+
* Adds a new feed to the room via WebSocket.
|
|
3642
|
+
* Resolves when the server broadcasts the new feed, or rejects on
|
|
3643
|
+
* FEED_REQUEST_FAILED (508) or timeout.
|
|
3644
|
+
*/
|
|
3645
|
+
addFeed(feedId: string, options?: {
|
|
3646
|
+
metadata?: FeedCreateMetadata;
|
|
3647
|
+
createdAt?: number;
|
|
3648
|
+
}): Promise<void>;
|
|
3649
|
+
/**
|
|
3650
|
+
* Updates metadata for an existing feed via WebSocket.
|
|
3651
|
+
*/
|
|
3652
|
+
updateFeed(feedId: string, metadata: FeedUpdateMetadata): Promise<void>;
|
|
3653
|
+
/**
|
|
3654
|
+
* Deletes a feed via WebSocket.
|
|
3655
|
+
*/
|
|
3656
|
+
deleteFeed(feedId: string): Promise<void>;
|
|
3657
|
+
/**
|
|
3658
|
+
* Adds a new message to a feed via WebSocket.
|
|
3659
|
+
*/
|
|
3660
|
+
addFeedMessage(feedId: string, data: JsonObject, options?: {
|
|
3661
|
+
id?: string;
|
|
3662
|
+
createdAt?: number;
|
|
3663
|
+
}): Promise<void>;
|
|
3664
|
+
/**
|
|
3665
|
+
* Updates an existing feed message via WebSocket.
|
|
3666
|
+
*/
|
|
3667
|
+
updateFeedMessage(feedId: string, messageId: string, data: JsonObject, options?: {
|
|
3668
|
+
updatedAt?: number;
|
|
3669
|
+
}): Promise<void>;
|
|
3670
|
+
/**
|
|
3671
|
+
* Deletes a feed message via WebSocket.
|
|
3672
|
+
*/
|
|
3673
|
+
deleteFeedMessage(feedId: string, messageId: string): Promise<void>;
|
|
3441
3674
|
/**
|
|
3442
3675
|
* Broadcasts an event to other users in the room. Event broadcasted to the room can be listened with {@link Room.subscribe}("event").
|
|
3443
3676
|
* @param {any} event the event to broadcast. Should be serializable to JSON
|
|
@@ -3496,6 +3729,7 @@ type Room<P extends JsonObject = DP, S extends LsonObject = DS, U extends BaseUs
|
|
|
3496
3729
|
readonly storageStatus: Observable<StorageStatus>;
|
|
3497
3730
|
readonly ydoc: Observable<YDocUpdateServerMsg | UpdateYDocClientMsg>;
|
|
3498
3731
|
readonly comments: Observable<CommentsEventServerMsg>;
|
|
3732
|
+
readonly feeds: Observable<FeedsEventServerMsg<FM, FMD>>;
|
|
3499
3733
|
/**
|
|
3500
3734
|
* Called right before the room is destroyed. The event cannot be used to
|
|
3501
3735
|
* prevent the room from being destroyed, only to be informed that this is
|
|
@@ -4731,6 +4965,10 @@ ChildStorageNode[]>;
|
|
|
4731
4965
|
declare function isLiveNode(value: unknown): value is LiveNode;
|
|
4732
4966
|
declare function cloneLson<L extends Lson | undefined>(value: L): L;
|
|
4733
4967
|
|
|
4968
|
+
declare function lsonToJson(value: Lson): Json;
|
|
4969
|
+
declare function legacy_patchLiveObjectKey<O extends LsonObject, K extends keyof O, V extends Json>(liveObject: LiveObject<O>, key: K, prev?: V, next?: V): void;
|
|
4970
|
+
declare function legacy_patchImmutableObject<TState extends JsonObject>(state: TState, updates: StorageUpdate[]): TState;
|
|
4971
|
+
|
|
4734
4972
|
/**
|
|
4735
4973
|
* Like `new AbortController()`, but where the result can be unpacked
|
|
4736
4974
|
* safely, i.e. `const { signal, abort } = makeAbortController()`.
|
|
@@ -5420,4 +5658,4 @@ type EnsureJson<T> = T extends Json ? T : T extends Array<infer I> ? (EnsureJson
|
|
|
5420
5658
|
[K in keyof T as EnsureJson<T[K]> extends never ? never : K]: EnsureJson<T[K]>;
|
|
5421
5659
|
};
|
|
5422
5660
|
|
|
5423
|
-
export { 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 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 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 PlainLson, type PlainLsonFields, type PlainLsonList, type PlainLsonMap, type PlainLsonObject, type Poller, type PrivateClientApi, type PrivateRoomApi, Promise_withResolvers, type QueryMetadata, type QueryParams, type RegisterStorageNode, type RejectedStorageOpServerMsg, type Relax, type RenderableToolResultResponse, type Resolve, type ResolveGroupsInfoArgs, type ResolveMentionSuggestionsArgs, type ResolveRoomsInfoArgs, type ResolveUsersArgs, type Room, type RoomEventMessage, 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 ToImmutable, 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, getSubscriptionKey, html, htmlSafe, isCommentBodyLink, isCommentBodyMention, isCommentBodyText, isJsonArray, isJsonObject, isJsonScalar, isListStorageNode, isLiveNode, isMapStorageNode, isNotificationChannelEnabled, isNumberOperator, isObjectStorageNode, isPlainObject, isRegisterStorageNode, isRootStorageNode, isStartsWithOperator, isUrl, kInternal, keys, legacy_patchImmutableObject, legacy_patchLiveObjectKey, lsonToJson, makeAbortController, makeEventSource, makePoller, makePosition, mapValues, memoizeOnSuccess, nanoid, nn, nodeStreamToCompactNodes, objectToQuery, patchNotificationSettings, raise, resolveMentionsInCommentBody, sanitizeUrl, shallow, shallow2, stableStringify, stringifyCommentBody, throwUsageError, toPlainLson, tryParseJson, url, urljoin, wait, warnOnce, warnOnceIf, withTimeout };
|
|
5661
|
+
export { 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 PlainLson, type PlainLsonFields, type PlainLsonList, type PlainLsonMap, type PlainLsonObject, type Poller, type PrivateClientApi, type PrivateRoomApi, Promise_withResolvers, type QueryMetadata, type QueryParams, type RegisterStorageNode, type RejectedStorageOpServerMsg, type Relax, type RenderableToolResultResponse, type Resolve, type ResolveGroupsInfoArgs, type ResolveMentionSuggestionsArgs, type ResolveRoomsInfoArgs, type ResolveUsersArgs, type Room, type RoomEventMessage, 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 ToImmutable, 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, getSubscriptionKey, html, htmlSafe, isCommentBodyLink, isCommentBodyMention, isCommentBodyText, isJsonArray, isJsonObject, isJsonScalar, isListStorageNode, isLiveNode, isMapStorageNode, isNotificationChannelEnabled, isNumberOperator, isObjectStorageNode, isPlainObject, isRegisterStorageNode, isRootStorageNode, isStartsWithOperator, isUrl, kInternal, keys, legacy_patchImmutableObject, legacy_patchLiveObjectKey, lsonToJson, makeAbortController, makeEventSource, makePoller, makePosition, mapValues, memoizeOnSuccess, nanoid, nn, nodeStreamToCompactNodes, objectToQuery, patchNotificationSettings, raise, resolveMentionsInCommentBody, sanitizeUrl, shallow, shallow2, stableStringify, stringifyCommentBody, throwUsageError, toPlainLson, tryParseJson, url, urljoin, wait, warnOnce, warnOnceIf, withTimeout };
|